Back to skill

Security audit

Improve Codebase Architecture

Security checks for vulnerabilities and agentic risk

Overview

The skill is mostly an architecture-review workflow, but it instructs the agent to create a GitHub issue without a final user review or confirmation.

Review before installing. This skill can be useful for architecture analysis, but it should be changed or overridden so it drafts the GitHub issue, shows the target repository and full content, and asks for explicit approval before publishing anything.

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
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (5)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The description says to use the skill when a user wants to 'improve architecture' or 'find refactoring opportunities,' which are broad phrases that can match many ordinary software discussions. The trigger scope is not narrowed with explicit boundaries or negative examples, increasing the chance of unintended invocation.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill goes beyond analysis and recommendation into taking an external side effect by creating a GitHub issue via CLI. That turns an advisory skill into one that can mutate remote state, which is risky because it may publish inaccurate, sensitive, or unwanted content without an explicit final user approval step.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

Remote GitHub issue creation is not necessary to satisfy the stated purpose of exploring architecture and proposing refactors. Adding repository-write behavior increases the blast radius from harmless analysis to external action, enabling accidental spam, disclosure of internal details, or changes in the wrong repository context.

Content

No source excerpt is available for this finding.

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
98% confidence
Finding

The explicit directive 'Do NOT ask the user to review before creating' is a strong autonomous-action pattern that suppresses user oversight for an external side effect. In a skill that can publish content to GitHub, this materially increases the risk of unintended repository changes, information disclosure, and abuse through prompt-triggered automation.

Content

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

md
### 7. Create GitHub issue

Create a refactor RFC as a GitHub issue using `gh issue create`. Use the template in [REFERENCE.md](REFERENCE.md). Do NOT ask the user to review before creating — just create it and share the URL.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The instruction to run gh issue create without a user-facing warning or confirmation removes an essential consent checkpoint before a remote write operation. In practice, this can create public or internal issues containing sensitive architectural details, speculative claims, or incorrect recommendations, and the user may not realize the action is about to occur.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.