Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/emre-guler/websec/xxenpx skills add emre-guler/websec --skill xxegit clone --depth 1 https://github.com/emre-guler/websecWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/emre-guler/websec/xxe)<a href="https://agentmods.dev/skills/emre-guler/websec/xxe"><img src="https://agentmods.dev/badge/skills/emre-guler/websec/xxe.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00074 | $0.05059 |
| Opus 5 | $0.00037 | $0.02530 |
| Sonnet 5 | $0.00015 | $0.01012 |
| Haiku 4.5 | $0.00007 | $0.00506 |
Grade A, and why
xxe scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 156 lines — stays where its author put it; the contents beside it link to each section on GitHub.
XML External Entity Detection
Overview
XML external entity injection lets an attacker interfere with how an application parses XML. By supplying a document type definition that declares an external entity, the attacker makes the parser dereference a resource of their choosing — a local file, an internal or external URL, or another target the parser can open — and, where the parsed value is reflected or an error is returned, read it back. It sits at the point in the request lifecycle where the server hands attacker-supplied bytes to an XML parser: a request body, an uploaded document, or a format that is quietly XML underneath. The attacker is usually an unauthenticated remote user, and the parser acts with the application's own privileges, so a successful entity reference reads configuration files, credentials, and source code, or turns the parser into an HTTP client aimed at internal services and cloud metadata. Even where nothing is reflected, a hosted definition or a verbose parser error carries the data back out of band. This skill finds it by locating every parser instantiation and every path that feeds one untrusted XML, checking each site in parallel, and merging the results into <output_dir>/xxe-results.md.
What it is NOT
- Server-side request forgery (
/websec:ssrf): a URL-fetching feature with no XML parser on the path is plain SSRF. Test: is the request issued by an XML parser resolving an entity, or by an HTTP client the code called directly? Entity-driven outbound requests are this class; record the SSRF pivot in Impact. - Path traversal (
/websec:path-traversal): a path parameter reaching a file read is traversal. Test: does the attacker control a path argument, or an entity declaration? Both read files; the sink and the fix differ. - File upload (
/websec:file-upload): unrestricted storage or serving of an uploaded file is that class. Test: is the problem where the file lands, or that its contents are parsed as XML with entities enabled? An SVG or Office document parsed server-side belongs here. - Information disclosure (
/websec:information-disclosure): verbose parser errors returned to clients are their own finding. Here they are an exfiltration channel — note the error handling, keep the parser judgement separate. - Unsafe deserialization (
/websec:deserialization): an XML-based object serializer that reconstructs arbitrary types executes code through type resolution, not entity resolution. Test: does the payload declare an entity, or name a class to instantiate? - Not a finding: a parser explicitly configured to reject document type declarations; a library that does not implement external entities at all; XML built entirely by the server and never parsed from input; built-in entity references such as the escaped angle bracket, which are ordinary XML; schema or fixture files in the repository that no request path parses.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 156 lines · 74 tokens per session scan A eb4f20f0ae25
xxe is a skill published in the GitHub repository emre-guler/websec (2 stars, last pushed 7d ago), licensed MIT. It adds 74 tokens to every session and 5,059 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
ponytail-sec-audit
Full project security audit. Scans the entire codebase across three passes: code that shouldn't exist, all dependencies assessed, all hardening findings. Produces a comprehensive numbered report with blast-radius narrative. Persists findings to .ponytail-sec/ for cross-scan tracking. For per-diff review use…
ponytail-sec
Security companion for active development. Scopes to the current diff or changed files. Three passes: YAGNI code review, new-dep assessment, and up to 3 material hardening findings. Lean by design — surfaces the one thing to fix before merging, not a backlog. Use ponytail-sec-audit for a full project scan.
dockerfile
Binary Dockerfile image-build hardening check. Use when reviewing Dockerfiles, container image builds, multi-stage builds, runtime users, pinned bases, or reproducible dependency installs. Minimal output only: OK or NOTOK: RULE, RULE.
k8s-securitycontext
Binary Kubernetes securityContext hardening check. Use when reviewing Pods, Deployments, StatefulSets, DaemonSets, Jobs, CronJobs, Helm templates, or Kubernetes manifests that define containers. Minimal output only: OK or NOTOK: RULE, RULE.
Mixed-Language Monorepos
This skill should be used when the user is auditing a "polyglot monorepo", "multi-language codebase", "microservices with different languages", "Go + Python + TypeScript", or any codebase with services written in different programming languages. Provides strategies for cross-service security analysis and unified…
OWASP API Security Top 10
This skill should be used when the user asks about "API security", "OWASP API Top 10", "BOLA", "broken object level authorization", "API authentication", "mass assignment", "GraphQL security", "gRPC security", "rate limiting", "API abuse", "REST API vulnerabilities", or needs to identify API-specific security issues…