Github Delete Action Invoked

 Original Source: [Sigma source]
Title: Github Delete Action Invoked
Status: test
Description:Detects delete action in the Github audit logs for codespaces, environment, project and repo.
References:
  -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
Author: Muhammad Faisal (@faisalusuf)
Date: 2023-01-19
modified:2026-03-09
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:
  -Validate the deletion activity is permitted. The "actor" field need to be validated.
Level: medium