AWS S3: Monitoring for weakened Bucket Block Public Access settings
Attackers may target AWS S3 bucket configurations by disabling Block Public Access settings to facilitate unauthorized data exposure.
Triage facts
Revision 1- Applicability
- AWS S3
- Evidence
- Unknown
- Severity
- Medium
- Action
- Elevated
- Freshness
- Revision 1Oct 21, 03:44 UTC
- Detection
- 1 rule
- Source quality
- A1Likely
Security teams must monitor for modifications to AWS S3 Block Public Access configurations. The "Block Public Access" feature is a critical security control that provides a centralized mechanism to prevent the accidental or malicious exposure of buckets and objects. When an actor modifies this configuration to disable restrictive settings (such as setting 'BlockPublicAcls', 'BlockPublicPolicy', 'IgnorePublicAcls', or 'RestrictPublicBuckets' to false), it significantly increases the risk of unauthorized public access. This activity is often a precursor to data exfiltration or the staging of malicious files for further distribution. Detecting these changes in AWS CloudTrail logs is essential for identifying potential defense impairment activities within a cloud environment.
Attack Chain
- Attacker gains initial access to an AWS environment with sufficient IAM permissions to modify S3 bucket configurations.
- Attacker performs reconnaissance to identify S3 buckets containing sensitive or valuable data.
- Attacker uses the 'PutBucketPublicAccessBlock' API call to modify the security settings of a target bucket.
- Attacker sets one or more protection flags (BlockPublicAcls, BlockPublicPolicy, etc.) to 'false' to weaken the security posture.
- Attacker applies a permissive Bucket Policy or Access Control List (ACL) to make the object contents readable by the public.
- Attacker exfiltrates data from the publicly exposed S3 bucket.
- Attacker potentially uses the exposed bucket to host or serve malicious payloads for subsequent campaigns.
Impact
Successful weakening of S3 bucket security controls can lead to widespread, unauthenticated exposure of sensitive data stored in AWS. This results in significant compliance violations, intellectual property theft, and potential reputational damage for organizations. If these settings are disabled, the bucket becomes susceptible to unauthorized access from any internet-connected host, depending on the scope of the applied bucket policies or ACLs.
Recommendation
Deploy the provided Sigma rule to alert on modifications that weaken S3 security posture. Audit existing bucket configurations to ensure that Block Public Access is enabled by default across the organization. Implement IAM policies following the principle of least privilege to restrict the 's3:PutBucketPublicAccessBlock' permission to authorized administrative service accounts only.
Tags
- cloud-security
- aws
- defense-impairment
Immediate actions
Deploy the Sigma rule to alert on weakening of S3 public access controls
Mitigations
Apply SCPs to restrict who can perform PutBucketPublicAccessBlock
S3 Configuration Security
Detection coverage 1
Detect AWS S3 Bucket Block Public Access Weakened
mediumDetects the weakening of Block Public Access settings of S3 buckets in CloudTrail logs, which may indicate preparation for unauthorized data exposure.
Detection queries are available on the platform. Get full rules →