From 9146e0965d8dbb25b0281e571fa24836dd31dd97 Mon Sep 17 00:00:00 2001 From: Isai <59296946+imays11@users.noreply.github.com> Date: Thu, 14 Sep 2023 18:00:25 -0400 Subject: [PATCH] [New Rule] Github Repository Deleted (#3056) * new rule * Update rules/integrations/github/impact_github_repository_deleted.toml * Update rules/integrations/github/impact_github_repository_deleted.toml updates based on review Co-authored-by: Ruben Groenewoud <78494512+Aegrah@users.noreply.github.com> --------- Co-authored-by: Ruben Groenewoud <78494512+Aegrah@users.noreply.github.com> --- .../impact_github_repository_deleted.toml | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 rules/integrations/github/impact_github_repository_deleted.toml diff --git a/rules/integrations/github/impact_github_repository_deleted.toml b/rules/integrations/github/impact_github_repository_deleted.toml new file mode 100644 index 000000000..a3193318c --- /dev/null +++ b/rules/integrations/github/impact_github_repository_deleted.toml @@ -0,0 +1,47 @@ +[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/29" + +[rule] +author = ["Elastic"] +description = """ +This rule detects when a GitHub repository is deleted within your organization. +Repositories are a critical component used within an organization to manage work, +collaborate with others and release products to the public. Any delete action against +a repository should be investigated to determine it's validity. Unauthorized deletion +of organization repositories could cause irreversible loss of intellectual property and +indicate compromise within your organization. +""" +from = "now-9m" +index = ["logs-github.audit-*"] +language = "eql" +license = "Elastic License v2" +name = "GitHub Repository Deleted" +risk_score = 47 +rule_id = "345889c4-23a8-4bc0-b7ca-756bd17ce83b" +severity = "medium" +tags = ["Domain: Cloud", "Use Case: Threat Detection", "Tactic: Impact", "Data Source: Github"] +timestamp_override = "event.ingested" +type = "eql" +query = ''' +configuration where event.module == "github" and event.action == "repo.destroy" +''' + +[[rule.threat]] +framework = "MITRE ATT&CK" +[[rule.threat.technique]] +id = "T1485" +name = "Data Destruction" +reference = "https://attack.mitre.org/techniques/T1485/" + + + +[rule.threat.tactic] +id = "TA0040" +name = "Impact" +reference = "https://attack.mitre.org/tactics/TA0040/" +