
Sh kb file upload
Guides an agent through hunting insecure file upload flaws and their exploit paths
Sh kb file upload 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 file upload
This skill is a hunter's knowledge base for finding unrestricted file upload weaknesses in web applications. It catalogs where uploads go wrong: trusting client-supplied types or names, storing files where they can be executed or served inline, control over stored paths, and missing content checks. It also covers archive extraction, import-by-URL, presigned storage flows and chunked uploads, along with the serving side such as Content-Type handling and response headers.
The material is organized as a workflow. It lists grep targets and per-framework sinks for Python, JavaScript, Java, PHP, Ruby, Go and C#, then steps through tracing a stored file past the write to later readers, thumbnails and imports. It adds variant hunting across sibling upload features, a set of PoC patterns, false-positive filters, defender detection signals, CWE and OWASP mappings, and mitigation guidance.
The skill expects the agent to have access to a codebase it can search, and it references a grep-style search command. It ships as a single SKILL.md file with no scripts or reference files, and it is part of the Indra Claude Code plugin marketplace.
When your agent uses it
Knowledge base for finding unrestricted/insecure file upload - uploads that allow dangerous file types, execution in the upload dir, path control over the stored name, or missing content validation, leading to RCE, XSS, or overwrite. Use when hunting file-upload issues. CWE-434/436/616, OWASP A04/A05:2021.
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 (12 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@indraOr copy only this skill to ~/.claude/skills/sh-kb-file-upload:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/sh-kb-file-upload &&
cp -R "$tmp/plugins/indra/skills/sh-kb-file-upload" ~/.claude/skills/sh-kb-file-upload &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/sh-kb-file-upload inside it instead.
Copy the skill folder to ~/.agents/skills/sh-kb-file-upload 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-file-upload &&
cp -R "$tmp/plugins/indra/skills/sh-kb-file-upload" ~/.agents/skills/sh-kb-file-upload &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/sh-kb-file-upload inside it instead.
Copy the skill folder to ~/.cursor/skills/sh-kb-file-upload 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-file-upload &&
cp -R "$tmp/plugins/indra/skills/sh-kb-file-upload" ~/.cursor/skills/sh-kb-file-upload &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/sh-kb-file-upload inside it instead.
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-file-uploadOr copy the folder to ~/.gemini/skills/sh-kb-file-upload yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/sh-kb-file-upload:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/sh-kb-file-upload &&
cp -R "$tmp/plugins/indra/skills/sh-kb-file-upload" ~/.copilot/skills/sh-kb-file-upload &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/sh-kb-file-upload inside it instead.
Get the folder:
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.gitThen copy indra/plugins/indra/skills/sh-kb-file-upload into your agent's skills folder as sh-kb-file-upload. Agents that support SKILL.md read one folder per skill.
What it does
- Dangerous file type detection
- Explains how extension, Content-Type and magic-byte checks can be bypassed and what server-side validation should look like.
- Stored name and path control
- Covers traversal, overwrite, double extensions and other ways an attacker can influence where an uploaded file lands.
- Framework-specific upload sinks
- Lists upload handlers and storage calls to grep for in Python, JavaScript, Java, PHP, Ruby, Go and C# projects.
- Archive and import risks
- Describes zip-slip, symlink write-through, decompression bombs and server-side fetching of user-supplied URLs.
- Defender detection signals
- Lists logs, process events and file-write patterns that indicate upload-based web shell activity, mapped to ATT&CK techniques.
Good for
- Audit a web app's file upload endpoints for executable or inline-served uploads
- Check whether an upload validator relies only on client-supplied Content-Type
- Trace where an uploaded file goes after saving and whether a later reader can execute it
- Review zip or tar extraction code for path traversal during unpacking
- Find sibling upload features that reuse a weak validator
Sh kb file upload FAQ
What does Sh kb file upload need to run?
It is a single SKILL.md with no scripts or reference files, and its detection recipe refers to a graft grep command for searching code.
Does Sh kb file upload change any files or the application?
No. It is a knowledge base that guides analysis of upload handling and describes mitigations, with no scripts included.
Which vulnerability classes does Sh kb file upload cover?
It covers unrestricted file upload issues, including RCE through web shells, stored XSS via SVG or HTML, overwrite, traversal and denial of service, mapped to CWE-434, CWE-436, CWE-616 and OWASP A04/A05:2021.
When does the skill trigger?
It is meant for use when hunting file-upload issues, as stated in its description.
How do I install Sh kb file upload in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/sh-kb-file-upload to use it in all your projects, or to .claude/skills/sh-kb-file-upload in one project. Or install the indra plugin, which includes it: /plugin marketplace add dmdhrumilmistry/indra, then /plugin install indra@indra.
Does Sh kb file upload 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 file upload?
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 file upload?
The closest alternatives to Sh kb file upload are Sh kb path traversal, Sh kb injection, Sh kb deserialization, Sh kb sqli and Sh kb ci cd.
Where this comes from
- Description: from the skill's own SKILL.md.
More from dmdhrumilmistry/indra

Lets an agent triage SIEM alerts and logs, sweep indicators and build evidenced timelines
- Open source
- 44 GitHub stars
- Security

Gives a security review agent persistent Markdown memory of past findings and learnings
- Open source
- 44 GitHub stars
- Knowledge and memory

Security-reviews a GitHub pull request and reports findings as inline comments
- Open source
- 44 GitHub stars
- Developer tools

Publishes security review findings as de-duplicated Jira, GitHub, Confluence or Notion
- Open source
- 44 GitHub stars
- Knowledge and memory

Plans and runs approved purple-team tests to check whether SIEM detections fire
- Open source
- 44 GitHub stars
- Security

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



