Back to skill

Security audit

ia-simplifying-code

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill benign because its reported findings appear consistent with its stated purpose, though the scanners note a possible purpose mismatch and one unresolved reference leaves evidence incomplete.

The verdict is benign with medium confidence, not a guarantee of safety. Before installing, consider whether evaluation and negative-case diagnostics fit what you want from a code-simplification skill, and check the unresolved local reference; the scan did not fully establish what it points to.

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
  • Rogue AgentSelf-Modification, Session Persistence
  • 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 (3)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The supplied commands target evaluation and diagnostics of a named skill. They do not show code cleanup, refactoring, or a simplification report. This is a materially different primary purpose from the declared user-facing capability. The implementation of distiller.py is not supplied, so further behavior cannot be established.

Content

No source excerpt is available for this finding.

Self-Modification

High
Category
Rogue Agent
Confidence
70% confidence
Finding

Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.

Content

Scanner excerpt · references/simplification-patterns.md (reported line 26)May include surrounding context.

md
removal
- **Wrong comments** on lines this pass touches (list others as follow-ups): fix or remove one when one of these holds. *Stale*: describes behavior the code no longer has. *Orphaned*: names a symbol, path, flag, or ticket that no longer exists. *Misleading*: states a claim the code contradicts. Rewrite when the correct claim is proven from the code; otherwise delete. Never change code to make a comment true
- **Unnecessary defensive checks** for conditions that cannot occur in context: remove the guard. Where the guard, retry, workaround, or flag counters an *external* hazard (a harness default, an upstream bug, a race, a platform quirk), "cannot occur" needs evidence: demonstrate the hazard's precondition is present and handled. A green suite is not that evidence when the run may never have triggered the hazard at all; absence of failure and absence of the hazard look identical from the outside. If the precondition cannot be reproduced, keep the code and record the gap. Guard

Scope Creep

Low
Category
Excessive Agency
Confidence
75% confidence
Finding

Skill's behavior or capabilities extend beyond its stated purpose. Scope creep allows an agent to perform actions unrelated to its documented functionality, increasing the attack surface.

Content

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

md
## Constraints

- Only simplify what was requested; do not add features, expand scope, introduce new dependencies, or add speculative configurability or flexibility the request did not ask for
- Leave unchanged code untouched; do not add comments, docstrings, or type annotations to lines that were not simplified
- Do not bundle unrelated cleanups into one patch; each simplification should be a coherent, reviewable unit
- Do not introduce framework-wide patterns while simplifying a small local change