Back to skill

Security audit

code-master

Security checks for vulnerabilities and agentic risk

Overview

The scanners found two confirmed medium severity risks in project inspection and file output, so this skill is rated suspicious and merits review before installing.

Consider the two confirmed project inspection and file output risks before installing, especially if you will run the probe on projects containing symlinks or use its output option. The scan covered all 14 listed components, but dependency inspection was not requested, so dependency risks were not assessed.

Vulnerability Patterns
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • 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
Findings (4)

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: file_read, file_write.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

The package manifest reader follows symlinks that the scanner reports as not followed.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

Although directory traversal skips symlinks, the separate package.json reader uses isfile and open, both of which follow them. An attacker-controlled project can therefore cause reads outside the project or point at an oversized JSON file to exhaust resources; the output reveals only limited script-presence information, not arbitrary file contents.

Content

No source excerpt is available for this finding.

The output option can overwrite project files despite the explicit no-modification guarantee.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

The user-controlled --out path is opened in write mode, silently truncating existing files and following destination symlinks. This contradicts the probe's no-project-modification guarantee and can destroy project files when an agent invokes it under the read-only exploration workflow, although exploitation requires influencing the output destination.

Content

No source excerpt is available for this finding.

Dynamic attribute access via getattr()

Low
Category
Dangerous Code Execution
Confidence
50% confidence
Finding

Dynamic getattr() with a non-literal attribute name can access arbitrary object attributes, potentially bypassing access controls.

Content

Scanner excerpt · scripts/handoff.py (reported line 97)May include surrounding context.

python
if args.template_only:
        content = TEMPLATE
    else:
        missing = [f"--{k}" for k, _ in SECTIONS if not getattr(args, k)]
        if missing:
            parser.error("缺少必填内容:" + ", ".join(missing))
        content = render(vars(args))