A script that runs by itself sends your secrets out
Infection level: CRITICALEX-036 · Install or build script sends secrets out
What the attacker is trying to do
This project has a script that runs on its own when it is installed, built or tested (an npm lifecycle script, setup.py, a build backend, a Makefile install target, a node-gyp action, build.rs, a composer script or a Dockerfile RUN step), and it reads your environment, .env or other credentials and sends them to another computer, or runs code hidden in an encoded string. Your AI agent only has to install, build or test the project; it does not have to obey anything.
Defanged example
No example file exists for this rule yet.
How to fix it
Do not install, build or test this project until you have read the code named in the finding. A script like this runs when you (or your AI agent) install, build or test the project, and it sends your environment, .env or credentials to another computer with no instruction for the agent to obey. Remove the script, or remove the code that reads secrets, sends data out or runs decoded code.
Technical details
- Detected by
- Checks files of type
- manifest
- OWASP
- ASI07 Supply Chain Vulnerabilities; LLM02:2025 Sensitive Information Disclosure; ASI05 Sensitive Data Leakage