T09 · Insecure Skill Coding Practices
- Location
SKILL.md:20- Finding
Out-of-Package Absolute Local File Reference
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 20
Vulnerability Type: Unsafe external local-file dependency
Risk Level: MediumVulnerable Code Snippet:
markdown [STANDARD_RESPONSE.md](file:///Users/mac_lkm/workspace/trae/100fj/.trae/skills/STANDARD_RESPONSE.md)Technical Analysis
The skill references an absolute
file://path outside the audited package. The referenced file is not included in the project, so its contents cannot be reviewed or integrity-checked as part of this audit. If an agent follows this reference, external local content may influence the skill's response format and behavior.The developer-specific path also discloses a local username and workspace structure. Because the dependency is neither packaged nor pinned, behavior may differ between hosts and can be influenced by whoever controls the referenced file. This is an insecure configuration practice rather than evidence of an embedded malicious payload.
Attack Path
- A user invokes the nearby-cinema skill.
- The agent processes
SKILL.mdand encounters the external response-schema reference. - The agent attempts to read the absolute local file using its available file-access capability.
- If the file exists and is controlled or modified by an attacker with local write access, attacker-supplied content can influence the agent's generated response.
- If the file is absent, the skill may fail to produce its documented response structure.
Impact Assessment
Exploitation requires the attacker to control or modify the referenced local file, or otherwise influence the path's contents. The resulting scope is limited to the permissions already available to the agent: reading the file and allowing its content to affect response generation. The finding does not independently grant system privileges, code execution, persistence, or write access. Additional impacts include disclosure of the developer username ...[truncated 81 chars]
- Remediation
View remediation
Remediation Suggestions
- Include
STANDARD_RESPONSE.mdwithin the audited skill package. - Replace the absolute URI with a package-relative reference, such as
./STANDARD_RESPONSE.md. - Validate and audit the referenced document together with
SKILL.md. - Do not place executable instructions or untrusted directives in response-schema documents.
- Restrict file access to the skill package root and reject references that resolve outside it.
- Remove developer-specific usernames and workstation paths from distributed artifacts.
- If external resources are unavoidable, enforce an allowlist and verify their integrity before use.
- Include
