{"id":"69b3bd1e-b38a-462f-9a23-fbdbf63d2294","title":"Github Fork Private Repositories Setting Enabled/Cleared","description":"Detects when the policy allowing forks of private and internal repositories is changed (enabled or cleared).\n","author":"Romain Gaillard (@romain-gaillard)","status":"test","level":"medium","date":"2024-07-29","modified":"","tags":["attack.persistence","attack.exfiltration","attack.t1020","attack.t1537"],"technique_ids":["T1020","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"},"falsepositives":["Allowed administrative activities."],"references":["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"],"source_path":"rules/application/github/audit/github_fork_private_repos_enabled_or_cleared.yml","source_sha256":"94dca97f362a33fc612cb98df8c81631dddc56fa185f0a02c9d6bbe445c3b9a4","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/application/github/audit/github_fork_private_repos_enabled_or_cleared.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Github Fork Private Repositories Setting Enabled/Cleared\nid: 69b3bd1e-b38a-462f-9a23-fbdbf63d2294\nstatus: test\ndescription: |\n    Detects when the policy allowing forks of private and internal repositories is changed (enabled or cleared).\nreferences:\n    - 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\nauthor: Romain Gaillard (@romain-gaillard)\ndate: 2024-07-29\ntags:\n    - attack.persistence\n    - attack.exfiltration\n    - attack.t1020\n    - attack.t1537\nlogsource:\n    product: github\n    service: audit\n    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'\ndetection:\n    selection:\n        action:\n            - '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.\n            - '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.\n    condition: selection\nfalsepositives:\n    - Allowed administrative activities.\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1020","id":"T1020","name":"Automated Exfiltration","page":"techniques/enterprise/T1020/"},{"key":"enterprise/T1537","id":"T1537","name":"Transfer Data to Cloud Account","page":"techniques/enterprise/T1537/"}],"data_path":"data/detection-rules/69b3bd1e-b38a-462f-9a23-fbdbf63d2294.json","kind":"sigma"}
