Back to skill

Security audit

rust-review

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious because scanners found guidance to install a third-party tool and overwrite local files without warning; the evidence is incomplete.

Consider whether the Rust review guidance is useful enough to install despite the reported silent installation and file overwrite risks. Review the relevant instructions first, and be aware the scan was partial: it covered 26 of 28 components, with two files only partially inspected and some referenced paths missing. The verdict is suspicious, not a finding that the author is malicious.

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
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (9)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The supplied code performs a numeric aggregation. It contains no logic for inspecting unsafe blocks, detecting ownership problems, or assessing Cargo dependencies, so its primary behavior differs from the declared auditing purpose. No external resource access or permission use is shown.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The supplied function performs a state update and invokes persistence; it does not inspect Rust source, analyze ownership or unsafe blocks, or assess Cargo dependencies. Releasing the mutex before awaiting is relevant to Rust concurrency practices, but does not make the function an auditor. The implementation of save_to_disk is not supplied, so the precise filesystem effects cannot be verified.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The supplied chunk contains no code inspection, ownership analysis, unsafe-block detection, or Cargo dependency checks. Although it uses Rust syntax, that alone does not implement the declared auditing purpose. No resource access or permission use is shown.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The supplied function performs request-response processing and contains no visible code inspection, ownership analysis, unsafe-block detection, or Cargo dependency checks. Its visible purpose differs materially from the declared auditing purpose. The implementation of compute_response is not supplied, so no additional behavior or resource access can be established.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The supplied code implements data-processing behavior, not analysis of Rust source or Cargo dependencies. It contains no audit logic for unsafe blocks, ownership, or dependency risks. Although it could be an illustrative Rust example within a larger skill, the supplied chunk alone does not demonstrate the declared auditing purpose. No external resource access or permission violation is visible.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
93% confidence
Finding

The supplied function performs application-level asynchronous request processing. It does not inspect Rust source, analyze ownership or unsafe blocks, or examine Cargo dependencies. Although it could be an illustrative review example, the supplied chunk alone does not implement the declared auditing purpose. No external resource access or permission violation is shown.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · modules/test-slop.md (reported line 208)May include surrounding context.

// SLOP #[test] fn test_api_call() { let resp = reqwest::blocking::get("https://api.example.com/data").unwrap(); // real network call; flaky, slow, leaks }

text

The mutation-testing workflow installs a third-party executable without warning about persistent changes to the user's environment.

Medium
Category
Output Handling
Confidence
87% confidence
Finding

The workflow directs an auditing agent to install cargo-mutants without an approval step or warning that installation persists in the user's Cargo environment. Installing a legitimate testing tool fits the review purpose, but silently expanding a review into software installation introduces avoidable environment changes and third-party build-code execution.

Content

No source excerpt is available for this finding.

Detection commands overwrite local files without warning.

Low
Category
Output Handling
Confidence
98% confidence
Finding

The detection commands redirect output into predictable relative paths, used.txt and deps.txt, truncating existing files without checking. An agent following this ostensibly diagnostic review workflow could therefore destroy unrelated local content; existing symlinks could also redirect the writes.

Content

No source excerpt is available for this finding.