Github Push Protection Disabled

 Original Source: [Sigma source]
Title: Github Push Protection Disabled
Status: test
Description:Detects if the push protection feature is disabled for an organization, enterprise, repositories or custom pattern rules.
References:
  -https://docs.github.com/en/enterprise-cloud@latest/code-security/secret-scanning/push-protection-for-repositories-and-organizations
  -https://thehackernews.com/2024/03/github-rolls-out-default-secret.html
Author: Muhammad Faisal (@faisalusuf)
Date: 2024-03-07
modified:None
Tags:
  • -'attack.defense-impairment'
  • -'attack.t1685'
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:
      -'business_secret_scanning_custom_pattern_push_protection.disabled'
      -'business_secret_scanning_push_protection.disable'
      -'business_secret_scanning_push_protection.disabled_for_new_repos'
      -'org.secret_scanning_custom_pattern_push_protection_disabled'
      -'org.secret_scanning_push_protection_disable'
      -'org.secret_scanning_push_protection_new_repos_disable'
      -'repository_secret_scanning_custom_pattern_push_protection.disabled'

  condition:selection
Falsepositives:
  -Allowed administrative activities.
Level: high