Stop the Agent Secret Leak
Remove a credential from terminal-agent logs and replace environment dumping with safe audit records.
A advanced AI Engineering challenge worth 20 points. Solve it hands-on in a real AI Engineering environment in your browser - no local setup, no fake shells.
The Challenge
Scenario: A debugging change serialized the entire process environment into agent.log, exposing a LiteLLM API key.
Rotate the sample value in .env, remove the contaminated log, and change agent.py to write only an allowlisted tool name and model - never the environment or key. Preserve mode 600 on .env, rerun the agent, then run check.