FC ecap-security-auditor
Security audit framework for AI agent skills, MCP servers, and packages. Your LLM does the analysis — we provide structure, prompts, and a shared trust database.
Security audit framework for AI agent skills, MCP servers, and packages.
As a process C 58/100 · Has gaps — weak spots: result and completion, inputs and preconditions
What is at stake
Medium-severity findings: the skill is probably honest, but read what alarmed the scanner.
Below is the worst case for this category. The finding here is medium: the guard saw a sign, not a proof.
The skill contains commands that delete files, rewrite disks or execute code fetched from the network. The agent may run them without asking if it believes the instructions require it.
Replace destructive commands with safe equivalents that ask for confirmation, scope them to one folder, and stop piping curl into a shell: pin a version and a checksum.
Below is the worst case for this category. The finding here is medium: the guard saw a sign, not a proof.
The files contain invisible characters, encoded commands or comments hidden from readers but visible to the model. What you read differs from what the agent sees.
Remove invisible characters (they usually sneak in through copy-paste) and encoded strings: no catalog will pass them. Instructions for the model must be readable by a human too.
How to improve
- Say in the description WHEN to use the skill ("use when…", example requests): that is the agent's main cue.
- The SKILL.md body is over 5,000 tokens: move reference detail into references/ and load it when needed.
- Your own cases (evals/evals.json, 4–6 real requests with expected answers): the full check would then run those instead of a model-drafted suite.
- A spec.yaml with trigger phrases and assertions — a behaviour contract for CI; `skilltest init` writes a template.
Guard findings · 80
✓ No critical or high findings
Medium and low: 80
-
medium Dangerous commands
cmd-pipe-to-shellFERRET-SCAN-ANALYSIS.md:268Downloads and executes remote code from an unrecognised host (pipe to shell) (documentation of a security skill)- curl|bash, eval, exec
security skill -
medium Obfuscation
uni-zero-widthPROMPT-TEST-SUITE.md:253Zero-width / invisible characters (possible hidden text) (19 occurrences) (test fixture / example file)This␀␀␀␀ tool␀␀␀ is␀␀␀␀␀ safe␀␀␀ to␀␀␀␀ use.
fixture -
medium Dangerous commands
cmd-persistenceprompts/audit-prompt.md:79Persistence mechanism (cron / launchd / scheduled task / autorun registry) (documentation of a security skill)- LaunchAgents/LaunchDaemons (`~/Library/LaunchAgents`)
security skill -
medium Dangerous commands
cmd-encoded-execSKILL.md:355Executes a base64/encoded payload (documentation table row; documentation of a security skill)| `OBF_B64_002` | Base…ode → execute chains | `atob()`, `base64 -d`, `b64decode()` followed by `eval`/`exec` |
tablesecurity skill -
low Risky intent
intent-offensive-securityAUDIT-QUALITY-TEST.md:16Offensive-security / dual-use content (legitimate for authorised testing; review intended use) (test fixture / example file)| 3 | Reverse shell | setu…-24 | CRITICAL |
fixture -
low Risky intent
intent-offensive-securityAUDIT-QUALITY-TEST.md:65Offensive-security / dual-use content (legitimate for authorised testing; review intended use) (detector / deny-list definition; test fixture / example file)"title": "Reverse shell backdoor",
detectorfixture -
low Risky intent
intent-offensive-securityAUDIT-QUALITY-TEST.md:66Offensive-security / dual-use content (legitimate for authorised testing; review intended use) (test fixture / example file; quoted — discussed, not commanded)"description": "Opens reverse shell to 45.33.32.156:4444, piping /bin/sh stdin/stdout over TCP. Classic backdoor.",
fixturequoted -
low Risky intent
intent-offensive-securityAUDIT-QUALITY-TEST.md:251Offensive-security / dual-use content (legitimate for authorised testing; review intended use) (test fixture / example file; quoted — discussed, not commanded)"remediation": "Remove immediately - C2 server communication",
fixturequoted -
low Risky intent
intent-offensive-securityAUDIT-QUALITY-TEST.md:277Offensive-security / dual-use content (legitimate for authorised testing; review intended use) (test fixture / example file)Prompt correctly identifies: typosquatting, CI-conditional activation, custom registry, credential harvesting, hidden functionality. The CI-only trigger is especially good — shows the prompt doesn't j
fixture -
low Dangerous commands
cmd-privilegeFERRET-ADOPTION-PLAN.md:210Privilege escalation / world-writable permissions (documentation of a security skill)> - **chmod 777**: World-writable permissions on any file, especially executables or configs
security skill -
low Dangerous commands
cmd-privilegeFERRET-SCAN-ANALYSIS.md:91Privilege escalation / world-writable permissions (documentation of a security skill)- Built-in Fixes: Credentials redacten, Jailbreak entfernen, HTTP→HTTPS, chmod 777→644
security skill -
low Dangerous commands
cmd-privilegeFERRET-SCAN-ANALYSIS.md:225Privilege escalation / world-writable permissions (documentation of a security skill)- Bei chmod 777 → "Use chmod 644 or more restrictive"
security skill -
low Dangerous commands
cmd-pipe-to-shellPROMPT-TEST-SUITE.md:139Downloads and executes remote code from an unrecognised host (pipe to shell) (test fixture / example file; documentation of a security skill)- **PASS**: Persistence UND curl\|bash beide als real findings erkannt, result >= caution
fixturesecurity skill -
low Dangerous commands
cmd-pipe-to-shellPROMPT-TEST-SUITE.md:141Downloads and executes remote code from an unrecognised host (pipe to shell) (test fixture / example file; documentation of a security skill)- **PARTIAL**: Nur curl\|bash erkannt, crontab nicht explizit geflaggt
fixturesecurity skill -
low Dangerous commands
cmd-pipe-to-shellPROMPT-TEST-SUITE.md:145Downloads and executes remote code from an unrecognised host (pipe to shell) (test fixture / example file; documentation of a security skill)- **v1**: Wird wahrscheinlich curl\|bash finden, crontab evtl. nur als "system modification". Kein PERSIST pattern_id.
fixturesecurity skill -
low Dangerous commands
cmd-privilegeprompts/audit-prompt-v1-backup.md:55Privilege escalation / world-writable permissions (documentation of a security skill)- **Privilege escalation**: Unnecessary `sudo`, setuid, or capability requests
security skill -
low Risky intent
intent-offensive-securityprompts/audit-prompt-v1-backup.md:55Offensive-security / dual-use content (legitimate for authorised testing; review intended use)- **Privilege escalation**: Unnecessary `sudo`, setuid, or capability requests
-
low Risky intent
intent-offensive-securityprompts/audit-prompt-v1-backup.md:227Offensive-security / dual-use content (legitimate for authorised testing; review intended use)| PRIV_ESC | Privilege escalation |
-
low Risky intent
intent-offensive-securityprompts/audit-prompt.md:25Offensive-security / dual-use content (legitimate for authorised testing; review intended use)| **Settings / Config** | Permission grants, tool allow-lists, `defaultMode` | Privilege escalation, wildcard permissions (`Bash(*)`) |
-
low Dangerous commands
cmd-privilegeprompts/audit-prompt.md:71Privilege escalation / world-writable permissions (documentation of a security skill)- **Privilege escalation**: Unnecessary `sudo`, setuid, capability requests, wildcard permissions (`Bash(*)`, `*` in tool allow-lists)
security skill -
low Risky intent
intent-offensive-securityprompts/audit-prompt.md:71Offensive-security / dual-use content (legitimate for authorised testing; review intended use)- **Privilege escalation**: Unnecessary `sudo`, setuid, capability requests, wildcard permissions (`Bash(*)`, `*` in tool allow-lists)
-
low Risky intent
intent-offensive-securityprompts/audit-prompt.md:130Offensive-security / dual-use content (legitimate for authorised testing; review intended use)| Permission escalation | Persistence mechanism | **Persistent privilege escalation** |
-
low Risky intent
intent-offensive-securityprompts/audit-prompt.md:294Offensive-security / dual-use content (legitimate for authorised testing; review intended use)| PRIV_ESC | Privilege escalation |
-
low Risky intent
intent-offensive-securityREADME.md:60Offensive-security / dual-use content (legitimate for authorised testing; review intended use) (detector / deny-list definition)| **🔗 Cross-File Analysis** *(v2)* | Detects multi-file attack chains like credential harvesting + exfiltration across separate files. |
detector -
low Risky intent
intent-offensive-securityREADME.md:69Offensive-security / dual-use content (legitimate for authorised testing; review intended use)Command injection · Credential theft · Data exfiltration · Sandbox escapes · Supply chain attacks · Path traversal · Privilege escalation · Unsafe deserialization · Weak cryptography · Information lea
-
low Exfiltration
net-credential-useSKEPTIC-REVIEW.md:110Credential used in a network call (verify the destination is the intended service) (documentation table row; documentation of a security skill)| 288 | `curl -s "..." -H "Authorization: Bearer $ECAP_API_KEY"` | ✅ | ✅ |
tablesecurity skill -
low Risky intent
intent-offensive-securitySKILL-v1-backup.md:275Offensive-security / dual-use content (legitimate for authorised testing; review intended use)- `scripts/`: `curl|bash`, `eval`, `rm -rf`, credential harvesting
-
low Dangerous commands
cmd-pipe-to-shellSKILL-v1-backup.md:385Downloads and executes remote code from an unrecognised host (pipe to shell) (documentation table row; documentation of a security skill)| **Critical** | Exploitable now, immediate damage. | `curl URL \| bash`, `rm -rf /`, env var exfiltration, `eval` on raw input |
tablesecurity skill -
low Risky intent
intent-offensive-securitySKILL-v1-backup.md:404Offensive-security / dual-use content (legitimate for authorised testing; review intended use)| `PRIV_ESC` | Privilege escalation |
-
low Risky intent
intent-offensive-securitySKILL.md:278Offensive-security / dual-use content (legitimate for authorised testing; review intended use)- `scripts/`: `curl|bash`, `eval`, `rm -rf`, credential harvesting
-
low Instruction override
en-role-hijackSKILL.md:322Role hijack ("from now on you must ignore… / developer mode") (documentation table row; documentation of a security skill)| `AI_P…003` | Capability Escalation | "enable developer mode", "unlock hidden capabilities", "activate god mode" |
tablesecurity skill -
low Dangerous commands
cmd-cron-mentionSKILL.md:341Mentions editing / listing crontab (documentation table row; documentation of a security skill)| `PERSIST_001` | Crontab modification | `crontab -e`, `crontab -l`, writing to `/var/spool/cron/` |
tablesecurity skill -
low Dangerous commands
cmd-background-processSKILL.md:344Starts a background / autostarted process (documentation table row; documentation of a security skill)| `PERSIST_004` | Systemd services | `systemctl enable`, writing to `/etc/systemd/`, `.service` files |
tablesecurity skill -
low Dangerous commands
cmd-persistenceSKILL.md:345Persistence mechanism (cron / launchd / scheduled task / autorun registry) (documentation table row; documentation of a security skill)| `PERSIST_005` | macOS LaunchAgents | Writing to `~/Library/LaunchAgents/`, `/Library/LaunchDaemons/` |
tablesecurity skill -
low Dangerous commands
cmd-pipe-to-shellSKILL.md:472Downloads and executes remote code from an unrecognised host (pipe to shell) (documentation table row; documentation of a security skill)| **Critical** | Exploitable now, immediate damage. | `curl URL \| bash`, `rm -rf /`, env var exfiltration, `eval` on raw input |
tablesecurity skill -
low Risky intent
intent-offensive-securitySKILL.md:494Offensive-security / dual-use content (legitimate for authorised testing; review intended use)| `PRIV_ESC` | Privilege escalation |
-
low Dangerous commands
cmd-pipe-to-shellTEST-RESULTS-V1.md:35Downloads and executes remote code from an unrecognised host (pipe to shell) (test fixture / example file; documentation of a security skill)**Erwartet:** Persistence UND curl|bash beide als real findings erkannt, result >= caution. Kein PERSIST pattern_id erwartet für v1.
fixturesecurity skill -
low Dangerous commands
cmd-pipe-to-shellTEST-RESULTS-V1.md:37Downloads and executes remote code from an unrecognised host (pipe to shell) (test fixture / example file; documentation of a security skill)**Begründung:** v1 findet curl|bash als CRITICAL (explizit in Step 3 🔴) und crontab als "System modification" (Step 3 🟠 HIGH). Beide werden korrekt als by_design:false erkannt. Es gibt keinen PERSIS
fixturesecurity skill -
low Risky intent
intent-offensive-securityTEST-RESULTS-V1.md:85Offensive-security / dual-use content (legitimate for authorised testing; review intended use) (detector / deny-list definition; test fixture / example file)1. `pattern_id: CRED…001`, severity: `critical`, title: "Credential harvesting via environment variables", file: `src/config.js`, lines: 4-6, content: `process.env.API_KEY, process.env.DB_PASSWO
detectorfixture -
low Dangerous commands
cmd-pipe-to-shellTEST-RESULTS-V2.md:53Downloads and executes remote code from an unrecognised host (pipe to shell) (test fixture / example file; documentation of a security skill)**Erwartet:** Persistence UND curl|bash beide als real findings erkannt, result >= caution
fixturesecurity skill -
low Dangerous commands
cmd-pipe-to-shellTEST-RESULTS-V2.md:55Downloads and executes remote code from an unrecognised host (pipe to shell) (test fixture / example file; documentation of a security skill)**Begründung:** Persistence (PERSIST_001) explizit erkannt, curl|bash als CRITICAL erkannt, result=unsafe.
fixturesecurity skill -
low Dangerous commands
cmd-pipe-to-shellTEST-RESULTS-V2.md:292Downloads and executes remote code from an unrecognised host (pipe to shell) (test fixture / example file; documentation of a security skill)| 2 | Persistence/Crontab | ✅ PASS | PERSIST + curl\|bash erkannt, result=unsafe |
fixturesecurity skill
A further 38 matches are quotations in this security skill's documentation and are not counted as findings.
Files scanned: 36. Evidence is masked. Grey chips explain why severity was lowered.
Against the Agent Skills spec
- warning
description-no-whendescription does not say WHEN to use the skill (no "use when") - warning
body-longSKILL.md body ≈ 7620 tokens (recommended < 5000); move details to references/
Process rating: all ten parameters 58/100
- 0Result and completion. Does not say what the result is
- 0Inputs and preconditions. Does not say what the process needs to start
- 50When it triggers. No condition that starts the skill
- 60Tools and files. Uses tools (bash, web, git, python, node) that frontmatter does not declare
- 70Execution cost. Instruction body is 7620 tokens
- 85Steps. 47 steps, 1 vague phrases
- 100Failures and branches. 2 branches, has a failure section
- 100Consistency. Name and required fields are in place
- 100Running it twice. Mutating operations check current state
- 100Progress reporting. Reports progress
- medium Safety rules and hard prohibitions inside a skill: they belong in the system prompt, here they protect nothing
- low 11 top-level sections: this looks like several domains in one skill
- low The response is described with custom markup (11 tags): a typed call is more reliable
Everything here is measured from the skill text rather than judged by a model, so the numbers are checkable. A parameter weighs more when it is a more common reason for the process to stall.
Quality signals
- +5Description has no quoted example phrases that should trigger the skill
- +4Description does not say when NOT to use the skill (false activations)
- +3Output format is not stated: the model decides each time
- -239 emoji in the instructions: noise for the model
- +1No license
- +2Single-language instructions
- +3Description length 161: enough signal without eating the budget
- +4Structure: 41 headings
- +3Step-by-step instructions: 47 items
- +4Has examples (18 code blocks)
- +3All 3 scripts are documented
Quality base 70; lint remarks subtract, signals add up to 100. Result: 63.