/appsec:data-disclosurefrom appsec
Analyzes source code for personal data disclosure threats (PII exposure, data leakage, unauthorized sharing) using the LINDDUN D2 framework. Useful for privacy reviews and security audits.
Ships in appsec. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Analyze source code for disclosure threats where personal data is accessible to unauthorized parties. Focuses specifically on personal and sensitive data rather than general system information. Covers direct disclosure (data breach vectors) and indirect disclosure (third-party sharing, over-collection).
Read ../../shared/schemas/flags.md for full flag
documentation. This skill supports all cross-cutting flags.
| Flag | Disclosure-Specific Behavior |
|---|---|
--scope | Default changed. Focuses on files handling personal data: API handlers, data models, logging, caching, third-party integrations, and error handling. |
--depth quick | Grep patterns only: scan for PII in logs, error messages, and third-party data sharing. |
--depth standard | Full code read, trace personal data flows within each file, check access controls on personal data stores. |
--depth deep | Cross-file personal data flow tracing. Map all paths where PII exits the application boundary. |
--depth expert | Deep + breach simulation: model what personal data is exposed in each attack scenario. |
--severity | Filter output. PII in logs is typically high; over-fetching is medium. |
--fix | Generate redaction, field-level access control, and data minimization replacements. |
LINDDUN D2 -- Disclosure of Information
Disclosure of information in the LINDDUN context refers specifically to
unauthorized access to personal data. Read
../../shared/frameworks/linddun.md for the
full LINDDUN framework reference including the distinction between LINDDUN
disclosure (personal data focus) and STRIDE information disclosure (general
system information).
Privacy Property Violated: Confidentiality of Personal Data
STRIDE Mapping: Information Disclosure (LINDDUN narrows focus specifically to personal data rather than general system information)
--scope flag (default: changed).Read each scoped file and assess personal data exposure vectors:
At --depth deep or --depth expert, trace all paths where personal data
exits the application boundary and map the full disclosure surface.
Output findings per ../../shared/schemas/findings.md.
Each finding needs: DDSCL-NNN id, title, severity (based on data sensitivity
and exposure scope), location with snippet, description of what personal data is
disclosed and through which channel, impact (unauthorized data access), fix
(redaction, minimization, or encryption), and CWE/LINDDUN references.
log\.\w+\(.*email|logger\.\w+\(.*password|console\.log\(.*ssn|print\(.*credit.cardres\.json\(user\)|response\.send\(userData\)|SELECT \*.*FROM.*user|\.toJSON\(\)Sentry\.captureException.*user|analytics\.track.*email|gtag.*user_id|bugsnag.*userres\.status\(.*\.json\(.*user|catch.*res\.send\(.*err|error.*message.*email\?email=|&phone=|/users/\$\{email\}|encodeURIComponent\(.*email\)|queryString.*ssnpassword.*varchar|ssn.*text|credit_card.*string|healthData.*column|plaintext.*piicache\.set\(.*user|redis\.set\(.*email|localStorage\.setItem\(.*token|sessionStorage.*userSELECT \*|findAll\(\)|\.find\(\{\}\)|\.aggregate\(\[|include:.*all| Regulation | Provision | Relevance |
|---|---|---|
| GDPR Art. 5(1)(f) | Integrity and confidentiality | Personal data must be protected against unauthorized disclosure |
| GDPR Art. 32 | Security of processing | Appropriate technical measures to protect personal data |
| GDPR Art. 33-34 | Breach notification | Disclosure of personal data triggers 72-hour notification |
| CCPA 1798.100 | Right to know | Consumers must know what personal data is collected and shared |
| CCPA 1798.150 | Private right of action | Data breaches exposing personal data create liability |
| HIPAA 164.312 | Technical safeguards | Protected health information requires access controls and encryption |
Use finding ID prefix DDSCL (e.g., DDSCL-001, DDSCL-002).
All findings follow the schema in
../../shared/schemas/findings.md with:
references.cwe: CWE-200, CWE-311, or CWE-532 as appropriatereferences.owasp: A01:2021 (Broken Access Control) or A02:2021 (Cryptographic Failures)metadata.tool: "data-disclosure"metadata.framework: "linddun"metadata.category: "D2"Summary table after all findings:
| Disclosure Pattern | Critical | High | Medium | Low |
|------------------------------|----------|------|--------|-----|
| PII in logs | | | | |
| Over-fetched API responses | | | | |
| Third-party data sharing | | | | |
| PII in error messages | | | | |
| Personal data in URLs | | | | |
| Plaintext PII storage | | | | |
| Cache / temp storage leaks | | | | |
Followed by: top 3 priorities, personal data flow map, and overall assessment.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
62 skills in this plugin
/access-controlThis skill should be used when the user asks to "check for access control issues", "analyze authorization", "find IDOR vulnerabilities", "audit CORS configuration", "check for privilege escalation", or mentions "access control", "authorization", "IDOR", "CORS", "JWT tampering", or "directory traversal" in a security context. Maps to OWASP Top 10 2021 A01: Broken Access Control.
/apiThis skill should be used when the user asks to "check API security", "audit REST API", "find BOLA vulnerabilities", "check for mass assignment", "analyze API rate limiting", "detect excessive data exposure", or mentions "API security", "BOLA", "IDOR", "mass assignment", "rate limiting", "broken function-level authorization", "excessive data exposure", or "OWASP API Top 10" in a security context.
/attack-surfaceThis skill should be used when the user asks to "map attack surface", "list entry points", "inventory API endpoints", "find all inputs", "enumerate routes", "discover exposed endpoints", or "map external interfaces". Also triggers when the user asks about exposed APIs, form handlers, file upload endpoints, WebSocket handlers, CLI argument parsers, or wants to understand where external data enters the system.
/authThis skill should be used when the user asks to "check for authentication issues", "analyze auth", "find credential vulnerabilities", "review login security", "check session management", or mentions "authentication", "passwords", "MFA", "sessions", or "brute force" in a security context. Maps to OWASP Top 10 2021 A07: Identification and Authentication Failures.
/business-logicThis skill should be used when the user asks to "check business logic security", "find logic flaws", "audit workflow security", "check for coupon abuse", "detect negative amount exploits", "analyze state machine security", or mentions "business logic", "workflow bypass", "negative amount", "coupon abuse", "self-referral", "state manipulation", or "time-based exploit" in a security context.
/configThis skill should be used when the user asks to "configure security", "appsec settings", "security preferences", or invokes /appsec:config. Manages security tool preferences and thresholds.
npx claudepluginhub florianbuetow/claude-code --plugin appsecOther plugins' skills for the same job