SIGIL
Automated security auditing for AI agent code
A protective mark for every line of code.
by NOMARK
Sigil scans repositories, packages, MCP servers, skills, and agent tooling for malicious patterns before they reach your working environment. Nothing is installed or run before it has been scanned and scored, and you decide what to approve. That includes the package tools Sigil calls: sigil pip downloads only the prebuilt wheel of the release pip install would pick, and sigil npm downloads the registry tarball itself and checks it against the registry's integrity; both refuse paths, URLs and git specs, which pip or npm would build or run scripts for (--allow-build-scripts accepts them for code you already trust, after you confirm at a terminal, and with a warning). Up to 1.3.7, sigil pip let pip run a source distribution's setup.py, and sigil npm of a local directory or git spec let npm pack run its lifecycle scripts, before the scan.
The AI tooling ecosystem moves fast. Developers clone repos from tutorials, install MCP servers with 12 GitHub stars, and pull agent skills from Discord — all of which get direct access to API keys, databases, and cloud credentials. Traditional dependency scanners catch known CVEs but miss the real threat: intentionally malicious code designed to exfiltrate credentials, establish backdoors, or execute arbitrary commands via install hooks.
Sigil fills this gap with a quarantine-first approach.
Quick Install
Install via Script:
# Clone the repository
git clone https://github.com/NOMARJ/sigil.git
cd sigil
# Run the installer — downloads the prebuilt release binary for your
# platform and wires up the Claude Code integration by default
# (opt out with --no-integrations)
./install.sh
# Optional: add gclone/safepip/safenpm shell aliases
./install.sh --with-aliases
Package managers:
# Homebrew (macOS/Linux)
brew install nomarj/tap/sigil
# npm (macOS/Linux)
npm install -g @nomarj/sigil
# Cargo (Rust)
cargo install sigil-cli
# curl installer
curl -fsSLO https://www.sigilsec.ai/install.sh && sh install.sh
Coming Soon:
- Docker:
docker pull nomark/sigil:<version> (images will carry only version tags, no latest; see installation)
Note: The sigil package name on crates.io is occupied by an unrelated project. Install the Rust CLI with cargo install sigil-cli.
→ See all installation methods
How It Works
┌──────────────┐ ┌──────────────┐ ┌──────────────┐
│ You run a │────▶│ Sigil │────▶│ Clean? │
│ command │ │ quarantines │ │ Approve. │
│ │ │ & scans │ │ Dirty? │
│ gclone │ │ │ │ Reject. │
│ safepip │ │ 8 phases. │ │ │
│ safenpm │ │ <3 seconds. │ │ You decide. │
└──────────────┘ └──────────────┘ └──────────────┘
Sigil runs eight analysis phases on every scan (all free; LLM analysis requires Pro):
| Phase | What It Catches | Tier |
|---|
| Install Hooks | setup.py cmdclass, npm postinstall, Makefile targets that execute on install | Free |
| Code Patterns | eval(), exec(), pickle.loads, child_process, dynamic imports | Free |
| Network / Exfil | Outbound HTTP, webhooks, socket connections, DNS tunnelling | Free |
| Credentials | ENV var access, .aws, .kube, SSH keys, API key patterns | Free |
| Obfuscation | Base64 decode, charCode, hex encoding, minified payloads | Free |
| Provenance | Git history depth, author count, binary files, hidden files | Free |
| Prompt Injection | AI agent instruction injection in code, docs, and tool descriptions | Free |
| Skill Security | MCP permission escalation, over-broad agent tool grants | Free |
| 🔒 LLM Analysis | AI-powered zero-day detection, contextual threat correlation, advanced remediation | Pro |
Each finding is weighted and scored. You get a clear verdict: