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 peterblazejewicz/claude-plugins --skill security-and-hardeninggit clone --depth 1 https://github.com/peterblazejewicz/claude-pluginsWrote 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/peterblazejewicz/claude-plugins/security-and-hardening)<a href="https://agentmods.dev/skills/peterblazejewicz/claude-plugins/security-and-hardening"><img src="https://agentmods.dev/badge/skills/peterblazejewicz/claude-plugins/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/peterblazejewicz/claude-plugins/security-and-hardening"><img src="https://agentmods.dev/badge/skills/peterblazejewicz/claude-plugins/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.00099 | $0.10360 |
| Opus 5.5 | $0.00040 | $0.04144 |
| Sonnet 5.5 | $0.00020 | $0.02072 |
| Haiku 4.5 | $0.00010 | $0.01036 |
Grade B, and why
security-and-hardening scanned grade B with 2 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 3mo 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.
Cloud metadata endpointmediumServer-side request forgery
One request to 169.254.169.254 can return temporary IAM credentials.
Any time the server fetches a URL the user influenced — webhooks, "import from URL", image proxies, link previews — an attacker can aim it at internal services (cloud metadata, `localhost`, private IPs). The #1 target is Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- [ ] Security headers present in response (check with browser DevTools or `curl -I`) How it starts
The opening of the file, as written. The whole thing — 720 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Security and Hardening
Overview
Security-first development practices for .NET applications — ASP.NET Core web apps, Blazor, Avalonia, MAUI, and library code. Treat every external input as hostile, every secret as sacred, and every authorization check as mandatory. Security isn't a phase — it's a constraint on every line of code that touches user data, authentication, or external systems.
When to Use
- Building anything that accepts user input (HTTP endpoints, message consumers, file watchers, UI text fields)
- Implementing authentication or authorization (ASP.NET Core Identity, cookie auth, JWT bearer, OAuth, policy-based authz)
- Storing or transmitting sensitive data (PII, payment info, API tokens, connection strings)
- Integrating with external APIs or services (HttpClient, gRPC, Service Bus)
- Adding file uploads, webhooks, or callbacks
- Handling payment or regulated data (GDPR, HIPAA, PCI DSS)
Process: Threat Model First
Controls bolted on without a threat model are guesses. Before hardening, spend five minutes thinking like an attacker:
- Map the trust boundaries. Where does untrusted data cross into your system? HTTP requests (body, route, query, headers), form fields,
IFormFileuploads, webhooks, third-party API responses,Service Bus/ queue messages, and LLM output. Every boundary is attack surface. - Name the assets. What's worth stealing or breaking? Credentials, PII, payment data, admin actions, money movement.
- Run STRIDE over each boundary — a quick lens, not a ceremony:
| Threat | Ask | Typical .NET mitigation |
|---|---|---|
| Spoofing | Can someone impersonate a user/service? | ASP.NET Core Identity / JWT bearer auth, HMAC signature verification on webhooks |
| Tampering | Can data be altered in transit or at rest? | HTTPS + HSTS, parameterized EF Core queries, Data Protection integrity |
| Repudiation | Can an action be denied later? | Audit logging of security events (structured ILogger) |
| Information disclosure | Can data leak? | DTO field allowlists, ProblemDetails generic errors, encryption at rest |
| Denial of service | Can it be overwhelmed? | AddRateLimiter, RequestSizeLimit / FormOptions, CancellationToken + timeouts |
| Elevation of privilege | Can a user gain rights they shouldn't? | Policy-based [Authorize], per-resource IAuthorizationService checks, least privilege |
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.
- 3mo ago First seen · 720 lines · 99 tokens per session scan B af45fd11b8dc
security-and-hardening is a skill published in the GitHub repository peterblazejewicz/claude-plugins (8 stars, last pushed 5mo ago), licensed MIT. It adds 99 tokens to every session and 10,360 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 2 findings (cloud metadata endpoint, 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-hardeningpeterblazejewicz/claude-plugins | Skill | 8 | 5mo ago | MIT | B | 99 | Claude Code |
| agents-sdk-dotnet-activityhandler-migrationmicrosoft/Agents | Skill | 1.1k | yesterday | MIT | A | 76 | Claude Code |
| agents-sdk-dotnetmicrosoft/Agents | Skill | 1.1k | yesterday | MIT | A | 112 | Claude Code |
| teams-sdk-to-agents-sdk-dotnet-migrationmicrosoft/Agents | Skill | 1.1k | yesterday | MIT | A | 72 | Claude Code |
| bf-to-agents-sdk-dotnet-migrationmicrosoft/Agents | Skill | 1.1k | yesterday | MIT | A | 56 | Claude Code |
| agents-sdk-dotnet-otelmicrosoft/Agents | Skill | 1.1k | yesterday | MIT | A | 86 | Claude Code |
| agents-sdk-dotnet-debuggingmicrosoft/Agents | Skill | 1.1k | yesterday | MIT | A | 136 | Claude Code |