An attacker with a developer’s password can read code, push changes and steal keys. Two-factor authentication (2FA) means a stolen password alone is not enough.
Accounts to protect first
- E-mail, because it resets everything else.
- The code host (GitHub, GitLab).
- Cloud and hosting consoles.
- Package registries you publish to.
- Password manager and domain registrar.
- The accounts of tools your agents connect to.
Methods, strongest first
- Passkeys and hardware security keys (FIDO2/WebAuthn), which resist phishing.
- An authenticator app that produces one-time codes.
- SMS codes, only if nothing else is offered. They can be intercepted or redirected.
Do
- Keep recovery codes somewhere safe and offline.
- Register two methods, for example two security keys.
- Require 2FA for every member of your organisation on the code host.
In Contextingo
Staff must enable 2FA before they can use the admin console, and each person connects their agents with their own personal key. See the security page.