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.svg" alt="Measured on agentmods" 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 | $0.00017 | $0.00104 |
| Sonnet 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 8d 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.
- 8d 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 (42 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 34 tokens to every session and 208 once invoked, about $0.0002 per session on Opus 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.
Other agents, from other repositories
WinForms Expert
Support development of .NET (OOP) WinForms Designer compatible Apps.
Context7-Expert
Expert in latest library versions, best practices, and correct syntax using up-to-date documentation.
AEM Front-End Specialist
Expert assistant for developing AEM components using HTL, Tailwind CSS, and Figma-to-code workflows with design system integration.
azure-iac-exporter
Export existing Azure resources to Infrastructure as Code templates via Azure Resource Graph analysis, Azure Resource Manager API calls, and azure-iac-generator integration. Use this skill when the user asks to export, convert, migrate, or extract existing Azure resources to IaC templates (Bicep, ARM Templates…
Delphi Expert
An agent designed to assist with software development tasks for Delphi/Object Pascal projects.
sast-sca-security-analyzer
Use when: performing SAST (Static Application Security Testing), SCA (Software Composition Analysis), scanning source code or binaries for security flaws, auditing third-party dependency vulnerabilities, checking policy compliance, generating structured security reports, identifying CWE-mapped flaws with file/line…