sc-path-traversal

Detect path traversal vulnerabilities in Python, Java, and Node.js code.

7|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/fatihkan/badi --skill sc-path-traversal-fatihkan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sc-path-traversal
Source: https://github.com/fatihkan/badi/tree/main/.claude/skills/security-check/sc-path-traversal
Command: npx skills add https://github.com/fatihkan/badi --skill sc-path-traversal-fatihkan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Path traversal and directory traversal vulnerabilities occur when user-controlled input is used to construct file paths, enabling attackers to access restricted files or directories. This Skill helps identify unsafe path handling patterns across languages and guard against common bypass techniques.

Core Features & Use Cases

  • Detection: Scans code for unsafe path concatenation, file access, and archive extraction patterns such as ../, null byte injections, and zip slip.
  • Language Coverage: Applies to Python, Java, JavaScript/Node.js, and other environments where file system access is performed.
  • Use Case: Security analysts can audit codebases during a review or CI pipeline to surface vulnerable file path usage and initiate remediations.

Quick Start

Scan your codebase with the configured path-traversal checks to identify risky file path usage.

Frequently Asked Questions about sc-path-traversal

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect path traversal vulnerabilities in my codebase?

Detect path traversal vulnerabilities by scanning your codebase for unsafe file path concatenation, ../ sequences, null byte bypasses, and archive extraction patterns like zip slip. This Skill audits file path handling across Python, Java, and Node.js to surface risky code.

Does path traversal detection work with Python, Java, and Node.js code?

Yes, path traversal detection works with Python, Java, and JavaScript/Node.js code. It identifies unsafe file access patterns and directory traversal sequences across these common environments during code review and runtime security checks.

What is a directory traversal vulnerability and how does null byte injection bypass work?

Directory traversal occurs when user-controlled input constructs file paths to access restricted directories. Null byte injection bypasses sanitization by terminating strings early, and this Skill detects both unsafe path concatenation and null byte manipulation patterns.

How do I scan code for zip slip and archive extraction vulnerabilities?

Scan code for zip slip and archive extraction vulnerabilities by applying configured path traversal checks to identify risky file path usage. The Skill detects unsafe archive extraction patterns and surfaces vulnerable file handling for remediation.

Can I run directory traversal checks during a CI pipeline code review?

Yes, you can run directory traversal checks during a CI pipeline or code review. Security analysts can scan codebases with configurable severity levels to surface vulnerable file path usage and initiate remediations.

What are the limitations of automated path traversal detection?

Automated path traversal detection focuses on identifying unsafe path concatenation, ../ sequences, null byte injections, and zip slip patterns. It applies to Python, Java, and Node.js, but complex logical bypasses may require additional manual security review.