Unit 42 has published new research detailing how threat actors can systematically dismantle an organization's security visibility by targeting the cloud logging services themselves. The report focuses on attack scenarios against Amazon Web Services (AWS) CloudTrail and Google Cloud Logging, which serve as the system of record for all actions within a cloud environment. By disabling, altering, or deleting logs, attackers can effectively achieve defense evasion, blinding Security Information and Event Management (SIEM) systems, Cloud Security Posture Management (CSPM) tools, and security analysts. This research highlights the critical need for organizations to not only consume logs but also to secure the logging pipeline itself against tampering and disruption. The findings provide defenders with the knowledge to anticipate these attacks and implement robust protective measures.
Cloud logging services like AWS CloudTrail and Google Cloud Logging are the cornerstones of modern cloud security operations. They provide the necessary data for threat detection, incident response, and compliance auditing. This dependency makes them a high-value target for sophisticated attackers. An attacker who gains sufficient permissions within a cloud account can manipulate these services to hide their malicious activities, prolong their dwell time, and exfiltrate data without triggering alerts.
The attack techniques fall into two primary categories:
Understanding these techniques is essential for building a resilient cloud security monitoring strategy.
Unit 42 demonstrated several specific techniques that attackers can use to compromise cloud logging integrity. These methods often require an attacker to have already obtained a certain level of privileged access within the cloud environment.
The most direct approach is to stop the logging service itself. In AWS, this can be done using the StopLogging API call against a CloudTrail trail. This action immediately ceases the recording of API events, creating a complete visibility gap for the duration it is disabled. This maps directly to T1562.008 - Impair Defenses: Disable Cloud Logs.
Cloud logs are typically stored in object storage, such as an Amazon S3 bucket. If an attacker gains permissions to this bucket (e.g., s3:DeleteBucket), they can delete it entirely. While the logging service may still be running, it will have no destination to write to, causing log delivery to fail. This aligns with T1070.004 - Indicator Removal: File Deletion.
Attackers can also target the configuration that routes logs to their destination. In AWS, this is the Trail object; in Google Cloud, it is the Sink. By deleting the trail (via DeleteTrail API) or the sink (via DeleteSink method), the attacker breaks the connection between event generation and log storage. This is a form of T1562.001 - Impair Defenses: Disable or Modify Tools.
A more subtle technique involves rendering logs unreadable. Cloud logs are often encrypted at rest using services like AWS Key Management Service (KMS) or Google Cloud KMS. An attacker could:
The result is that the victim has log files they cannot decrypt or read, effectively blinding them to the activities recorded during that period. This can be considered a form of data manipulation for defense evasion.
The impact of successfully blinding cloud logging services is severe and multifaceted:
No specific indicators of compromise (IOCs) were provided in this research article, as it focuses on attack techniques rather than a specific campaign.
The following patterns can help security teams hunt for attempts to tamper with cloud logging infrastructure:
cloudtrail.amazonaws.comStopLogging, DeleteTrail, UpdateTrail.logging.googleapis.comDeleteSink or UpdateSink.DeleteBucketkms:ScheduleKeyDeletionAWS CloudTrail / GCP Audit LogsDefenders should focus on protecting the logging pipeline itself:
StopLogging, DeleteTrail, UpdateTrail, DeleteSink, and DeleteBucket on log archives. Use User Behavior Analysis to detect when these actions are taken by users or roles that normally do not perform them.Implement a defense-in-depth strategy to secure cloud logging services:
cloudtrail:StopLogging or s3:DeleteBucket on the logging bucket for all principals except a specific administrative role.Applies conceptually to Cloud IAM. Enforce least-privilege permissions to prevent users/roles from modifying logging configurations.
Mapped D3FEND Techniques:
Audit all changes to logging infrastructure and enable log file integrity validation.
Require MFA for all privileged roles, especially those that can manage logging configurations.
Mapped D3FEND Techniques:
Harden the configuration of logging resources, such as enabling termination protection and object locks.
Mapped D3FEND Techniques:
To counter the abuse of cloud logging services, the principle of least privilege must be rigorously enforced on all cloud IAM roles and users. Specifically, permissions to alter logging infrastructure—such as cloudtrail:StopLogging, cloudtrail:DeleteTrail, s3:DeleteBucket on log archives, or logging.sinks.delete in GCP—should be explicitly denied by default. These sensitive permissions should only be granted to a very small set of break-glass administrative roles that are not used for daily operations. Access to these roles should require multi-factor authentication and a formal check-in/check-out process. Furthermore, use AWS Service Control Policies (SCPs) or GCP Organization Policies to create preventative guardrails that block these actions for all principals except the designated administrative roles, making it impossible for even a compromised role to disable logging.
A key strategy to protect log data is to isolate it from the environments it monitors. This is achieved by configuring log shipping to a dedicated, separate security account (in AWS) or project (in GCP). This logging archive should have its own strict permission model, completely independent of the source accounts. Network access to this account's resources, such as the S3 bucket or BigQuery dataset, should be restricted to only the cloud service's logging principal. This creates a one-way data flow; the production accounts can write logs to the archive, but principals within those production accounts cannot access, modify, or delete the archive. This isolation ensures that even if an attacker achieves full administrative control over a source account, they cannot erase the audit trail of their actions, as it resides in a separate, protected location.
Harden the configuration of the logging components themselves to prevent tampering. In AWS, enable CloudTrail Log File Integrity Validation, which provides a cryptographic hash of log files, allowing you to detect if a log file has been altered or deleted after delivery. For the S3 bucket storing logs, enable MFA Delete and Object Lock in Compliance mode. MFA Delete requires an additional factor of authentication to change the bucket's versioning state or permanently delete an object version. Object Lock prevents objects from being deleted or overwritten for a fixed amount of time, creating immutable storage. In Google Cloud, use bucket locks on Cloud Storage buckets and consider placing a resource lien on the logging project to prevent accidental or malicious deletion. These configurations provide strong technical controls against the deletion and modification techniques described in the research.

Cybersecurity professional with over 10 years of specialized experience in security operations, threat intelligence, incident response, and security automation. Expertise spans SOAR/XSOAR orchestration, threat intelligence platforms, SIEM/UEBA analytics, and building cyber fusion centers. Background includes technical enablement, solution architecture for enterprise and government clients, and implementing security automation workflows across IR, TIP, and SOC use cases.
Help others stay informed about cybersecurity threats
Every tactic, technique, and sub-technique used in this threat has been identified and mapped to the MITRE ATT&CK framework for consistent, actionable threat language.
Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.
Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.
Structured threat data is packaged as a STIX 2.1 bundle and can be visualized as an interactive graph — relationships between actors, malware, techniques, and indicators.
Sigma detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.