Skip to content
Skillpedia
Security6.5k · #13982

xxe

What it does

This skill is a short playbook for XML external entity flaws, where an XML parser is allowed to load outside content. It is for developers and reviewers who check XML handling in their own code.

When to use it

  • ✓When a developer asks the agent to check whether XML parsers in an authorized app load external entities.
  • ✓When the agent reviews Java, Python or .NET code that reads XML from users.
  • ✓When a report needs a positive test that leaks content and a negative control that does not.

Skill link

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/analyst/xxe/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/analyst/xxe/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Can you check whether the XML upload feature in our authorized app allows external entities to be loaded?”

5 new skills a week. 1 minute to read.

How it works

The agent finds XML parser calls, checks whether external entities and DTDs are enabled, and runs a harmless test that shows whether the parser reads outside content.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

XXE Playbook

Find parser sinks

  • Java: DocumentBuilderFactory, SAXParserFactory, XMLInputFactory
  • Python: lxml.etree, xml.dom.minidom, xml.sax
  • .NET: XmlDocument, XDocument, XmlReader

Dangerous defaults

  • DTD enabled
  • External entities enabled
  • Network/file entity resolution enabled

Payloads

  • File read: entity to file:///etc/passwd
  • SSRF: entity to internal URL (metadata service, localhost admin)

Validation

  • Positive: parser output contains file content or internal response markers.
  • Negative: same XML without entity expansion must not leak content.
FAQ

What is an XML external entity flaw?

It is when an XML parser follows references to outside files or addresses, which can expose data.

What defaults are risky?

The skill says parsers with DTDs and external entities enabled are the risky case.

What is the negative control?

It is the same XML without the entity reference, which must not return any outside content.

Details

Original description by the author

Hunt XML External Entity flaws in parsers and validate file read / SSRF impact with strict negative controls.

repo: BitterSecurity/Decepticon

Popularity

GitHub stars
6.5k
Ranking position
#13982
License
Apache-2.0
Updated
11/1/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills