mcpkernel-security

mcpkernel-security is a skill for Claude Code, Codex from piyushptiwari1/mcpkernel. It costs 34 tokens per session (861 once invoked), scanned A, original, Apache-2.0.

A security skill for MCP, the system that lets AI agents call external tools. It checks tool descriptions, policies, configurations, text, skills, and tool-call data for security risks.

In plain words
What is it for?
Use it to scan MCP tools and skills, validate YAML policies, find server configurations, check text for personal data or secrets, analyze tainted data, and produce SARIF security results.
Why use it?
It helps detect prompt injection, hidden instructions, exposed secrets, sensitive information, and policy problems before tools are used or changes reach CI/CD.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/piyushptiwari1/mcpkernel/mcpkernel-security
Any agent
npx skills add piyushptiwari1/mcpkernel --skill mcpkernel-security
Clone the repo
git clone --depth 1 https://github.com/piyushptiwari1/mcpkernel

Made for: Claude Code, Codex.

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 mcpkernel-security

README.md
[![agentmods](https://agentmods.dev/badge/skills/piyushptiwari1/mcpkernel/mcpkernel-security.svg)](https://agentmods.dev/skills/piyushptiwari1/mcpkernel/mcpkernel-security)
Your own site
<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>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 861 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00034 $0.00861
Opus 5 $0.00017 $0.00430
Sonnet 5 $0.00007 $0.00172
Haiku 4.5 $0.00003 $0.00086

Measured 4d ago against content hash 68306313e603, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

skills/mcpkernel-security/SKILL.md · 118 lines

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

Read the full file on GitHub · 118 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. 4d ago First seen · 118 lines · 34 tokens per session scan A 68306313e603

Subscribe to this mod's changes

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.