Detection: MFA Disabled
Overview
Detect when multi-factor authentication (MFA) is disabled on a GitHub account. While this may occur as part of user account changes, it can also indicate that an attacker has compromised the account and disabled MFA to maintain persistence with reduced detection risk. Monitoring these events is critical to preserving strong account security and preventing unauthorized access.
References:
Usage
Run the detection in your terminal:
powerpipe detection run github_security_log_detections.detection.mfa_disabled
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe detection run github_security_log_detections.detection.mfa_disabled --share
SQL
This detection uses a named query:
select tp_timestamp as timestamp,action as operation,concat('https://github.com/', user) as resource,actor,tp_source_ip as source_ip,tp_id as source_id,*exclude (actor, timestamp)
from github_security_logwhere action in ('two_factor_authentication.disabled')order by tp_timestamp desc;