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 agentmods add skills/piyushptiwari1/mcpkernel/mcpkernel-securitynpx skills add piyushptiwari1/mcpkernel --skill mcpkernel-securitygit clone --depth 1 https://github.com/piyushptiwari1/mcpkernelWrote 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/piyushptiwari1/mcpkernel/mcpkernel-security)<a href="https://agentmods.dev/skills/piyushptiwari1/mcpkernel/mcpkernel-security"><img src="https://agentmods.dev/badge/skills/piyushptiwari1/mcpkernel/mcpkernel-security.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 | $0.00034 | $0.00861 |
| Opus 5 | $0.00017 | $0.00430 |
| Sonnet 5 | $0.00007 | $0.00172 |
| Haiku 4.5 | $0.00003 | $0.00086 |
Grade A, and why
mcpkernel-security 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 4d 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 — 118 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MCPKernel Security Skill
The security kernel for AI agents. MCPKernel provides deterministic, policy-enforced security for every MCP tool call.
What it does
When installed, MCPKernel gives you these security tools:
mcpkernel_scan_tool
Scan any MCP tool's description for prompt injection, poisoning, shadowing, and Unicode obfuscation attacks.
Example:
"Scan the filesystem tool for poisoning attacks"
mcpkernel_validate_policy
Validate MCPKernel YAML policy files for syntax and rule correctness.
Example:
"Validate my policy at policies/strict.yaml"
mcpkernel_discover_configs
Auto-discover MCP server configurations across all installed IDE clients (Claude Desktop, Cursor, VS Code, Windsurf, OpenClaw, Zed, etc.) and flag security issues like exposed secrets.
Example:
"Discover all my MCP server configs and check for security issues"
mcpkernel_check_taint
Analyze text for sensitive data — PII, secrets, API keys, user input.
Example:
"Check this text for sensitive data: my email is [email protected] and my key is sk-abc123"
mcpkernel_scan_skill
Scan OpenClaw SKILL.md files for dangerous shell commands, exfiltration patterns, hidden instructions, and metadata mismatches.
Example:
"Scan the skills/my-skill/SKILL.md for security issues"
mcpkernel_doctor
Run full MCPKernel health diagnostics — check config, dependencies, exposed secrets, file permissions, and available tools.
Example:
"Run MCPKernel doctor to check my setup"
Installation
# Install MCPKernel
pip install mcpkernel
# Install in OpenClaw
mcpkernel install --target openclaw
Or add directly to your OpenClaw config:
{
"mcp": {
"servers": {
"mcpkernel": {
"command": "mcpkernel",
"args": ["mcp-serve"]
}
}
}
}
Key Features
- OWASP ASI 2026 compliant policy engine with YAML rules
- Multi-mode taint tracking (PII, secrets, user input, external data)
- Tool poisoning detection with 10+ injection pattern rules
- DLP chain detection (e.g., read_file(.env) → http_post = blocked)
- SARIF v2.1.0 output for GitHub Code Scanning / Azure DevOps
- Multi-backend sandboxing (Docker, Firecracker, WASM, Microsandbox)
- Deterministic Execution Envelopes (Sigstore-signed, replayable)
- Tamper-proof audit logs with SIEM export (CEF, JSONL, CSV)
- eBPF syscall monitoring at kernel level
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.
- 4d ago First seen · 118 lines · 34 tokens per session scan A 68306313e603
mcpkernel-security is a skill published in the GitHub repository piyushptiwari1/mcpkernel (2 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 34 tokens to every session and 861 once invoked, about $0.0002 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.
Other skills, from other repositories
behavior-verifier
Run a Praxen behavior analysis against an AI agent — or author the Worker Remit that drives one. Praxen verifies intended vs observed behavior by comparing an agent's declared policy (Worker Remit) against available evidence — source code, live deployment state (memory files, logs, configs), governance docs, or…
auditing-mcp-servers-for-tool-poisoning
Scan Model Context Protocol servers and tool metadata for poisoning, SSRF, and unauthenticated exposure.
auditing-mcp-servers-for-tool-poisoning
Audit MCP servers for tool poisoning, tool shadowing, rug pulls, SSRF, and unauthenticated exposure using Invariant Labs' mcp-scan for static/runtime scanning plus manual SSRF/auth checks and description pinning. Use before adding a new MCP server to an agent stack, when reviewing an internal MCP server, detecting rug…
creative-writing-coach
Helps users with creative writing and storytelling.
onboarding-guide
Guides new users through a friendly onboarding experience.
personal-assistant
A personalized assistant that remembers your preferences.