T07 · Tool Hijacking and Spoofing
- Location
SKILL.md:121- Finding
Execution of an Unbundled Script from an External Hard-Coded Path
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 121–124
Vulnerability Type: Local tool or script substitution through an uncontrolled execution path
Risk Level: MediumVulnerable Code
bash python "C:\Users\LENOVO\.workbuddy\skills\ppt-to-video\scripts\ppt_to_video.py" \The instructions describe
scripts/ppt_to_video.pyas a bundled script, but the audited project contains onlySKILL.md; noscriptsdirectory or Python implementation is present. The command instead references a hard-coded location outside the audited project.Technical Analysis
The executable Python file is not part of the reviewed artifact, so its integrity and behavior cannot be established from this project. An agent following the instructions may execute whichever file exists at the hard-coded location.
This creates a local substitution boundary: a file placed or replaced at that path can impersonate the expected conversion script. The command does not validate the script's origin, cryptographic hash, ownership, permissions, or relationship to the loaded skill.
This best matches
T07: Tool Hijacking and Spoofingbecause an unverified local implementation can replace the legitimate-looking conversion tool and receive all arguments supplied by the agent.Attack Path
- An attacker obtains write access to the referenced skill directory or causes the environment to resolve the hard-coded path to attacker-controlled content.
- The attacker creates or replaces
ppt_to_video.pywith malicious Python code. - A user requests PPT-to-video conversion and supplies PPT and audio files.
- The agent follows
SKILL.mdand executes the external Python file. - The substituted script runs with the privileges of the agent process and receives the user-supplied file paths.
Impact Assessment
Successful exploitation permits arbitrary Python code execution with the same operating-system privileges as the invok ...[truncated 430 chars]
- Remediation
View remediation
Remediation Suggestions
- Include
scripts/ppt_to_video.pyin the project and subject it to the same code review asSKILL.md. - Resolve the script from the verified project root rather than using a user-specific absolute path.
- Fail closed if the expected bundled script is absent; do not search for or execute substitutes elsewhere.
- Before execution, verify that the resolved path remains inside the project directory and is a regular file rather than a symbolic link or reparse-point redirection.
- For distributed releases, verify the script against a signed manifest or pinned cryptographic hash.
- Restrict write permissions on installed skill files and execute the converter with only the filesystem permissions required for its declared task.
- Include
