<?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>Datadestruction - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/datadestruction/</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>Wed, 03 Jul 2024 14:30:00 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/datadestruction/feed.xml" rel="self" type="application/rss+xml"/><item><title>AWS RDS DB Instance or Cluster Deletion Protection Disabled</title><link>https://feed.craftedsignal.io/briefs/2024-07-aws-rds-deletion-protection-disabled/</link><pubDate>Wed, 03 Jul 2024 14:30:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-07-aws-rds-deletion-protection-disabled/</guid><description>An adversary may disable deletion protection on an AWS RDS DB instance or cluster as a precursor to destructive actions, such as deleting databases containing sensitive data.</description><content:encoded><![CDATA[<p>This alert identifies instances where the deletionProtection feature of an AWS RDS DB instance or cluster is disabled. Deletion protection is a security mechanism that prevents accidental or unauthorized deletion of RDS resources. An adversary with sufficient permissions within a compromised AWS environment may disable this protection to pave the way for destructive activities, including the deletion of databases that hold sensitive or business-critical information. The detection focuses on explicit modifications setting <code>deletionProtection</code> to <code>false</code> on RDS DB instances or clusters. This activity is often a precursor to a <code>DeleteDBInstance</code> or <code>DeleteDBCluster</code> action.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>The adversary gains access to an AWS account with sufficient privileges to modify RDS instances or clusters, potentially through compromised credentials or an insider threat.</li>
<li>The attacker authenticates to the AWS Management Console, CLI, or API using the compromised credentials or assumed role.</li>
<li>The attacker uses the <code>ModifyDBInstance</code> or <code>ModifyDBCluster</code> API call to target a specific RDS DB instance or cluster.</li>
<li>Within the <code>ModifyDBInstance</code> or <code>ModifyDBCluster</code> API call, the attacker sets the <code>deletionProtection</code> parameter to <code>false</code>.</li>
<li>AWS CloudTrail logs the <code>ModifyDBInstance</code> or <code>ModifyDBCluster</code> event with <code>deletionProtection=false</code> in the <code>requestParameters</code>.</li>
<li>The attacker may then initiate a <code>DeleteDBInstance</code> or <code>DeleteDBCluster</code> API call to remove the targeted RDS resource.</li>
<li>The database instance or cluster is deleted, resulting in data loss and potential disruption of services.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Disabling deletion protection on AWS RDS instances or clusters can lead to the unauthorized or accidental deletion of critical databases. Successful execution of this attack can result in significant data loss, business disruption, and potential financial repercussions. The impact can range from temporary service outages to permanent data loss, depending on the affected systems and backup policies.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the Sigma rule <code>AWS RDS Deletion Protection Disabled via CloudTrail</code> to your SIEM and tune for your environment to detect when deletion protection is disabled (refer to the rule definition below).</li>
<li>Review <code>aws.cloudtrail.user_identity.arn</code> to determine the IAM principal that made the change, and validate whether this principal normally performs RDS lifecycle operations as outlined in the investigation guide.</li>
<li>Immediately re-enable deletion protection (<code>deletionProtection=true</code>) on the affected DB instance or cluster if the change was unauthorized, as described in the remediation steps in the overview.</li>
<li>Restrict who can modify <code>ModifyDBInstance</code> or <code>ModifyDBCluster</code> destructive settings, such as deletion protection, backup retention, and public accessibility.</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>cloud</category><category>aws</category><category>rds</category><category>datadestruction</category></item><item><title>AWS RDS Snapshot Deletion Detected</title><link>https://feed.craftedsignal.io/briefs/2024-07-aws-rds-snapshot-deletion/</link><pubDate>Wed, 03 Jul 2024 12:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-07-aws-rds-snapshot-deletion/</guid><description>The deletion of AWS RDS DB snapshots or disabling backups via configuration changes can inhibit recovery, destroy forensic evidence, and prepare for destructive actions by adversaries.</description><content:encoded><![CDATA[<p>This rule detects the deletion of AWS RDS DB snapshots or configuration changes that effectively remove backup coverage for a DB instance. RDS snapshots contain full backups of database instances, and disabling automated backups by setting &quot;backupRetentionPeriod=0&quot; has a similar impact by preventing future restore points. A threat actor with sufficient AWS permissions may delete snapshots or disable backups to inhibit recovery, destroy forensic evidence, or prepare for follow-on destructive actions such as instance or cluster deletion. The rule focuses on successful snapshot deletions and backup disabling events within AWS RDS. The scope includes any AWS environment utilizing RDS for database services.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>The attacker gains access to an AWS account with sufficient permissions to manage RDS instances and snapshots, possibly through compromised credentials or an IAM role with excessive privileges.</li>
<li>The attacker enumerates available RDS DB instances and snapshots within the target AWS account using AWS CLI or API calls (e.g., <code>DescribeDBSnapshots</code>, <code>DescribeDBInstances</code>).</li>
<li>The attacker identifies target DB instances and their associated snapshots that are critical for recovery or contain valuable forensic data.</li>
<li>The attacker deletes RDS DB snapshots using the <code>DeleteDBSnapshot</code> API call, effectively removing restore points.</li>
<li>Alternatively, the attacker modifies the DB instance configuration using the <code>ModifyDBInstance</code> API call, setting <code>backupRetentionPeriod</code> to 0 to disable automated backups and prevent future restore points.</li>
<li>The attacker may then delete the RDS instance itself using DeleteDBInstance.</li>
<li>The attacker attempts to cover their tracks by deleting relevant CloudTrail logs or disabling CloudTrail logging.</li>
<li>The attacker's objective is to prevent restoration to a known-good state and destroy forensic evidence of attacker actions, potentially as part of a ransomware attack or data exfiltration attempt.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful deletion of RDS snapshots or disabling of backups can lead to significant data loss and prolonged downtime, making recovery from security incidents or operational failures difficult or impossible. This can impact business continuity, data integrity, and regulatory compliance. The precise impact depends on the criticality of the affected databases and the availability of alternative backup mechanisms. If successful, this can result in total data loss for the organization.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the provided Sigma rule to your SIEM to detect suspicious <code>DeleteDBSnapshot</code>, <code>DeleteDBClusterSnapshot</code>, or <code>ModifyDBInstance</code> events setting <code>backupRetentionPeriod=0</code> in AWS CloudTrail logs.</li>
<li>Restrict IAM permissions for <code>rds:DeleteDBSnapshot</code>, <code>rds:DeleteDBClusterSnapshot</code>, and <code>rds:ModifyDBInstance</code> (especially backup and deletion-related parameters) to a small set of privileged roles, as described in the remediation steps.</li>
<li>Use AWS Config rules and/or Security Hub controls to detect instances with <code>backupRetentionPeriod=0</code>, as recommended in the hardening and preventive controls section.</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>aws</category><category>rds</category><category>snapshot</category><category>backup</category><category>datadestruction</category></item><item><title>AWS KMS Customer Managed Key Disabled or Scheduled for Deletion</title><link>https://feed.craftedsignal.io/briefs/2024-01-aws-kms-deletion/</link><pubDate>Wed, 03 Jan 2024 15:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-aws-kms-deletion/</guid><description>An adversary may disable or schedule the deletion of an AWS customer-managed KMS Key to cause irreversible data loss, disrupt business operations, impede incident response, or hide evidence of prior activity.</description><content:encoded><![CDATA[<p>AWS KMS keys are critical for encryption across various AWS services like S3, EBS, and RDS. Disabling or scheduling a KMS key for deletion disrupts encryption and decryption workflows, potentially rendering data unrecoverable. The Elastic detection rule published on 2026-04-10 identifies attempts to disable or schedule the deletion of an AWS customer-managed KMS Key. These actions are typically rare, privileged, and tightly controlled, making unexpected instances high-risk. Adversaries might target KMS keys to sabotage recovery, impede forensic analysis, or destroy evidence. Defenders should prioritize monitoring KMS key lifecycle changes due to their potential for significant impact on data availability and business operations.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker gains unauthorized access to an AWS account.</li>
<li>The attacker escalates privileges to obtain the necessary KMS permissions.</li>
<li>The attacker uses the AWS CLI or API to execute the <code>DisableKey</code> command, specifying the ARN of the target KMS key.</li>
<li>Alternatively, the attacker uses the AWS CLI or API to execute the <code>ScheduleKeyDeletion</code> command, specifying the ARN of the target KMS key and a pending window in days.</li>
<li>CloudTrail logs the <code>DisableKey</code> or <code>ScheduleKeyDeletion</code> event with a status of &quot;success&quot;.</li>
<li>If <code>DisableKey</code> was used, dependent services immediately begin failing or experience decryption errors.</li>
<li>If <code>ScheduleKeyDeletion</code> was used, the key enters a pending deletion state for the specified number of days.</li>
<li>Upon deletion, all data encrypted with the key becomes unrecoverable, leading to data loss and disruption of services.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Disabling or deleting KMS keys can have severe consequences, potentially impacting numerous AWS services relying on the key for encryption, including S3, EBS, RDS, Secrets Manager, and Lambda. This can lead to data unavailability, service disruptions, and irreversible data loss. The scope of impact depends on the criticality of the data protected by the key and the number of services affected. Successful execution of this attack can impede incident response efforts and result in significant financial and reputational damage.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the &quot;AWS KMS Customer Managed Key Disabled or Scheduled for Deletion&quot; Sigma rule to detect unauthorized KMS key lifecycle changes (rule.name).</li>
<li>Monitor AWS CloudTrail logs for <code>DisableKey</code> and <code>ScheduleKeyDeletion</code> events to detect potentially malicious activity (index).</li>
<li>Restrict AWS KMS lifecycle permissions (<code>kms:DisableKey</code>, <code>kms:ScheduleKeyDeletion</code>) to a minimal set of privileged users and roles (references).</li>
<li>Implement multi-factor authentication (MFA) for administrators with KMS key management permissions to prevent unauthorized access (Security Best Practices reference).</li>
<li>Enable AWS Config rules for KMS key state monitoring to continuously assess the configuration of KMS keys and detect deviations from desired states (Security Best Practices reference).</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>cloud</category><category>aws</category><category>kms</category><category>datadestruction</category></item><item><title>AWS RDS DB Instance or Cluster Deleted</title><link>https://feed.craftedsignal.io/briefs/2024-01-aws-rds-deletion/</link><pubDate>Wed, 03 Jan 2024 12:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-aws-rds-deletion/</guid><description>An adversary with sufficient permissions may delete RDS resources such as DB instances or clusters to impede recovery, destroy evidence, or inflict operational impact on the environment.</description><content:encoded><![CDATA[<p>The deletion of Amazon RDS DB instances, Aurora clusters, or global database clusters can lead to permanent data loss and major service disruption. This activity is often carried out by adversaries who have gained sufficient permissions within an AWS environment. The motivation behind such actions can range from impeding recovery efforts following a ransomware attack, destroying critical evidence to hinder forensic investigations, or directly inflicting operational impact on the targeted environment. Defenders should be aware that these actions are irreversible without backups, making swift detection and validation essential to mitigate potential damage.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An adversary gains initial access to the AWS environment, potentially through compromised credentials or an IAM role with excessive permissions.</li>
<li>The attacker enumerates existing RDS DB instances, Aurora clusters, or global database clusters within the target AWS account to identify valuable targets.</li>
<li>The attacker modifies the deletionProtection setting on the target RDS resource to <code>false</code> to allow deletion.</li>
<li>The attacker may disable or modify backup configurations to prevent recovery options, such as setting backupRetentionPeriod to <code>0</code>.</li>
<li>The attacker executes the <code>DeleteDBInstance</code>, <code>DeleteDBCluster</code>, or <code>DeleteGlobalCluster</code> API call to initiate the deletion process.</li>
<li>If configured, the attacker may attempt to delete any final snapshots created during the deletion process to further hinder recovery.</li>
<li>The targeted RDS resource is permanently deleted, resulting in data loss and potential service disruption.</li>
<li>The attacker may attempt to cover their tracks by deleting relevant CloudTrail logs or modifying IAM policies.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>The deletion of RDS DB instances or clusters can lead to significant data loss, disrupting critical business operations. Depending on the size and importance of the deleted resources, organizations may face substantial financial losses, reputational damage, and regulatory penalties. If backups are unavailable or have also been compromised, data recovery may be impossible, leading to long-term business disruption. The impact can affect organizations of any size that rely on AWS RDS for data storage and retrieval.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the Sigma rule <code>AWS RDS DB Instance or Cluster Deleted</code> to your SIEM and tune for your environment to detect unauthorized RDS resource deletions.</li>
<li>Enable deletionProtection on all critical RDS instances and clusters to prevent accidental or malicious deletion.</li>
<li>Enforce MFA for IAM users with RDS privileges to reduce the risk of compromised credentials (reference the additional information links).</li>
<li>Monitor CloudTrail logs for changes to deletionProtection settings and backup retention policies.</li>
<li>Regularly review and audit IAM policies to ensure that users and roles have only the necessary permissions.</li>
<li>Implement a process for validating unexpected RDS resource deletions with the service owner or database administrator.</li>
<li>Enable Sysmon process-creation logging to correlate with CloudTrail logs in case CLI or SDK tools are used for deletion.</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>cloud</category><category>aws</category><category>rds</category><category>datadestruction</category></item></channel></rss>