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

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit 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.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/piyushptiwari1/mcpkernel/mcpkernel-security
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.

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/github.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/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.

agentmods 80×15 button for mcpkernel-security

Your own site · 80×15
<a href="https://agentmods.dev/skills/piyushptiwari1/mcpkernel/mcpkernel-security"><img src="https://agentmods.dev/badge/skills/piyushptiwari1/mcpkernel/mcpkernel-security.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00034 $0.00861
Opus 5.5 $0.00014 $0.00344
Sonnet 5.5 $0.00007 $0.00172
Haiku 4.5 $0.00003 $0.00086

Measured 1mo ago against content hash 68306313e603, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 4mo ago), licensed Apache-2.0. It adds 34 tokens to every session and 861 once invoked, about $0.0001 per session on Opus 5.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.

Related

Other skills, from other repositories

clinical-trial-protocol-skill

Generate clinical trial protocols for medical devices or drugs. This skill should be used when users say "Create a clinical trial protocol", "Generate protocol for [device/drug]", "Help me design a clinical study", "Research similar trials for [intervention]", or when developing FDA submission documentation for…

Agent-Threat-Rule/agent-threat-rules · 70 tokens

claude-d3js-skill

This skill provides guidance for creating sophisticated, interactive data visualisations using d3.js.

Agent-Threat-Rule/agent-threat-rules · 25 tokens

adr-skill

Create and maintain Architecture Decision Records (ADRs) optimized for agentic coding workflows. Use when you need to propose, write, update, accept/reject, deprecate, or supersede an ADR; bootstrap an adr folder and index; consult existing ADRs before implementing changes; or enforce ADR conventions. This skill uses…

Agent-Threat-Rule/agent-threat-rules · 89 tokens

terraform-skill

Terraform infrastructure as code best practices.

Agent-Threat-Rule/agent-threat-rules · 10 tokens

create-auth-skill

Scaffold and implement authentication in TypeScript/JavaScript apps using Better Auth. Detect frameworks, configure database adapters, set up route handlers, add OAuth providers, and create auth UI pages. Use when users want to add login, sign-up, or authentication to a new or existing project with Better Auth.

Agent-Threat-Rule/agent-threat-rules · 66 tokens

prior-auth-review-skill

Automate payer review of prior authorization (PA) requests. This skill should be used when users say "Review this PA request", "Process prior authorization for [procedure]", "Assess medical necessity", "Generate PA decision", or when processing clinical documentation for coverage policy validation and authorization…

Agent-Threat-Rule/agent-threat-rules · 63 tokens