DET-023 · human · confidence High
Cloud Logging and Detector Tampering
Alert on any call that stops, deletes or narrows cloud audit logs or threat detection.
These calls are rare and almost never part of normal work. The list in AWS includes StopLogging, DeleteTrail, UpdateTrail, PutEventSelectors, DeleteDetector, UpdateDetector, CreateFilter with an archive action, DisassociateFromAdministratorAccount, StopConfigurationRecorder and DeleteFlowLogs. Azure and GCP have matching operations on diagnostic settings and log sinks. Each one should page.
Insiders often narrow rather than delete, so diff event selectors and detector settings, not just on/off state. A short StopLogging and StartLogging pair hides a window of activity that you should rebuild from other sources such as VPC flow logs or S3 access logs.
- Data sources
- AWS CloudTrailAzure Activity LogGCP Cloud Audit Logs
- Platforms
- AWSAzureGCP
Logic
index=cloudtrail eventName IN (StopLogging, DeleteTrail, UpdateTrail, PutEventSelectors, PutInsightSelectors, DeleteDetector, UpdateDetector, CreateFilter, UpdateFilter, DisassociateFromAdministratorAccount, DeleteMembers, StopConfigurationRecorder, DeleteConfigurationRecorder, DeleteDeliveryChannel, DeleteFlowLogs)
| eval suspicious=case(eventName="UpdateDetector" AND requestParameters.enable="false",1, eventName IN ("CreateFilter","UpdateFilter") AND requestParameters.action="ARCHIVE",1, true(),1)
// Azure: OperationNameValue =~ "MICROSOFT.INSIGHTS/DIAGNOSTICSETTINGS/DELETE"
// GCP: protoPayload.methodName in ("google.logging.v2.ConfigServiceV2.DeleteSink", "google.logging.v2.ConfigServiceV2.UpdateSink")False positives
Planned logging architecture changes by the security team, and tuning of noisy GuardDuty findings.