github_dependabot_vulnerability_alerts_disabled
Description
Detects when vulnerability alerts are disabled for GitHub Dependabot.
Query · yara_l
events:
$github.metadata.vendor_name = "GITHUB" nocase
$github.metadata.product_name = "GITHUB"
(
$github.metadata.product_event_type = "repository_vulnerability_alerts.disable" or
$github.metadata.product_event_type = "business_dependabot_alerts.disable" or
$github.metadata.product_event_type = "business_dependabot_alerts_new_repos.disable" or
$github.metadata.product_event_type = "dependabot_alerts.disable" or
$github.metadata.product_event_type = "dependabot_alerts_new_repos.disable" or
$github.metadata.product_event_type = "dependabot_security_updates.disable" or
$github.metadata.product_event_type = "dependabot_security_updates_new_repos.disable"
)
$github.principal.user.userid = $user_id
match:
$user_id over 30m
outcome:
$risk_score = max(85)
$mitre_attack_tactic = "Defense Evasion"
$mitre_attack_technique = "Impair Defenses: Disable or Modify Tools"
$mitre_attack_technique_id = "T1562.001"
$event_count = count_distinct($github.metadata.id)
$principal_ip = array_distinct($github.principal.ip)
$principal_user_userid = array_distinct($github.principal.user.userid)
$principal_ip_country = array_distinct($github.principal.ip_geo_artifact.location.country_or_region)
$principal_ip_state = array_distinct($github.principal.ip_geo_artifact.location.state)
$principal_ip_city = array_distinct($github.principal.location.city)
$security_result_summary = array_distinct($github.security_result.summary)
condition:
$github