direnv
Fail
Audited by Gen Agent Trust Hub on Sep 18, 2026
Risk Level: HIGHREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The documentation provides installation commands that download and execute shell scripts directly from the internet.
- Evidence found in
SKILL.mdandreferences/installation.md:curl -sfL https://direnv.net/install.sh | bash. - The
source_urlandfetchurlstandard library functions described inreferences/stdlib-functions.mdallow for downloading and sourcing remote scripts at runtime, though they include mechanisms for hash verification. - [COMMAND_EXECUTION]: The skill instructs users to set up shell hooks using
eval, which is the standard method fordirenvintegration but involves executing dynamically generated shell code. - Evidence in
SKILL.md:eval "$(direnv hook zsh)"andeval "$(direnv hook bash)". - Usage of
sudofor package manager installations is documented inreferences/installation.md. - [DYNAMIC_EXECUTION]: The documentation includes examples of custom extensions that use
evalto execute output from external commands. - Evidence in
SKILL.md: Theuse_aws_secretsexample usesevalon the output ofaws secretsmanagerandjqto export variables. - [INDIRECT_PROMPT_INJECTION]: The skill describes a workflow that ingests data from external, potentially untrusted sources which could influence agent or shell behavior.
- Ingestion points: The skill processes
.envrc,.env, and remote scripts viasource_url(SKILL.md,references/stdlib-functions.md). - Capability inventory: The documented tool has capabilities for file system access, network downloads, and arbitrary command execution within the shell environment.
- Boundary markers: The skill documents
direnv's native security model (direnv allow/direnv deny), which requires explicit user approval before executing new or modified environment files. - Sanitization: The tool relies on hash-based verification for remote URLs and manual user review for local files.
Recommendations
- HIGH: Downloads and executes remote code from: https://direnv.net/install.sh - DO NOT USE without thorough review
Audit Metadata