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 skills add chadixearth/graphyloop --skill api-hardeninggit clone --depth 1 https://github.com/chadixearth/graphyloopWrote 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/chadixearth/graphyloop/api-hardening)<a href="https://agentmods.dev/skills/chadixearth/graphyloop/api-hardening"><img src="https://agentmods.dev/badge/skills/chadixearth/graphyloop/api-hardening/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/chadixearth/graphyloop/api-hardening"><img src="https://agentmods.dev/badge/skills/chadixearth/graphyloop/api-hardening.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00072 | $0.01874 |
| Opus 5.5 | $0.00029 | $0.00750 |
| Sonnet 5.5 | $0.00014 | $0.00375 |
| Haiku 4.5 | $0.00007 | $0.00187 |
Grade B, and why
api-hardening scanned grade B with 3 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 3mo 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.
Sends data to an external URLlowData exfiltration
A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.
curl -si -X POST host/api/orders -H "content-type: application/json" -d '{"role":"admin"}' # rejected Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
Cloud metadata endpointmediumServer-side request forgery
One request to 169.254.169.254 can return temporary IAM credentials.
(`169.254.169.254`) are the classic target. Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -si -X GET host/api/orders/<other-users-id> -H "authorization: Bearer $A" # expect 404/403 How it starts
The opening of the file, as written. The whole thing — 142 lines — stays where its author put it; the contents beside it link to each section on GitHub.
API hardening
Most breached endpoints were authenticated. The pattern is not "no login" — it is "logged in, and the handler never checked that this row belongs to this caller." Authorization is per route, per object, every time. This skill is the server-side pass that goes route by route.
When to activate
- Any new or changed endpoint: REST route, GraphQL resolver, RPC/tRPC procedure, server action, webhook receiver, queue consumer, cron entry.
- Anything touching auth, sessions, roles, tenants, payments, uploads, or PII.
- A bug report shaped like "user A can see user B's data" or "it 500s with a weird message".
- Before a deploy that exposes a new surface publicly.
Route inventory first
Enumerate what exists before judging it. Grep the router, not your memory:
# Node/Next
rg -n "app\.(get|post|put|patch|delete)|router\.(get|post|put|patch|delete)" src
rg -n "export async function (GET|POST|PUT|PATCH|DELETE)" app
rg -n "'use server'" -l app src
# Python / Go / PHP
rg -n "@app\.(route|get|post)|@router\.(get|post)" .
rg -n "http.HandleFunc|mux.Handle" .
rg -n "Route::(get|post|put|delete)" routes
Build a table: method+path · auth required? · role/scope · object-ownership check · input validated? · rate limited? Every empty cell is a finding.
1. Authentication vs authorization
- Authentication answers who; authorization answers may they, on this object. Middleware usually gives you the first and never the second.
- Default deny. Public routes are an explicit allow-list, not "everything the
middleware matcher forgot". Verify the matcher: a regex that misses
/api/admin/../usersor a trailing slash is a bypass. - IDOR / BOLA — the top one. Any handler taking an id from the request must
scope the query by the caller:
where id = :id and owner_id = :caller(or tenant/org id). Filtering after the fetch, or trusting auserIdsent in the body/JWT payload the client can re-sign, is not a check. - Return 404 for objects the caller may not see, 403 only where existence is not sensitive. A 403 confirms the id exists.
- Role checks server-side only, from the session/token verified this request — never from a header, query param, or hidden form field.
- Multi-tenant: the tenant id comes from the session, never from the payload. In
Postgres/Supabase, RLS is the second wall, not the only one — see
supabase-setup.
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.
- 3mo ago First seen · 142 lines · 72 tokens per session scan B 10225ad2de42
api-hardening is a skill published in the GitHub repository chadixearth/graphyloop (3 stars, last pushed 1mo ago), licensed MIT. It adds 72 tokens to every session and 1,874 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 3 findings (sends data to an external url, cloud metadata endpoint, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
api-hardening compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| api-hardeningchadixearth/graphyloop | Skill | 3 | 1mo ago | MIT | B | 72 | Claude Code, Codex |
| event-store-designwshobson/agents | Skill | 43k | 2d ago | MIT | A | 33 | Claude Code |
| agui-dotnet-streaming-chatag-ui-protocol/ag-ui | Skill | 22k | today | MIT | A | 223 | Claude Code |
| agui-dotnet-protobufag-ui-protocol/ag-ui | Skill | 22k | today | MIT | A | 162 | Claude Code |
| workflow-orchestration-patternswshobson/agents | Skill | 43k | 2d ago | MIT | A | 49 | Claude Code |
| microservices-patternswshobson/agents | Skill | 43k | 2d ago | MIT | A | 38 | Claude Code |
| durable-objectsfcakyon/claude-codex-settings | Skill | 1.2k | today | Apache-2.0 | A | 22 | Claude Code |