Download for MacApple silicon, macOS 14+
Skill

path-traversal

@thejefflarson Updated 2026-07-31

Detects file operations with user-controlled paths vulnerable to ../ traversal, absolute paths, or symlink escapes. Use when writing code that opens, reads, writes, or deletes files using paths constructed from user input. Also invoke when serving static files, handling file downloads by name, or resolving paths from URL parameters or request bodies.

llmssecurityskills

Install

With your agent

Install OMGSkills skill "thejefflarson/soundcheck:.claude/skills/path-traversal" into this agent's normal skills directory: call the OMGSkills MCP get_install_plan tool for your agent and run the script it returns (it installs only the pinned commit and verifies SKILL.md), and stop if MCP or the pin is unavailable. Do not overwrite or change existing skills without asking me.

Manual command

git clone https://github.com/thejefflarson/soundcheck /tmp/soundcheck && ln -s /tmp/soundcheck/.claude/skills/path-traversal ~/.claude/skills/path-traversal

From README

Path Traversal Security Check (A01:2025) What this checks Protects against directory traversal attacks where an attacker uses ../ sequences, absolute paths, or symlinks to access files outside the intended directory. Exploitation leads to reading sensitive files (/etc/passwd, .env, private keys), overwriting configuration, or achieving remote code execution via file write. Vulnerable patterns A caller-supplied filename interpolated or concatenated into a path before opening, with no canonicalization. Path-join helper used as the only defense — these collapse some .. segments but do not verify the final path stays under the intended root, and many treat an absolute caller-supplied path as overriding the base. Existence or stat check on the user path that does not follow symlinks, but the subsequent read/write does — symlink escape. Canonicalization performed once at handler entry, but a later file operation uses the un-canonicalized value.