Suspicious Github Delete Action Invoked (via audit)
This rule detects delete action in the Github audit logs for codespaces, environment, project and repo.
Sigmamediumv1
sigma
suspicious-github-delete-action-invoked-via-audit
title: Suspicious Github Delete Action Invoked (via audit)
id: 72127270-8c02-5f58-b550-a7114c965c08
status: stable
description: This rule detects delete action in the Github audit logs for codespaces, environment, project and repo.
author: Huntrule Team
date: 2026-07-09
references:
- https://attack.mitre.org/techniques/T1213/003/
- https://docs.github.com/en/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/reviewing-the-audit-log-for-your-organization#audit-log-actions
- https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/security-log-events#codespaces
tags:
- attack.impact
- attack.collection
- attack.t1213.003
logsource:
product: github
service: audit
definition: 'Requirements: The audit log streaming feature must be enabled to be able to receive such logs. You can enable following the documentation here: https://docs.github.com/en/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/streaming-the-audit-log-for-your-enterprise#setting-up-audit-log-streaming'
detection:
selection:
action:
- 'codespaces.destroy'
- 'environment.delete'
- 'project.delete'
- 'repo.destroy'
condition: selection
falsepositives:
- Unknown
level: medium
Known false positives
- Unknown
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.