Skip to content
Skill

Sh kb xxe

Guides an agent to hunt XML External Entity injection in XML-consuming endpoints

Sh kb xxe 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 xxe

This skill is a security knowledge base for finding XML External Entity (XXE) injection, where an XML parser resolves attacker-supplied external or general entities to read local files, make server-side requests, or exhaust resources. It covers related issues such as XInclude and XSLT injection, and lists the parser APIs to search for in Java, Python, PHP, .NET, Node, Ruby and Go codebases.

The workflow has the agent grep for XML sinks, confirm the parser handles untrusted input such as HTTP bodies, uploads or SAML messages, and check whether DTDs, external entities and XInclude are actually disabled. It also covers in-band versus out-of-band observability, variant hunting across sibling formats like SVG and Office files, and false-positive filters for hardened parsers and JSON-only inputs. Severity guidance and CWE and OWASP mappings are included.

It expects a codebase to review and uses a grep-style search step. The text also includes defender-side detection signals, such as log patterns and egress alerts, and mitigation advice.

When your agent uses it

Knowledge base for finding XML External Entity injection - XML parsers configured to resolve external/general entities on untrusted input, enabling file read, SSRF, and DoS. Use when hunting XXE, XInclude, or XSLT injection in XML-consuming endpoints. CWE-611/776/827, OWASP A05:2021-Security Misconfiguration.

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 (9 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-xxe:

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

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

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/sh-kb-xxe 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-xxe &&
cp -R "$tmp/plugins/indra/skills/sh-kb-xxe" ~/.agents/skills/sh-kb-xxe &&
rm -rf "$tmp"

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

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/sh-kb-xxe 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-xxe &&
cp -R "$tmp/plugins/indra/skills/sh-kb-xxe" ~/.cursor/skills/sh-kb-xxe &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/sh-kb-xxe 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-xxe

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

Gemini CLI docs on skills

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

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

For one project only, put the folder in .github/skills/sh-kb-xxe 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-xxe into your agent's skills folder as sh-kb-xxe. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Vulnerable parser detection
Lists XML parser classes and configuration flags to search for across several language ecosystems.
Hardening verification
Explains which settings must be checked to confirm DTDs, external entities and XInclude are disabled.
Payload reference
Describes file read, SSRF, out-of-band, billion laughs and XInclude test patterns.
Variant hunting guidance
Directs the search toward other XML entry points, wrapper libraries and sibling file formats.
False-positive filters
Defines conditions where a parser is hardened or the input is not XML, to reduce noise.
Defender detection signals
Outlines log, egress and resource telemetry patterns that reveal XXE probing.

Good for

  • Audit a Java service for XXE in its SAML or SOAP endpoints
  • Check whether a Python app's XML parsing is safe from entity expansion
  • Review file upload handling for XXE in SVG or DOCX parsing
  • Find XInclude or XSLT injection risks in an XML API
  • Write detection rules for XML-based attacks against web logs

Sh kb xxe FAQ

What does Sh kb xxe need to run?

It is a markdown knowledge base with one file and no scripts. It refers to a graft grep command for searching code, and the allowed tools are not set.

Which languages does Sh kb xxe cover?

It lists XML sinks for Java, Python, PHP, .NET, Node, Ruby and Go, and notes that Go's encoding/xml does not resolve external entities.

Does Sh kb xxe change any code?

No. It guides the agent through searching for and reviewing XML parser configuration and provides mitigation advice.

How do I install Sh kb xxe in Claude Code?

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

Does Sh kb xxe 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 xxe?

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 xxe?

The closest alternatives to Sh kb xxe are Sh kb xss, Sh kb deserialization, Sh kb path traversal, Sh kb sqli and Sh kb injection.

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