# Path Traversal

> Path Traversal is an Agent Skill for devops & security published in the PurpleAILAB/Decepticon repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Hunt directory traversal and archive traversal (ZipSlip/TarSlip) from user input to filesystem operations.

- Skill name: `path-traversal`
- Category: [DevOps & Security](https://www.openparable.com/skill/devops-security/1)
- Source: https://github.com/PurpleAILAB/Decepticon/blob/HEAD/packages/decepticon/decepticon/skills/standard/analyst/path-traversal/SKILL.md
- Repository: PurpleAILAB/Decepticon (4,718 GitHub stars when collected)

## SKILL.md

# Path Traversal Playbook

## Find sinks
- `open(user_path)`, `send_file(user_path)`, file download endpoints, archive extraction APIs.

## Probe payload classes
- Relative traversal: `../../../../etc/passwd`
- Encoded traversal: `%2e%2e%2f`
- Mixed separators: `..\\..\\windows\\win.ini`
- Archive traversal: entries like `../../app/config.py`

## Verify controls
- Canonicalization done before allowlist check.
- Path confinement to intended root.

## Validation
Confirm unauthorized file read/write outside allowed directory with positive and negative controls.

---

Source: https://www.openparable.com/skill/devops-security/path-traversal (OpenParable). Cite the canonical URL above.
