/gabbe-security:privacy-auditfrom gabbe-security
Scans codebases for PII leaks, maps data flows, and checks compliance with GDPR/CCPA/HIPAA. Produces a data flow map and violation list.
Ships in gabbe-security. 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.
None: SKILL.md is the whole skill.
Ensure no PII leaks, all data flows are documented, and the codebase complies with applicable data protection regulations (GDPR, CCPA, HIPAA). Produce a data flow map and violation list.
Phase and gate: S02 (data flows), S07 (review), S13 (disposal). Evidence: the data flow map docs/privacy/data-flow-map.md and the audit report.
Identify applicable regulations
Scan codebase for PII exposure
Automated scanning:
# No Semgrep registry ruleset named p/pii exists (the URL returned 404 on 2026-11-21).
# Use the grep below, and write project rules if the human wants a scanner.
# Search for common PII patterns in logs/error handlers
grep -rn "console.log\|logger\." src/ | grep -i "email\|name\|phone\|address\|ssn\|dob"
Manual checks — scan for these patterns:
In log statements: email, name, phone number, IP address, user ID with PII
In error messages: SQL errors with PII data, stack traces with user context
In analytics events: user identifiers beyond anonymized IDs
In API responses: unnecessary PII fields (returning full user object when only ID needed)
Map all data flows
Create a data flow inventory:
| Data Element | Collected At | Stored In | Processed By | Transmitted To | Deleted When |
|---|---|---|---|---|---|
| Email address | Registration form | users table | Auth service | SendGrid (email delivery) | Account deletion |
| IP address | Every request | access_logs table | Rate limiter | None | 90 days |
| Payment card | Checkout | NEVER (tokenized) | Stripe | Stripe only | N/A (tokenized) |
Check consent mechanisms
Check data minimization
Check data retention
Check data subject rights (GDPR/CCPA)
Check encryption
Check third-party data sharing
Generate privacy audit report
## Privacy Audit Report
### Regulations Applicable: [GDPR / CCPA / HIPAA]
### PII Exposure Findings
- [CRITICAL] Email address logged at src/middleware/logger.ts:42
- [HIGH] API response includes full user object — filter to minimum needed fields
### Data Flow Map
[see attached or inline table]
### Consent Mechanism: [COMPLIANT / NON-COMPLIANT]
- Issue: No consent recorded for marketing emails
### Data Retention: [COMPLIANT / NON-COMPLIANT]
- Issue: access_logs never deleted (retention policy not implemented)
### Encryption: [COMPLIANT / NON-COMPLIANT]
- Issue: phone_number stored in plaintext — should use field encryption
### Data Subject Rights: [COMPLIANT / NON-COMPLIANT]
- Issue: No data export endpoint (required by GDPR Article 20)
### Recommended Actions (priority order)
1. [CRITICAL] Remove email from log statements
2. [HIGH] Implement data retention cleanup job
3. [HIGH] Add data export endpoint
Privacy audit report + data flow map document at docs/privacy/data-flow-map.md.
[EMAIL]), never the value. Do not send raw matches to external services.What SKILL.md sets; muted values are Claude Code's defaults
21 skills in this plugin
/access-controlDesign roles and permissions with least privilege and review authorisation checks. Use when adding roles, permissions or admin features, or when auditing who can access what./agent-sandboxingIntrinsic least-privilege isolation for agents touching a local OS, shell, or filesystem — the enforcement layer behind prompt-injection-defense and ai-safety-guardrails. Use when: agent sandbox, sandbox policy, least privilege isolation, filesystem allowlist, egress deny-by-default, syscall restriction, microVM agent isolation, contain agent blast radius./agent-tool-reviewReview which tools, permissions and data an AI agent in the software has, and cut them to what its task needs. Use at S02 and S07 for any product or feature in which a model can call tools, write files, send messages or run code. Use when: agent tool permissions, tool permission review, excessive agency, agent least privilege, mcp tool review, agent capability review./ai-ethics-complianceCheck an AI feature against EU AI Act and GDPR duties, test for bias and proxy variables, and screen for dark patterns. Use before shipping a feature that scores, ranks or profiles people, or that talks to users as an AI. Use when: ai ethics, eu ai act, bias test, fairness check, dark pattern, ai transparency./ai-red-teamingProactively attack your own AI and agent system to find failures before adversaries, scoring attack-success-rate and gating CI on it. Use when: ai red teaming, red team plan, attack success rate, ASR scorecard, jailbreak testing, crescendo attack, automated adversarial testing, OWASP LLM red team./ai-safety-guardrailsAdd input, output, retrieval and execution rails around an LLM feature: PII scrubbing, output checks, and human approval for high-stakes actions. Use when building or reviewing a feature that sends user data to a model or acts on model output.npx claudepluginhub andreibesleaga/gabbe --plugin gabbe-securityOther plugins' skills for the same job