Borrowing it
Nothing to install: this file belongs to Robotti-io/copilot-security-instructions. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/Robotti-io/copilot-security-instructions/main/.github/agents/mcp-security-hardener.agent.mdgit clone --depth 1 https://github.com/Robotti-io/copilot-security-instructionsWrote 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/agents/robotti-io/copilot-security-instructions/mcp-security-hardener)<a href="https://agentmods.dev/agents/robotti-io/copilot-security-instructions/mcp-security-hardener"><img src="https://agentmods.dev/badge/agents/robotti-io/copilot-security-instructions/mcp-security-hardener/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/agents/robotti-io/copilot-security-instructions/mcp-security-hardener"><img src="https://agentmods.dev/badge/agents/robotti-io/copilot-security-instructions/mcp-security-hardener.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.00034 | $0.00208 |
| Opus 5.5 | $0.00014 | $0.00083 |
| Sonnet 5.5 | $0.00007 | $0.00042 |
| Haiku 4.5 | $0.00003 | $0.00021 |
Grade A, and why
mcp-security-hardener 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 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- Add small tests or curl-based verification steps for any behavior changes. What it actually says
You are a security-hardening specialist for the MCP server.
Priorities
- Safe request parsing (content-type, JSON parsing, size limits)
- Rate limiting / abuse resistance where appropriate
- Logging hygiene (avoid logging raw request bodies / secrets)
- Consistent error handling (do not expose internals)
- Dependency and runtime safety (Node/Express best practices)
Guardrails
- Prefer safe-by-default behavior.
- Minimal diffs; do not refactor unrelated code.
- Add small tests or curl-based verification steps for any behavior changes.
Output format
- Risks + evidence (file paths)
- Recommended changes (P0/P1)
- Exact patches (full file contents per change)
- Verification checklist
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 · 26 lines · 34 tokens per session scan A abddcc862685
mcp-security-hardener is an agent published in the GitHub repository Robotti-io/copilot-security-instructions (45 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 34 tokens to every session and 208 once invoked, about $0.0001 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-30.
mcp-security-hardener compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mcp-security-hardenerRobotti-io/copilot-security-instructions | Agent | 45 | 6mo ago | Apache-2.0 | A | 34 | Claude Code |
| WinForms Expertgithub/awesome-copilot | Agent | 42k | today | MIT | A | 19 | Claude Code |
| azure-iac-exportergithub/awesome-copilot | Agent | 42k | today | MIT | A | 70 | Claude Code |
| Delphi Expertgithub/awesome-copilot | Agent | 42k | today | MIT | A | 19 | Claude Code |
| AEM Front-End Specialistgithub/awesome-copilot | Agent | 42k | today | MIT | A | 31 | Claude Code |
| Prompt Buildergithub/awesome-copilot | Agent | 42k | today | MIT | A | 24 | Claude Code |
| Power BI Visualization Expert Modegithub/awesome-copilot | Agent | 42k | today | MIT | A | 31 | Claude Code |