Back to skill

Security audit

Skill Improver

Security checks for vulnerabilities and agentic risk

Overview

The skill is rated suspicious because scanners report a risky documentation-editing behavior and incomplete inspection of some references; this is a review warning, not a finding of malicious intent.

Consider the suspicious verdict and incomplete scan coverage before installing. In particular, review the reported out-of-package write risk and broad documentation edits, and do not treat the incomplete inspection as evidence that unexamined material is safe.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/improve.py
Finding

Package-controlled symbolic links allow writes outside the authorized package

Content
View full analysis

Impact

The process can overwrite or append metadata to an outside file writable by the user, violating the documented package-only write boundary and compromising that file's integrity.

Vulnerability Patterns
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (6)

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 54)May include surrounding context.

md
1. **这是可解析的技能包吗?** 有 `SKILL.md` 且 frontmatter 能读出 name——否则直接退出,不猜。

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 131)May include surrounding context.

md
- **失败时的处理**:读不到 `SKILL.md`、找不到评测器、评测器报错——一律打印明确的错误信息并以非 0 退出,不静默继续、不猜测。因为静默失败会让人以为改成功了。

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · demo/run_demo.py (reported line 70)May include surrounding context.

python
reviewer = I.find_reviewer(None)
    if reviewer:
        p = subprocess.run([sys.executable, reviewer, root, "--run"],
                           capture_output=True, text=True, encoding="utf-8")
        for line in (p.stdout + p.stderr).splitlines():
            if "结构制" in line:

The documentation-drift fixer claims to remove unimplemented example lines but replaces every documentation line containing a flagged parameter.

Medium
Category
Excessive Agency
Confidence
96% confidence
Finding

The fixer replaces every SKILL.md line containing a flagged parameter substring, without verifying that the line is an executable example or the specific occurrence reported by the reviewer. This can erase legitimate instructions, security warnings, metadata, or references to longer parameter names, compromising documentation integrity; requiring apply mode and the explicit --fix-doc-drift option reduces exposure but does not constrain the destructive edit.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/improve.py (reported line 186)May include surrounding context.

python
def run_review(reviewer, root):
    p = subprocess.run([sys.executable, reviewer, root, "--run", "--json"],
                       capture_output=True, text=True, encoding="utf-8", timeout=300)
    try:
        obj = json.loads(p.stdout)

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · tests/run_golden.py (reported line 53)May include surrounding context.

python
if kind == "cli":
        # 传一个没有 SKILL.md 的目录,验证「不是技能包就拒绝」
        target = os.path.dirname(root)
        p = subprocess.run([sys.executable, os.path.join(PKG, "scripts", "improve.py"),
                            target], capture_output=True, text=True, encoding="utf-8")
        if case["expect"] == "exit_nonzero" and p.returncode != 0:
            return True, "退出码 %d(预期非 0)" % p.returncode