Case E73A5D · AI security · L2 Practitioner
The Package That Should Not Exist
Live alertEDR flags a build agent making outbound connections from a postinstall script. The package, "fastapi-auth-helpers", was added in a pull request whose description says an AI assistant suggested it. It was first published to PyPI 9 days ago.
Interview questionA dependency suggested by an AI assistant turned out to be malicious. How do you respond?
- 01 What happened?
- 02 What is the impact?
- 03 What do you do?
What a strong answer covers
Try it out loud first. Then check yourself:
- Contain: stop the pipeline, isolate the build agent, and rotate every secret the agent could read.
- Scope: find every repository, build and developer machine that installed the package, and what the script did.
- Check artifacts built since it was added: anything from that agent may be tampered with and need rebuilding.
- Prevent: new dependencies need review, builds pull from a vetted internal mirror, and installs run with no secrets in reach.
If the interviewer pushes back
- How would you tell PyPI and other affected users, and why does it matter?