Back to skill

Security audit

Coding

Security checks for vulnerabilities and agentic risk

Overview

This skill is a disclosed local coding-preference memory with confirmation gates and no evidence of network access, hidden execution, or destructive behavior.

Before installing, understand that this skill will maintain a local coding preference memory in ~/coding/ and apply it in future coding sessions. Only confirm preferences you want remembered; use the documented forget/show commands to review or remove entries. The criteria.md wording about SKILL.md is imprecise, but the main artifact directs storage to memory.md and forbids self-modification.

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
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (3)

Self-Modification

High
Category
Rogue Agent
Confidence
91% confidence
Finding

The file explicitly instructs the agent to consult this document when deciding whether to update SKILL.md, which creates a self-modification pathway. In a memory/preference skill, allowing one file to influence persistent updates increases the risk of prompt-injection-style preference poisoning, causing the agent to store untrusted or overly broad user directives as lasting behavior.

Content

Scanner excerpt · criteria.md (reported line 3)May include surrounding context.

md
# Criteria for Code Preferences

Reference only — consult when deciding whether to update SKILL.md.

## When to Add

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
75% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

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

md
This skill NEVER:
- Reads project files to infer preferences
- Observes coding patterns without consent
- Makes network requests
- Reads files outside `~/coding/`
- Modifies its own SKILL.md

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
75% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

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

md
## Common Traps

- Adding preferences without confirmation → user loses trust
- Inferring from project structure → privacy violation
- Exceeding 100 lines → context bloat
- Vague entries ("good code") → useless, be specific