Vendor replays
Coding agent risks with .env files: replays and fixes
1 replay involves .env files: 0 reported incidents and 1 command class. Each one shows the call, a fix that needs no extra tool, and what KYA did in the replay.
Read a production .env file with cat
Fix: Keep production secrets in the secret store of your host and only development values in .env files, and add deny rules such as Read(./.env) and Read(./.env.*) to the Claude Code settings. A Read rule also covers shell commands such as cat, but not a script that opens the file itself, so enable the Claude Code sandbox when the block must hold.
Replay result: Stopped.