FD agent-defender
Agent Defender - AI智能体安全防护平台。静态扫描+运行时防护+DLP脱敏。触发:(1)扫描Skill (2)启动防护 (3)DLP检测 (4)安全审计
As a process D 38/100 · Unfinished process — weak spots: steps, result and completion, when it triggers
What is at stake
The skill contains fragments that, in the wrong hands, cost money or data. Below: what the installer risks and what the author should do.
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 instructions or scripts send data out: environment variables, keys, file contents, chat history. You may never notice, because the agent performs the upload as "part of the task".
If the upload is not needed for the task, remove it: catalogs flag such skills and delist them. If it is needed, name the destination explicitly, say what leaves the machine, and give the user a switch.
Below is the worst case for this category. The finding here is medium: the guard saw a sign, not a proof.
The files contain someone else's key or token. If it is live, your agent will call third-party services under a stranger's identity; if it was revoked, the skill's scripts simply fail. Such a key often arrives with the author's whole workspace, personal data included.
The key is visible to everyone who downloaded the skill and has likely been copied by catalog-scanning bots already. Revoke it now, check bills and access logs, then reissue.
Below is the worst case for this category. The finding here is medium: the guard saw a sign, not a proof.
The text contains phrases like "ignore previous instructions" or "you are now…". That is an attempt to hijack the agent: it may break your rules, the system limits or company policy.
An honest skill does not need them: state the role and the rules directly without overriding other instructions. Otherwise catalog scanners and corporate filters will block the listing.
How to improve
- Address the high-severity findings: each costs 18 safety points. If one is a false positive, add the rule id to guard.allow in spec.yaml.
- Say in the description WHEN to use the skill ("use when…", example requests): that is the agent's main cue.
- 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 · 63
-
high Dangerous commands
cmd-pipe-to-shellintegrated_rules/RULES_INDEX.yaml:355Downloads and executes remote code from an unrecognised host (pipe to shell)- description: 检测 curl | bash 模式的远程代码执行
-
high Dangerous commands
cmd-pipe-to-shellintegrated_rules/RULES_INDEX.yaml:357Downloads and executes remote code from an unrecognised host (pipe to shell)name: 检测 curl | bash 模式的远程代码执行
Medium and low: 61
-
medium Dangerous commands
cmd-pipe-to-shellintegrated_rules/integrated_rules.json:326Downloads and executes remote code from an unrecognised host (pipe to shell) (string literal in code, not executed)".*wget|sh.*",
code literal -
medium Exfiltration
intent-browser-credential-storeintegrated_rules/integrated_rules.json:872Accesses a browser credential / cookie store (detector / deny-list definition)"raw_rule": "// YARA 规则:凭证窃取检测\n// 版本:1.0\n// 日期:2026-03-21\n// 覆盖:SSH 密钥、云凭证、浏览器密码、密钥链窃取\n\nrule Credential_SSH_Key {\n meta:\n description = \"检测 SSH 密钥窃取\"\n author = \"security-sadetector -
medium Secrets in code
secret-private-keyintegrated_rules/integrated_rules.json:900Private key material (key header without key body; quoted — discussed, not commanded)"$ssh_header = \"-----BEGIN PRIVATE KEY----- …
header onlyquoted -
medium Secrets in code
secret-private-keyintegrated_rules/integrated_rules.json:901Private key material (key header without key body; quoted — discussed, not commanded)"$ssh_header2 = \"-----BEGIN PRIVATE KEY----- …
header onlyquoted -
medium Exfiltration
exfil-read-secret-filesintegrated_rules/integrated_rules.json:907Reads credential / secret files (detector / deny-list definition)"raw_rule": "// YARA 规则:数据窃取外传检测\n// 版本:1.0\n// 日期:2026-03-21\n// 覆盖:SSH 密钥、AWS 凭证、浏览器数据、环境变量窃取\n\nrule SSH_Key_Exfiltration {\n meta:\n description = \"检测 SSH 密钥窃取行为\"\n author = \"sdetector -
medium Exfiltration
intent-browser-credential-storeintegrated_rules/integrated_rules.json:907Accesses a browser credential / cookie store (detector / deny-list definition)"raw_rule": "// YARA 规则:数据窃取外传检测\n// 版本:1.0\n// 日期:2026-03-21\n// 覆盖:SSH 密钥、AWS 凭证、浏览器数据、环境变量窃取\n\nrule SSH_Key_Exfiltration {\n meta:\n description = \"检测 SSH 密钥窃取行为\"\n author = \"sdetector -
medium Secrets in code
secret-private-keyintegrated_rules/integrated_rules.json:907Private key material (detector / deny-list definition; key header without key body)"raw_rule": "// YARA 规则:数据窃取外传检测\n// 版本:1.0\n// 日期:2026-03-21\n// 覆盖:SSH 密钥、AWS 凭证、浏览器数据、环境变量窃取\n\nrule SSH_Key_Exfiltration {\n meta:\n description = \"检测 SSH 密钥窃取行为\"\n author = \"sdetectorheader only -
medium Dangerous commands
cmd-pipe-to-shellintegrated_rules/integrated_rules.json:1113Downloads and executes remote code from an unrecognised host (pipe to shell) (string literal in code, not executed)"name": "检测 curl | bash 模式的远程代码执行",
code literal -
medium Dangerous commands
cmd-pipe-to-shellintegrated_rules/integrated_rules.json:1135Downloads and executes remote code from an unrecognised host (pipe to shell) (detector / deny-list definition)"raw_rule": "// YARA 规则:远程加载执行检测\n// 版本:1.0\n// 日期:2026-03-21\n// 覆盖:curl|bash, wget|bash, PowerShell IEX, Python urllib+exec\n\nrule Remote_Exec_Curl_Bash {\n meta:\n description = \"检测 curdetector -
medium Instruction override
en-ignore-previousINTEGRATION_REPORT.md:125Instruction-override phrase ("ignore previous instructions") (detector / deny-list definition)"selection": ["ignore previous instructions"],
detector -
medium Instruction override
en-ignore-previousINTEGRATION_REPORT.md:136Instruction-override phrase ("ignore previous instructions") (detector / deny-list definition)"patterns": [".*ignore previous instructions.*"],
detector -
medium Instruction override
en-ignore-previousREADME_SIGMA_YARA.md:74Instruction-override phrase ("ignore previous instructions") (quoted — discussed, not commanded)- "ignore previous instructions"
quoted -
medium Instruction override
en-ignore-previousREADME_SIGMA_YARA.md:88Instruction-override phrase ("ignore previous instructions") (detector / deny-list definition)"patterns": [".*ignore previous instructions.*", ".*disregard all safety.*"],
detector -
medium Exfiltration
intent-browser-credential-storerules_backup/backup_20260407_195520/credential_theft_integrated.json:28Accesses a browser credential / cookie store (detector / deny-list definition)"raw_rule": "// YARA 规则:凭证窃取检测\n// 版本:1.0\n// 日期:2026-03-21\n// 覆盖:SSH 密钥、云凭证、浏览器密码、密钥链窃取\n\nrule Credential_SSH_Key {\n meta:\n description = \"检测 SSH 密钥窃取\"\n author = \"security-sadetector -
medium Secrets in code
secret-private-keyrules_backup/backup_20260407_195520/data_exfil_integrated.json:24Private key material (key header without key body; quoted — discussed, not commanded)"$ssh_header = \"-----BEGIN PRIVATE KEY----- …
header onlyquoted -
medium Secrets in code
secret-private-keyrules_backup/backup_20260407_195520/data_exfil_integrated.json:25Private key material (key header without key body; quoted — discussed, not commanded)"$ssh_header2 = \"-----BEGIN PRIVATE KEY----- …
header onlyquoted -
medium Exfiltration
exfil-read-secret-filesrules_backup/backup_20260407_195520/data_exfil_integrated.json:31Reads credential / secret files (detector / deny-list definition)"raw_rule": "// YARA 规则:数据窃取外传检测\n// 版本:1.0\n// 日期:2026-03-21\n// 覆盖:SSH 密钥、AWS 凭证、浏览器数据、环境变量窃取\n\nrule SSH_Key_Exfiltration {\n meta:\n description = \"检测 SSH 密钥窃取行为\"\n author = \"sdetector -
medium Exfiltration
intent-browser-credential-storerules_backup/backup_20260407_195520/data_exfil_integrated.json:31Accesses a browser credential / cookie store (detector / deny-list definition)"raw_rule": "// YARA 规则:数据窃取外传检测\n// 版本:1.0\n// 日期:2026-03-21\n// 覆盖:SSH 密钥、AWS 凭证、浏览器数据、环境变量窃取\n\nrule SSH_Key_Exfiltration {\n meta:\n description = \"检测 SSH 密钥窃取行为\"\n author = \"sdetector -
medium Secrets in code
secret-private-keyrules_backup/backup_20260407_195520/data_exfil_integrated.json:31Private key material (detector / deny-list definition; key header without key body)"raw_rule": "// YARA 规则:数据窃取外传检测\n// 版本:1.0\n// 日期:2026-03-21\n// 覆盖:SSH 密钥、AWS 凭证、浏览器数据、环境变量窃取\n\nrule SSH_Key_Exfiltration {\n meta:\n description = \"检测 SSH 密钥窃取行为\"\n author = \"sdetectorheader only -
medium Dangerous commands
cmd-pipe-to-shellrules_backup/backup_20260407_195520/remote_load_integrated.json:8Downloads and executes remote code from an unrecognised host (pipe to shell) (string literal in code, not executed)"name": "检测 curl | bash 模式的远程代码执行",
code literal -
medium Dangerous commands
cmd-pipe-to-shellrules_backup/backup_20260407_195520/remote_load_integrated.json:30Downloads and executes remote code from an unrecognised host (pipe to shell) (detector / deny-list definition)"raw_rule": "// YARA 规则:远程加载执行检测\n// 版本:1.0\n// 日期:2026-03-21\n// 覆盖:curl|bash, wget|bash, PowerShell IEX, Python urllib+exec\n\nrule Remote_Exec_Curl_Bash {\n meta:\n description = \"检测 curdetector -
medium Dangerous commands
cmd-pipe-to-shellrules_backup/backup_20260407_195520/unknown_integrated.json:319Downloads and executes remote code from an unrecognised host (pipe to shell) (string literal in code, not executed)".*wget|sh.*",
code literal -
medium Exfiltration
intent-browser-credential-storerules_backup/backup_20260407_195535/credential_theft_integrated.json:28Accesses a browser credential / cookie store (detector / deny-list definition)"raw_rule": "// YARA 规则:凭证窃取检测\n// 版本:1.0\n// 日期:2026-03-21\n// 覆盖:SSH 密钥、云凭证、浏览器密码、密钥链窃取\n\nrule Credential_SSH_Key {\n meta:\n description = \"检测 SSH 密钥窃取\"\n author = \"security-sadetector -
medium Secrets in code
secret-private-keyrules_backup/backup_20260407_195535/data_exfil_integrated.json:24Private key material (key header without key body; quoted — discussed, not commanded)"$ssh_header = \"-----BEGIN PRIVATE KEY----- …
header onlyquoted -
medium Secrets in code
secret-private-keyrules_backup/backup_20260407_195535/data_exfil_integrated.json:25Private key material (key header without key body; quoted — discussed, not commanded)"$ssh_header2 = \"-----BEGIN PRIVATE KEY----- …
header onlyquoted -
medium Exfiltration
exfil-read-secret-filesrules_backup/backup_20260407_195535/data_exfil_integrated.json:31Reads credential / secret files (detector / deny-list definition)"raw_rule": "// YARA 规则:数据窃取外传检测\n// 版本:1.0\n// 日期:2026-03-21\n// 覆盖:SSH 密钥、AWS 凭证、浏览器数据、环境变量窃取\n\nrule SSH_Key_Exfiltration {\n meta:\n description = \"检测 SSH 密钥窃取行为\"\n author = \"sdetector -
medium Exfiltration
intent-browser-credential-storerules_backup/backup_20260407_195535/data_exfil_integrated.json:31Accesses a browser credential / cookie store (detector / deny-list definition)"raw_rule": "// YARA 规则:数据窃取外传检测\n// 版本:1.0\n// 日期:2026-03-21\n// 覆盖:SSH 密钥、AWS 凭证、浏览器数据、环境变量窃取\n\nrule SSH_Key_Exfiltration {\n meta:\n description = \"检测 SSH 密钥窃取行为\"\n author = \"sdetector -
medium Secrets in code
secret-private-keyrules_backup/backup_20260407_195535/data_exfil_integrated.json:31Private key material (detector / deny-list definition; key header without key body)"raw_rule": "// YARA 规则:数据窃取外传检测\n// 版本:1.0\n// 日期:2026-03-21\n// 覆盖:SSH 密钥、AWS 凭证、浏览器数据、环境变量窃取\n\nrule SSH_Key_Exfiltration {\n meta:\n description = \"检测 SSH 密钥窃取行为\"\n author = \"sdetectorheader only -
medium Exfiltration
intent-browser-credential-storerules/credential_theft_integrated.json:28Accesses a browser credential / cookie store (detector / deny-list definition)"raw_rule": "// YARA 规则:凭证窃取检测\n// 版本:1.0\n// 日期:2026-03-21\n// 覆盖:SSH 密钥、云凭证、浏览器密码、密钥链窃取\n\nrule Credential_SSH_Key {\n meta:\n description = \"检测 SSH 密钥窃取\"\n author = \"security-sadetector -
medium Secrets in code
secret-private-keyrules/data_exfil_integrated.json:24Private key material (key header without key body; quoted — discussed, not commanded)"$ssh_header = \"-----BEGIN PRIVATE KEY----- …
header onlyquoted -
medium Secrets in code
secret-private-keyrules/data_exfil_integrated.json:25Private key material (key header without key body; quoted — discussed, not commanded)"$ssh_header2 = \"-----BEGIN PRIVATE KEY----- …
header onlyquoted -
medium Exfiltration
exfil-read-secret-filesrules/data_exfil_integrated.json:31Reads credential / secret files (detector / deny-list definition)"raw_rule": "// YARA 规则:数据窃取外传检测\n// 版本:1.0\n// 日期:2026-03-21\n// 覆盖:SSH 密钥、AWS 凭证、浏览器数据、环境变量窃取\n\nrule SSH_Key_Exfiltration {\n meta:\n description = \"检测 SSH 密钥窃取行为\"\n author = \"sdetector -
medium Exfiltration
intent-browser-credential-storerules/data_exfil_integrated.json:31Accesses a browser credential / cookie store (detector / deny-list definition)"raw_rule": "// YARA 规则:数据窃取外传检测\n// 版本:1.0\n// 日期:2026-03-21\n// 覆盖:SSH 密钥、AWS 凭证、浏览器数据、环境变量窃取\n\nrule SSH_Key_Exfiltration {\n meta:\n description = \"检测 SSH 密钥窃取行为\"\n author = \"sdetector -
medium Secrets in code
secret-private-keyrules/data_exfil_integrated.json:31Private key material (detector / deny-list definition; key header without key body)"raw_rule": "// YARA 规则:数据窃取外传检测\n// 版本:1.0\n// 日期:2026-03-21\n// 覆盖:SSH 密钥、AWS 凭证、浏览器数据、环境变量窃取\n\nrule SSH_Key_Exfiltration {\n meta:\n description = \"检测 SSH 密钥窃取行为\"\n author = \"sdetectorheader only -
medium Dangerous commands
cmd-pipe-to-shellrules/remote_load_integrated.json:8Downloads and executes remote code from an unrecognised host (pipe to shell) (string literal in code, not executed)"name": "检测 curl | bash 模式的远程代码执行",
code literal -
medium Dangerous commands
cmd-pipe-to-shellrules/remote_load_integrated.json:30Downloads and executes remote code from an unrecognised host (pipe to shell) (detector / deny-list definition)"raw_rule": "// YARA 规则:远程加载执行检测\n// 版本:1.0\n// 日期:2026-03-21\n// 覆盖:curl|bash, wget|bash, PowerShell IEX, Python urllib+exec\n\nrule Remote_Exec_Curl_Bash {\n meta:\n description = \"检测 curdetector -
medium Dangerous commands
cmd-pipe-to-shellrules/unknown_integrated.json:319Downloads and executes remote code from an unrecognised host (pipe to shell) (string literal in code, not executed)".*wget|sh.*",
code literal -
low Dangerous commands
cmd-background-processdefenderctl.sh:65Starts a background / autostarted processnohup python3 "$RESEARCH_DAEMON" > "$LOG_FILE" 2>&1 &
-
low Dangerous commands
cmd-pipe-to-shellintegrated_rules/integrated_rules.json:325Downloads and executes remote code from an unrecognised host (pipe to shell) (detector / deny-list definition; string literal in code, not executed)".*curl|bash.*",
detectorcode literal -
low Dangerous commands
cmd-persistenceintegrated_rules/integrated_rules.json:1004Persistence mechanism (cron / launchd / scheduled task / autorun registry) (detector / deny-list definition; string literal in code, not executed)"raw_rule": "// YARA 规则:持久化攻击检测\n// 版本:1.0\n// 日期:2026-03-21\n// 覆盖:systemd 服务、crontab、启动项、注册表后门\n\nrule Persistence_Systemd_Service {\n meta:\n description = \"检测 systemd 服务持久化\"\n adetectorcode literal -
low Secrets in code
secret-high-entropy-tokenintegrated_rules/integrated_rules.json:1015High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)"id": "YARA…ion",
quoted -
low Secrets in code
secret-high-entropy-tokenintegrated_rules/integrated_rules.json:1038High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)"original_id": "YARA…ion",
quoted -
low Dangerous commands
cmd-pipe-to-shellintegrated_rules/integrated_rules.json:1117Downloads and executes remote code from an unrecognised host (pipe to shell) (detector / deny-list definition; string literal in code, not executed)"description": "检测 curl | bash 模式的远程代码执行",
detectorcode literal -
low Secrets in code
secret-high-entropy-tokenintegrated_rules/RULES_INDEX.yaml:329High-entropy token-like string (may be an id, hash or a credential)id: YARA…ion
-
low Instruction override
en-ignore-previousINTEGRATION_REPORT.md:173Instruction-override phrase ("ignore previous instructions") (detector / deny-list definition; documentation table row)| Prompt Injection | `ignore all previous instructions` | 检测到威胁 | ✅ 检测到 | PASS |
detectortable -
low Dangerous commands
cmd-cron-mentionQUICK_REFERENCE.md:113Mentions editing / listing crontabcrontab -e
-
low Dangerous commands
cmd-cron-mentionREADME_SIGMA_YARA.md:278Mentions editing / listing crontabcrontab -e
-
low Dangerous commands
cmd-background-processREADME_SIGMA_YARA.md:305Starts a background / autostarted processsudo systemctl enable defender-rules.service
-
low Secrets in code
secret-high-entropy-tokenrules_backup/backup_20260407_195520/evasion_integrated.json:7High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)"id": "YARA…ion",
quoted -
low Secrets in code
secret-high-entropy-tokenrules_backup/backup_20260407_195520/evasion_integrated.json:30High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)"original_id": "YARA…ion",
quoted -
low Dangerous commands
cmd-persistencerules_backup/backup_20260407_195520/persistence_integrated.json:29Persistence mechanism (cron / launchd / scheduled task / autorun registry) (detector / deny-list definition; string literal in code, not executed)"raw_rule": "// YARA 规则:持久化攻击检测\n// 版本:1.0\n// 日期:2026-03-21\n// 覆盖:systemd 服务、crontab、启动项、注册表后门\n\nrule Persistence_Systemd_Service {\n meta:\n description = \"检测 systemd 服务持久化\"\n adetectorcode literal -
low Dangerous commands
cmd-pipe-to-shellrules_backup/backup_20260407_195520/remote_load_integrated.json:12Downloads and executes remote code from an unrecognised host (pipe to shell) (detector / deny-list definition; string literal in code, not executed)"description": "检测 curl | bash 模式的远程代码执行",
detectorcode literal -
low Dangerous commands
cmd-pipe-to-shellrules_backup/backup_20260407_195520/unknown_integrated.json:318Downloads and executes remote code from an unrecognised host (pipe to shell) (detector / deny-list definition; string literal in code, not executed)".*curl|bash.*",
detectorcode literal -
low Secrets in code
secret-high-entropy-tokenrules_backup/backup_20260407_195535/evasion_integrated.json:7High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)"id": "YARA…ion",
quoted -
low Secrets in code
secret-high-entropy-tokenrules_backup/backup_20260407_195535/evasion_integrated.json:30High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)"original_id": "YARA…ion",
quoted -
low Dangerous commands
cmd-persistencerules_backup/backup_20260407_195535/persistence_integrated.json:29Persistence mechanism (cron / launchd / scheduled task / autorun registry) (detector / deny-list definition; string literal in code, not executed)"raw_rule": "// YARA 规则:持久化攻击检测\n// 版本:1.0\n// 日期:2026-03-21\n// 覆盖:systemd 服务、crontab、启动项、注册表后门\n\nrule Persistence_Systemd_Service {\n meta:\n description = \"检测 systemd 服务持久化\"\n adetectorcode literal -
low Secrets in code
secret-high-entropy-tokenrules/evasion_integrated.json:7High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)"id": "YARA…ion",
quoted -
low Secrets in code
secret-high-entropy-tokenrules/evasion_integrated.json:30High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)"original_id": "YARA…ion",
quoted -
low Dangerous commands
cmd-persistencerules/persistence_integrated.json:29Persistence mechanism (cron / launchd / scheduled task / autorun registry) (detector / deny-list definition; string literal in code, not executed)"raw_rule": "// YARA 规则:持久化攻击检测\n// 版本:1.0\n// 日期:2026-03-21\n// 覆盖:systemd 服务、crontab、启动项、注册表后门\n\nrule Persistence_Systemd_Service {\n meta:\n description = \"检测 systemd 服务持久化\"\n adetectorcode literal -
low Dangerous commands
cmd-pipe-to-shellrules/remote_load_integrated.json:12Downloads and executes remote code from an unrecognised host (pipe to shell) (detector / deny-list definition; string literal in code, not executed)"description": "检测 curl | bash 模式的远程代码执行",
detectorcode literal
…and 1 more
Files scanned: 80. 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")
Process rating: all ten parameters 38/100
- 0Steps. Prose only: no discrete steps
- 0Result and completion. Does not say what the result is
- 0Inputs and preconditions. Does not say what the process needs to start
- 0Failures and branches. Linear process with no failure handling
- 0Progress reporting. Says nothing while it works
- 20When it triggers. No condition that starts the skill
- 100Tools and files. No external tools needed
- 100Consistency. Name and required fields are in place
- 100Execution cost. Instruction body is 146 tokens
- 100Running it twice. No mutating operations
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)
- +3Description length 84: 120–800 characters recommended
- +3No numbered steps or checklist
- +3Output format is not stated: the model decides each time
- +1No license
- +2Single-language instructions
- +4Structure: 4 headings
- +4Has examples (1 code blocks)
Quality base 70; lint remarks subtract, signals add up to 100. Result: 66.