T08 · Insecure Dependencies
- Location
SKILL.md:40- Finding
Unpinned Skill Installation Creates a Mutable Supply-Chain Boundary
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is mostly coherent, but it can load unverified companion Python code from mutable or environment-directed locations.
Review this skill before installing in sensitive environments. Its core behavior is not destructive, but avoid copy-pasting @latest install commands for trusted workflows, verify companion package provenance, and do not set LYGO_STACK_ROOT to directories that other users or automation can modify.
SKILL.md:40Unpinned Skill Installation Creates a Mutable Supply-Chain Boundary
scripts/lygo_cli.py:97Environment-Directed Companion Discovery Enables Unverified Python Module Execution
Without declared permissions the skill's intent is opaque and cannot be validated.
Using npx clawhub@latest fetches and executes whatever version is current at install time, which creates a supply-chain risk and undermines reproducibility. If the upstream package is compromised or a breaking release is published, users could install or run unexpected code when following the documented command.
This installation command also uses npx clawhub@latest, exposing users to execution of an unpinned remote package version. Because this is a companion dependency path, compromise of the installer or unexpected updates could affect a broader set of related skills.
The command relies on an unpinned npx package, which means users execute mutable remote code during installation. In the context of a skill ecosystem, this increases supply-chain exposure even if the skill itself claims local-first and no subprocess behavior.
This documented install path repeats the same unpinned npx clawhub@latest pattern, creating a consistent supply-chain weakness across setup instructions. An attacker controlling or compromising the package distribution path could cause users to run malicious code before they ever use the skill.
The quickstart instructs users to run npx clawhub@latest install ..., which pulls and executes the latest published package version rather than a pinned, reviewed release. If the upstream package or its distribution path is compromised, users could install unexpected or malicious code, and documentation examples increase the likelihood of copy-paste execution.
This line also uses npx clawhub@latest install ..., creating a supply-chain risk because users are directed to execute whatever version is current at runtime. In security-sensitive tooling, unpinned install commands in docs are dangerous because they normalize unaudited remote code execution during setup.
The command references an unpinned npx package via @latest, so the actual code executed may change over time without notice. Because this appears in a quickstart for companion installation, the context makes it more dangerous: users are likely to trust and run it verbatim, amplifying supply-chain exposure.
The code prepends a directory derived from skill discovery logic to sys.path and then imports a module by name with import(). Because candidate paths can come from environment-controlled locations such as LYGO_STACK_ROOT or user-writable skill directories, an attacker who can place a malicious file at the resolved path can achieve arbitrary code execution when commands like analyze, mint, or radar are used.
# Avoid stale module if switching skills
if module_name in sys.modules:
del sys.modules[module_name]
return __import__(module_name)
def cmd_version() -> dict[str, Any]:
npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
Skill's behavior or capabilities extend beyond its stated purpose. Scope creep allows an agent to perform actions unrelated to its documented functionality, increasing the attack surface.
permit persons to whom the Software is furnished to do so.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE