Skip to main content
RansomLeak Security Training

Every exercise is indexed by name, CWE, OWASP, MITRE ATT&CK, CIS, NIST CSF, GDPR and EU AI Act reference.

Try

Full catalogue

Git & Repository Security Training

Replay a leaked key from a real repo’s history, then rotate it, scrub it and lock the branch.

8 exercises Free, no sign-up

01

Git & Repository Security

8 exercises

Frequently asked questions

What is Git and repository security training?

Git security training teaches developers to treat the repository, and the platform around it, as a security boundary rather than a filing cabinet for code.

These exercises cover what actually leaks in practice: credentials living on in commit history, a .git directory shipped to a web root, over-scoped access tokens, unprotected default branches, and secrets printed into public build logs.

Why do secrets survive after you delete them from a repository?

Git stores every version of every file. A commit that deletes a hardcoded key only changes the latest snapshot; the key is still readable in every earlier commit, and every clone copies those commits.

That is why rotation comes first. Rewriting history with git filter-repo or BFG is cleanup, and it cannot recall a copy someone already cloned.

Are these exercises about Git itself or about GitHub and CI/CD?

Both, because the failures cross the line. Some are pure Git: history, authorship, tracked files.

Others live on the platform around it, in pull request review, branch protection rules, personal access tokens, and workflow files that echo a secret into a world-readable build log.