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 oleg494/coding-kit --skill security-and-hardeninggit clone --depth 1 https://github.com/oleg494/coding-kitWrote 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/oleg494/coding-kit/security-and-hardening)<a href="https://agentmods.dev/skills/oleg494/coding-kit/security-and-hardening"><img src="https://agentmods.dev/badge/skills/oleg494/coding-kit/security-and-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/oleg494/coding-kit/security-and-hardening"><img src="https://agentmods.dev/badge/skills/oleg494/coding-kit/security-and-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.00094 | $0.01426 |
| Opus 5.5 | $0.00038 | $0.00570 |
| Sonnet 5.5 | $0.00019 | $0.00285 |
| Haiku 4.5 | $0.00009 | $0.00143 |
Grade A, and why
security-and-hardening 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 12d 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.
Any server fetch of a user-influenced URL — webhooks, import-from-URL, image proxies, link previews — aims at internal services. Validating and then calling `fetch(url)` leaves a TOCTOU gap: the name can resolve differen How it starts
The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Security and hardening
Security is boundary work: find where untrusted data enters, decide what that boundary must guarantee, and enforce it at the entry point rather than at every use site.
Threat model first
Map trust boundaries — HTTP requests, fields, uploads, webhooks, third-party APIs, queues, LLM output, fetched pages, subagent output — and the assets behind them: credentials, personal and payment data, admin actions, money movement.
STRIDE per boundary: spoofing → authentication, signatures; tampering → integrity checks, parameterized queries, TLS; repudiation → audit log; disclosure → encryption, field allowlists, generic error bodies; denial of service → rate limits, size caps, timeouts; elevation → authorization, least privilege.
A control no boundary here crosses is not this change's task.
Baseline checks, gated by what the system has
| Check | Applies when |
|---|---|
| Validate input at the boundary | data arrives from outside the process |
| Parameterized queries | SQL, including ORM raw fragments |
| Output encoding, auto-escaping | output reaches HTML, JS or a URL |
| bcrypt, scrypt or argon2 | passwords are stored |
| httpOnly + secure + sameSite cookies | sessions live in a browser cookie |
| TLS, CSP, HSTS, X-Frame-Options | traffic leaves the host; a browser loads your pages |
| Rate limits, body caps | unauthenticated, credential-checking or allocation-heavy endpoint |
| File type and size limits | uploads accepted |
| Audit log | auth events or value movement exist |
Store-side controls (encryption at rest, key rotation, backup access) belong to whoever operates the store: raise them as a requirement, not feature code. Auth flows, sensitive-data categories, integrations, CORS, uploads and rate limits need explicit requirements and a security review, not a fresh approval for already-requested work; implementation approval is not deployment approval (OPS §1).
Lines that do not bend
- Secrets stay out of version control and logs; use the environment or a secret manager.
- Passwords, tokens, card numbers and session ids are never logged, even at debug — log an id or a hash.
- Client-side validation is UX, never the boundary.
- No
eval(); noinnerHTMLon user data. User HTML renders only through a maintained sanitizer such as DOMPurify. - Session tokens in httpOnly cookies, not client-readable storage.
- User-facing errors carry a code, not a stack trace; the detail goes to the log.
What ships with it
1 file 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.
- 12d ago Changed 97c5664054a2
- 21d ago Changed 68ae1f71d9a5
- 1mo ago Changed · -48 lines · +29 tokens per session 285a95fcb5df
- 1mo ago Changed 94b3f107d55a
- 1mo ago Changed 74cd708bde97
- 1mo ago Changed 970fdec3ff02
- 1mo ago Changed e5a79ec29853
- 1mo ago Changed a97f3be0dc3a
- 1mo ago Changed be45fe686a27
- 2mo ago First seen · 139 lines · 65 tokens per session scan A fec27c818741
security-and-hardening is a skill published in the GitHub repository oleg494/coding-kit (3 stars, last pushed 12d ago), licensed MIT. It adds 94 tokens to every session and 1,426 once invoked, about $0.0004 per session on Opus 5.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-31.
security-and-hardening compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| security-and-hardeningoleg494/coding-kit | Skill | 3 | 12d ago | MIT | A | 94 | Claude Code, Codex |
| runmystilleef/spae-framework | Skill | 2 | 3d ago | MIT | A | 21 | Codex |
| tipmystilleef/spae-framework | Skill | 2 | 3d ago | MIT | A | 32 | Claude Code |
| auto-commitmystilleef/spae-framework | Skill | 2 | 3d ago | MIT | C | 19 | Claude Code |
| spae-inspectmystilleef/spae-framework | Skill | 2 | 3d ago | MIT | C | 24 | Claude Code |
| spae-specmystilleef/spae-framework | Skill | 2 | 3d ago | MIT | C | 38 | Claude Code |
| code-reviewmystilleef/spae-framework | Skill | 2 | 3d ago | MIT | C | 28 | Claude Code |