# Sh kb xxe

> Sh kb xxe is an open-source agent skill for security. Guides an agent to hunt XML External Entity injection in XML-consuming endpoints. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/dmdhrumilmistry/indra/tree/main/plugins/indra/skills/sh-kb-xxe
- **Repository:** https://github.com/dmdhrumilmistry/indra
- **GitHub stars:** 44
- **License:** MIT
- **Skill name:** sh-kb-xxe
- **Collection:** https://github.com/dmdhrumilmistry/indra
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-03

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/dmdhrumilmistry/indra/tree/HEAD/plugins/indra/skills/sh-kb-xxe)
- [License: MIT](https://github.com/dmdhrumilmistry/indra/tree/HEAD/plugins/indra/skills/sh-kb-xxe)

## Features

- **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

## Install

### Claude Code

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

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

Or copy only this skill to `~/.claude/skills/sh-kb-xxe`:

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Sh kb xss](https://ai-powered.com/skills/sh-kb-xss): Sh kb xss is an open-source agent skill for security.
- [Sh kb deserialization](https://ai-powered.com/skills/sh-kb-deserialization): Sh kb deserialization is an open-source agent skill for security.
- [Sh kb path traversal](https://ai-powered.com/skills/sh-kb-path-traversal): Sh kb path traversal is an open-source agent skill for security.
- [Sh kb sqli](https://ai-powered.com/skills/sh-kb-sqli): Sh kb sqli is an open-source agent skill for security.
- [Sh kb injection](https://ai-powered.com/skills/sh-kb-injection): Sh kb injection is an open-source agent skill for security.
- [Sh kb ssrf](https://ai-powered.com/skills/sh-kb-ssrf): Sh kb ssrf is an open-source agent skill for security.
- [Sh kb file upload](https://ai-powered.com/skills/sh-kb-file-upload): Sh kb file upload is an open-source agent skill for security.
- [Injection](https://ai-powered.com/skills/injection): Injection is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/sh-kb-xxe
