Sigma rule: Github Fork Private Repositories Setting Enabled/Cleared

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-8d4477c705b0, updated 2024-07-29T00:00:00.000Z.

Rule

Title
Github Fork Private Repositories Setting Enabled/Cleared
Status
test
Level
medium
Author
Romain Gaillard (@romain-gaillard)
Date
2024-07-29
File
rules/application/github/audit/github_fork_private_repos_enabled_or_cleared.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects when the policy allowing forks of private and internal repositories is changed (enabled or cleared).

Log source

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:
        - '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.
        - '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.
condition: selection

False positives (as the rule lists them)

  • Allowed administrative activities.

Tags

  • attack.persistence
  • attack.exfiltration
  • attack.t1020
  • attack.t1537

MITRE ATT&CK ids this rule names

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/application/github/audit/github_fork_private_repos_enabled_or_cleared.yml

Sources and licences

  • SigmaHQ

    "Github Fork Private Repositories Setting Enabled/Cleared" by Romain Gaillard (@romain-gaillard) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/application/github/audit/github_fork_private_repos_enabled_or_cleared.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Github Fork Private Repositories Setting Enabled/Cleared",
entity page, dataset version ref-8d4477c705b0, updated 2024-07-29T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/69b3bd1e-b38a-462f-9a23-fbdbf63d2294 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 69b3bd1e-b38a-462f-9a23-fbdbf63d2294, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.