sigil-scan
/sigil-scan
Skanuje kod agentów AI, pakiety, serwery MCP i zainstalowane skille pod kątem złośliwych wzorców: hooki, wyciek danych i wstrzyknięcia promptów.
Ocena i bezpieczeństwo
- Pliki w paczce
- 10
- Skrypty
- 6
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 3
Brak sygnałów. Repozytorium zmienione 09.10.2026, bez odwołań do wycofanych modeli i API.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
- 6 skryptów w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: scripts/_lib.sh, scripts/audit-env.sh, scripts/audit-skills.sh, scripts/report.sh, scripts/scan.sh, scripts/setup.sh
Co robi i kiedy
Skanuje kod agentów AI, pakiety, serwery MCP i zainstalowane skille pod kątem złośliwych wzorców: hooki, wyciek danych i wstrzyknięcia promptów.
Wyzwalacze z opisu
Oryginalny opis (EN)
Automated security auditing for AI agent code. Scans repos, packages, MCP servers, and installed skills for malicious patterns using eight-phase analysis: install hooks, dangerous code patterns, network exfiltration, credential access, obfuscation, provenance, prompt injection, and skill security. Use when: cloning repos, installing packages, reviewing MCP servers, auditing skills, scanning code before execution, or when asked to check if something is safe, audit code, scan for malware, review dependencies. Trigger phrases (English): 'is this safe to install', 'scan this skill', 'vet this MCP
Jak działa
- When to Activate
- Setup
- Core Scan
- Environment Audit
- Installed Skills Audit
- Report Generation
- Important Behavioural Rules
- Troubleshooting
Podgląd SKILL.md
---
name: sigil-scan
description: "Automated security auditing for AI agent code. Scans repos, packages, MCP servers, and installed skills for malicious patterns using eight-phase analysis: install hooks, dangerous code patterns, network exfiltration, credential access, obfuscation, provenance, prompt injection, and skill security. Use when: cloning repos, installing packages, reviewing MCP servers, auditing skills, scanning code before execution, or when asked to check if something is safe, audit code, scan for malware, review dependencies. Trigger phrases (English): 'is this safe to install', 'scan this skill', 'vet this MCP server', 'check this package before installing', 'is this repo safe', 'audit this MCP server'. Trigger phrases (Chinese): '安全扫描', '这个插件安全吗', '这个技能安全吗', '扫描一下', '安装前检查'."
compatibility: Requires internet for initial setup only. All scanning is local and offline. Works on macOS (arm64/x64), Linux (x64), and WSL.
license: Apache-2.0
allowed-tools: Read Bash(bash:*)
metadata:
author: nomarj
version: "1.1.0"
homepage: https://sigilsec.ai
---
# Sigil Security Scanner
Sigil provides eight-phase security analysis purpose-built for AI agent code. It detects install hooks, dangerous code patterns, network exfiltration, credential access, obfuscation, provenance issues, prompt injection attacks, and AI skill security threats.
All file paths in this document are relative to this skill's directory (the directory containing SKILL.md).
## When to Activate
Invoke this skill in ANY of these situations:
- Before cloning any repository with `git clone`
- Before installing any package with `pip install` or `npm install`
- When the user asks to "scan", "audit", "check", or "review" code
- When the user asks "is this safe?" or "is this malicious?"
- When reviewing MCP server configurations
- When the user mentions supply chain security, dependency auditing, or code safety
- When any unfamiliar repo, package, or skill is about to be used
## Setup
Before first use, verify the Sigil CLI binary is installed:
```bash
bash scripts/setup.sh
```
Parse the JSON stdout. On success: `{"installed": true, "version": "...", "path": "..."}`. On failure: `{"error": true, "message": "..."}`. If setup fails, present the error to the user and suggest manual installation: `brew install nomarj/tap/sigil`, `npm install -g @nomarj/sigil`, or `cargo install sigil-cli`.
## Core Scan
To scan any target, run:
```bash
bash scripts/scan.sh <target>
```
The `<target>` argument accepts:
- **Local path**: `/path/to/project` or `./src`
- **GitHub URL**: `https://github.com/owner/repo`
- **GitHub shorthand**: `owner/repo`
- **npm package**: `@scope/package` or `npm:package-name`
- **pip package**: `pip:package-name`
- **Any URL**: `https://example.com/file.py`
### Output Format
The script outputs a single JSON object to stdout:
```json
{
"verdict": "HIGH RISK",
"score": 37,
"target": "github.com/someone/sketchy-mcp-server",
"files_scanned": 142,
"duration_ms": 85,
"findings_count": 12,
"phases": {
"InstallHooks": { "findings": 2, "severity": "critical" },
"CodePatterns": { "findings": 5, "severity": "high" },
"NetworkExfil": { "findings": 1, "severity": "medium" },
"Credentials": { "findings": 3, "severity": "high" },
"Obfuscation": { "findings": 0, "severity": "clean" },
"Provenance": { "findings": 1, "severity": "low" },
"PromptInjection": { "findings": 0, "severity": "clean" },
"SkillSecurity": { "findings": 0, "severity": "clean" }
},
"findings": [
{
"phase": "InstallHooks",
"severity": "Critical",
"weight": 10,
"rule": "INSTALL-003",
"file": "package.json",
"line": 8,
"snippet": "postinstall script detected: node malicious.js"
}
]
}
```
### Interpreting Results
**Always present the verdict prominently to the user.**
| Verdict | Score | Action |
|---------|-------|--------|
| `LOW RISK` or `CLEAN` | 0-9 | Proceed. Note that low risk does not mean zero risk. Inform the user of the result. |
| `MEDIUM RISK` | 10-24 | Show findings to the user. Ask for explicit approval before proceeding with any installation or execution. |
| `HIGH RISK` | 25-49 | Show detailed findings. Recommend rejection. Do NOT proceed without explicit user approval. |
| `CRITICAL RISK` or `CRITICAL` | 50+ | Show all findings prominently. Strongly recommend rejection. Never auto-proceed. |
Verdict strings vary slightly between CLI versions (`CLEAN` vs `LOW RISK`, `CRITICAL` vs `CRITICAL RISK`) — treat the pairs as equivalent. A `CRITICAL` verdict can also occur below score 50: any Critical-severity finding in the InstallHooks phase escalates the verdict immediately, because install hooks execute before the user can review the code.
### Presenting Findings
When presenting findings to the user:
1. Group findings by phase (Install Hooks first — they are the most dangerous)
2. Show the severity, rule ID, file path with line number, and description for each finding
3. Highlight any `Critical` severity findings in the `InstallHooks` phase — these indicate code that runs automatically during installation
4. For reference on what each rule detects, read `references/PHASES.md`
5. For details on how scoring works, read `references/SCORING.md`
### Exit Codes
- `0`: LOW RISK / CLEAN (score 0-9)
- Non-zero: MEDIUM RISK or higher
## Environment Audit
To scan the developer's local environment for exposed credentials:
```bash
bash scripts/audit-env.sh
```
This checks:
- `.env` files in the current project for exposed API keys, secrets, and tokens
- Home directory credential files (`~/.aws/credentials`, `~/.ssh/id_rsa`, `~/.kube/config`, etc.) for insecure permissions
- Shell history files for accidentally leaked secrets
- Agent-accessible directories for credential files
Present all findings to the user. Flag any `critical` severity items prominently.
## Installed Skills Audit
To scan all installed skills across all agent directories:
```bash
bash scripts/audit-skills.sh
```
This enumerates skills in: `~/.agents/skills/`, `~/.claude/skills/`, `~/.cursor/skills/`, `~/.roo/skills/`, `~/.codex/skills/`, and other agent paths. Each skill is scanned and assigned a risk verdict.
Present the results as a summary table showing each skill's name, agent, verdict, and score. Highlight any skills with `HIGH RISK` or `CRITICAL RISK` verdicts.
## Report Generation
To format scan results as a readable markdown report:
```bash
bash scripts/scan.sh <target> | bash scripts/report.sh
```
Or from a saved JSON file:
```bash
bash scripts/report.sh results.json
```
## Important Behavioural Rules
1. **Never describe code as "safe" or "malicious" in definitive terms.** Use "low risk", "elevated risk", "flagged patterns", or "detected patterns" instead.
2. **Always present the risk verdict and score** before any other commentary.
3. **When a scan returns HIGH RISK or CRITICAL RISK**, always show the detailed findings. Never summarise away critical findings.
4. **For CRITICAL RISK findings in the InstallHooks phase**, explicitly warn the user that install-time code execution was detected — this means code runs automatically when the package is installed, before the user can review it.
5. **Wait for explicit user approval** before proceeding with installation or execution of any target rated MEDIUM RISK or higher.
6. **Include the disclaimer** at the end of scan result presentations: "Sigil provides risk assessments based on automated pattern detection. Risk assessments do not constitute a guarantee of security or a definitive determination of malicious intent."
## Troubleshooting
If you encounter issues, read `references/TROUBLESHOOTING.md` for common solutions.
Pliki w paczce (10)
- SKILL.md 8 KB
- references/PHASES.md 27 KB
- references/SCORING.md 2 KB
- references/TROUBLESHOOTING.md 3 KB
- scripts/_lib.sh 5 KB
- scripts/audit-env.sh 8 KB
- scripts/audit-skills.sh 7 KB
- scripts/report.sh 5 KB
- scripts/scan.sh 5 KB
- scripts/setup.sh 7 KB
Wersje
W bazie nie ma innych skilli o nazwie sigil-scan.
Migawka bazy z 13.11.2026 · wersja paczki cdc7453d576e (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 1 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 86scan-package
Skanuje pakiety pip i npm przed instalacją, sprawdzając bezpieczeństwo, zanim trafią do projektu. - 100skill-scanner
Skanuje skille agentów pod kątem problemów bezpieczeństwa: prompt injection, złośliwych skryptów, nadmiernych uprawnień, ujawnienia sekretów i ryzyk łańcucha dostaw, żeby ocenić, czy skill jest bezpieczny do instalacji. - 95skill-guard
Sprawdza skille, wtyczki i serwery MCP pod kątem wstrzyknięć promptów, ukrytych poleceń i kradzieży danych przed ich instalacją. - 100skill-firewall
Skanuje folder skilla przed instalacją pod kątem wstrzyknięcia poleceń, wycieku danych i ukrytego kodu, zgłaszając każde trafienie z lokalizacją. - 100security-scan
Skanuje konfigurację Claude Code (katalog .claude/) pod kątem podatności, błędnych konfiguracji i ryzyka wstrzyknięć za pomocą AgentShield: CLAUDE.md, settings.json, serwery MCP, hooki i definicje agentów. - 86audit-skills
Sprawdza skille, wtyczki i pliki instrukcji agentów pod kątem wstrzyknięć promptów, wycieku danych i osadzonych sekretów przed instalacją.