Back to skill

Security audit

first-principles

Security checks for vulnerabilities and agentic risk

Overview

This learning skill needs review because it directs the agent to run unfamiliar code without defining execution safeguards.

For unfamiliar repositories, inspect the code first and require approval before running examples. Use a disposable sandbox without credentials and with restricted filesystem and network access. Choose a new output filename because the scaffold overwrites existing files.

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 Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (3)

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: file_write.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
80% 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 52)May include surrounding context.

md
### Stage 0 — Goal inference (reflect, don't ask)

Do NOT ask the user. Instead, ask yourself:
- What is the most common learner intent for this topic? (hands-on use /
  technology comparison / secondary development / deep dive / teaching others)
- Who is the most likely reader? (yourself, a colleague, a new onboarder)

The workflow instructs the agent to execute the subject code without warning about potential side effects.

Medium
Category
Output Handling
Confidence
95% confidence
Finding

The workflow explicitly instructs the agent to run the subject's minimal use case and step through it without requiring a trust assessment or execution isolation. Because the skill covers unfamiliar repositories and reverse engineering, attacker-controlled subject code could execute with the agent's available privileges, potentially accessing credentials, modifying files, or making unauthorized network requests.

Content

No source excerpt is available for this finding.