Back to skill

Security audit

Code Dev Toolkit

Security checks for vulnerabilities and agentic risk

Overview

This is a code workflow skill with mostly purpose-aligned behavior, but it asks for broad command execution and long-lived audit/change logging without enough scoping or data-minimization guidance.

Install only if you are comfortable giving the agent repository read access and local command execution for development workflows. Before using it on sensitive code, configure narrow repository/path scope, require explicit approval for commands and CI/CD actions, avoid broad track_all_changes logging, shorten audit retention, and use pinned dependencies in an isolated environment.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:397
Finding

Unpinned Third-Party Python Dependencies

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 397-400
Vulnerability Type: Supply-chain risk from mutable, unverified dependencies
Risk Level: Medium

Vulnerable Code Snippet

markdown
| ruff(可选) | Linter | 规范检查 | `pip install ruff` |
| pytest(可选) | 测试框架 | 测试覆盖 | `pip install pytest` |
| mypy(可选) | 类型检查 | 类型门禁 | `pip install mypy` |
| bandit(可选) | 安全扫描 | 安全门禁 | `pip install bandit` |

Technical Analysis

The Skill recommends installing four third-party Python packages without fixed versions, cryptographic hashes, a lockfile, or an explicitly approved package index. Consequently, the package content resolved by pip may differ from the content available when the Skill was audited.

Although the listed package names are established projects and the dependencies are described as optional, installing mutable packages creates a supply-chain trust boundary. A compromised package release, compromised transitive dependency, malicious package-index configuration, or dependency substitution could introduce attacker-controlled code. Such code may execute during installation or when the quality-gate commands later invoke the installed tools.

Attack Path

  1. A user or Agent follows the dependency instructions in SKILL.md.
  2. The environment executes one or more unpinned pip install commands.
  3. pip resolves the latest available package versions and their transitive dependencies from the configured index.
  4. An attacker compromises a package release, a transitive dependency, or the package source used by that environment.
  5. The malicious component is downloaded and installed without hash verification.
  6. Attacker-controlled code executes during installation or when the installed quality tools are subsequently invoked.

Impact Assessment

Successful exploitation could execute arbitrary code with the privileges of the user, CI runner, or AI Agent performing the installation. Depen ...[truncated 550 chars]

Remediation
View remediation

Remediation Suggestions

  1. Pin every direct dependency to a reviewed, exact version rather than resolving the latest release.
  2. Pin transitive dependencies through a committed lockfile generated by a controlled process.
  3. Record and enforce cryptographic hashes, such as with pip's --require-hashes option.
  4. Configure an approved package index or internal artifact mirror rather than relying on an unspecified environment-level index.
  5. Install dependencies in an isolated virtual environment or least-privileged CI container.
  6. Scan and periodically review pinned dependencies before deliberately updating them.
  7. Separate dependency installation from quality-gate execution and prevent unreviewed dependency updates in release jobs.
  8. Replace the current examples with hardened commands or direct users to a version-controlled, hash-verified requirements file.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (6)

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
81% confidence
Finding

The display name, summary, and all user-facing instructions are presented exclusively in Chinese, with no indication that users may choose another language. This creates a natural-language locale constraint that is neither optional nor justified as region-specific.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill advertises broad code-development and workflow capabilities but does not define clear invocation boundaries, trigger phrases, or scope limits. In an agent environment with read and exec tools, this ambiguity can cause over-broad activation and unintended handling of repositories, tasks, or CI/CD actions the user did not explicitly authorize.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The document describes command execution, file creation, audit logging, and CI/CD/network-integrated behavior without an upfront warning that the skill may modify the filesystem, execute local commands, or send data to external services. This is dangerous because users or host agents may invoke it expecting analysis-only behavior while the skill's examples normalize impactful actions.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill normalizes storing audit logs and execution artifacts in plain language without clearly limiting what data may be captured. In a code-development context, logs can easily include source code, secrets in command output, file paths, commit metadata, or user prompts, creating avoidable data retention and disclosure risk.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The audit configuration explicitly enables persistent logging with a long retention window and no sensitivity scoping. In enterprise repositories, this can retain sensitive code, security findings, credential material surfaced by tools, and operational metadata far beyond necessity, increasing blast radius if logs are accessed or exfiltrated.

Content

No source excerpt is available for this finding.

Ssd 3

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The example configuration's track_all_changes: true encourages indiscriminate capture of repository activity and related artifacts. In this skill's context, that can include proprietary code, security scan output, reviewer comments, and possibly sensitive tokens or environment-derived values, making the example itself a risky default pattern.

Content

No source excerpt is available for this finding.