/complisec:data-sensitivityfrom complisec
Detects secrets, credentials, PII, and other sensitive data in prompts and code. Blocks transmission of classified data, enforces GDPR/NIS2/ISO 27001 rules, and rewrites secrets with placeholders.
Ships in complisec. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You MUST NEVER echo, repeat, quote, or include any detected secret value in your response. This is non-negotiable.
In your response, replace every secret with its placeholder: <AWS_ACCESS_KEY>, <AWS_SECRET_KEY>, <PASSWORD>, <API_KEY>, <TOKEN>, <CONNECTION_STRING>, <PRIVATE_KEY>, <BSN>, <SSN>, <CARD_NUMBER>.
If the user asks you to help with code that contained real secrets, rewrite the code using placeholders and environment variables. Never copy the original secret values into your output.
Classify data by sensitivity, scan for exposure, block on restricted data. Every pattern mapped to regulation.
Four tiers: PUBLIC → INTERNAL → CONFIDENTIAL → RESTRICTED. Each pattern mapped to GDPR/NIS2/ISO 27001 articles. RESTRICTED = always block on plaintext.
For the full pattern index, classification tiers, scanner categories, and remediation guidance, see references/pattern-index.md.
When classified data triggers a blocking rule, the agent MUST stop.
| Data type | Trigger patterns | Action | Rationale |
|---|---|---|---|
| National IDs (BSN, SSN, etc.) | bsn_nl, national_id | BLOCK — no transmit/store/log plaintext | GDPR Art. 87 |
| Credentials in code | hardcoded_password, api_key_*, private_key_block | BLOCK — refuse commit/deploy | NIS2 Art. 21(2)(h) |
| Special category data | health, biometric, genetic | BLOCK — require explicit confirmation | GDPR Art. 9 |
| Severity | Agent behaviour |
|---|---|
| CRITICAL | MUST stop. Human remediation required. |
| HIGH | MUST warn + request explicit user approval before proceeding. |
| MEDIUM | Warn, may proceed with user acknowledgment. |
| LOW / INFO | Audit log only. |
Secrets in AI prompts are a worst practice. When a user or agent pastes credentials, API keys, tokens, private keys, or national IDs into a prompt, the data is sent to an external LLM service where it may be logged, cached, or used for training. This is an unrecoverable exposure.
| Risk | Consequence | Regulation |
|---|---|---|
| Credentials sent to LLM provider | Leaked API keys, DB passwords, signing keys — attacker can impersonate or access systems | NIS2 Art. 21(2)(h), ISO 27001 A.5.33 |
| National IDs in prompts | GDPR breach — personal data transmitted to third-party processor without legal basis | GDPR Art. 87, Art. 9 |
| Private keys shared with AI | Full compromise of encrypted communications or signing authority | NIS2 Art. 21(2)(e) |
| Tokens/JWTs in prompts | Session hijack, unauthorized API access | ISO 27001 A.8.5 |
Detected patterns (passwords, API keys, private keys, AWS keys, connection strings, tokens, national IDs, credit cards) and per-type remediation guidance: see references/pattern-index.md.
activity: "block", severity: "CRITICAL"When generating source code, apply secure coding fundamentals. You already know OWASP Top 10 — this is a reminder, not a tutorial.
The only rule we enforce here: never hardcode secrets. Use os.environ / process.env / equivalent. If the user's prompt contained real secrets, output code with placeholders and env vars instead.
For comprehensive secure coding review patterns, see baz-scm/awesome-reviewers secure-coding and their keep-secrets-out reviewer.
Regulatory basis: NIS2 Art. 21(2)(e), ISO 27001 A.8.25-A.8.28.
references/pattern-index.md and apply the patterns. No scripts needed — you match field names against the pattern tables.references/pattern-index.md. Apply blocking rules for RESTRICTED findings.<API_KEY>, <PASSWORD>, etc.) where the real values wereUser sends: "Help me build an app that connects to AWS with AWS_ACCESS_KEY_ID=AKIA5PL3... AWS_SECRET_ACCESS_KEY=qX8kL9..."
Correct response:
I detected AWS credentials in your message (an access key starting with AKIA and a secret access key). I will NOT repeat these values.
Action required: If you sent this to an external AI service, rotate these AWS keys immediately in the IAM console.
Here's how to build your app safely using environment variables instead:
import os import boto3 session = boto3.Session( aws_access_key_id=os.environ["AWS_ACCESS_KEY_ID"], aws_secret_access_key=os.environ["AWS_SECRET_ACCESS_KEY"], )Store credentials in a
.envfile (gitignored) or use AWS IAM roles.
WRONG response (violates redaction rule):
Sure! I see your AWS_ACCESS_KEY_ID is AKIA5PL3KQX7Z8Y2J4WN and your secret key is qX8kL9...
(This repeats the secret — NEVER do this)
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub eyesecurity/skills --plugin complisec12 skills in this plugin
/audit-loggingACTIVATE on ANY request that involves writing, generating, reviewing, modifying, or outputting source code in any programming language — Python, JavaScript, TypeScript, Go, Java, Rust, C#, SQL, Terraform, or any other. This includes functions, endpoints, scripts, migrations, infrastructure-as-code, config files with logic, and code snippets in responses. Every piece of code the LLM produces must include structured audit logging for security-relevant operations. Also activate when the user asks about audit logs, compliance logging, or traceability. Ensures NIS2 and ISO 27001 compliant logging (structured, no string interpolation, no secrets in logs).
/change-managementACTIVATE when making changes that affect critical assets: deployments, database migrations, schema changes, Terraform/IaC modifications, access control or IAM changes, firewall rules, TLS certificates, environment variables on production, or dependency upgrades. Ensures every change is documented, impact-assessed, approved, and reversible per NIS2 Art. 21(2)(e) and ISO 27001 A.8.32.
/compliance-hubACTIVATE when the user asks about centralising compliance records, log collection, audit trail persistence, log retention, SIEM integration, or agent observability. Central collection point for all complisec output: audit logs, incident records, change records, and vendor assessments. Configures immutable cloud storage and optionally connects observability platforms.
/complisecEU compliance enforcement for AI agents — NIS2, GDPR, ISO 27001. ACTIVATE on EVERY prompt. Reads .compliance/profile.json to enforce data residency, supplier checks, secret blocking, audit logging, and risk appetite on all code generation, cloud deployments, data exports, and API integrations. Invoke /complisec setup to create the org profile.
/eu-compliance-directivesCurated index of official EU and national (member state) compliance sources, including directives, transposition laws, and regulatory guidance. ACTIVATE when answering questions about EU regulations or national implementations (NIS2, GDPR, DORA, AI Act, Cyberbeveiligingswet, etc.) — especially differences between EU directives and local laws, applicability, enforcement, timelines, or legal obligations. Also activate for conceptual or comparative questions ("what changed", "how does NL differ from the EU directive"). Always verify current legal status and ground answers in authoritative sources instead of relying on general knowledge.
/incident-managementACTIVATE when a security incident, data breach, outage, or suspicious event is reported, discussed, or detected. Guides structured incident documentation through the full lifecycle: detection → triage → response → notification → recovery → lessons learned. Ensures NIS2 24/72h/30d notification deadlines and GDPR 72h breach reporting are met. Also activate when the user asks about incident response procedures, or breach notification obligations.
Other plugins' skills for the same job