T07 · Tool Hijacking and Spoofing
- Location
SKILL.md:39- Finding
Execution of Unpackaged and Unaudited External Scripts
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:39-47,SKILL.md:66-70,SKILL.md:100-103, andREADME.md:23-27
Vulnerability Type: Execution of externally maintained local tools without integrity validation
Risk Level: HighVulnerable Code
SKILL.md:39-47:bash bash /Users/clawdiri/Projects/autosignals/status.shbash bash /Users/clawdiri/Projects/autosignals/start.shSKILL.md:66-70:bash bash /Users/clawdiri/Projects/autosignals/monitor.shSKILL.md:100-103:bash cd /Users/clawdiri/Projects/autosignals source .venv/bin/activate python prepare.pyREADME.md:23-27:bash # Check loop status bash /Users/clawdiri/Projects/autosignals/status.sh # Start autonomous loop bash /Users/clawdiri/Projects/autosignals/start.shTechnical Analysis
The audited package contains only
SKILL.mdandREADME.md; none of the referenced shell scripts, Python programs, or virtual-environment dependencies are included. The Skill nevertheless instructs the Agent to execute these external files as trusted components.Because
/Users/clawdiri/Projects/autosignals/is outside the reviewed package, its contents can be created, replaced, or modified independently after the Skill has been reviewed. Invoking a script by an absolute path does not establish its ownership, integrity, or provenance. Activating the external.venvalso places its executables and packages into the command environment without any dependency lockfile or integrity verification available in the audited artifact.The
start.shinstruction is particularly sensitive because the documentation states that it starts a background autonomous loop that runs indefinitely. Any malicious behavior in that script or the programs it launches could therefore continue beyond the immediate command invocation.Attack Path
- An attacker gains write access to `/Users/clawdiri/Projects ...[truncated 1170 chars]
- Remediation
View remediation
Remediation Suggestions
- Bundle all required scripts and Python source files inside the Skill package so they can be reviewed together.
- Resolve executable paths relative to a trusted, immutable Skill directory rather than a user-specific external directory.
- Before execution, verify each component's canonical path, owner, permissions, file type, and cryptographic digest against an approved manifest.
- Reject symlinks and files writable by untrusted users or groups.
- Use a locked dependency manifest with hashes and construct the virtual environment from reviewed dependencies rather than activating an unverified external environment.
- Require explicit user confirmation before launching the permanent background loop.
- Run research and backtesting components in a restricted sandbox with minimal filesystem access, constrained network access, resource limits, and no unnecessary credentials.
- Record the verified script hashes and execution results in an audit log.
