
GitBackdorizer (bad name, I know!) Is a proof of concept from Ulisses Castro's talk - 50 ton of backdoors (https://www.slideshare.net/ulissescastro/50-ton-of-backdoors) that uses the lack of user attention to steal git access credentials.
GitBackdorizer is a proof of concept, fully inspired in Ulisses Castro's 50 ton of backdoors talk, that abuses the lack of user attention to steal git access credentials.
GitBackdorizer consists of three pieces: handler, dropper and the payload.
The handler sets up a HTTP server to capture the credentials and offers a menu to configure the dropper's payload. The dropper delivery is responsability of the attacker.
The dropper is designed to have the highest possible compatibility, avoiding any non-sh specific feature. It works by:
Payloads are also designed to have the highest possible compatibility avoiding non-sh features.There are currently two types of payload, the generic and the pre-push specific.
The generic payload tries to identify the remote type (HTTPS/SSH) by:
git branch --contains HEADThe pre-push payload will check directly the provided git information for the url (second hook parameter for pre-push).
How to use gitbackdorizer to exploit user confidence and steal their credentials:
GitBackdorizer - stealing credentials