Description:
This control ensures that all members and outside collaborators of the GitHub organization are required to enable two-factor authentication (2FA) on their personal accounts before they can access the organization’s resources.
Rationale:
Passwords alone can be compromised through phishing, reuse, or credential leaks. Requiring 2FA adds a second layer of verification, significantly reducing the risk of account takeover and unauthorized access to the organization’s repositories, secrets, and settings.
Impact:
Members and outside collaborators (including bot accounts) without 2FA lose access to the organization and may be removed from it when the requirement is enabled.
Users who disable 2FA after the requirement is enabled lose access to the organization.
Removed users must enable 2FA and be re-invited to regain access.
Significantly reduces the risk of account compromise.
Default Value:
Disabled by default. Organization owners must explicitly enable the 2FA requirement in the organization’s authentication security settings.
Pre-Requisites:
Organization owner role
Members notified in advance to set up 2FA and avoid losing access
Remediation :
Test Plan
Sign in to GitHub at https://github.com.
Navigate to the organization's Settings page.
In the "Security" section of the sidebar, click Authentication security.
Under Two-factor authentication, verify that Require two-factor authentication for everyone in your organization is selected.
If the requirement is not enabled, follow the implementation steps.
Implementation Steps:
Sign in to GitHub at https://github.com.
Click your profile picture in the upper-right corner, select Organizations, and select the target organization.
Navigate to the organization's Settings page.
In the "Security" section of the sidebar, click Authentication security.
Under Two-factor authentication, select Require two-factor authentication for everyone in your organization.
Click Save.
Review the list of members and outside collaborators who will be removed for not having 2FA enabled, then click Confirm.
Notify any removed members that they must enable 2FA and can be reinstated within three months.
Backout Plan:
Sign in to GitHub at https://github.com.
Navigate to the organization's Settings page.
In the "Security" section of the sidebar, click Authentication security.
Under Two-factor authentication, deselect Require two-factor authentication for everyone in your organization.
Click Save.
Reference: