New GitHub Owner Added

Detects when a new member is added to a GitHub organization as an owner. This role provides admin level privileges. Any new owner roles should be investigated to determine it's validity. Unauthorized owner roles could indicate compromise within your organization and provide unlimited access to data and settings.

Elastic rule (View on GitHub)

 1[metadata]
 2creation_date = "2023/09/11"
 3integration = ["github"]
 4maturity = "production"
 5min_stack_comments = "New fields added: required_fields, related_integrations, setup"
 6min_stack_version = "8.3.0"
 7updated_date = "2023/12/14"
 8
 9[rule]
10author = ["Elastic"]
11description = """
12Detects when a new member is added to a GitHub organization as an owner. 
13This role provides admin level privileges. Any new owner roles should be investigated to determine it's validity. 
14Unauthorized owner roles could indicate compromise within your organization and provide unlimited access to data and settings.
15"""
16from = "now-9m"
17index = ["logs-github.audit-*"]
18language = "eql"
19license = "Elastic License v2"
20name = "New GitHub Owner Added"
21risk_score = 47
22rule_id = "24401eca-ad0b-4ff9-9431-487a8e183af9"
23severity = "medium"
24tags = ["Domain: Cloud", 
25        "Use Case: Threat Detection",
26        "Use Case: UEBA",        
27        "Tactic: Persistence", 
28        "Data Source: Github"
29        ]
30timestamp_override = "event.ingested"
31type = "eql"
32query = '''
33iam where event.dataset == "github.audit" and event.action == "org.add_member" and github.permission == "admin"
34'''
35
36[[rule.threat]]
37framework = "MITRE ATT&CK"
38[[rule.threat.technique]]
39id = "T1136"
40name = "Create Account"
41reference = "https://attack.mitre.org/techniques/T1136/"
42[[rule.threat.technique.subtechnique]]
43id = "T1136.003"
44name = "Cloud Account"
45reference = "https://attack.mitre.org/techniques/T1136/003/"
46
47
48[rule.threat.tactic]
49id = "TA0003"
50name = "Persistence"
51reference = "https://attack.mitre.org/tactics/TA0003/"

Related rules

to-top