hardening-siti

hardening-siti is a skill for Claude Code from ayalaphiscan/web-security-guard. It costs 153 tokens per session (1,592 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 — 6 skills, 2 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 6 skills, 2 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,592 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.01592
Opus 5 $0.00077 $0.00796
Sonnet 5 $0.00031 $0.00318
Haiku 4.5 $0.00015 $0.00159

Measured 11d ago against content hash cb7889e062f5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 11d 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 · 106 lines

How it starts

The opening of the file, as written. The whole thing — 106 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=()
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 Access-Control-Allow-Origin: * su endpoint autenticati. Whitelist esplicita di origin.

5. Upload di file

  • Whitelist di estensioni E content-type verificato sul contenuto reale (magic bytes).
  • Rinominare i file con ID casuali, salvarli FUORI dalla web root o su storage separato, limitare la dimensione.

Read the full file on GitHub · 106 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. 11d 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 3mo ago), licensed MIT. It adds 153 tokens to every session and 1,592 once invoked, about $0.0008 per session on Opus 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

Other skills, from other repositories

ponytail-sec-audit

Full project security audit. Scans the entire codebase across three passes: code that shouldn't exist, all dependencies assessed, all hardening findings. Produces a comprehensive numbered report with blast-radius narrative. Persists findings to .ponytail-sec/ for cross-scan tracking. For per-diff review use…

andypitcher/ponytail-sec · 74 tokens

ponytail-sec

Security companion for active development. Scopes to the current diff or changed files. Three passes: YAGNI code review, new-dep assessment, and up to 3 material hardening findings. Lean by design — surfaces the one thing to fix before merging, not a backlog. Use ponytail-sec-audit for a full project scan.

andypitcher/ponytail-sec · 74 tokens

dockerfile

Binary Dockerfile image-build hardening check. Use when reviewing Dockerfiles, container image builds, multi-stage builds, runtime users, pinned bases, or reproducible dependency installs. Minimal output only: OK or NOTOK: RULE, RULE.

andypitcher/ponytail-sec · 51 tokens

k8s-securitycontext

Binary Kubernetes securityContext hardening check. Use when reviewing Pods, Deployments, StatefulSets, DaemonSets, Jobs, CronJobs, Helm templates, or Kubernetes manifests that define containers. Minimal output only: OK or NOTOK: RULE, RULE.

andypitcher/ponytail-sec · 57 tokens

prowler-commit

Creates professional git commits following conventional-commits format. Trigger: When creating commits, after completing code changes, when user asks to commit.

prowler-cloud/prowler · 33 tokens

create-site

Creates a new Power Pages code site (SPA) using React, Angular, Vue, or Astro. Guides through the full process from initial concept to deployed site: requirements discovery, scaffolding, component planning, design, implementation, validation, and deployment. Use when the user wants to create, build, or scaffold a new…

microsoft/power-platform-skills · 73 tokens