<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>AWS Command Line Interface - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/aws-command-line-interface/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Tue, 09 Jan 2024 12:00:00 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/aws-command-line-interface/feed.xml" rel="self" type="application/rss+xml"/><item><title>AWS CLI Activity Detection for Open S3 Bucket Creation</title><link>https://feed.craftedsignal.io/briefs/2024-01-open-s3-buckets/</link><pubDate>Tue, 09 Jan 2024 12:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-open-s3-buckets/</guid><description>Detection of S3 bucket creation via AWS CLI which might lead to data exposure and unauthorized access.</description><content:encoded><![CDATA[<p>This brief focuses on detecting the creation of publicly accessible Amazon S3 buckets using the AWS Command Line Interface (CLI). While not inherently malicious, creating open S3 buckets can lead to significant data breaches if sensitive information is stored within them. Monitoring AWS CLI usage for S3 bucket creation is crucial for preventing unintentional exposure of data. This activity is often part of a larger attack chain, where adversaries attempt to identify and exploit misconfigured cloud resources for data theft or other malicious purposes. Understanding how these buckets are created and configured allows defenders to identify and remediate potential risks before they are exploited.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker gains initial access to an AWS account, potentially through compromised credentials or a misconfigured IAM role.</li>
<li>Attacker uses the AWS CLI to interact with the AWS environment.</li>
<li>The attacker utilizes the <code>aws s3api create-bucket</code> command to create a new S3 bucket.</li>
<li>The attacker then uses the <code>aws s3api put-bucket-acl</code> command to set the bucket's Access Control List (ACL) to <code>public-read</code> or <code>public-read-write</code>, making the bucket publicly accessible.</li>
<li>Alternatively, the attacker may use <code>aws s3api put-bucket-policy</code> to configure a bucket policy that allows public access.</li>
<li>The attacker uploads data to the publicly accessible S3 bucket.</li>
<li>The attacker may then attempt to exfiltrate data from other AWS resources into the newly created, open S3 bucket before final exfiltration.</li>
<li>The ultimate goal is to exfiltrate sensitive data or use the open bucket as a staging ground for further attacks.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>The impact of creating open S3 buckets can be severe. Data stored in publicly accessible buckets can be easily accessed by anyone on the internet, leading to data breaches, compliance violations, and reputational damage. Depending on the data stored, this can affect thousands or millions of users. Organizations in all sectors, including healthcare, finance, and government, are potential targets. A successful attack can result in the loss of sensitive personal information, financial data, intellectual property, and other confidential information.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the &quot;Detect New Open S3 Buckets Over AWS CLI&quot; Sigma rule to your SIEM and tune for your environment to detect suspicious bucket creation activity.</li>
<li>Monitor AWS CloudTrail logs for <code>CreateBucket</code> and <code>PutBucketAcl</code> events to detect S3 bucket creation and ACL modifications.</li>
<li>Implement and enforce least privilege IAM policies to restrict who can create and modify S3 buckets, and limit the ability to make them public.</li>
<li>Regularly audit S3 bucket permissions to identify and remediate any publicly accessible buckets.</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>aws</category><category>s3</category><category>cloud</category><category>data-breach</category></item><item><title>Detection of Public AWS S3 Bucket Creation via CLI</title><link>https://feed.craftedsignal.io/briefs/2024-01-03-aws-s3-public-bucket/</link><pubDate>Wed, 03 Jan 2024 10:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-03-aws-s3-public-bucket/</guid><description>An AWS user creates a publicly accessible S3 bucket by using the AWS CLI to set permissive ACLs, potentially leading to unauthorized data access and data breaches.</description><content:encoded><![CDATA[<p>This brief focuses on the detection of publicly accessible Amazon S3 buckets created via the AWS Command Line Interface (CLI). The creation of public S3 buckets is a common security misconfiguration that can lead to sensitive data exposure. This activity is detected by analyzing AWS CloudTrail logs for <code>PutBucketAcl</code> events where the bucket's access control list (ACL) is configured to grant read, write, or full control to &quot;AuthenticatedUsers&quot; or &quot;AllUsers.&quot; This activity is particularly important to monitor because it represents a direct path for unauthorized access to data stored within the S3 bucket. The detection logic is based on the Splunk Security Content analytic &quot;Detect New Open S3 Buckets over AWS CLI&quot; (version 9, published April 15, 2026). Successfully exploited public buckets can lead to data exfiltration, data corruption, or other malicious activity.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker gains access to valid AWS credentials, potentially through compromised user accounts or leaked API keys.</li>
<li>The attacker uses the AWS CLI to create a new S3 bucket using the <code>aws s3api create-bucket</code> command.</li>
<li>The attacker then uses the <code>aws s3api put-bucket-acl</code> command to modify the bucket's Access Control List (ACL).</li>
<li>In the <code>put-bucket-acl</code> command, the attacker sets permissions to grant read, write, or full control to &quot;AuthenticatedUsers&quot; or &quot;AllUsers&quot; by manipulating the <code>x-amz-grant-read</code>, <code>x-amz-grant-write</code>, and <code>x-amz-grant-full-control</code> parameters.</li>
<li>AWS CloudTrail logs the <code>PutBucketAcl</code> event, capturing details of the user, bucket name, and ACL configuration.</li>
<li>The attacker uploads sensitive data to the newly created, publicly accessible S3 bucket.</li>
<li>Unauthorized users or automated bots discover the public S3 bucket and access the exposed data.</li>
<li>The attacker exfiltrates the publicly available data, or modifies/corrupts data within the bucket.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Creation of publicly accessible S3 buckets can lead to severe data breaches. Unauthorized access to sensitive data stored in these buckets can result in financial loss, reputational damage, and legal liabilities. The number of affected individuals or organizations can vary widely, depending on the type and amount of data exposed. Public buckets can be indexed by search engines, further increasing the risk of unauthorized access. Data exfiltration or corruption can severely disrupt business operations and erode customer trust.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the Sigma rule &quot;Detect Public AWS S3 Bucket Creation via CLI&quot; to your SIEM and tune for your environment to detect the described activity based on CloudTrail logs.</li>
<li>Review and harden IAM policies to restrict the ability of users and roles to modify S3 bucket ACLs, preventing unintended public access.</li>
<li>Regularly audit existing S3 buckets to identify and remediate any publicly accessible buckets, using AWS Trusted Advisor or similar tools.</li>
<li>Implement automated monitoring and alerting for S3 bucket ACL changes using AWS CloudWatch Events and Lambda functions.</li>
<li>Enforce the principle of least privilege by granting only necessary permissions to users and roles, minimizing the risk of accidental or malicious misconfiguration.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>aws</category><category>s3</category><category>cloudtrail</category><category>misconfiguration</category><category>data-breach</category></item></channel></rss>