Source code tampering is an unauthorized or suspected change to code stored in a repository. It can involve modifying existing files, adding malicious code, or altering project history to make changes harder to detect. A report of tampering does not by itself prove that code was changed or that malicious code reached a release.
It matters because repositories often connect to build and release systems: an unnoticed change may affect software produced downstream. Defenders review commit history, access logs, branch protections, and approval records to identify changes and determine who made them. Signed commits, restricted privileges, independent code review, and release provenance help prevent unauthorized edits and verify that shipped software matches approved source.


