Skip to main content
Glama

Iron Veil (Open-Core)

Zero-dependency indirect prompt-injection sanitizer, Priority-1 untrusted repository trap quarantiner, offline Claude Code transcript xray auditor, and local stdio MCP server.

When you open an untrusted repository, GitHub issue, or scraped webpage inside Claude Code, Google Antigravity, Cursor, or any Model Context Protocol (MCP) client, hidden delivery vectors can hijack your agent before you read a single line of code:

  • Priority-1 Repo Traps: .agents/hooks.json, AGENTS.md, CLAUDE.md, GEMINI.md, .cursorrules, and executable .git/hooks/* load at higher priority than global user settings.

  • Invisible Unicode Smuggling: Unicode Tag ASCII blocks (U+E0000–U+E007F), Trojan-Source bidirectional overrides (CVE-2021-42574), and zero-width steganography.

  • Hidden DOM Lures: display:none, opacity:0, font-size:0, aria-hidden="true", HTML comments, and <script type="application/ld+json"> payloads.

iron-veil-core strips these delivery vectors in <2 ms using pure Python 3.10+ stdlib and wraps untrusted text in randomized per-call XML nonces.

Quickstart

# Run instantly via uvx (zero clone required):
uvx --from https://github.com/argoness-prime/iron-veil/releases/download/v1.3.0/iron_veil_core-1.3.0-py3-none-any.whl iron-veil-core selftest

# Install as an Agent Skill (Claude Code, Cursor, Codex, Antigravity):
npx skills add argoness-prime/iron-veil

# Or install via Claude Code Plugin Marketplace:
/plugin marketplace add argoness-prime/iron-veil

# Or install directly via pip:
pip install git+https://github.com/argoness-prime/iron-veil.git
iron-veil-core selftest

Run as a Local MCP Server (stdio, Zero Dependencies)

iron-veil-core mcp (or iron-veil-mcp) exposes sanitize_untrusted_text, quarantine_repo_traps, and xray_transcripts over standard JSON-RPC 2.0 stdio with zero external runtime packages:

# Register in Claude Code:
claude mcp add iron-veil -- iron-veil-core mcp

Or add to .mcp.json / claude_desktop_config.json:

{
  "mcpServers": {
    "iron-veil": {
      "command": "iron-veil-core",
      "args": ["mcp"]
    }
  }
}

Quarantine an External Repo Before Opening It in Your Agent

git -c core.hooksPath=/dev/null -c protocol.file.allow=never clone --depth 1 <repo_url> ./sandbox
iron-veil-core quarantine-repo ./sandbox

Sanitize Untrusted Issues, Diffs, or Scraped HTML

iron-veil-core scan-file issue.html --strip-html

X-Ray Your Local Claude Code Transcripts (10-second, 100% offline)

Find out where your context actually goes, without uploading anything. xray reads the JSONL transcripts Claude Code already keeps in ~/.claude/projects and reports:

  • Unwindowed file reads: Read calls with no limit that pulled in more than 350 lines.

  • Prompt-cache idle cliffs: gaps longer than 5 minutes that were followed by a full cache-prefix re-write (more tokens written to the cache than read from it).

  • Top 5 tool-output bloat offenders: the largest tool results pushed into context. Only file basenames are shown; contents, shell commands, and full paths are never printed.

  • Illustrative client-side waste at configurable public list-price assumptions.

iron-veil-core xray                       # last 7 days of ~/.claude/projects
iron-veil-core xray --days 30 --top 10    # wider window
iron-veil-core xray path/to/session.jsonl --json --no-upsell

xray is a client-side diagnostic only; it is not a billing cap. It cannot see server-side usage accounting or plan limits. Subscription plans are not billed per token, so the dollar figure is illustrative.

Related MCP server: verdex

Verification

Run the built-in 11-vector sanitizer and repo-trap self-test or the full pytest suite locally with zero network calls:

iron-veil-core selftest
pytest -q

Architecture & Companion Tools

Maintained by Veristrux Inc. (veristrux.com).

Available Tools

3 tools
quarantine_repo_trapsA
Idempotent

Inspect or disarm Priority-1 coding-agent configuration traps (.agents/, .claude/, .cursor/, AGENTS.md, CLAUDE.md, GEMINI.md, .cursorrules, .windsurfrules) and active .git/hooks/* inside an untrusted local repository clone.

Inputs: repo_dir (required), dry_run.

sanitize_untrusted_textA
Read-onlyIdempotent

Strip hidden Unicode Tag ASCII blocks (U+E0000..U+E007F), Trojan-Source bidi overrides, zero-width steganography, and hidden HTML/CSS prompt-injection payloads from untrusted text or a local file (<= 2 MiB), returning cleaned text, injection signals, and a nonce-wrapped envelope.

Inputs: path, text, strip_html, source_label.

xray_transcriptsA
Read-onlyIdempotent

Run a 100% offline, read-only diagnostic on local Claude Code JSONL transcripts to quantify unwindowed file reads (>350 lines), >5-minute prompt-cache idle cliffs, and largest tool-output context offenders without exposing file contents, shell commands, or full paths.

Inputs: top, days, path, format, +3 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool targets a clearly distinct artifact: untrusted text/files, local repository agent-config traps, and Claude Code JSONL transcripts. There is no meaningful overlap in action or resource, so an agent can easily select the right tool.

    Naming Consistency5/5

    All three names follow a consistent snake_case verb_noun pattern: sanitize_untrusted_text, quarantine_repo_traps, and xray_transcripts. The convention is predictable and readable throughout.

    Tool Count5/5

    Three tools is well-scoped for a focused security/diagnostic toolkit covering three separate artifact classes. Each tool has a distinct role and none appears redundant or filler-like.

    Completeness4/5

    The surface covers text sanitization, repository trap inspection/disarming, and transcript diagnostics with inspect/disarm options where relevant. Minor gaps may exist around scanning broader agent environments or tool definitions, but the core defensive workflows are represented.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Exposes read-only local analysis tools for source auditing, web traffic review, binary reverse engineering, exploit scaffolding, OSINT, and reporting via JSON-RPC over stdio, enabling LLMs to orchestrate evidence-based security workflows without executing targets or sending network requests.
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables agents to scan incoming emails, web pages and messages for instructions aimed at the AI, wrap that untrusted content in a nonce-bounded fence the content cannot forge, and expose a check_action tool so the model's tool calls can be blocked or confirmed after it reads something from outside. It runs locally over stdio with zero dependencies and no network access.
      28 npm
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Exposes the customer-support tool registry over stdio so Claude Desktop or Claude Code can look up customers and orders, track shipments, search help-center articles, update shipping addresses, issue policy-checked refunds and escalate to a human. It reuses the same pydantic validation, ownership and refund policy, approval gate and audit logging as the HTTP agent, with the customer identity taken from server configuration rather than the model.
      7
      MIT