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/shieldnet-360/secure-vibe/cors-securitynpx skills add ShieldNet-360/secure-vibe --skill cors-securitygit clone --depth 1 https://github.com/ShieldNet-360/secure-vibeWrote 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/shieldnet-360/secure-vibe/cors-security)<a href="https://agentmods.dev/skills/shieldnet-360/secure-vibe/cors-security"><img src="https://agentmods.dev/badge/skills/shieldnet-360/secure-vibe/cors-security.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.1 | $0.00059 | $0.01436 |
| Opus 5 | $0.00030 | $0.00718 |
| Sonnet 5 | $0.00012 | $0.00287 |
| Haiku 4.5 | $0.00006 | $0.00144 |
Grade A, and why
cors-security scanned grade A with 1 finding 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 6d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- Use CORS as authorization. It is a *browser* policy: it does not stop curl, How it starts
The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CORS Security
Rules (for AI agents)
ALWAYS
- For any non-public endpoint, allow origins from an explicit allowlist.
*is correct only when the resource is intentionally public and cross-origin access never carries credentials. - When a cross-origin request carries credentials — the browser's credentials mode is
include, meaning cookies, TLS client certificates, or browser-managed HTTP auth — respond withAccess-Control-Allow-Credentials: trueand a single explicit origin. On a credentialed request every CORS header loses its wildcard meaning:*inAllow-Origin,Allow-Methods,Allow-Headers, orExpose-Headersis read as the literal string"*"and the browser blocks the response. That is why "just set it to*for now" fails in a way that is hard to debug. - Compare origins by exact match on the serialized origin — scheme, host, and port,
all three. Never substring, prefix, or suffix matching:
endsWith("example.com")acceptshttps://example.com.evil.com, and an unescaped.in^https://api.example.com$acceptshttps://apiXexample.com. - Include
Vary: Originon any response whose headers depend on the requestOrigin, so a shared cache cannot hand one origin'sAccess-Control-Allow-Originto another. - Restrict
Access-Control-Allow-Methodsto the methods the endpoint accepts andAccess-Control-Allow-Headersto the headers it consumes. An app-setAuthorization: Bearer …header is not "credentials" in the Fetch sense — it is an ordinary header that must be listed inAllow-Headersand that triggers a preflight. - Set a bounded
Access-Control-Max-Agesized to the deployment; an hour to a day is a conservative production default. Browsers cap this value regardless of what you send, so a very large number buys no extra caching — it only lengthens how long a bad allowlist entry stays cached in clients that already fetched it. - Source allowed origins only from operator-controlled configuration. Do not derive them from tenant- or user-controlled data unless an addition passes an authenticated, authorized, validated administrative workflow. The risk is not "stored in a database", it is "writable by anyone who can create a row".
- When the request
Originis not in the allowlist, omitAccess-Control-Allow-Originentirely. Do not fall back to a default trusted origin and do not echo the rejected value — a default-origin fallback silently grants every rejected caller whatever that default origin is allowed to do.
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 6d ago First seen · 111 lines · 59 tokens per session scan A 85f3c91a3351
cors-security is a skill published in the GitHub repository ShieldNet-360/secure-vibe (22 stars, last pushed 22d ago), licensed MIT. It adds 59 tokens to every session and 1,436 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
documenter-vitepress
Use when setting up or developing a Julia based documentation site with DocumenterVitepress.jl. Also use when the user mentions DocumenterVitepress, VitePress for Julia docs, or wants to preview docs locally with hot reload.
agent-teacher
Teach a concept through a runnable code example plus a structured walkthrough, instead of a wall of definitions. Trigger whenever the user wants to understand a technical concept — phrases like "解释一下 X / X 是什么 / 教我 X / X 怎么工作 / 这个 X 是啥 / 我不太懂 X", or "explain X / what is X / teach me X / how does X work / help me…
offensive-c2-frameworks
Command and Control framework deployment, configuration, and operational tradecraft for red team engagements. Covers Cobalt Strike (malleable C2 profiles, Beacon types HTTP/HTTPS/DNS/SMB, Beacon Object Files for in-memory execution, sleep and jitter tuning, named pipe pivoting), Sliver (implant generation across…
offensive-crypto-attacks
Systematic methodology for identifying and exploiting cryptographic implementation weaknesses in real-world applications. Covers padding oracle attacks against CBC-mode ciphers with PKCS7 padding (Vaudenay's original attack through modern padbuster automation), ECB mode exploitation including block cut-and-paste and…
offensive-parameter-pollution
HTTP parameter pollution (HPP) checklist: duplicate parameter injection, backend vs frontend parsing differences, WAF bypass via HPP, server-side vs client-side HPP, and practical exploitation patterns. Use when testing web applications for parameter handling flaws.
offensive-z-wave
Z-Wave attack methodology — sniffing with Z-Force / EZ-Wave / RTL-SDR + ZniffMobile, S0 (legacy) network-key derivation flaw and key reuse, S2 (modern) ECDH commissioning analysis, replay/injection on unauthenticated nodes, default-key brute-force on test deployments, and home-automation hub pivots. Use when targeting…