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 ayalaphiscan/web-security-guard --skill hardening-sitigit clone --depth 1 https://github.com/ayalaphiscan/web-security-guardWrote 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/ayalaphiscan/web-security-guard/hardening-siti)<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.
<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>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.00153 | $0.01907 |
| Opus 5.5 | $0.00061 | $0.00763 |
| Sonnet 5.5 | $0.00031 | $0.00381 |
| Haiku 4.5 | $0.00015 | $0.00191 |
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.
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(oStrictper 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: conAccess-Control-Allow-Credentials: truesolo origin esatti eVary: Origin. Le API autenticate con un token nell'intestazione (come Supabase) possono accettare qualunque origin (api-sicura).
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.
- 1mo ago Changed · +2 lines 4e4c1068af10
- 3mo ago First seen · 106 lines · 153 tokens per session scan A cb7889e062f5
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.
hardening-siti compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| hardening-sitiayalaphiscan/web-security-guard | Skill | 4 | 1mo ago | MIT | A | 153 | Claude Code |
| ponytail-sec-auditandypitcher/ponytail-sec | Skill | 62 | today | MIT | A | 73 | Claude Code |
| prism-hardentonone-ai/tonone | Skill | 85 | yesterday | MIT | A | 47 | Claude Code |
| ponytail-secandypitcher/ponytail-sec | Skill | 62 | today | MIT | A | 73 | Claude Code |
| ponytail-sec-triageandypitcher/ponytail-sec | Skill | 62 | today | MIT | A | 60 | Claude Code |
| dockerfileandypitcher/ponytail-sec | Skill | 62 | today | MIT | A | 51 | Claude Code |
| k8s-securitycontextandypitcher/ponytail-sec | Skill | 62 | today | MIT | A | 57 | Claude Code |