| name | scan-package |
| description | Scan a pip or npm package before installation using Sigil. Use when installing dependencies, adding new packages, or when package behavior seems suspicious. Auto-invoke before pip install or npm install commands. |
| allowed-tools | Bash(./bin/sigil *) |
Package Security Scan
Scan a package before installation:
- Identify package type (pip or npm)
- Run appropriate Sigil scan:
./bin/sigil pip <package> for Python packages
./bin/sigil npm <package> for Node packages
- Review quarantine findings
- Recommend approve/reject based on risk score
Critical patterns to flag:
- Install hooks (setup.py cmdclass, npm postinstall)
- Eval/exec/pickle usage
- Network exfiltration (webhooks, DNS tunneling)
- Credential access (ENV vars, SSH keys)
- Code obfuscation (base64, charCode)
Present findings and guide the user through quarantine approval.