Delete a GCP Log Sink
Platform: GCP
Mappings
- MITRE ATT&CK
- Defense Evasion
Description
Deletes a Cloud Logging sink that exports audit logs to a storage destination. Simulates an attacker disrupting audit log export to impair forensic investigation and detection.
Warm-up:
- Create a GCS bucket
- Create a log sink exporting audit logs (
cloudaudit.googleapis.com) to the bucket
Detonation:
- Delete the log sink
References:
- https://cloud.google.com/logging/docs/export/configure_export_v2
- https://www.trendmicro.com/cloudoneconformity/knowledge-base/gcp/CloudLogging/logging-sink.html
- https://attack.mitre.org/techniques/T1562/008/
- https://redcanary.com/threat-detection-report/trends/cloud-attacks/
Instructions
Detection
Identify when a log sink is deleted using the GCP Admin Activity audit log event
google.logging.v2.ConfigServiceV2.DeleteSink.