/appsec:pasta-threatsfrom appsec
Analyzes threats using the PASTA threat modeling methodology (Stage 4). Identifies threat actors, maps attack vectors to MITRE ATT&CK, and profiles adversaries for security assessment.
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.
Identify threats using real-world intelligence, attack patterns, and adversary tactics. Cross-reference with MITRE ATT&CK to ground analysis in actual attacker behavior. Map threats to the components and trust boundaries from Stage 3.
Read ../../shared/schemas/flags.md for the full flag specification. Key behaviors:
| Flag | Stage 4 Behavior |
|---|---|
--scope | Inherits from prior stages. Focuses on components and entry points from Stages 2-3. |
--depth quick | Top 5 most likely threats based on technology stack only. |
--depth standard | Full threat catalog with MITRE ATT&CK mappings for all components. |
--depth deep | Standard + attack tree construction, supply chain analysis, insider threat modeling. |
--depth expert | Deep + adversary persona simulation with detailed TTPs per actor profile. |
--severity | Filter threats by estimated impact level. |
Read ../../shared/frameworks/pasta.md, Stage 4 section. PASTA is SEQUENTIAL.
Stage 4 consumes Stages 1-3 output and feeds Stage 5.
Required: Stage 3 output -- component inventory, role-permission matrix, data classification, trust boundaries. Also needs: business-critical assets (Stage 1), entry points and attack surface (Stage 2). If unavailable, warn and assume.
| Technique | Name | Relevance |
|---|---|---|
| T1190 | Exploit Public-Facing App | Internet-facing endpoints |
| T1059 | Command/Scripting Interpreter | Server-side execution paths |
| T1078 | Valid Accounts | Authentication mechanisms |
| T1098 | Account Manipulation | User/role management |
| T1134 | Access Token Manipulation | JWT/session handling |
| T1552 | Unsecured Credentials | Secrets in config files |
| T1210 | Exploit Remote Services | Service-to-service calls |
| T1195 | Supply Chain Compromise | Third-party dependencies |
For each component: review stack-specific attack history, map patterns to entry points, assess feasibility given controls, and identify cross-component chains.
Check dependency manifests for count, known CVEs (via SCA tooling), undermaintained packages, typosquatting risk, and CI/CD pipeline security.
Map each threat to target component(s), exploited entry point(s), and endangered business asset(s).
Stage 4 produces a Threat Catalog. ID prefix: PASTA (e.g., PASTA-S4-001).
## PASTA Stage 4: Threat Analysis
### Threat Actor Profiles
| Actor | Motivation | Capability | Likely Targets | Likelihood |
|-------|-----------|-----------|---------------|------------|
| Opportunistic | Financial gain | Low-Med | Known CVEs, weak auth | High |
| Targeted | Data theft | Med-High | Business logic, APIs | Medium |
| Insider | Revenge/profit | High | Data exfil, backdoors | Low-Med |
| Supply chain | Broad compromise | Medium | Dependencies, CI/CD | Low |
### Threat Catalog
| ID | Threat | MITRE ATT&CK | Component | Asset | Likelihood |
|----|--------|-------------|-----------|-------|------------|
| T-01 | SQL injection via search | T1190 | C-02 API | User DB | High |
| T-02 | Credential stuffing | T1078 | C-01 Auth | Accounts | High |
### Attack Trees (--depth deep+)
Goal: Access customer payment data
OR
+-- Exploit SQL injection -> extract tokens -> impersonate admin
+-- Credential stuff admin login -> access /admin/export
+-- Compromise npm dependency -> backdoor payment module
### Supply Chain Assessment
| Dependency | Risk | CVEs Known | Maintainer Status |
|-----------|------|-----------|------------------|
Findings follow ../../shared/schemas/findings.md with:
references.mitre_attck: Technique ID (e.g., "T1190")metadata.tool: "pasta-threats", metadata.framework: "pasta", metadata.category: "Stage-4"Stage 5: Vulnerability Analysis (pasta-vulns). Pass the Threat Catalog and
MITRE ATT&CK mappings. Stage 5 analyzes code for specific vulnerabilities that
enable the threats identified here.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub florianbuetow/claude-code --plugin appsec62 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.
Other plugins' skills for the same job