Git hook
AssessTechniques
A Git mechanism that runs custom scripts on repository events such as push.
Why it's here
Placed in Assess: 2 article(s) of evidence from 1 source(s), led by open-source activity, with 1 in the last 30 days. Confidence 37%.
Evidence (2)
- 5Hacker News·10/18/2026open_sourceSphinx adds understanding checks to Git pushes for AI-assisted code
Sphinx is an open-source Git hook that pauses a push and quizzes the developer on what their agent-generated code actually does before it is shipped. It is designed for agent-assisted workflows, works with several coding agents and OpenAI-compatible endpoints, and can be bypassed with a logged "yolo" mode.
- 9Hacker News·7/22/2026securityTake-Home Interview Project Hid a Malicious Git Hook
A developer inspecting a take-home assignment discovered a pre-commit Git hook that would detect the host operating system and fetch a remote script for execution. The payloads were hosted on a raw IP address and appeared designed to run silently when Git operations were performed, indicating a malware delivery attempt disguised as a hiring exercise.