security-and-hardening

security-and-hardening is a skill for Claude Code, Codex from oleg494/coding-kit. It costs 94 tokens per session (1,426 once invoked), scanned A, original, MIT.

A security-development guide for protecting applications that handle outside input, accounts, private data, or third-party services.

In plain words
What is it for?
Use it when building features such as authentication, file uploads, webhooks, payments, API integrations, or other functionality involving sensitive data.
Why use it?
It helps identify where untrusted data enters the system and where credentials, personal information, or privileged actions could be exposed or misused.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; positional $N argument; installed under .agents/ (shared by several agents).

Good fit Use it when building features such as authentication, file uploads, webhooks, payments, API integrations, or other functionality involving sensitive data.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/oleg494/coding-kit/security-and-hardening
Install

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.

Any agent
npx skills add oleg494/coding-kit --skill security-and-hardening
Clone the repo
git clone --depth 1 https://github.com/oleg494/coding-kit

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for security-and-hardening

README.md
[![agentmods](https://agentmods.dev/badge/skills/oleg494/coding-kit/security-and-hardening/github.svg)](https://agentmods.dev/skills/oleg494/coding-kit/security-and-hardening)
Your own site
<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.

agentmods 80×15 button for security-and-hardening

Your own site · 80×15
<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>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,426 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 12d ago against content hash 97c5664054a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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
.agents/skills/security-and-hardening/SKILL.md · 91 lines

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(); no innerHTML on 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.

Read the full file on GitHub · 91 lines

Files

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.

Changes

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.

  1. 12d ago Changed 97c5664054a2
  2. 21d ago Changed 68ae1f71d9a5
  3. 1mo ago Changed · -48 lines · +29 tokens per session 285a95fcb5df
  4. 1mo ago Changed 94b3f107d55a
  5. 1mo ago Changed 74cd708bde97
  6. 1mo ago Changed 970fdec3ff02
  7. 1mo ago Changed e5a79ec29853
  8. 1mo ago Changed a97f3be0dc3a
  9. 1mo ago Changed be45fe686a27
  10. 2mo ago First seen · 139 lines · 65 tokens per session scan A fec27c818741

Subscribe to this mod's changes

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.

Related

security-and-hardening compared with skills from other repositories

security-and-hardening next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
security-and-hardeningoleg494/coding-kitSkill312d agoMITA94Claude Code, Codex
runmystilleef/spae-frameworkSkill23d agoMITA21Codex
tipmystilleef/spae-frameworkSkill23d agoMITA32Claude Code
auto-commitmystilleef/spae-frameworkSkill23d agoMITC19Claude Code
spae-inspectmystilleef/spae-frameworkSkill23d agoMITC24Claude Code
spae-specmystilleef/spae-frameworkSkill23d agoMITC38Claude Code
code-reviewmystilleef/spae-frameworkSkill23d agoMITC28Claude Code