Deception/ Application
D081F1 Application

🪝 Canary Git Hook

Git hooks beaconing on unauthorized clone.

What it is

A Git pre-commit or post-checkout hook (.git/hooks/) that beacons when the repository is cloned and hooks are executed on a non-corporate machine. Detects source code theft and unauthorized development environments.

Implementation requirements

Technologies

CI/CD

ATT&CK coverage 2

TechniqueTacticStatusConfidenceTier
T1213.003
Code Repositories
Collection confirmed strong T2
↳ Detection point: the decoy fires at a later step of the attack
↳ Evidence (4 sources)
T1552.001
Credentials In Files
Credential Access confirmed strong T2
↳ Detection point: the decoy fires at a later step of the attack
↳ Evidence (5 sources)

Evidence

Research basis: Thinkst Canarytokens (Industry Standard). Extension of repository canary concept.