Detect unsafe file handling and path traversal in upload/save/extract flows. Focuses on user-controlled paths or filenames, not data leakage.
Install
npx skills add Tencent/AI-Infra-Guard --skill file-path-traversal-detectionnpx skills add Tencent/AI-Infra-Guard --skill file-path-traversal-detection -a claude-code -gnpx skills add Tencent/AI-Infra-Guard --skill file-path-traversal-detection -a codex -ggemini skills install https://github.com/Tencent/AI-Infra-Guard.git --path agent-scan/agent_scan/prompt/skills/file-path-traversal-detectiongh skill install Tencent/AI-Infra-Guard file-path-traversal-detectiongit clone --depth 1 https://github.com/Tencent/AI-Infra-Guard /tmp/Tencent__AI-Infra-Guard
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/Tencent__AI-Infra-Guard/agent-scan/agent_scan/prompt/skills/file-path-traversal-detection ~/.claude/skills/file-path-traversal-detection # Claude Code
cp -R /tmp/Tencent__AI-Infra-Guard/agent-scan/agent_scan/prompt/skills/file-path-traversal-detection ~/.agents/skills/file-path-traversal-detection # Codex, Cursor, Gemini CLI, Copilot, OpenCode