TAM-H-CVR-025 · Human · Cover: Hiding the tracks · New in TAM

Rewriting Git History

The insider force-pushes or rewrites commits to erase evidence of a change, a leaked secret, or who wrote something.

Git history is evidence. It shows who changed what and when. Force-pushing a rewritten branch can remove a malicious commit after it has already been deployed, change the author on a commit, or delete a file from every revision.

Tools like git filter-repo and interactive rebase make this easy. On hosts where admins can bypass branch protection, the default branch itself can be rewritten.

The host's audit log and push webhooks usually record a forced push even when the commits are gone. Old SHAs may still be reachable through pull request refs, deploy logs or other clones.

What it looks like

  • An admin force-pushes main to drop a commit that added a backdoor after it shipped.
  • A developer rewrites a feature branch to change the author on a suspicious commit to a colleague.
  • An engineer temporarily disables branch protection, force-pushes, then turns it back on.

Detections (1)

Controls (1)