aishield

aishield is a skill for Claude Code, Codex from lm203688/aishield. It costs 108 tokens per session (746 once invoked), scanned A, original, MIT.

A local static security scanner for MCP servers, AI-agent skills, GPTs, and prompts. It reads their files and definitions without running their commands or sending the scanned code away, then reports security, privacy, quality, and performance findings.

In plain words
What is it for?
Use it to scan an untrusted MCP server, skill, prompt, or GPT definition and decide whether it needs a warning or manual review.
Why use it?
It helps identify risky or suspicious agent add-ons before they are installed or executed.

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 an untrusted MCP server, skill, prompt, or GPT definition and decide whether it needs a warning or manual review.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lm203688/aishield/clawhub
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 lm203688/aishield --skill clawhub
Clone the repo
git clone --depth 1 https://github.com/lm203688/aishield

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 aishield

README.md
[![agentmods](https://agentmods.dev/badge/skills/lm203688/aishield/clawhub/github.svg)](https://agentmods.dev/skills/lm203688/aishield/clawhub)
Your own site
<a href="https://agentmods.dev/skills/lm203688/aishield/clawhub"><img src="https://agentmods.dev/badge/skills/lm203688/aishield/clawhub/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 aishield

Your own site · 80×15
<a href="https://agentmods.dev/skills/lm203688/aishield/clawhub"><img src="https://agentmods.dev/badge/skills/lm203688/aishield/clawhub.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 108 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 746 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00108 $0.00746
Opus 5.5 $0.00043 $0.00298
Sonnet 5.5 $0.00022 $0.00149
Haiku 4.5 $0.00011 $0.00075

Measured 1mo ago against content hash ee2adc2992f4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

aishield 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 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- Unsafe command-execution primitives (`child_process`, `os.system`, `eval`)
distribution/clawhub/SKILL.md · 82 lines

How it starts

The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AIShield — Local Agent-Tool Security Scanner

You are a security gate for AI agents. When the agent is about to install, load, or run an MCP server / skill / GPT / prompt from an untrusted source, run AIShield against it before execution and block or warn based on the score.

Hard invariants (do not violate)

  1. Never spawn commands from the artifact being scanned. Read the config / SKILL.md / tool definitions statically. Do NOT run npx, pip, shell scripts, or install-time hook scripts pulled from the target. The scan stays read-only inference.
  2. Code never leaves the machine. All 313 MCP / 340 Skill rules run locally with zero third-party dependencies. The scanned artifact is never sent to any remote service.
  3. If the target cannot be scanned statically (requires auth / live endpoint), report "needs manual review" — do not attempt to execute it.

How to invoke

From the AIShield repo root:

# Scan an MCP server / skill / prompt / GPT definition
python -m scanner.cli scan --type mcp --source <path-or-url>

# Output: 4D score (0-100), per-dimension breakdown, OWASP mapping, SARIF

Map the result:

  • 🥇 Gold (≥85): safe to install.
  • 🥈 Silver (≥70): install with caution.
  • 🥉 Bronze / below: block or require human approval.

What it detects

  • Tool poisoning / hidden adversarial instructions in tool descriptions
  • Prompt injection that hijacks agent behavior
  • Unsafe command-execution primitives (child_process, os.system, eval)
  • Outbound data theft (unauthorized network calls, telemetry)
  • Hardcoded API tokens / private keys
  • Supply-chain risk (unpinned deps, typosquatting, rug-pull)
  • OWASP Agentic AI Top 10 (ASI01–ASI10) coverage: goal hijack, least agency, identity/OAuth posture, supply-chain provenance, memory poisoning, cross-agent delegation, cascading failure, dark patterns, anti-tamper

Reporting to the user

Summarize in one line: score + the single highest-severity finding + a recommendation (install / caution / block). Do not dump raw rule output unless asked.

Read the full file on GitHub · 82 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 Changed ee2adc2992f4
  2. 1mo ago Changed 5e8e02426adc
  3. 1mo ago Changed 97d5f6dce1ea
  4. 2mo ago Changed 82a8901ca77b
  5. 2mo ago Changed 6f449079a2f2
  6. 2mo ago Changed 9b2734722c01
  7. 3mo ago First seen · 82 lines · 108 tokens per session scan A 9cddd7d03f03

Subscribe to this mod's changes

aishield is a skill published in the GitHub repository lm203688/aishield (1 stars, last pushed 13d ago), licensed MIT. It adds 108 tokens to every session and 746 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

aishield compared with skills from other repositories

aishield next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
aishieldlm203688/aishieldSkill113d agoMITA108Claude Code, Codex
polygraphpolygraphso/litmusSkill84mo agoApache-2.0A225Claude Code
wenlan-handoffwenlan-app/wenlanSkill502todayApache-2.0A46Claude Code, Codex
airdrop-hunting-guidenirholas/three.wsSkill289todayApache-2.0A54Claude Code, Codex
opik-diagnosecomet-ml/opik-mcpSkill2274d agoApache-2.0A187Claude Code
check-name-realFuRongJun-1999/dsh-memorySkill763todayMITA101Claude Code
ue-mcp-epic-routingdb-lyon/ue-mcpSkill526todayMITA81Claude Code, Codex