Back to skill

Security audit

Tdd

Security checks for vulnerabilities and agentic risk

Overview

This is a coherent TDD guidance skill with ordinary testing advice; its main risks are broad activation terms and unpinned/on-demand test command examples.

Install this if you want Chinese-language TDD workflow guidance. For safer use, keep test tools pinned in the project, run local package scripts or npx --no-install where practical, and be aware it may activate on broad testing or coverage requests.

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
package.json:8
Finding

Unpinned Third-Party Dependencies and Potential On-Demand Package Execution

Content
View full analysis
=10.0.0", "iterative-loop": ">=1.0.0" } ``` `SKILL.md:171`: ```text - JS/TS: npx vitest --coverage / npx jest --coverage ``` ### Technical Analysis The `>=` version constraints permit any future release satisfying the specified minimum version to be installed. The project contains no reviewed lockfile or integrity metadata that would constrain dependency resolution to known artifacts. The documented `npx vitest` and `npx jest` commands do not require a project-local, pinned binary. Depending on the npm/npx version and local installation state, `npx` can offer to retrieve and execute a package from the configured registry. Package CLI code and installation lifecycle scripts execute with the privileges of the user or Agent running the command. This creates a supply-chain trust boundary in which newly published, compromised, or incorrectly resolved packages may execute without being represented in the audited project contents. ### Attack Path 1. An attacker compromises the publisher account, release process, registry entry, or transitive dependency of one of the declared dependencies or an `npx`-invoked package. 2. The attacker publishes a malicious release that satisfies an open-ended `>=` constraint, or causes an unpinned `npx` invocation to resolve to compromised package content. 3. A user or Agent installs the project dependencies or runs the documented coverage command without a reviewed lockfile and local-only execution restriction. 4. The package manager retrieves the attacker-controlled release. 5. Malicious lifecycle scripts or CLI entry-point code execute with the permissions of the invoking user or ...[truncated 609 chars]
Remediation
View remediation
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (7)

Hidden Instructions

High
Category
Prompt Injection
Confidence
60% confidence
Finding

Hidden instructions were detected in comments or invisible text. These could contain malicious directives. Manual review is recommended.

Content

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

md
---
name: tdd
version: 2.1.0
description: "Apply test-driven development with Red-Green-Refactor cycle and vertical slice tracer bullet method"

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The trigger list includes broad phrases like TDD, 测试驱动, 单元测试, 集成测试, and coverage-related terms that are common across many normal coding requests. Overbroad auto-activation can cause this skill to attach in unintended contexts, influencing agent behavior and potentially causing unnecessary code/test generation or command suggestions in unrelated tasks.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The trigger list is broad enough to match many ordinary software-development requests, such as generic references to unit testing, integration testing, writing tests, or coverage. In an agent skill system, this can cause the skill to activate outside narrowly intended TDD scenarios, increasing the chance of inappropriate routing, prompt hijacking surface, or unexpected behavior being injected into normal coding workflows.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
92% confidence
Finding

This markdown file presents all instructional content in Chinese and does not provide any user opt-in, alternate language option, or justification for a Chinese-only locale. Under the policy, forcing a specific language without user choice is a natural-language policy concern.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
84% confidence
Finding

该文件是纯自然语言说明文档,标题与正文均使用中文,但没有说明这是面向特定中文受众的区域性资料,也没有提供语言选择或用户 opt-in。按规则,强制单一语言且缺少明确理由,属于语言/locale 政策风险。

Content

No source excerpt is available for this finding.