Github Fork Private Repositories Setting Enabled/Cleared
Detects when the policy allowing forks of private and internal repositories is changed (enabled or cleared).
Sigma rule (View on GitHub)
1title: Github Fork Private Repositories Setting Enabled/Cleared
2id: 69b3bd1e-b38a-462f-9a23-fbdbf63d2294
3status: experimental
4description: |
5 Detects when the policy allowing forks of private and internal repositories is changed (enabled or cleared).
6references:
7 - https://docs.github.com/en/enterprise-cloud@latest/admin/monitoring-activity-in-your-enterprise/reviewing-audit-logs-for-your-enterprise/audit-log-events-for-your-enterprise#private_repository_forking
8author: Romain Gaillard (@romain-gaillard)
9date: 2024-07-29
10tags:
11 - attack.persistence
12 - attack.t1020
13 - attack.t1537
14logsource:
15 product: github
16 service: audit
17 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'
18detection:
19 selection:
20 action:
21 - 'private_repository_forking.clear' # An enterprise owner cleared the policy setting for allowing forks of private and internal repositories, for a repository, organization or enterprise.
22 - 'private_repository_forking.enable' # An enterprise owner enabled the policy setting for allowing forks of private and internal repositories, for a repository, organization or enterprise. Private and internal repositories are always allowed to be forked.
23 condition: selection
24falsepositives:
25 - Allowed administrative activities.
26level: medium
References
Related rules
- Github Repository/Organization Transferred
- Suspicious BlackCat-Related Exfiltration Command
- A Member Was Added to a Security-Enabled Global Group
- A Member Was Removed From a Security-Enabled Global Group
- A New Trust Was Created To A Domain