Skip to content
Skill

Sh kb path traversal

Guides an agent in hunting path traversal, file inclusion and zip-slip bugs in code

Sh kb path traversal is an open-source agent skill for security. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
44
Last commit
License
MIT
Listing updated

Similar skills

About Sh kb path traversal

This skill is a security knowledge base for code review and bug hunting. It lists the input sources that commonly feed filesystem and include operations, such as request parameters, upload names, archive entry names and values read back from storage, along with the sink functions to search for across many languages and frameworks.

The workflow starts with a suggested grep pattern to locate risky file operations and includes, then traces the path argument back to untrusted input. It checks whether the code canonicalizes the path and enforces a base directory with a trailing separator, and it covers path-join traps where an absolute second argument discards the base. It also lists false-positive filters, such as basename-only handling and opaque-id lookups, so findings can be separated from safe code.

The document adds payload families for review and proof-of-concept testing, variant-hunting advice, CWE and OWASP mapping, defender log signals and mitigation guidance. It is written for security reviewers and does not include a script or tool; it relies on the agent's own reading of the codebase.

When your agent uses it

Knowledge base for finding path/directory traversal and local/remote file inclusion - user-controlled paths reaching filesystem or include operations, enabling arbitrary file read/write or code inclusion. Use when hunting traversal/LFI/RFI, zip-slip, or unsafe path joins. CWE-22/23/98, OWASP A01:2021-Broken Access Control.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (8 KB) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the indra plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add dmdhrumilmistry/indra
/plugin install indra@indra

Or copy only this skill to ~/.claude/skills/sh-kb-path-traversal:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/sh-kb-path-traversal &&
cp -R "$tmp/plugins/indra/skills/sh-kb-path-traversal" ~/.claude/skills/sh-kb-path-traversal &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/sh-kb-path-traversal inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/sh-kb-path-traversal to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/sh-kb-path-traversal &&
cp -R "$tmp/plugins/indra/skills/sh-kb-path-traversal" ~/.agents/skills/sh-kb-path-traversal &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/sh-kb-path-traversal inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/sh-kb-path-traversal to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/sh-kb-path-traversal &&
cp -R "$tmp/plugins/indra/skills/sh-kb-path-traversal" ~/.cursor/skills/sh-kb-path-traversal &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/sh-kb-path-traversal inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/dmdhrumilmistry/indra.git --path plugins/indra/skills/sh-kb-path-traversal

Or copy the folder to ~/.gemini/skills/sh-kb-path-traversal yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/sh-kb-path-traversal:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/sh-kb-path-traversal &&
cp -R "$tmp/plugins/indra/skills/sh-kb-path-traversal" ~/.copilot/skills/sh-kb-path-traversal &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/sh-kb-path-traversal inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git

Then copy indra/plugins/indra/skills/sh-kb-path-traversal into your agent's skills folder as sh-kb-path-traversal. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Source and sink map
Catalogues the untrusted inputs and the file read, write, include and extraction functions to check across languages.
Confinement checks
Explains how to verify that canonicalized paths stay inside an intended base directory.
Archive extraction review
Covers zip-slip and symlink risks in zip, tar and similar archive handlers.
Payload reference
Lists traversal and file inclusion encodings and bypass patterns used in proof-of-concept tests.
False-positive filters
Describes safe patterns such as basename-only use and allowlisted identifiers to rule out findings.
Defender detection ideas
Offers web log and file audit signals plus mitigation guidance for teams defending against these bugs.

Good for

  • Audit a web app for path traversal in file download endpoints
  • Check an upload handler for unsafe filenames and destination paths
  • Review an archive extraction routine for zip-slip exposure
  • Find local file inclusion risks in PHP or template-based views
  • Verify that a file-serving route confines paths to a base directory

Sh kb path traversal FAQ

When does Sh kb path traversal trigger?

It is meant for tasks involving traversal, LFI/RFI, zip-slip or unsafe path joins, according to its description.

Does Sh kb path traversal run any scripts or tools?

No scripts are included. It is a Markdown knowledge base that guides the agent's review using grep patterns and checklists.

What does Sh kb path traversal change in the project?

The skill itself only provides guidance. It does not describe edits to code; any fixes come from the agent following its checks and mitigation advice.

How do I install Sh kb path traversal in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/sh-kb-path-traversal to use it in all your projects, or to .claude/skills/sh-kb-path-traversal in one project. Or install the indra plugin, which includes it: /plugin marketplace add dmdhrumilmistry/indra, then /plugin install indra@indra.

Does Sh kb path traversal run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Sh kb path traversal?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Sh kb path traversal?

The closest alternatives to Sh kb path traversal are Sh kb file upload, Sh kb deserialization, Sh kb injection, Sh kb ci cd and Sh kb sqli.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from dmdhrumilmistry/indra

  1. Lets an agent triage SIEM alerts and logs, sweep indicators and build evidenced timelines

    • Open source
    • 44 GitHub stars
    • Security
  2. Gives a security review agent persistent Markdown memory of past findings and learnings

    • Open source
    • 44 GitHub stars
    • Knowledge and memory
  3. Security-reviews a GitHub pull request and reports findings as inline comments

    • Open source
    • 44 GitHub stars
    • Developer tools
  4. Publishes security review findings as de-duplicated Jira, GitHub, Confluence or Notion

    • Open source
    • 44 GitHub stars
    • Knowledge and memory
  5. Plans and runs approved purple-team tests to check whether SIEM detections fire

    • Open source
    • 44 GitHub stars
    • Security
  6. Re-checks one earlier security finding against current code or recorded traffic

    • Open source
    • 44 GitHub stars
    • Security