Panther critical experimental python
GitHub Org Authentication Method Changed
Detects critical changes to GitHub organization authentication settings including SAML SSO, 2FA requirements, SAML provider configuration, and OAuth restrictions. These foundational security controls protect entire organizations, and unauthorized modifications can enable attackers to bypass identity management, maintain persistence, or prepare for data exfiltration. Legitimate changes are rare and should be well-documented with proper authorization.
Detection Logic
AUTH_CHANGE_EVENTS = [
"org.saml_disabled",
"org.saml_enabled",
"org.disable_two_factor_requirement",
"org.enable_two_factor_requirement",
"org.update_saml_provider_settings",
"org.enable_oauth_app_restrictions",
"org.disable_oauth_app_restrictions",
]
def rule(event):
if not event.get("action").startswith("org."):
return False
return event.get("action") in AUTH_CHANGE_EVENTS
def title(event):
return f"GitHub auth configuration was changed by {event.get('actor', '<UNKNOWN USER>')}" Field Validations
Loading…
Comments (0)
Loading comments...