Back to skill

Security audit

bloat-detector

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious because it reports undeclared Git and network checks, plus operations that may overwrite or delete existing files; the review evidence is partial.

Consider the reported registry requests and possible file overwrites or deletions before installing. The skill’s stated purpose does not clearly cover all reported behavior. The skillspector scan is partial because some referenced paths were missing, so the evidence does not establish that all behavior was inspected; the verdict remains suspicious.

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
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • 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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (8)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
93% confidence
Finding

The code identifies files associated with inactive authors rather than detecting any declared form of codebase bloat. Author inactivity does not establish that code is dead, duplicated, overly complex, or documentation-heavy. This is a distinct maintenance-risk analysis, not merely an implementation detail of the stated scans. No network access or destructive behavior is evident.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

The supplied chunk performs repository branch-hygiene analysis, not dead-code, duplication, complexity, or documentation analysis. Although related broadly to cleanup, this is a distinct, undeclared capability rather than an implementation detail of the specified scans. Despite its comment, it does not check whether branches are merged. It only reads metadata and prints results; it does not delete branches or modify files.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
86% confidence
Finding

The dependency checks are plausibly related to cleanup, but the snippet primarily checks for allegedly missing or nonexistent packages, not dead code, duplication, complexity, or documentation bloat. More importantly, npm view contacts the configured npm registry for each dependency—an external resource interaction not disclosed by the description or declared permissions. The temporary file and local package inventory are supporting implementation details, not independent mismatches.

Content

No source excerpt is available for this finding.

The dependency check contacts an npm registry, introducing network access beyond the declared bloat-analysis purpose.

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

The npm check makes registry requests using names extracted from the project's dependencies, without an explicit network opt-in. Although package validation fits the analysis task, silently crossing the local-to-network boundary can disclose internal dependency names to the configured registry.

Content

No source excerpt is available for this finding.

The dependency check sends project dependency names to an npm registry without a privacy warning.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

Each npm lookup transmits a project dependency name to the configured registry, potentially exposing private package scopes or internal project naming. Suppressing command errors does not prevent these requests, and the module gives no privacy warning or approval step.

Content

No source excerpt is available for this finding.

The module directs documentation deletion without warning about potential loss of unique content.

Medium
Category
Output Handling
Confidence
92% confidence
Finding

The module's action table instructs the agent to delete one document when similarity exceeds 90%, keeping the more recent file. High similarity does not establish that either document is dispensable, and the detection-focused description provides no warning that this action can discard unique information.

Content

No source excerpt is available for this finding.

Analysis commands overwrite fixed filenames without warning that existing files will be truncated.

Medium
Category
Output Handling
Confidence
99% confidence
Finding

Shell redirection truncates existing recent.txt and stale_files.txt files in the working directory without checking ownership or requesting approval. A nominally analytical scan can therefore destroy unrelated work, and pre-existing symlinks could redirect writes to other files accessible to the agent.

Content

No source excerpt is available for this finding.

The stale-file scan overwrites and deletes a fixed working-directory file without warning.

Medium
Category
Output Handling
Confidence
99% confidence
Finding

The scan truncates a fixed recent_files.txt path and subsequently removes it, destroying any pre-existing file with that name. If that path is a symlink, the initial write can also overwrite its target, making an apparently read-only scan unexpectedly destructive.

Content

No source excerpt is available for this finding.