Unit 42 Details Techniques for Abusing AWS and Google Cloud Logging Services for Defense Evasion

Hackers Can Blind Your SOC: New Research Reveals How Attackers Abuse Cloud Logging for Stealth

MEDIUM
June 10, 2026
12m read
Cloud SecurityThreat IntelligenceSecurity Operations

Related Entities

Products & Tech

AWS CloudTrail Amazon S3 CloudTrail LakeEventBridgeCloudWatch LogsGoogle Cloud Logging

Full Report

Executive Summary

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.


Threat Overview

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:

  1. Disruption of Log Flow: Preventing new logs from being generated or delivered.
  2. Manipulation of Existing Logs: Deleting or encrypting stored logs to prevent analysis.

Understanding these techniques is essential for building a resilient cloud security monitoring strategy.

Technical Analysis

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.

1. Disabling the Logging Mechanism

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.

2. Deleting the Log Storage

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.

3. Deleting the Log Router

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.

4. Modifying Encryption Keys

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:

  1. Change the log encryption key to one they control.
  2. Encrypt new logs with the malicious key.
  3. Revoke the victim's access to that key.

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.

Impact Assessment

The impact of successfully blinding cloud logging services is severe and multifaceted:

  • Delayed or Failed Threat Detection: Security tools (SIEM, CSPM, XDR) are starved of data, preventing them from generating alerts on malicious activity.
  • Impeded Incident Response: Without logs, responders cannot determine the scope of a breach, the attacker's actions, or the root cause, making eviction and recovery extremely difficult.
  • Compliance Violations: Many regulatory frameworks (PCI-DSS, HIPAA, GDPR) have strict requirements for audit logging. The loss of logs can lead to significant fines and legal penalties.
  • Increased Attacker Dwell Time: Attackers can operate for extended periods without fear of discovery, allowing them to achieve their objectives, whether it be data theft, espionage, or destruction.

IOCs — Directly from Articles

No specific indicators of compromise (IOCs) were provided in this research article, as it focuses on attack techniques rather than a specific campaign.

Cyber Observables — Hunting Hints

The following patterns can help security teams hunt for attempts to tamper with cloud logging infrastructure:

Type
api_endpoint
Value
cloudtrail.amazonaws.com
Description
Monitor for sensitive API calls such as StopLogging, DeleteTrail, UpdateTrail.
Type
api_endpoint
Value
logging.googleapis.com
Description
Monitor for sensitive API calls such as DeleteSink or UpdateSink.
Type
event_id
Value
DeleteBucket
Description
An alert on the deletion of a bucket known to store security logs is a high-fidelity indicator of tampering.
Type
registry_key
Value
kms:ScheduleKeyDeletion
Description
Monitor for attempts to delete KMS keys, especially those used for encrypting logs.
Type
log_source
Value
AWS CloudTrail / GCP Audit Logs
Description
These logs (metaphorically, the logs about logging) are the primary source for detecting tampering. Ensure they are protected.

Detection & Response

Defenders should focus on protecting the logging pipeline itself:

  1. Monitor Critical API Calls: Configure high-priority alerts for any API calls that can modify or disable logging, such as 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.
  2. Log Integrity Monitoring: Use features like AWS CloudTrail Log File Integrity Validation to ensure that log files have not been tampered with after delivery.
  3. Immutable Storage: Store critical logs in immutable storage, such as an S3 bucket with Object Lock in Compliance mode, to prevent deletion or modification.
  4. Cross-Account Log Shipping: Send logs to a dedicated, highly secured logging account. Access to this account should be severely restricted, separate from production environments, making it much harder for an attacker to compromise both.

Mitigation

Implement a defense-in-depth strategy to secure cloud logging services:

  • Least Privilege IAM: Enforce strict, least-privilege IAM policies. No user or service role should have permission to alter logging configurations as part of their normal duties. These permissions should be reserved for break-glass administrator roles protected by Multi-factor Authentication (D3-MFA).
  • Service Control Policies (SCPs): In AWS Organizations, use SCPs to create guardrails that deny actions like cloudtrail:StopLogging or s3:DeleteBucket on the logging bucket for all principals except a specific administrative role.
  • Resource Protection: Enable termination protection on CloudTrail trails and S3 buckets. In Google Cloud, use resource liens to prevent the deletion of projects containing log sinks.
  • Regular Audits: Regularly audit IAM permissions and logging configurations to ensure they have not been weakened over time. This aligns with the principles of Application Configuration Hardening (D3-ACH).

Timeline of Events

1
June 10, 2026
This article was published

MITRE ATT&CK Mitigations

Applies conceptually to Cloud IAM. Enforce least-privilege permissions to prevent users/roles from modifying logging configurations.

Mapped D3FEND Techniques:

Audit

M1047enterprise

Audit all changes to logging infrastructure and enable log file integrity validation.

Mapped D3FEND Techniques:

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:

D3FEND Defensive Countermeasures

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.

Sources & References

Article Author

Jason Gomes

Jason Gomes

• Cybersecurity Practitioner

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.

Threat Intelligence & AnalysisSecurity Orchestration (SOAR/XSOAR)Incident Response & Digital ForensicsSecurity Operations Center (SOC)SIEM & Security AnalyticsCyber Fusion & Threat SharingSecurity Automation & IntegrationManaged Detection & Response (MDR)

Tags

Cloud SecurityAWSGCPDefense EvasionLog ManipulationCloudTrailThreat ResearchSIEM

📢 Share This Article

Help others stay informed about cybersecurity threats

🎯 MITRE ATT&CK Mapped

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.

🧠 Enriched & Analyzed

Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.

🛡️ Actionable Guidance

Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.

🔗 STIX Visualizer

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 Generator

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.