T09 · Insecure Skill Coding Practices
- Location
SKILL.md:94- Finding
Missing Risk Metadata Defaults to GREEN and Bypasses Verification
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:94andmodules/verification-gates.md:13-18
Vulnerability Type: Fail-open security classification
Risk Level: HighVulnerable Code
SKILL.md:94:markdown Tasks without `risk_tier` metadata default to **GREEN** (backward compatible).modules/verification-gates.md:13-18:markdown ### GREEN — No Gates No verification required. Agent completes task and marks as done. Task complete → Mark completedTechnical Analysis
The Skill uses a fail-open policy when the
risk_tierfield is missing. An unclassified task is automatically assigned GREEN, while GREEN tasks require no verification. This combines an untrusted or absent metadata value with the least restrictive execution path.Missing metadata can result from an incompatible task generator, malformed input, accidental omission, or intentional manipulation. Because classification is not mandatory before task execution, the system cannot distinguish a genuinely low-risk task from a destructive or security-sensitive task whose metadata was omitted.
Attack Path
- An attacker or faulty integration creates a task involving a sensitive operation, such as modifying authentication logic or deleting production data.
- The task is submitted without a
risk_tiermetadata field. - The Skill applies the documented default and classifies the task as GREEN.
- The GREEN verification policy permits immediate completion without tests, code review, reversibility scoring, or human approval.
- The sensitive change proceeds without the controls normally required for RED or CRITICAL tasks.
Impact Assessment
Exploitation does not directly grant additional operating-system privileges. It bypasses the Skill's procedural security controls within the agent's existing permissions. The resulting scope is therefore equal to the files, repositories, deployment systems, and data already ...[truncated 258 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace the GREEN default with a fail-closed policy.
- Reject tasks whose
risk_tieris missing, malformed, or outside the permitted enumeration. - Require the classifier to run successfully before any task can be assigned or executed.
- If classification cannot be completed, default to RED and require manual assessment rather than defaulting to GREEN.
- Record the classifier version, classification evidence, and affected files in task metadata.
- Ensure downstream orchestrators independently enforce mandatory classification instead of trusting caller-supplied metadata.
- Add negative tests covering omitted, empty, misspelled, and attacker-controlled
risk_tiervalues.
