Trishula MCP Shield v2.5 (SQA v5.2 Ascended)
Sovereign Security Gatekeeper, AST Verifier & Zero-RCE Firewall for the Model Context Protocol (MCP)
Trishula MCP Shield is an air-gapped, zero-dependency security scanner, Python AST verifier, and runtime JSON-RPC 2.0 firewall built under Trishula Doctrine & SQA v5.2 Ascended (SQAV5A). It protects AI agents, developers, and enterprises from compromised MCP servers, prompt injection in tool definitions, unauthenticated STDIO command execution, global RCE exploit waves (PHP2Shell, Node2Shell, x402 Drain), and supply chain poisoning.
SWOT Doctrinal Hardening Matrix (v2.5 Ascended)
| SWOT Mandate | Doctrinal / SQAV5A Upgrade | Verification |
|---|---|---|
| Embolden Strengths | Added NIST FIPS 202 SHA3-512 Merkle Root + Domain-Separated HMAC-SHA3-512 Seal (TRISHULA-MCP-SHIELD-SQAV5A-V5.2) alongside SHA-256 attestation. Zero dependencies (pip freeze = empty). |
Category 6 & 11 (17/17 PASS) |
| Eliminate Weaknesses | Added Deterministic Python AST Static Verification (scan_python_ast) (eval, exec, os.system, subprocess(shell=True), pickle.loads) + Live Runtime JSON-RPC 2.0 Firewall (intercept_jsonrpc_message) emitting -32600 CRITICAL_HALT. |
Category 10 & 13 (9/9 PASS) |
| Seize Opportunities | Added OASIS SARIF v2.1.0 Enterprise Output (--sarif), GitHub Marketplace Action (action.yml), Agensi SKILL.md, and cross-registry manifests (smithery.yaml, glama.json, server.json, clawhub.json). |
Category 7, 8, 9, 13 (18/18 PASS) |
| Neutralize Threats | Added SQAV5A Pillar 3 Zero-RCE WAF blocking PHP2Shell (CVE-2026-109618), Node2Shell (CVE-2026-111497), x402:// wallet drain, ${jndi:...}, Cloud SSRF (169.254.169.254), and Pillar 4 Zero-Leak Egress Guard (protected paths + Shannon entropy H >= 4.2). |
Category 12 (8/8 PASS) |
Proof of Function
Trishula MCP Shield v2.5: 75/75 deterministic tests PASSED (0 failures)
Verdict: SQA_v5_ASCENDED — EXCEEDED
Run the complete 13-category test suite:
python test_mcp_shield.py
Usage
1. Host Client Autodiscovery & Audit
Scan all configured MCP servers on the current machine (Claude Desktop, Antigravity, Cursor, Cline):
python scripts/mcp_shield_runner.py --scan-clients
2. Audit Tool Definitions
Validate a tools/list response or tool definition manifest:
python scripts/mcp_shield_runner.py --tools path/to/tools_list.json
3. Repository Scan + Python AST Verification + SARIF v2.1.0 Export
Audit any local MCP server codebase and export SARIF for GitHub Code Scanning:
python mcp_shield.py /path/to/mcp-server --ast --sarif-out results.sarif
4. Run as an MCP Server (STDIO)
Connect MCP Shield directly to Claude Desktop, Cursor, or Antigravity:
python mcp_server.py
SQA v5.2 Ascended Compliance
| Standard | Status | Evidence |
|---|---|---|
| SQA_v5.2_ASCENDED | EXCEEDED | 75/75 deterministic tests across 13 categories, zero dependencies |
| Pillar 1: Zero-Slop AST & Bytecode | PASS | ast.parse call-sink verification + py_compile clean |
| Pillar 2: Cryptographic Armor | PASS | SHA-256 + SHA3-512 Merkle Root + HMAC-SHA3-512 seal |
| Pillar 3: Zero-RCE WAF | PASS | Blocks PHP2Shell, Node2Shell, x402 Drain, JNDI, SSRF, Traversal |
| Pillar 4: Zero-Leak Egress | PASS | Protected doctrinal path block + Shannon entropy (H >= 4.2) guard |
| SEPTIP-L4 Docker Law | PASS | Enforced .dockerignore excluding .git, venv/, .env, backups/, receipts/ |
License
MIT License. Built by Trishula Software — Sovereign Security for the AI Age.
Metadata
Release files for trishula-mcp-shield 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| trishula_mcp_shield-1.0.0.tar.gz | 19.5 kB | With provenance | Details for trishula_mcp_shield-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| trishula_mcp_shield-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for trishula_mcp_shield-1.0.0-py3-none-any.whl |
Total release size: 38.5 kB
Release files / trishula_mcp_shield-1.0.0.tar.gz
| Download URL | trishula_mcp_shield-1.0.0.tar.gz |
|---|---|
| Size | 19.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
98c4cfb389cf7b036d7dc5a8af56605bc3c02d71ad0021dd36009e2f1831d169
|
|
BLAKE2b-256 checksum How to use checksums |
43e41bb3acd6df2c09160e8fd6eb3fe5c0daf60bcf3024aafcc928f51e51ce8f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logRelease files / trishula_mcp_shield-1.0.0-py3-none-any.whl
| Download URL | trishula_mcp_shield-1.0.0-py3-none-any.whl |
|---|---|
| Size | 19.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e4b6d99c35d2993727affdc11385d386ba7e5662fff0cb5982f1b5f2bfb33785
|
|
BLAKE2b-256 checksum How to use checksums |
b872485ae291df5376f991645206333df65c9fd9c5787f4d8bd4b49e1d2020c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logSecurity for trishula-mcp-shield 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for trishula_mcp_shield-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.