EX-077: A command here sends your environment or a secrets file to another computer

A command here sends your environment or a secrets file to another computer

Infection level: HIGHEX-077 · The environment or a secrets file is sent to another computer by a command

What the attacker is trying to do

Piping the whole environment (printenv, env) or a file like .env into curl, wget or nc, or uploading it to a raw IP address, hands every key and token it holds to whoever runs that server. Your agent may run such a command if a file tells it to, or a script may run it for you.

Defanged example

No example file exists for this rule yet.

How to fix it

Remove the command, or make sure it never runs. Sending the whole environment or a secrets file to another computer hands over every key and token it holds. If a step really needs one value, pass only that value to a service you control, and never ask an agent to run such a command.

Technical details

Detected by
a text pattern
Checks files of type
instruction, docs, memory, tool-result, code, config, hook, manifest, unknown
OWASP
LLM02:2025 Sensitive Information Disclosure; ASI05 Sensitive Data Leakage