turbot/tailpipe-mod-github-audit-log-detections

Detection: Organization Two-Factor Authentication Disabled

Overview

Detect when two-factor authentication (2FA) was disabled for a GitHub organization. Disabling 2FA increases the risk of unauthorized access by removing an additional layer of security. Monitoring these events ensures that strong authentication controls remain enforced and comply with security policies.

References:

Usage

Run the detection in your terminal:

powerpipe detection run github_audit_log_detections.detection.organization_two_factor_authentication_disabled

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe detection run github_audit_log_detections.detection.organization_two_factor_authentication_disabled --share

SQL

This detection uses a named query:

select
tp_timestamp as timestamp,
action as operation,
concat('https://github.com/', org) as resource,
actor,
tp_source_ip as source_ip,
tp_index as organization,
split_part(repo, '/', 2) as repository,
tp_id as source_id,
*
exclude (actor, timestamp)
from
github_audit_log
where
action = 'org.disable_two_factor_requirement'
order by
tp_timestamp desc;

Tags