Secrets hygiene

P57.secrets-supply-chain.01 · Audience: guest, it-ml, language-pro · Prerequisites: Injection & the untrusted-input lens

Real LLM grading for this pageLLM grading (this page):

A credential that reaches a repository is already compromised: history is permanent and clones are everywhere, so rotation is the only real cure. This project learned it directly — on 2026-07-04 a blanket git add -A swept an .env backup into a commit, which is why staging explicit paths is now a standing rule, alongside the bandit gate in make quality.

This module builds the defence that catches it earlier: a scanner over the diff, before it lands.

Ask the mentor about this module

Ask a question about this content. The mentor explains and grounds its answer in what you are studying; asking is recorded as a learning signal, not a grade.

Images, PDF or text. Kept on this device only.
Keeping your files on this device

Off by default. The mentor always gets your file; this only decides whether your own copy stays here. Copies live in this browser only - they do not follow you to another device, and clearing site data removes them.

Ctrl/Cmd + Enter to send
Rung 1 — scan a diff for leaked secrets

Loading exercise…

My notes on this module

Loading your notes...

Where next?

Continue

Supply-chain security →

Secrets & Supply Chain · P57

Later in Secrets & Supply Chain

Secrets hygiene — TransformerLab