GitHub Enterprise: Audit log streaming modification or destruction
Adversaries with enterprise admin access may modify or delete GitHub Enterprise audit log streaming configurations to blind security monitoring or redirect logs to attacker-controlled infrastructure.
Triage facts
Revision 1- Applicability
- GitHub Enterprise
- Evidence
- Unknown
- Severity
- High
- Action
- Elevated
- Sources
- 2 public sources
- Freshness
- Revision 1Nov 2, 21:10 UTC
- Source quality
- A1Likely
GitHub Enterprise audit log streaming provides a durable record of enterprise events. Unauthorized modification or deletion of these streams allows attackers to evade detection by preventing audit logs from reaching the configured SIEM destination or by hijacking the data stream. This activity is considered a significant defense evasion technique.
Impact
Unauthorized modification of audit log streams results in a loss of security visibility. If the production SIEM destination is deleted or reconfigured to an untrusted endpoint, security operations teams will lose the ability to detect subsequent malicious activity within the GitHub environment.
Recommendation
- Implement monitoring for
audit_log_streaming.updateandaudit_log_streaming.destroyevents in GitHub Enterprise audit logs. - Establish a process to audit current GitHub Enterprise streaming configurations against known-good baselines.
- Review credentials of all enterprise owners to ensure minimal privilege and verify that MFA is enforced for all administrative access.
- If a production stream is destroyed, immediately verify the integrity of the remaining logs and initiate an incident response procedure to rotate credentials and investigate for further unauthorized access.
Threat Hunt
Monitor for unauthorized changes to GitHub Enterprise audit log streaming endpoints.
Data: GitHub audit logs (event.action in ["audit_log_streaming.update", "audit_log_streaming.destroy"])
Mitigations
Implement alerting on GitHub audit log streaming configuration changes and restrict administrative access.
T1562.008