Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/emre-guler/websec/path-traversalnpx skills add emre-guler/websec --skill path-traversalgit clone --depth 1 https://github.com/emre-guler/websecWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/emre-guler/websec/path-traversal)<a href="https://agentmods.dev/skills/emre-guler/websec/path-traversal"><img src="https://agentmods.dev/badge/skills/emre-guler/websec/path-traversal.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00073 | $0.05807 |
| Opus 5 | $0.00036 | $0.02903 |
| Sonnet 5 | $0.00015 | $0.01161 |
| Haiku 4.5 | $0.00007 | $0.00581 |
Grade A, and why
path-traversal scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 163 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Path Traversal Detection
Overview
Path traversal is a server-side flaw in which an attacker steers a filesystem path the application builds from request data, escaping the directory the developer intended and reaching arbitrary locations on the host. It sits at the point where a parameter — a query value, form field, JSON property, header, cookie, or an entry name inside an archive — flows into an open, read, write, include, or send-file call. The attacker is usually an unauthenticated or low-privileged remote user supplying separators and .. segments, or an absolute path, to leave the base directory. In the read direction they obtain source code, configuration, database and cloud credentials, private keys, and OS files, which feed further compromise; in the write direction they overwrite configuration, scheduled jobs, or authorised keys, or drop an executable file into a served directory, which usually means code execution. This skill finds such flaws by locating every site where request data reaches a filesystem path, checking each site in parallel, and merging the results into <output_dir>/path-traversal-results.md.
What it is NOT
- File upload flaws (
/websec:file-upload): traversal inside an uploaded filename is a real write-direction case and can be reported here, but if the core problem is unvalidated file type, an executable landing in a served directory, or a non-atomic store, that skill owns it. Test: would the flaw disappear if the destination path were containment-checked? If yes it is traversal; if the file would still be dangerous where it legitimately lands, it is an upload flaw. - Server-side request forgery (
/websec:ssrf): the sink decides. A value passed to a network client is that skill's, even with afile:scheme; a value passed to a filesystem API is this one's. - Access control and object references (
/websec:access-control): fetching another user's document by changing an identifier is an authorization failure. It becomes traversal only when the identifier is concatenated into a path and separators or..change which file is opened. - Information disclosure (
/websec:information-disclosure): a directory listing, a backup file left in the webroot, or a deliberately public file is exposure by configuration. Here the attacker steers the read. - Template injection (
/websec:ssti): controlling a template name that is loaded from disk is traversal; controlling template content that is then evaluated is that skill's. - XML external entities (
/websec:xxe): a path taken from the request and handed to a filesystem API is this class; a path an XML document instructs the parser to open through an entity orSYSTEMdeclaration is that one. Test: who names the file — the request, or the document being parsed? - Not a finding: a value that is reduced to a bare basename and matched against an allow-list before use; a path that is canonicalised and confirmed to stay under the base directory before the file is opened; an opaque identifier resolved through a server-side lookup table; a parameter that only echoes a path string into the response without any filesystem call; framework static-file middleware used as designed with no request value passed into a custom path builder.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 163 lines · 73 tokens per session scan A a08a30cc950f
path-traversal is a skill published in the GitHub repository emre-guler/websec (2 stars, last pushed 7d ago), licensed MIT. It adds 73 tokens to every session and 5,807 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
ponytail-sec-audit
Full project security audit. Scans the entire codebase across three passes: code that shouldn't exist, all dependencies assessed, all hardening findings. Produces a comprehensive numbered report with blast-radius narrative. Persists findings to .ponytail-sec/ for cross-scan tracking. For per-diff review use…
ponytail-sec
Security companion for active development. Scopes to the current diff or changed files. Three passes: YAGNI code review, new-dep assessment, and up to 3 material hardening findings. Lean by design — surfaces the one thing to fix before merging, not a backlog. Use ponytail-sec-audit for a full project scan.
dockerfile
Binary Dockerfile image-build hardening check. Use when reviewing Dockerfiles, container image builds, multi-stage builds, runtime users, pinned bases, or reproducible dependency installs. Minimal output only: OK or NOTOK: RULE, RULE.
k8s-securitycontext
Binary Kubernetes securityContext hardening check. Use when reviewing Pods, Deployments, StatefulSets, DaemonSets, Jobs, CronJobs, Helm templates, or Kubernetes manifests that define containers. Minimal output only: OK or NOTOK: RULE, RULE.
Mixed-Language Monorepos
This skill should be used when the user is auditing a "polyglot monorepo", "multi-language codebase", "microservices with different languages", "Go + Python + TypeScript", or any codebase with services written in different programming languages. Provides strategies for cross-service security analysis and unified…
OWASP API Security Top 10
This skill should be used when the user asks about "API security", "OWASP API Top 10", "BOLA", "broken object level authorization", "API authentication", "mass assignment", "GraphQL security", "gRPC security", "rate limiting", "API abuse", "REST API vulnerabilities", or needs to identify API-specific security issues…