okta_user_password_and_mfa_factor_reset_or_deactivated
Description
Detects when an Okta user's password is reset and MFA factor(s) are deactivated or reset within a 30 minute time window. This activity may indicate that the user account has been compromised.
Query · yara_l
events:
$pw.metadata.product_name = "Okta"
$pw.metadata.vendor_name = "Okta"
(
$pw.metadata.product_event_type = "user.mfa.factor.reset_all" OR
$pw.metadata.product_event_type = "user.mfa.factor.deactivate"
)
$user_id = $pw.target.user.product_object_id
$mfa.metadata.product_name = "Okta"
$mfa.metadata.vendor_name = "Okta"
$mfa.metadata.product_event_type = "user.account.reset_password"
$user_id = $mfa.target.user.product_object_id
match:
$user_id over 30m
outcome:
$principal_user_email = array_distinct($pw.principal.user.email_addresses)
$principal_ip = array_distinct($pw.principal.ip)
$risk_score = 65
$mitre_attack_tactic = array_distinct("Credential Access, Defense Evasion, Persistence")
$mitre_attack_technique = array_distinct("Modify Authentication Process: Multi-Factor Authentication")
$mitre_attack_technique_id = array_distinct("T1556.006")
condition:
$pw and $mfa