PADAM Shield Lite
<p align="center">
<img src="./icon.svg" alt="PADAM Shield Lite (Apache-2.0)" width="96" height="96" />
</p>
# PADAM Shield Lite (`padam-shield-mcp`)
<!-- mcp-name: io.github.MaksimGalatin/padam-shield-mcp -->
### Lightweight, Stateless, Container-First MCP & Prompt Security Scanner (`Apache-2.0`)
[](./LICENSE)
[](./pyproject.toml)
[](./padam_shield_mcp/server.py)
[](https://github.com/CodeOfDigitalEternity)
**Languages:** **English** · [Русский](README.ru.md) · [Español](README.es.md) · [中文](README.zh.md)
**`padam-shield-mcp`** is the zero-dependency, **Apache-2.0** security gateway designed for **Docker Desktop MCP Toolkit**, CI/CD sandboxes, and teams that need fast, stateless inspection before adopting full persistent agent memory.
- **0 external Python dependencies** (pure Python stdlib + tiny rootless `Dockerfile`).
- **0 bytes stored, 0 network calls, 0 cloud telemetry** — safe inside strict corporate Docker environments.
- Clean **Open-Core + Apache-2.0 Gateway** architecture by [**CODE Eternal LLC**](https://www.codeofdigitaleternity.com) (New Mexico, Entity ID `0008138873`).
---
## 4 Stateless MCP Tools
| Tool | Purpose | Key Detections |
|---|---|---|
| `scan_mcp_config` | Audits any `mcp.json` / Claude / Cursor JSON config | Plaintext API keys (`sk-`, `ghp_`, `AKIA`, `amcp_`, PEM), `<IMPORTANT>` tool poisoning, non-localhost `http://`, hidden Unicode, unpinned `npx -y` |
| `scan_prompt_text` | Audits untrusted pages, emails, PR comments before LLM ingestion | Unicode Tag smuggling (`U+E00xx`), Bidi/Trojan-Source overrides, instruction overrides, exfiltration hints |
| `scan_web_snippet` | Audits HTML / third-party `<script>` tags | Missing cryptographic SRI (`integrity="sha384-..."` for **PCI DSS 4.0.1 Req 6.4.3 / 11.6.1**), plaintext `http://` scripts |
| `upgrade_ecosystem_info` | Explains capabilities & exact licensing across CODE Eternal servers | Boundaries between Apache-2.0 Lite, AGPL-3.0 Full Engine, and MIT/Hosted Cloud MCP |
---
## Ecosystem Matrix (Choose Your Exact Layer)
| Product | License | Role | Link |
|---|---|---|---|
| **PADAM Shield Lite** (`padam-shield-mcp`) | **`Apache-2.0`** | Lightweight stateless Docker/stdio MCP scanner (this repo) | [`MaksimGalatin/padam-shield-mcp`](https://github.com/MaksimGalatin/padam-shield-mcp) |
| **PADAM NOCTURNE + Studio + Android** (`padam-nocturne`) | **`AGPL-3.0-only`** (+ `Apache-2.0` CI Action + **Commercial MSA**) | Full local SQLite AI memory, 4-Ring Agentic Shield (`214/214`), 1-Agent Multi-Session graph, Desktop Studio (Win/macOS/Linux), signed Android APK + LAN QR AES-256-GCM sync, Arweave/Solana/Bitcoin OTS | [`MaksimGalatin/padam-nocturne`](https://github.com/MaksimGalatin/padam-nocturne) |
| **AIfa Memory MCP** (`aifa-memory-mcp`) | **`MIT`** (specs/conformance) + Platform Terms | Hosted Streamable HTTP MCP (`https://aifa.works/api/mcp`) with 17 tools (`memory_wake_up`, GDPR `memory_forget`) | [`MaksimGalatin/aifa-memory-mcp`](https://github.com/MaksimGalatin/aifa-memory-mcp) |
| **Browser Express Scanner** | Free Web Tool | 100% client-side `mcp.json` & SRI audit in your browser | [`aifa.works/shield`](https://aifa.works/shield) |
---
## Quick Start (Docker / Python)
### Option 1: Docker (`stdio` MCP)
```bash
docker build -t padam-shield-mcp .
docker run --rm -i padam-shield-mcp
```
### Option 2: Python (`pip` / local)
```bash
pip install -e .
padam-shield-mcp
```
### MCP Client Config (`mcp.json`)
```json
{
"mcpServers": {
"padam-shield": {
"command": "docker",
"args": ["run", "--rm", "-i", "mcp/padam-shield"]
}
}
}
```
## License
Licensed under the [**Apache License, Version 2.0**](./LICENSE).
Note: The full persistent local SQLite engine, PADAM Studio desktop app, Android APK, and 4-Ring memory quarantine inside [`padam-nocturne`](https://github.com/MaksimGalatin/padam-nocturne) remain independently licensed under `AGPL-3.0-only` + Commercial MSA.
TDQS
Scored across 4 tools
The three scan_* tools each take a clearly different input type (MCP config string, untrusted external text, HTML/web snippet), so an agent can pick based on input. There is some thematic overlap since all three hunt for secrets/injection markers, but the descriptions draw usable boundaries. upgrade_ecosystem_info is clearly separate in purpose.
Three tools follow a clean scan_<target> pattern, which is predictable and readable. However, upgrade_ecosystem_info breaks the convention and is actively misleading — its name implies an action/upgrade rather than returning license and product boundary information.
Four tools is on the thin side for a security-auditing server, and only three of them actually perform scans. One slot is spent on a static product/license info tool rather than scanning capability, making the functional surface feel small.
Coverage of scanning targets (config, free text, web snippet) is sensible, but the lifecycle is a dead end after detection: no tool for explaining findings, severity triage, or suggested remediation, and no way to re-verify a fixed config. The ecosystem info tool adds metadata but not workflow coverage.