<?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>Attack.defense-Impairment — CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/attack.defense-impairment/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata — refreshed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Sun, 17 Nov 2024 14:22:00 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/attack.defense-impairment/feed.xml" rel="self" type="application/rss+xml"/><item><title>Bitbucket Secret Scanning Rule Deleted</title><link>https://feed.craftedsignal.io/briefs/2024-11-bitbucket-secret-rule-deletion/</link><pubDate>Sun, 17 Nov 2024 14:22:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-11-bitbucket-secret-rule-deletion/</guid><description>Attackers may delete secret scanning rules in Bitbucket to impair defenses and introduce secrets into the code repository undetected, potentially leading to unauthorized access or data breaches.</description><content:encoded><![CDATA[<p>Attackers with sufficient privileges within a Bitbucket project or repository may delete secret scanning rules. These rules are designed to automatically detect and prevent the committing of sensitive information like API keys, passwords, and tokens directly into the codebase. By removing these rules, adversaries can bypass security controls and introduce secrets into the repository undetected. This could be a precursor to a larger attack, where the leaked secrets are used to gain unauthorized access to systems, data, or other resources. This activity may occur as a part of a broader insider threat campaign or an external attacker who has gained control of a privileged account.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>The attacker compromises a Bitbucket account with project or repository administrator privileges.</li>
<li>The attacker authenticates to the Bitbucket web interface or uses the Bitbucket API with the compromised account.</li>
<li>The attacker navigates to the project or repository settings where secret scanning rules are configured.</li>
<li>The attacker identifies the secret scanning rules in place.</li>
<li>The attacker initiates the deletion of one or more secret scanning rules through the Bitbucket web interface or API.</li>
<li>Bitbucket processes the request and removes the specified secret scanning rules.</li>
<li>The attacker (or another compromised account) commits code containing secrets, which are no longer detected due to the deleted rules.</li>
<li>The committed secrets are then potentially used for lateral movement, data exfiltration, or other malicious activities.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>The deletion of secret scanning rules in Bitbucket can lead to the undetected introduction of sensitive information into the codebase. This can result in unauthorized access to systems, data breaches, and other security incidents. The impact can range from minor data exposure to significant financial losses and reputational damage, depending on the scope and sensitivity of the leaked secrets. Organizations relying on Bitbucket for source code management are vulnerable.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Monitor Bitbucket audit logs for events related to secret scanning rule deletions, using the provided Sigma rule to detect suspicious activity (<code>bitbucket_audit_secret_scanning_rule_deleted.yml</code>).</li>
<li>Implement multi-factor authentication (MFA) for all Bitbucket accounts, especially those with administrative privileges, to reduce the risk of account compromise.</li>
<li>Enforce the principle of least privilege, ensuring that users only have the necessary permissions to perform their tasks.</li>
<li>Regularly review and audit Bitbucket user permissions and access controls.</li>
<li>Implement strong password policies and encourage users to use unique, complex passwords.</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>attack.defense-impairment</category><category>attack.t1685</category></item><item><title>New AWS Network ACL Entry Creation Detected</title><link>https://feed.craftedsignal.io/briefs/2024-10-aws-network-acl-created/</link><pubDate>Sat, 26 Oct 2024 14:27:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-10-aws-network-acl-created/</guid><description>Detection of new Network ACL entries in AWS CloudTrail logs can indicate potential defense impairment or the opening of new attack vectors within an AWS account by an adversary.</description><content:encoded><![CDATA[<p>The creation of new Network Access Control List (ACL) entries in Amazon Web Services (AWS) environments can be a sign of malicious activity. While legitimate use cases exist, adversaries can leverage these ACL changes to impair existing defenses, create new pathways for lateral movement, or establish persistence mechanisms. This activity is logged by CloudTrail and can be monitored to identify unauthorized or suspicious modifications to network security configurations. Attackers could create overly permissive rules that allow unauthorized access to critical resources or restrictive rules that disrupt legitimate traffic. Monitoring the creation of Network ACL entries is important for maintaining the integrity and security of AWS environments.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker gains initial access to an AWS account, potentially through compromised credentials or an exploited vulnerability.</li>
<li>The attacker identifies the existing Network ACLs within the target Virtual Private Cloud (VPC).</li>
<li>The attacker uses the AWS Management Console, CLI, or API to create a new Network ACL entry. The <code>CreateNetworkAclEntry</code> event is logged in CloudTrail.</li>
<li>The new ACL entry may be configured to allow specific inbound or outbound traffic that was previously blocked, effectively opening a new attack vector.</li>
<li>Alternatively, the new ACL entry may be configured to deny legitimate traffic, causing a denial-of-service condition for specific services or resources.</li>
<li>The attacker leverages the newly created ACL entry to move laterally within the AWS environment, accessing previously inaccessible resources.</li>
<li>The attacker performs malicious actions, such as data exfiltration or resource compromise, using the newly opened network pathways.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>The creation of unauthorized Network ACL entries can have significant consequences. It can lead to the opening of new attack vectors, allowing unauthorized access to sensitive data and critical resources. In some scenarios, it can result in a denial-of-service condition, disrupting legitimate business operations. Depending on the scope of the compromised resources and data, the impact can range from minor inconvenience to significant financial loss and reputational damage. Early detection of this activity is crucial to mitigating potential risks.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the Sigma rule &ldquo;New Network ACL Entry Added&rdquo; to your SIEM to detect suspicious ACL modifications (logsource: aws, service: cloudtrail).</li>
<li>Investigate any <code>CreateNetworkAclEntry</code> events that deviate from established baseline configurations or involve unexpected source/destination IP ranges.</li>
<li>Review and audit existing Network ACL configurations regularly to identify and remediate any overly permissive or restrictive rules.</li>
<li>Implement multi-factor authentication (MFA) for all AWS accounts to reduce the risk of credential compromise and unauthorized access.</li>
<li>Monitor CloudTrail logs for other related events, such as <code>DeleteNetworkAclEntry</code> or <code>ReplaceNetworkAclEntry</code>, which may indicate further tampering with network security configurations.</li>
</ul>
]]></content:encoded><category domain="severity">low</category><category domain="type">advisory</category><category>attack.defense-impairment</category><category>attack.t1686.001</category><category>cloud</category></item><item><title>Bitbucket Audit Log Configuration Modified</title><link>https://feed.craftedsignal.io/briefs/2024-10-bitbucket-audit-config-mod/</link><pubDate>Sat, 26 Oct 2024 12:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-10-bitbucket-audit-config-mod/</guid><description>An attacker may modify the Bitbucket audit log configuration to impair security monitoring and evade detection.</description><content:encoded><![CDATA[<p>Attackers may target Bitbucket audit log configurations to reduce or eliminate logging, thereby hindering incident response and forensic investigations. Modifying audit settings is a defense evasion technique that allows malicious actors to operate with less visibility. This activity typically occurs post-compromise. This brief focuses on detecting such modifications. Visibility of audit events requires at least &ldquo;Basic&rdquo; log level configuration.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker gains unauthorized access to a Bitbucket instance, potentially through compromised credentials or exploiting a vulnerability.</li>
<li>The attacker authenticates to the Bitbucket web interface or uses the Bitbucket API.</li>
<li>The attacker navigates to the audit log configuration settings within the Bitbucket administration panel.</li>
<li>The attacker modifies the audit log settings, such as disabling logging for specific event categories or reducing the log retention period.</li>
<li>The Bitbucket server processes the configuration change request.</li>
<li>Audit events related to the configuration change are logged (if auditing is still enabled for such events).</li>
<li>The attacker performs malicious activities, such as creating unauthorized repositories or exfiltrating source code, with reduced risk of detection.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful modification of the Bitbucket audit log configuration allows attackers to operate with significantly reduced visibility. This can lead to delayed detection of breaches, prolonged dwell time, and increased data exfiltration. Without proper audit logging, organizations will struggle to identify the scope and impact of a compromise.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the &ldquo;Bitbucket Audit Log Configuration Updated&rdquo; Sigma rule to your SIEM to detect changes to audit log configurations (logsource: bitbucket, service: audit).</li>
<li>Ensure Bitbucket audit logging is enabled at the &ldquo;Basic&rdquo; level or higher, as lower levels may not capture configuration changes (logsource: bitbucket, service: audit).</li>
<li>Investigate any detected instances of audit log configuration changes to determine if they are authorized (Sigma rule: &ldquo;Bitbucket Audit Log Configuration Updated&rdquo;).</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>attack.defense-impairment</category><category>attack.t1562.004</category><category>bitbucket</category></item><item><title>GitHub Secret Scanning Feature Disabled</title><link>https://feed.craftedsignal.io/briefs/2024-07-github-secret-scanning-disabled/</link><pubDate>Fri, 19 Jul 2024 00:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-07-github-secret-scanning-disabled/</guid><description>Detection of the disabling of GitHub secret scanning at the business or repository level, potentially increasing the risk of exposed credentials and secrets.</description><content:encoded><![CDATA[<p>The disabling of GitHub&rsquo;s secret scanning feature represents a significant security risk. Secret scanning is a critical control that prevents sensitive information, such as API keys, credentials, and tokens, from being committed to repositories. An attacker who gains administrative access to a GitHub organization or repository could disable this feature to facilitate the undetected introduction of secrets into the codebase. This action undermines the organization&rsquo;s security posture, creating opportunities for unauthorized access and data breaches. The activity is logged via GitHub audit logs, providing an opportunity for detection. This brief focuses on detecting the actions that disable the secret scanning feature within GitHub.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker gains unauthorized access to a GitHub account with administrative privileges for either an organization or a specific repository.</li>
<li>The attacker navigates to the security settings within the organization or repository.</li>
<li>The attacker identifies the &ldquo;Secret scanning&rdquo; feature or related settings (e.g., &ldquo;Secret scanning for new repositories&rdquo;).</li>
<li>The attacker disables the secret scanning feature using the GitHub UI or API. This generates an audit log event.</li>
<li>The attacker commits code containing secrets to the repository.</li>
<li>Because secret scanning is disabled, the secrets are not detected or flagged by GitHub.</li>
<li>The attacker leverages the committed secrets to gain unauthorized access to other systems or data.</li>
<li>The attacker achieves their final objective, which could include data exfiltration, lateral movement, or service disruption.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Disabling secret scanning can lead to the exposure of sensitive credentials within a codebase. If successful, attackers can leverage these exposed secrets to compromise systems, access sensitive data, and potentially cause significant financial and reputational damage. The number of affected repositories and the extent of the damage depend on the scope of the access the attacker gains and the criticality of the exposed secrets. This can affect any organization that uses Github for source code management.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the &ldquo;Github Secret Scanning Feature Disabled&rdquo; Sigma rule to your SIEM to detect unauthorized disabling of the feature (logsource: github, service: audit).</li>
<li>Investigate any detected instances of secret scanning being disabled to determine if they were authorized administrative actions.</li>
<li>Enable audit log streaming to ensure the required logs are available (see logsource definition).</li>
<li>Review GitHub access controls to ensure that only authorized personnel have the ability to modify secret scanning settings.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>attack.defense-impairment</category><category>attack.t1685</category></item><item><title>Unauthorized Modification of Azure Conditional Access Policy</title><link>https://feed.craftedsignal.io/briefs/2024-05-29-azure-ca-policy-update/</link><pubDate>Wed, 29 May 2024 12:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-05-29-azure-ca-policy-update/</guid><description>An unauthorized actor modifies an Azure Conditional Access policy, potentially leading to privilege escalation, credential access, persistence, or defense impairment.</description><content:encoded><![CDATA[<p>Compromised or malicious actors may attempt to modify Azure Conditional Access (CA) policies to weaken security controls, elevate privileges, or establish persistence within the Azure environment. Conditional Access policies are critical for enforcing organizational security standards, and unauthorized changes can have significant security implications. This activity is detected through Azure Audit Logs by monitoring for &ldquo;Update conditional access policy&rdquo; events. Defenders should investigate any modifications to Conditional Access policies to ensure they are legitimate and align with security best practices. Detecting and responding to unauthorized CA policy modifications is crucial for maintaining the integrity and security of the Azure environment.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li><strong>Initial Access:</strong> The attacker gains initial access through compromised credentials or other means (not specified in source).</li>
<li><strong>Privilege Escalation:</strong> The attacker leverages existing privileges or exploits vulnerabilities to gain sufficient permissions to modify Conditional Access policies (e.g., through a compromised Global Administrator account).</li>
<li><strong>Policy Enumeration:</strong> The attacker enumerates existing Conditional Access policies to identify targets for modification using tools like Azure PowerShell or the Azure portal.</li>
<li><strong>Policy Modification:</strong> The attacker modifies a Conditional Access policy, for example, by weakening MFA requirements, excluding specific users or groups from the policy, or disabling the policy altogether.</li>
<li><strong>Persistence:</strong> By weakening or disabling Conditional Access policies, the attacker establishes a persistent foothold in the environment, allowing them to bypass security controls and maintain unauthorized access.</li>
<li><strong>Credential Access:</strong> With weakened MFA or other access controls, the attacker gains easier access to sensitive credentials.</li>
<li><strong>Defense Impairment:</strong> The modification of CA policies impairs the organization&rsquo;s defense mechanisms, making it easier for the attacker to perform malicious activities undetected.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful modification of Conditional Access policies can lead to significant security breaches, including unauthorized access to sensitive data, privilege escalation, and persistent compromise of the Azure environment. The number of affected users and resources depends on the scope of the modified policies. Organizations may experience data loss, financial losses, and reputational damage.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the &ldquo;CA Policy Updated by Non Approved Actor&rdquo; Sigma rule to your SIEM to detect unauthorized modifications to Conditional Access policies within your Azure environment.</li>
<li>Review the <code>properties.message</code> field in the Azure Audit Logs for &ldquo;Update conditional access policy&rdquo; events and compare &ldquo;old&rdquo; vs &ldquo;new&rdquo; values to understand the nature of the changes.</li>
<li>Implement strict role-based access control (RBAC) to limit the number of users who can modify Conditional Access policies.</li>
<li>Investigate any alerts generated by the Sigma rule and verify whether the user identity, user agent, and/or hostname should be making changes in your environment.</li>
<li>Enable multi-factor authentication (MFA) for all users, especially those with administrative privileges, to reduce the risk of credential compromise (related to attack.credential-access tag).</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>azure</category><category>conditional-access</category><category>policy-modification</category><category>attack.privilege-escalation</category><category>attack.credential-access</category><category>attack.persistence</category><category>attack.defense-impairment</category><category>attack.t1548</category><category>attack.t1556</category></item><item><title>Azure AD Root Certificate Authority Added for Passwordless Authentication</title><link>https://feed.craftedsignal.io/briefs/2024-05-azuread-root-ca-add/</link><pubDate>Wed, 08 May 2024 18:22:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-05-azuread-root-ca-add/</guid><description>An attacker may add a new root certificate authority to an Azure AD tenant to support certificate-based authentication for persistence, privilege escalation, or defense evasion.</description><content:encoded><![CDATA[<p>The addition of a new root certificate authority (CA) in Azure Active Directory (Azure AD) to support certificate-based authentication (CBA) can be a sign of malicious activity. While CBA offers passwordless authentication benefits, attackers can abuse it to establish persistent access, escalate privileges, or evade detection. An attacker with sufficient privileges in the Azure AD tenant can add a rogue CA, enabling them to authenticate as any user within the directory, even without their password. This bypasses multi-factor authentication (MFA) and grants unauthorized access to sensitive resources and data. Defenders should monitor Azure AD audit logs for unexpected modifications to the <code>TrustedCAsForPasswordlessAuth</code> setting, as this could indicate a compromised administrator account or an insider threat attempting to establish a backdoor.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Compromise an Azure AD administrator account with sufficient privileges to modify tenant-wide settings. This may be achieved through phishing, credential stuffing, or exploiting vulnerabilities.</li>
<li>The attacker authenticates to the Azure portal or uses PowerShell cmdlets to interact with Azure AD.</li>
<li>The attacker executes commands to add a new, attacker-controlled root certificate authority to the <code>TrustedCAsForPasswordlessAuth</code> setting. This involves modifying the Company Information object.</li>
<li>The attacker generates or obtains a certificate signed by the newly added root CA.</li>
<li>The attacker uses the certificate to authenticate to Azure AD as a targeted user, bypassing password requirements and multi-factor authentication.</li>
<li>The attacker gains access to the targeted user&rsquo;s resources, such as email, files, and applications.</li>
<li>The attacker escalates privileges within the Azure AD tenant by impersonating highly privileged users or roles.</li>
<li>The attacker maintains persistent access to the Azure AD tenant, even if the compromised administrator account is remediated.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>A successful attack can lead to complete compromise of the Azure AD tenant, including access to sensitive data, applications, and resources. Attackers can use the compromised tenant to move laterally to other systems, exfiltrate data, or disrupt business operations. The number of potential victims is dependent on the size of the Azure AD tenant. Organizations across all sectors are at risk, especially those heavily reliant on Azure AD for identity and access management.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the Sigma rule &ldquo;New Root Certificate Authority Added&rdquo; to your SIEM to detect unauthorized modifications to the <code>TrustedCAsForPasswordlessAuth</code> setting (rule).</li>
<li>Review Azure AD audit logs regularly for suspicious activity related to the &ldquo;Set Company Information&rdquo; operation (logsource).</li>
<li>Implement multi-factor authentication (MFA) for all Azure AD accounts, including administrators, but understand that CBA can bypass it.</li>
<li>Enforce the principle of least privilege and restrict the number of accounts with permissions to modify tenant-wide settings.</li>
<li>Monitor for the use of certificates signed by unknown or untrusted CAs to authenticate to Azure AD.</li>
<li>Consult the SpecterOps and Goodworkaround articles for more information on certificate-based authentication abuse in Azure AD (references).</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>attack.credential-access</category><category>attack.persistence</category><category>attack.privilege-escalation</category><category>attack.defense-impairment</category><category>attack.t1556</category></item><item><title>GitHub Push Protection Disabled</title><link>https://feed.craftedsignal.io/briefs/2024-05-github-push-protection-disabled/</link><pubDate>Fri, 03 May 2024 12:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-05-github-push-protection-disabled/</guid><description>An administrator has disabled the GitHub push protection feature, potentially allowing secrets and other sensitive information to be pushed to repositories.</description><content:encoded><![CDATA[<p>The GitHub push protection feature is designed to prevent secrets and sensitive information from being committed to repositories. Disabling this feature, whether at the organization, enterprise, or repository level, significantly increases the risk of accidental or intentional exposure of credentials, API keys, and other sensitive data. This can lead to unauthorized access, data breaches, and other security incidents. The actions detected can originate from administrative accounts or potentially compromised accounts with administrative privileges. This brief focuses on detecting the disabling of push protection, allowing security teams to respond and remediate the configuration.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker gains unauthorized access to a GitHub account with administrative privileges, or a legitimate administrator performs the action.</li>
<li>The attacker navigates to the organization, enterprise, or repository settings in GitHub.</li>
<li>The attacker locates the &ldquo;Secret scanning&rdquo; or &ldquo;Push protection&rdquo; configuration section.</li>
<li>The attacker disables the push protection feature for the organization, enterprise, or specific repositories. This can be done via the GitHub UI or API.</li>
<li>GitHub audit logs record the event with the actions <code>business_secret_scanning_custom_pattern_push_protection.disabled</code>, <code>business_secret_scanning_push_protection.disable</code>, <code>org.secret_scanning_custom_pattern_push_protection_disabled</code>, etc..</li>
<li>Developers unknowingly or intentionally commit code containing secrets or sensitive data to the affected repositories.</li>
<li>The secrets are pushed to the remote repository without being blocked by push protection.</li>
<li>The exposed secrets can be discovered by malicious actors, leading to account compromise, data breaches, or other security incidents.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Disabling push protection can lead to the exposure of sensitive information such as API keys, passwords, and other credentials within GitHub repositories. This exposure can lead to account compromise, unauthorized access to systems and data, and potentially significant financial and reputational damage. The number of affected repositories and the severity of the impact depends on the scope of the push protection disabling and the types of secrets committed to the repositories.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the Sigma rule &ldquo;Github Push Protection Disabled&rdquo; to your SIEM and tune for your environment to detect when push protection is disabled.</li>
<li>Investigate any detected instances of push protection being disabled in the GitHub audit logs (logsource: github, service: audit) to verify the legitimacy of the action.</li>
<li>Enforce multi-factor authentication (MFA) for all GitHub accounts, especially those with administrative privileges, to prevent unauthorized access.</li>
<li>Regularly review and audit GitHub organization and repository settings to ensure that push protection is enabled and properly configured.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>attack.defense-impairment</category><category>attack.t1685</category></item><item><title>Bitbucket Global Secret Scanning Rule Deletion</title><link>https://feed.craftedsignal.io/briefs/2024-04-bitbucket-secret-rule-delete/</link><pubDate>Mon, 29 Apr 2024 14:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-04-bitbucket-secret-rule-delete/</guid><description>An adversary with administrative privileges may delete global secret scanning rules in Bitbucket to impair defenses and exfiltrate sensitive data without detection.</description><content:encoded><![CDATA[<p>This threat brief addresses the deletion of global secret scanning rules within Bitbucket environments. Secret scanning is a crucial defense mechanism used to prevent sensitive information, such as API keys and passwords, from being committed to repositories. An attacker with global administration privileges could intentionally delete these rules to bypass security controls. This action could occur post-compromise, as part of an insider threat, or due to accidental misconfiguration. The impact of this activity centers around an increased risk of sensitive data exposure, which can lead to further compromise or data breaches. Defenders should monitor Bitbucket audit logs for such deletions.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>The attacker gains valid credentials with global administrator privileges within the Bitbucket environment, possibly through credential stuffing or phishing.</li>
<li>The attacker authenticates to the Bitbucket web interface or uses the Bitbucket API with their compromised credentials.</li>
<li>The attacker navigates to the global secret scanning rule configuration page.</li>
<li>The attacker identifies and selects one or more global secret scanning rules currently in effect.</li>
<li>The attacker initiates the deletion process for the selected rules, confirming the action when prompted.</li>
<li>Bitbucket processes the deletion request, removing the rules from the global configuration.</li>
<li>The system generates an audit log event indicating the deletion of the global secret scanning rule.</li>
<li>With secret scanning disabled, developers may inadvertently commit secrets into Bitbucket repositories, making them available to the attacker.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful deletion of global secret scanning rules can have significant impact. Without active secret scanning, developers may unintentionally commit sensitive information (API keys, passwords, tokens) into Bitbucket repositories. This could lead to account takeovers, data breaches, or lateral movement within the organization&rsquo;s infrastructure. The number of affected repositories and exposed secrets will vary depending on the scope of the attacker&rsquo;s access and the activity of developers during the period when the rules were disabled.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the provided Sigma rule to detect the deletion of global secret scanning rules in Bitbucket audit logs, focusing on <code>auditType.category: 'Global administration'</code> and <code>auditType.action: 'Global secret scanning rule deleted'</code> (Sigma rule).</li>
<li>Investigate any detected instances of global secret scanning rule deletion to determine if the action was authorized and performed by a legitimate user.</li>
<li>Implement multi-factor authentication (MFA) for all Bitbucket accounts, especially those with administrative privileges, to reduce the risk of credential compromise.</li>
<li>Regularly review Bitbucket user permissions and roles to ensure that users have only the necessary level of access.</li>
<li>Enable &ldquo;Basic&rdquo; logging level, as required, to ensure the necessary audit events are generated (logsource definition).</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>attack.defense-impairment</category><category>attack.t1685</category></item><item><title>Bitbucket Repository Exempted from Secret Scanning</title><link>https://feed.craftedsignal.io/briefs/2024-04-bitbucket-secret-scanning-exempt/</link><pubDate>Mon, 29 Apr 2024 12:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-04-bitbucket-secret-scanning-exempt/</guid><description>An attacker may attempt to disable or bypass secret scanning on a Bitbucket repository to avoid detection of committed secrets, potentially leading to credential compromise and subsequent unauthorized access.</description><content:encoded><![CDATA[<p>Attackers can weaken an organization&rsquo;s security posture by disabling or bypassing security controls within Bitbucket. This allows sensitive information, such as API keys, passwords, and other credentials, to be committed to the repository without detection. By adding a repository to the secret scanning exemption list, attackers can effectively disable a key preventative measure, making it easier to introduce and maintain compromised credentials within the codebase. This can lead to unauthorized access, data breaches, and other serious security incidents. This technique allows attackers to impair defenses, avoiding detection of secrets being committed to the repository.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker gains unauthorized access to a Bitbucket account with repository administration privileges.</li>
<li>The attacker navigates to the repository settings within Bitbucket.</li>
<li>The attacker accesses the secret scanning configuration for the repository.</li>
<li>The attacker identifies the option to add the repository to the exemption list for secret scanning.</li>
<li>The attacker adds the repository to the exemption list, effectively disabling secret scanning for that repository.</li>
<li>The attacker commits sensitive information (secrets, credentials) to the now-exempt repository.</li>
<li>The secrets are committed without triggering secret scanning alerts.</li>
<li>The attacker uses the committed secrets to gain unauthorized access to other systems or data.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Compromising secrets within a Bitbucket repository can lead to a variety of negative consequences, including unauthorized access to sensitive data, compromised infrastructure, and data breaches. While the exact number of affected organizations is unknown, the potential impact is significant for any organization using Bitbucket to store code and manage secrets. Successful exploitation allows attackers to move laterally within the network and escalate privileges.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the Sigma rule &ldquo;Bitbucket Secret Scanning Exempt Repository Added&rdquo; to your SIEM to detect when a repository is added to the secret scanning exemption list (logsource: bitbucket).</li>
<li>Investigate any detected instances of repositories being added to the secret scanning exemption list to determine if the change was authorized.</li>
<li>Ensure that appropriate access controls are in place to prevent unauthorized users from modifying repository settings.</li>
<li>Review Bitbucket audit logs regularly to identify suspicious activity related to secret scanning configuration changes (logsource: bitbucket).</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>attack.defense-impairment</category><category>attack.t1685</category><category>bitbucket</category></item><item><title>Bitbucket Project Secret Scanning Allowlist Added</title><link>https://feed.craftedsignal.io/briefs/2024-04-bitbucket-secret-scanning-allowlist/</link><pubDate>Mon, 29 Apr 2024 12:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-04-bitbucket-secret-scanning-allowlist/</guid><description>An adversary may impair defenses by adding a secret scanning allowlist rule for Bitbucket projects, potentially allowing secrets to be committed and exposed.</description><content:encoded><![CDATA[<p>The addition of a secret scanning allowlist rule to a Bitbucket project can be abused by malicious actors to bypass security controls. While not inherently malicious, this action can be exploited to weaken an organization&rsquo;s security posture. Secret scanning tools are designed to prevent the accidental or intentional commit of sensitive information (API keys, passwords, etc.) into version control systems. By adding an allowlist rule, specific patterns or files can be excluded from these scans. This could be leveraged by an attacker who has gained access to a Bitbucket account or project to intentionally introduce secrets while avoiding detection. The activity is logged by Bitbucket&rsquo;s audit logs, providing an opportunity for detection.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>The attacker gains unauthorized access to a Bitbucket account with sufficient privileges to modify project settings.</li>
<li>The attacker navigates to the project settings within Bitbucket.</li>
<li>The attacker accesses the secret scanning configuration for the project.</li>
<li>The attacker adds a new allowlist rule, specifying a pattern or file to be excluded from secret scanning.</li>
<li>The attacker commits code containing secrets that match the allowlist rule, effectively bypassing the secret scanning tool.</li>
<li>The changes are pushed to the Bitbucket repository.</li>
<li>The secrets remain undetected due to the allowlist rule.</li>
<li>The attacker leverages the exposed secrets for further malicious activities, such as gaining access to other systems or data.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation could lead to the exposure of sensitive information such as API keys, passwords, or other credentials. This can result in unauthorized access to internal systems, data breaches, and reputational damage. The number of affected projects depends on the scope of the attacker&rsquo;s access and the configuration of the allowlist rule. The addition of the allowlist rule itself does not directly cause damage but creates a window of opportunity for the introduction and persistence of secrets within the codebase.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the provided Sigma rule to your SIEM to detect the addition of secret scanning allowlist rules (logsource: bitbucket, service: audit).</li>
<li>Investigate any detected instances of allowlist rule additions to verify their legitimacy and business justification.</li>
<li>Review and enforce strict access controls for Bitbucket projects to minimize the risk of unauthorized modifications.</li>
<li>Enable &ldquo;Basic&rdquo; log level in Bitbucket to ensure that the audit events required for detection are captured, as indicated in the rule definition.</li>
</ul>
]]></content:encoded><category domain="severity">low</category><category domain="type">advisory</category><category>attack.defense-impairment</category><category>attack.t1685</category></item><item><title>User Added to Group with Conditional Access Policy Modification Access</title><link>https://feed.craftedsignal.io/briefs/2024-01-azure-group-add/</link><pubDate>Wed, 03 Jan 2024 18:22:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-azure-group-add/</guid><description>An attacker adds a user to a privileged Azure Active Directory group with permissions to modify Conditional Access policies, potentially leading to privilege escalation, credential access, persistence, and defense impairment.</description><content:encoded><![CDATA[<p>This activity involves the addition of a user to an Azure Active Directory group that possesses the ability to modify Conditional Access (CA) policies. Conditional Access policies are used to enforce authentication requirements based on various conditions (user, location, device, etc.). If an attacker gains the ability to modify these policies, they can weaken security controls to facilitate privilege escalation, credential access, persistence within the environment, and impair defenses. This type of attack can be initiated by an insider threat or external compromise of an account. The goal is to manipulate CA policies to bypass multi-factor authentication, grant unauthorized access, or maintain persistence.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>The attacker gains initial access to a user account or service principal with sufficient privileges to manage group memberships in Azure AD. This could be achieved through credential compromise or other initial access vectors.</li>
<li>The attacker identifies a target Azure AD group that has permissions to manage Conditional Access policies. These groups are often used to delegate administrative control over CA policies.</li>
<li>The attacker uses the Azure portal, PowerShell, or the Azure AD Graph API/Microsoft Graph API to add a malicious user account to the target group.</li>
<li>The Azure Audit Logs record the &ldquo;Add member from group&rdquo; event, indicating the change in group membership.</li>
<li>The newly added malicious user inherits the group&rsquo;s permissions, which includes the ability to view, create, modify, and delete Conditional Access policies.</li>
<li>The attacker modifies existing CA policies to weaken security controls. For example, they might exclude themselves from MFA requirements or grant access to sensitive resources without proper authorization.</li>
<li>The attacker leverages their modified CA policies to gain unauthorized access to sensitive data or resources.</li>
<li>The attacker establishes persistence by creating new CA policies that ensure their continued access, even if their initial access is revoked.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of this attack chain can lead to significant compromise of an organization&rsquo;s Azure environment. Attackers can bypass MFA, gain access to sensitive resources, establish persistent access, and impair security defenses. The extent of the damage depends on the permissions associated with the compromised group and the scope of the modified Conditional Access policies. This can lead to data breaches, financial loss, and reputational damage.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the provided Sigma rule to your SIEM to detect additions of users to groups with CA policy modification access and tune for your environment.</li>
<li>Regularly review and audit Azure AD group memberships, especially for groups with administrative privileges (as detected by the Sigma rule).</li>
<li>Implement multi-factor authentication for all users, especially those with administrative privileges.</li>
<li>Enforce the principle of least privilege when assigning permissions to Azure AD groups.</li>
<li>Monitor Azure AD audit logs for suspicious activity related to group membership changes and Conditional Access policy modifications.</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>attack.privilege-escalation</category><category>attack.credential-access</category><category>attack.persistence</category><category>attack.defense-impairment</category><category>attack.t1548</category><category>attack.t1556</category></item><item><title>Azure Network Firewall Policy Modification or Deletion</title><link>https://feed.craftedsignal.io/briefs/2024-01-azure-firewall-policy-changes/</link><pubDate>Wed, 03 Jan 2024 18:12:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-azure-firewall-policy-changes/</guid><description>An adversary may modify or delete Azure Network Firewall Policies to impair defenses and potentially impact network security.</description><content:encoded><![CDATA[<p>Attackers may target Azure Network Firewall Policies to weaken an organization&rsquo;s security posture. By modifying existing policies, adversaries can introduce rules that allow malicious traffic, disable existing protections, or create backdoors for future access. Deleting firewall policies altogether removes a critical layer of defense, potentially exposing internal resources to external threats. This activity is typically conducted after gaining initial access to the Azure environment through compromised credentials or other means. Monitoring for unauthorized changes to firewall policies is critical for maintaining network security and preventing potential data breaches or service disruptions.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>The attacker gains initial access to the Azure environment, possibly through compromised credentials or a vulnerability in a deployed application.</li>
<li>The attacker enumerates existing Azure Network Firewall Policies using Azure CLI or PowerShell commands.</li>
<li>The attacker identifies a firewall policy to modify or delete to achieve their objectives.</li>
<li>If modifying, the attacker uses commands such as <code>Set-AzNetworkFirewallPolicy</code> or the Azure portal to alter the policy rules, potentially adding permissive rules or disabling existing restrictions.</li>
<li>If deleting, the attacker uses commands such as <code>Remove-AzNetworkFirewallPolicy</code> or the Azure portal to remove the firewall policy entirely.</li>
<li>The changes are applied to the Azure Network Firewall, impacting network traffic filtering.</li>
<li>The attacker validates the effectiveness of the modified or deleted policy by testing network connectivity to previously protected resources.</li>
<li>The attacker proceeds to exploit the newly exposed resources for data exfiltration, lateral movement, or other malicious activities.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful modification or deletion of Azure Network Firewall policies can lead to significant security breaches. Attackers may be able to bypass network segmentation, gain unauthorized access to sensitive data, disrupt critical services, or deploy malicious code within the network. The impact can range from data theft and financial loss to reputational damage and regulatory penalties. The number of affected resources depends on the scope of the compromised firewall policy and the attacker&rsquo;s subsequent actions.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Implement the Sigma rule &ldquo;Azure Network Firewall Policy Modified or Deleted&rdquo; to detect unauthorized changes to firewall policies (logsource: azure, service: activitylogs).</li>
<li>Review user identities and user agents associated with detected events to determine if the changes were made by authorized personnel or malicious actors, as detailed in the false positives section.</li>
<li>Enable multi-factor authentication (MFA) for all Azure accounts to reduce the risk of credential compromise.</li>
<li>Enforce the principle of least privilege by granting users only the necessary permissions to manage firewall policies.</li>
<li>Implement continuous monitoring and alerting for all Azure resources, including network firewalls, to detect suspicious activity and potential security breaches.</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>attack.impact</category><category>attack.defense-impairment</category><category>attack.t1686.001</category></item><item><title>Azure AD Hybrid Health AD FS Service Deletion for Defense Evasion</title><link>https://feed.craftedsignal.io/briefs/2024-01-03-azuread-adfs-delete/</link><pubDate>Wed, 03 Jan 2024 14:30:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-03-azuread-adfs-delete/</guid><description>Threat actors may delete Azure AD Hybrid Health AD FS service instances after using them to spoof AD FS signing logs for defense evasion.</description><content:encoded><![CDATA[<p>An attacker can create a new AD Health ADFS service and a fake server to spoof AD FS signing logs. This involves adding a rogue AD FS service to Azure AD Hybrid Health. Once the attacker no longer requires the spoofed logs, they may delete the service to remove traces of their activity or to hinder investigations. This is achieved via HTTP requests to Azure, specifically targeting the deletion of the AD FS service instance. This activity is logged within Azure Activity Logs, providing an opportunity for detection. Defenders should monitor for unexpected deletions of AD FS service instances within their Azure AD environment.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>The attacker gains initial access to an Azure tenant with sufficient privileges.</li>
<li>The attacker provisions a new, rogue AD FS service within the Azure AD Hybrid Health Service.</li>
<li>The attacker creates a fake server or modifies an existing one to generate spoofed AD FS signing logs.</li>
<li>The attacker uses the spoofed logs to conduct malicious activity, potentially bypassing security controls.</li>
<li>Once the malicious activity is complete, the attacker initiates the deletion of the rogue AD FS service.</li>
<li>The attacker sends an HTTP request to Azure to delete the service using the <code>Microsoft.ADHybridHealthService/services/delete</code> operation.</li>
<li>The Azure Activity Logs record the deletion event with CategoryValue set to &lsquo;Administrative&rsquo; and ResourceProviderValue as &lsquo;Microsoft.ADHybridHealthService&rsquo;.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful deletion of the AD FS service instance can hinder forensic investigations and potentially mask malicious activity within the Azure AD environment. This can lead to delayed incident response and make it more difficult to identify the source and scope of the attack. The impact depends on the sophistication of the attacker and the extent to which they leveraged the spoofed logs for malicious purposes.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the provided Sigma rule to your SIEM to detect the deletion of AD FS service instances in Azure AD Hybrid Health (Azure Activity Logs).</li>
<li>Investigate any detected instances of <code>Microsoft.ADHybridHealthService/services/delete</code> operations where the <code>ResourceId</code> contains <code>AdFederationService</code> in the Azure Activity Logs.</li>
<li>Monitor Azure Activity Logs for unexpected or unauthorized modifications to AD FS service configurations.</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>attack.defense-impairment</category><category>attack.t1578.003</category><category>azure</category></item><item><title>AWS Config Service Disabling Detection</title><link>https://feed.craftedsignal.io/briefs/2024-01-aws-config-disable/</link><pubDate>Tue, 02 Jan 2024 12:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-aws-config-disable/</guid><description>Detection of AWS Config Service disabling, potentially indicating an attempt to impair defenses by stopping configuration recording and delivery.</description><content:encoded><![CDATA[<p>This threat brief focuses on detecting the disabling of AWS Config, a service that continuously monitors and records AWS resource configurations. An attacker might disable AWS Config to evade detection and prevent auditing of their malicious activities within the AWS environment. By deleting delivery channels or stopping the configuration recorder, an attacker can effectively blind the security team to changes made to AWS resources. This activity, if unauthorized, signifies a significant attempt to impair defenses. This brief provides detections based on AWS CloudTrail logs.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker gains unauthorized access to an AWS account, potentially through compromised credentials or exploiting a vulnerability.</li>
<li>The attacker enumerates existing AWS Config resources to identify the delivery channel and configuration recorder.</li>
<li>The attacker executes the <code>DeleteDeliveryChannel</code> API call to stop the delivery of configuration changes to the designated S3 bucket or SNS topic.</li>
<li>The attacker executes the <code>StopConfigurationRecorder</code> API call to halt the recording of configuration changes for AWS resources.</li>
<li>The attacker performs malicious actions within the AWS environment without the activity being recorded by AWS Config.</li>
<li>The attacker may attempt to delete CloudTrail logs, if they have sufficient permissions, to further cover their tracks.</li>
<li>The attacker achieves their objective, such as deploying malicious infrastructure, exfiltrating data, or disrupting services, without immediate detection.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful disabling of AWS Config allows attackers to operate undetected within an AWS environment. This can lead to a delayed response to security incidents, resulting in more significant data breaches, financial losses, or reputational damage. The number of affected AWS accounts and the scope of the damage depend on the attacker&rsquo;s objectives and the duration of the undetected activity.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the Sigma rule &ldquo;AWS Config Disabling Channel/Recorder&rdquo; to your SIEM and tune for your environment to detect unauthorized disabling of AWS Config resources.</li>
<li>Review AWS IAM policies to ensure that only authorized personnel have the necessary permissions to modify or disable AWS Config settings.</li>
<li>Implement multi-factor authentication (MFA) for all AWS accounts to reduce the risk of credential compromise.</li>
<li>Monitor CloudTrail logs for any attempts to disable or modify AWS Config resources, referencing the <code>eventSource</code> and <code>eventName</code> fields in the provided Sigma rule.</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>attack.defense-impairment</category><category>attack.t1562.008</category><category>aws</category></item></channel></rss>