hardening-siti

hardening-siti is a skill for Claude Code from ayalaphiscan/web-security-guard. It costs 153 tokens per session (1,907 once invoked), scanned A, original, MIT.

A set of website and application security rules covering transport, browser headers, input validation, cookies, cross-origin requests, uploads, errors, and common web vulnerabilities.

In plain words
What is it for?
Apply protections such as security headers, content restrictions, server-side input validation, safer cookies, and OWASP Top 10 checks.
Why use it?
It gives development and review work a checklist for reducing common security weaknesses.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the web-security-guard plugin — 15 skills, 4 commands shipped together

Good fit Apply protections such as security headers, content restrictions, server-side input validation, safer cookies, and OWASP Top 10 checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ayalaphiscan/web-security-guard/hardening-siti
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 ayalaphiscan/web-security-guard --skill hardening-siti
Clone the repo
git clone --depth 1 https://github.com/ayalaphiscan/web-security-guard

Made for: Claude Code.

Or install web-security-guard, the plugin that ships this one along with the rest of its 15 skills, 4 commands.

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 hardening-siti

README.md
[![agentmods](https://agentmods.dev/badge/skills/ayalaphiscan/web-security-guard/hardening-siti/github.svg)](https://agentmods.dev/skills/ayalaphiscan/web-security-guard/hardening-siti)
Your own site
<a href="https://agentmods.dev/skills/ayalaphiscan/web-security-guard/hardening-siti"><img src="https://agentmods.dev/badge/skills/ayalaphiscan/web-security-guard/hardening-siti/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 hardening-siti

Your own site · 80×15
<a href="https://agentmods.dev/skills/ayalaphiscan/web-security-guard/hardening-siti"><img src="https://agentmods.dev/badge/skills/ayalaphiscan/web-security-guard/hardening-siti.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 153 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,907 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00153 $0.01907
Opus 5.5 $0.00061 $0.00763
Sonnet 5.5 $0.00031 $0.00381
Haiku 4.5 $0.00015 $0.00191

Measured 1mo ago against content hash 4e4c1068af10, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

hardening-siti 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 1mo 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.

skills/hardening-siti/SKILL.md · 108 lines

How it starts

The opening of the file, as written. The whole thing — 108 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Hardening Siti · Website Hardening

🇮🇹 Versione italiana qui sotto · 🇬🇧 English version below

Quando si costruisce o si modifica un sito/app, applicare SEMPRE queste regole di sicurezza senza che l'utente debba chiederlo. Segnalare nel riepilogo finale quali protezioni sono state applicate.

Regole obbligatorie

1. Security headers

Applicare su ogni risposta HTML:

Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
Referrer-Policy: strict-origin-when-cross-origin
Permissions-Policy: camera=(), microphone=(), geolocation=()   # (self) solo per le funzioni che l'app usa davvero, es. la posizione (privacy-posizione)
Content-Security-Policy: default-src 'self'; script-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'none'

In Node/Express usare helmet(). In Django attivare SECURE_* settings. Su hosting statico (Netlify/Vercel/GitHub Pages) usare il file headers della piattaforma. Adattare la CSP alle risorse reali del sito (CDN, font, analytics) — mai usare unsafe-inline per gli script; preferire nonce o hash.

2. Input e output

  • Validare OGNI input lato server (tipo, lunghezza, formato, whitelist). La validazione client è solo UX.
  • Query al database SOLO parametrizzate o via ORM. Mai concatenare stringhe in SQL.
  • Escapare l'output nei template (autoescaping attivo). Mai inserire input utente in innerHTML, eval, attributi evento o URL senza sanitizzazione.
  • Path file: mai costruire percorsi da input utente; usare ID mappati o path.basename + directory fissa.

3. Cookie e sessioni

  • Cookie di sessione: HttpOnly; Secure; SameSite=Lax (o Strict per azioni sensibili).
  • Rigenerare l'ID sessione al login. Scadenza assoluta e per inattività.
  • Protezione CSRF su ogni form/azione che modifica stato (token CSRF o SameSite + verifica Origin).

4. CORS

  • Mai * o l'origin rimandato indietro su endpoint autenticati con cookie: con Access-Control-Allow-Credentials: true solo origin esatti e Vary: Origin. Le API autenticate con un token nell'intestazione (come Supabase) possono accettare qualunque origin (api-sicura).

Read the full file on GitHub · 108 lines

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. 1mo ago Changed · +2 lines 4e4c1068af10
  2. 3mo ago First seen · 106 lines · 153 tokens per session scan A cb7889e062f5

Subscribe to this mod's changes

hardening-siti is a skill published in the GitHub repository ayalaphiscan/web-security-guard (4 stars, last pushed 1mo ago), licensed MIT. It adds 153 tokens to every session and 1,907 once invoked, about $0.0006 per session on Opus 5.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.

Related

hardening-siti compared with skills from other repositories

hardening-siti next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
hardening-sitiayalaphiscan/web-security-guardSkill41mo agoMITA153Claude Code
ponytail-sec-auditandypitcher/ponytail-secSkill62todayMITA73Claude Code
prism-hardentonone-ai/tononeSkill85yesterdayMITA47Claude Code
ponytail-secandypitcher/ponytail-secSkill62todayMITA73Claude Code
ponytail-sec-triageandypitcher/ponytail-secSkill62todayMITA60Claude Code
dockerfileandypitcher/ponytail-secSkill62todayMITA51Claude Code
k8s-securitycontextandypitcher/ponytail-secSkill62todayMITA57Claude Code