Github Outside Collaborator Detected
Detects when an organization member or an outside collaborator is added to or removed from a project board or has their permission level changed or when an owner removes an outside collaborator from an organization or when two-factor authentication is required in an organization and an outside collaborator does not use 2FA or disables 2FA.
Sigma rule (View on GitHub)
1title: Github Outside Collaborator Detected
2id: eaa9ac35-1730-441f-9587-25767bde99d7
3status: test
4description: |
5 Detects when an organization member or an outside collaborator is added to or removed from a project board or has their permission level changed or when an owner removes an outside collaborator from an organization or when two-factor authentication is required in an organization and an outside collaborator does not use 2FA or disables 2FA.
6author: Muhammad Faisal (@faisalusuf)
7date: 2023-01-20
8references:
9 - https://docs.github.com/en/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/reviewing-the-audit-log-for-your-organization#audit-log-actions
10 - https://docs.github.com/en/organizations/keeping-your-organization-secure/managing-two-factor-authentication-for-your-organization/requiring-two-factor-authentication-in-your-organization
11tags:
12 - attack.privilege-escalation
13 - attack.persistence
14 - attack.collection
15 - attack.t1098.001
16 - attack.t1098.003
17 - attack.t1213.003
18logsource:
19 product: github
20 service: audit
21 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'
22detection:
23 selection:
24 action:
25 - 'org.remove_outside_collaborator'
26 - 'project.update_user_permission'
27 condition: selection
28falsepositives:
29 - Validate the actor if permitted to access the repo.
30 - Validate the Multifactor Authentication changes.
31level: medium
References
Related rules
- Github Self Hosted Runner Changes Detected
- Added Credentials to Existing Application
- Attempts of Kerberos Coercion Via DNS SPN Spoofing
- Granting Of Permissions To An Account
- Okta Admin Role Assigned to an User or Group