diff --git a/detection_rules/etc/integration-manifests.json.gz b/detection_rules/etc/integration-manifests.json.gz index 123ebf917..5303e11f2 100644 Binary files a/detection_rules/etc/integration-manifests.json.gz and b/detection_rules/etc/integration-manifests.json.gz differ diff --git a/detection_rules/etc/integration-schemas.json.gz b/detection_rules/etc/integration-schemas.json.gz index 33669f653..dc8f49bd6 100644 Binary files a/detection_rules/etc/integration-schemas.json.gz and b/detection_rules/etc/integration-schemas.json.gz differ diff --git a/rules/integrations/github/defense_evasion_github_protected_branch_settings_changed.toml b/rules/integrations/github/defense_evasion_github_protected_branch_settings_changed.toml new file mode 100644 index 000000000..d38ee9496 --- /dev/null +++ b/rules/integrations/github/defense_evasion_github_protected_branch_settings_changed.toml @@ -0,0 +1,51 @@ +[metadata] +creation_date = "2023/08/29" +integration = ["github"] +maturity = "production" +min_stack_comments = "New fields added: required_fields, related_integrations, setup" +min_stack_version = "8.3.0" +updated_date = "2023/08/30" + +[rule] +author = ["Elastic"] +description = """ +This rule detects setting modifications for protected branches of a GitHub repository. Branch protection rules +can be used to enforce certain workflows or requirements before a contributor can push changes to a branch in +your repository. Changes to these protected branch settings should be investigated and verified as legitimate +activity. Unauthorized changes could be used to lower your organization's security posture and leave you exposed +for future attacks. +""" +from = "now-9m" +index = ["logs-github.audit-*"] +language = "eql" +license = "Elastic License v2" +name = "GitHub Protected Branch Settings Changed" +risk_score = 47 +rule_id = "07639887-da3a-4fbf-9532-8ce748ff8c50" +severity = "medium" +tags = ["Domain: Cloud", "Use Case: Threat Detection", "Tactic: Defense Evasion", "Data Source: Github"] +timestamp_override = "event.ingested" +type = "eql" +query = ''' +configuration where event.dataset == "github.audit" + and github.category == "protected_branch" and event.type == "change" +''' + +[[rule.threat]] +framework = "MITRE ATT&CK" +[[rule.threat.technique]] +id = "T1562" +name = "Impair Defenses" +reference = "https://attack.mitre.org/techniques/T1562/" +[[rule.threat.technique.subtechnique]] +id = "T1562.001" +name = "Disable or Modify Tools" +reference = "https://attack.mitre.org/techniques/T1562/001/" + + + +[rule.threat.tactic] +id = "TA0005" +name = "Defense Evasion" +reference = "https://attack.mitre.org/tactics/TA0005/" +