Suspicious Github Fork Private Repositories Setting Enabled/Cleared (via audit)

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

Sigmamediumv1
sigma
title: Suspicious Github Fork Private Repositories Setting Enabled/Cleared (via audit)
id: 5248d8a4-11d8-54cb-b2cc-d49a5d6915f8
status: stable
description: This rule detects when the policy allowing forks of private and internal repositories is changed (enabled or cleared).
references:
    - https://attack.mitre.org/techniques/T1537/
    - https://attack.mitre.org/techniques/T1020/
    - 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
author: Huntrule Team
date: 2026-07-18
tags:
    - attack.persistence
    - attack.exfiltration
    - attack.t1020
    - attack.t1537
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:
            - 'private_repository_forking.clear'
            - 'private_repository_forking.enable'
    condition: selection
falsepositives:
    - Unknown
level: medium

Known false positives

  • Unknown

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.