/secaudit:sast-hunter-pathtraversalfrom secaudit
Detect path traversal vulnerabilities in a codebase using an inline three-phase method: recon (find file-loading sinks with dynamic paths via references/sinks.md), verify (trace user input and mitigations via references/examples.md), and merge (write results). Requires sast/architecture.md (run sast-analysis first). Outputs findings to sast/pathtraversal-results.md. Use when asked to find path traversal, directory traversal, or file disclosure bugs.
Ships in secaudit. 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 are performing a focused security assessment to find path traversal vulnerabilities. Work the method below inline, in this one context: recon → verify → merge. Read the reference files as each phase directs.
Prerequisites: sast/architecture.md must exist. Run the analysis skill first if it doesn't.
References live in this skill's own
references/directory. Address them asreferences/<file>.md, resolved relative to THIS SKILL.md — never relative to your working directory, and never with a.claude/or.agents/prefix.
Parallelism (optional). By default do every phase yourself in this context — do NOT spawn subagents. Only if you are running this skill standalone AND nothing upstream is already parallelizing, you MAY dispatch each verify batch (~3 sinks) to a subagent for speed. When invoked as one stage of a larger pipeline, ignore this and run inline.
Read references/sinks.md. Using the tech stack in sast/architecture.md, search the
codebase for those sink patterns. Flag any file-loading call whose path has a dynamic
component, regardless of origin — do not yet decide whether it is user-controlled.
Record each candidate: file:line, the sink call, and the dynamic expression.
If you find zero candidates, write sast/pathtraversal-results.md with an empty Findings
section plus the Coverage section, and STOP — do not read references/examples.md.
For each candidate, read references/examples.md for concept, vulnerable/secure
comparisons, and the verify heuristics (Check A — is the path user-controlled; Check B —
is escape prevented by an effective mitigation). Keep the real ones; drop safe patterns.
Write sast/pathtraversal-results.md using the output format below.
# Path Traversal Analysis Results: [Project Name]
## Executive Summary
- Candidates found: [N] (high: [N] / medium: [N] / low: [N])
## Round 1
[All candidate findings for this round. Each is a `### [FINDING] <title> (<file>:<line>)`
heading with a `**Confidence:** high|medium|low` line directly beneath — see
references/examples.md for the per-finding format. Do NOT classify as
vulnerable/not-vulnerable; report candidates with evidence. Order by confidence
if you like. Downstream Challenge decides defect-ness and Trace decides reachability.]
## Coverage
**Covered:** <files / dirs / entry points you inspected for this class>
**Not covered:** <areas you skipped, and why>
**Shallow:** <areas looked at but not deeply — flag for a deeper second pass>
Re-hunts (loop rounds): when invoked as a scoped re-hunt, do NOT rewrite this file.
Read it, then append ONE new ## Round N section (N = the round number you are told)
with only the new candidates — never modify the Executive Summary, an existing
## Round section, or the ## Coverage block.
sast/architecture.md for tech-stack context before starting.os.path.join and path.join alone do not prevent traversal — os.path.join('/base', '../etc/passwd') resolves to /etc/passwd. Only realpath + prefix check prevents this.%2e%2e%2f, %252e%252e%252f, ..%2f, %2e%2e/) bypass naive string-match filters; only filesystem-level resolution (realpath) handles them reliably.send_from_directory in Flask is safe by itself (it calls safe_join internally) — do not flag it unless user input is also used as the base directory argument.../ sequences. Flag any extraction that uses entry names as output paths without per-entry validation.[FINDING] with **Confidence:** low — never drop it. Downstream Challenge/Trace decide; false negatives are worse than false positives.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub tss-blue-ai-lab/tss-plugins --plugin secaudit23 skills in this plugin
/issuesOpen the secaudit Workbench: sync the persistent issue board with every discoverable run in this project, then serve it locally so triage decisions (confirm, done, false positive) persist across audits and restarts./runLaunch the full secaudit source-code security audit against a repository. Explicit-only entry point: inspects the target read-only, recommends hunters with a token-cost bracket, asks the user which hunters + whether to run the blindspot sweep, prepares an isolated run via the deterministic runtime, then starts the deterministic workflow. The workflow itself never prompts./sast-analysisPerform codebase analysis and architecture mapping as the first phase of a security assessment. Explores the tech stack, frameworks, entry points, data flows, and trust boundaries. Outputs sast/architecture.md. Run this before any vulnerability detection skill. Use when asked to analyze a codebase for security or when sast/architecture.md does not yet exist./sast-hunter-businesslogicDetect business logic vulnerabilities in a codebase using an inline three-phase method: threat modeling (domain analysis and attack scenarios via references/sinks.md), verify (check exploitable gaps via references/examples.md), and merge (write results). Covers price manipulation, workflow bypass, limit violations, race conditions, reward abuse, etc. Requires sast/architecture.md (run sast-analysis first). Outputs findings to sast/businesslogic-results.md. Use when asked to find business logic, logic flaws, or abuse-of-function bugs./sast-hunter-fileuploadDetect insecure file upload vulnerabilities in a codebase using an inline three-phase method: discovery (find all upload sites via references/sinks.md), verify (check extension bypass and related issues via references/examples.md), and merge (write results). Requires sast/architecture.md (run sast-analysis first). Outputs findings to sast/fileupload-results.md. Use when asked to find file upload, unrestricted upload, or extension bypass bugs./sast-hunter-graphqlDetect GraphQL injection vulnerabilities in a codebase using an inline three-phase method: recon (confirm GraphQL usage and find unsafe operation document assembly sites via references/sinks.md), verify (trace user input via references/examples.md), and merge (write results). Requires sast/architecture.md (run sast-analysis first). Outputs findings to sast/graphql-results.md. If no GraphQL technology is found in recon, later phases are skipped. Use when asked to find GraphQL injection, unsafe GraphQL document construction, or operation string injection bugs.