Github Delete Action Invoked

Detects delete action in the Github audit logs for codespaces, environment, project and repo.

Sigma rule (View on GitHub)

 1title: Github Delete Action Invoked
 2id: 16a71777-0b2e-4db7-9888-9d59cb75200b
 3status: test
 4description: Detects delete action in the Github audit logs for codespaces, environment, project and repo.
 5author: Muhammad Faisal (@faisalusuf)
 6date: 2023/01/19
 7references:
 8    - 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
 9tags:
10    - attack.impact
11    - attack.collection
12    - attack.t1213.003
13logsource:
14    product: github
15    service: audit
16    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'
17detection:
18    selection:
19        action:
20            - 'codespaces.delete'
21            - 'environment.delete'
22            - 'project.delete'
23            - 'repo.destroy'
24    condition: selection
25falsepositives:
26    - Validate the deletion activity is permitted. The "actor" field need to be validated.
27level: medium

References

Related rules

to-top