Back to skill

Security audit

采购舞弊红旗筛查

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marked this skill suspicious with medium confidence because scanners report an undeclared feedback workflow and an instruction to download and run an unpinned installer; the evidence is incomplete because Skillspector’s analysis was partial.

Consider avoiding installation until the extra feedback behavior is explained and the installer can be verified from a fixed, trusted release. Skillspector’s scan is marked partial, and its reported approval-timing flaw may cause procurement issues to be missed; the results do not establish that the skill is safe.

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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • 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
Findings (9)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The supplied command performs a feedback-related operation rather than procurement fraud screening. Its hard-coded satisfaction rating is a substantive behavior not disclosed in the description, rather than merely an implementation detail of a declared analysis. The script's internals are unavailable, so additional effects cannot be established from this chunk.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
93% confidence
Finding

The supplied script's primary purpose is preparing user feedback, rather than performing or directly implementing the declared procurement red-flag checks. Reading audit outputs and counting findings are related supporting operations, but the satisfaction-rating, comment, and attribution workflow is a separate capability not disclosed in the description. The script only prints the report locally; there is no evidence of automatic submission or network transmission.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
91% confidence
Finding

The update instructions recommend downloading an installer from a mutable GitHub main branch and executing it without a pinned revision or integrity verification. Although execution is explicitly left to the user and inspection is encouraged, a compromised upstream repository could supply code running with the user's access to sensitive procurement and employee data.

Content

No source excerpt is available for this finding.

Unvalidated Output Injection

High
Category
Output Handling
Confidence
95% confidence
Finding

Model output is used without validation or sanitization. Unvalidated output injected into downstream contexts (SQL, shell, HTML) enables injection attacks and arbitrary code execution.

Content

Scanner excerpt · tests/test_procurement_audit.py (reported line 25)May include surrounding context.

python
def run_example(self):
        temp = tempfile.TemporaryDirectory()
        output = Path(temp.name) / "out"
        completed = subprocess.run(
            [sys.executable, str(SCRIPT), "--input-dir", str(INPUT), "--config", str(CONFIG), "--output", str(output)],
            capture_output=True, text=True, encoding="utf-8", errors="replace", env={**os.environ, "PYTHONIOENCODING": "utf-8"}
        )

Env Variable Harvesting

High
Category
Data Exfiltration
Confidence
60% confidence
Finding

Code enumerates, copies, or searches environment variables for secrets. Bulk environment access can collect credentials unrelated to the skill's stated purpose.

Content

Scanner excerpt · tests/test_procurement_audit.py (reported line 27)May include surrounding context.

python
output = Path(temp.name) / "out"
        completed = subprocess.run(
            [sys.executable, str(SCRIPT), "--input-dir", str(INPUT), "--config", str(CONFIG), "--output", str(output)],
            capture_output=True, text=True, encoding="utf-8", errors="replace", env={**os.environ, "PYTHONIOENCODING": "utf-8"}
        )
        self.assertEqual(completed.returncode, 0, completed.stderr)
        return temp, output

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

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.

Approval-timing checks are weaker than their documented policy: strict mode suppresses violations, and same-day grace also exempts next-day approvals.

Medium
Category
Excessive Agency
Confidence
100% confidence
Finding

When an order precedes approval, strict mode executes only pass, suppressing precisely the violation it is documented to detect; the default same-day grace also suppresses approvals one calendar day late through gap_days <= 1. In a procurement-fraud screening tool, these false negatives can conceal unauthorized purchasing and reduce investigation referrals, although independent receipt and payment checks remain active and the tool does not authorize transactions.

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 · tests/test_procurement_audit.py (reported line 25)May include surrounding context.

python
def run_example(self):
        temp = tempfile.TemporaryDirectory()
        output = Path(temp.name) / "out"
        completed = subprocess.run(
            [sys.executable, str(SCRIPT), "--input-dir", str(INPUT), "--config", str(CONFIG), "--output", str(output)],
            capture_output=True, text=True, encoding="utf-8", errors="replace", env={**os.environ, "PYTHONIOENCODING": "utf-8"}
        )

The dashboard specifies Chinese-only output without a user language choice or a region-specific justification.

Low
Category
Output Handling
Confidence
94% confidence
Finding

The dashboard docstring explicitly specifies “全中文” (entirely in Chinese), and its user-facing report text is hard-coded accordingly. No language opt-in or regional requirement is provided, so the report language is imposed regardless of the user's preference.

Content

No source excerpt is available for this finding.