Back to skill

Security audit

Production Harness

Security checks for vulnerabilities and agentic risk

Overview

This engineering workflow skill is mostly coherent, but it asks agents to inspect session history without clear limits, which could expose unrelated private conversation data.

Install only if you want this harness to shape many coding sessions. If used, keep session-history access limited to the failed subagent's error metadata and avoid pulling unrelated transcripts or sensitive content into the active task.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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
Findings (1)

T05 · Unauthorized Access and Privilege Escalation

Warning
Location
SKILL.md:154
Finding
Insufficiently Scoped Session-History Access## Vulnerability Details **File Location**: `SKILL.md`, line 154 **Vulnerability Type**: `T05: Unauthorized Access and Privilege Escalation` **Risk Level**: Medium **Complete Vulnerable Snippet**: ```markdown - Check `sessions_history` for the actual error, don't guess ``` ### Technical Analysis The failure-handling instruction directs the agent to inspect session history but does not impose least-privilege boundaries. It does not limit access to the failed subagent's session identifier, a relevant time range, or structured error and tool-result fields. Session history may contain user prompts, credentials, proprietary source fragments, delegated task data, or unrelated conversation content. Although the audited files contain no instruction to exfiltrate that information, an unrestricted history query can unnecessarily introduce sensitive data into the active agent context. ### Attack Path 1. A delegated subagent fails or appears to fail. 2. The skill activates its failure-handling procedure. 3. Following line 154, the agent invokes `sessions_history`. 4. An insufficiently scoped query retrieves content beyond the failed task, potentially including sensitive or unrelated session data. 5. The retrieved data enters the active context and may influence or be reproduced in generated responses, logs, checkpoints, or files. ### Impact Assessment Exploitation requires the agent to have access to a session-history tool whose authorization model permits broad queries. Under that condition, the instruction may cause read access beyond the failed subagent's data and violate conversation isolation and least-privilege principles. The primary impact is confidentiality loss. Potentially exposed information includes unrelated prompts, source code, credentials, and proprietary task data. The instruction does not itself grant operating-system privileges, modify access controls, establish persistence, execute code, or transmit data e ...[truncated 10 chars]
Remediation
## Remediation Suggestions 1. Restrict history access to the exact failed subagent session ID. 2. Request only structured failure metadata, such as error messages, tool failures, and exit status, rather than complete conversation transcripts. 3. Limit queries to the minimum relevant time range and prohibit access to unrelated sessions. 4. Prefer the failure response already returned by the subagent before querying additional history. 5. Redact credentials, tokens, personal data, and proprietary content before adding diagnostic information to the agent context. 6. Record and audit session-history access, including the requesting task, target session, fields retrieved, and authorization decision. 7. Replace the vulnerable instruction with a least-privilege version, for example: ```markdown - Diagnose failures using the error already returned by the failed subagent. If additional history is essential, read only structured error and tool-result fields from that subagent's exact session ID. Never access unrelated sessions, and redact sensitive values before using or recording the result. ```
Vulnerability Patterns
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (1)

Vague Triggers

Medium
Confidence
97% confidence
Finding
The skill description contains very broad activation phrases such as 'build', 'plan', 'spec', 'review', 'ship', and 'debug', which are common in normal conversation and development contexts. This can cause the skill to trigger unintentionally across many unrelated prompts, increasing the chance that its workflow overrides more appropriate skills or injects unnecessary operational behavior into sessions.

Static analysis

No suspicious patterns detected.