lov-env-management
Pass
Audited by Gen Agent Trust Hub on Oct 18, 2026
Risk Level: SAFECOMMAND_EXECUTIONDATA_EXFILTRATIONPERSISTENCEINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The core logic in
scripts/env_manager.pymakes extensive use of system-level command execution. - Evidence includes calls to
subprocess.runandos.execvpfor interacting withsecurity(macOS Keychain),op(1Password CLI),launchctl, andsystemctl. - These calls are used to manage credentials and project environment variables into the user's session.
- [DATA_EXFILTRATION]: The
probecommand inscripts/env_manager.pyimplements a mechanism to send stored secrets to arbitrary external URLs provided via the--urlargument. - The secret is transmitted in an HTTPS header (e.g.,
Authorization: Bearer <secret>). - While intended for API key validation, this capability serves as a functional exfiltration vector if the agent is directed to probe an attacker-controlled endpoint.
- [PERSISTENCE]: The skill implements persistent access by modifying shell configuration files.
- The
sync-shellcommand inscripts/env_manager.pymodifies~/.zshenvto source a generated file (active.zsh) containing exported credentials. - This ensures the managed environment variables are loaded automatically in every new shell session.
- [INDIRECT_PROMPT_INJECTION]: The skill possesses an attack surface for indirect prompt injection due to its data ingestion and execution capabilities.
- Ingestion points: Reads local JSON profile data via
scripts/profile_store.pyand processes external HTTP responses during theprobecommand (though response bodies are explicitly ignored in the code). - Boundary markers: The
SKILL.mdcontains explicit instructions to never report raw keys or secret references in chat logs. - Capability inventory: Includes file system writes (
atomic_write_text), network requests (urllib.request), and shell command execution (subprocess.run). - Sanitization: Shell exports are sanitized using
shlex.quote, and theprobefunctionality uses a custom redirect handler to prevent credential forwarding. - [DYNAMIC_EXECUTION]: The skill generates and sources executable shell scripts at runtime.
- The
sync-shellcommand createsactive.zshwith file mode0600and populates it withexportstatements generated from the secret store.
Audit Metadata