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: test
 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.exfiltration
13    - attack.t1020
14    - attack.t1537
15logsource:
16    product: github
17    service: audit
18    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'
19detection:
20    selection:
21        action:
22            - '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.
23            - '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.
24    condition: selection
25falsepositives:
26    - Allowed administrative activities.
27level: medium

References

Related rules

to-top