<?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.credential-Access — CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/attack.credential-access/</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>Wed, 29 May 2024 12:00:00 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/attack.credential-access/feed.xml" rel="self" type="application/rss+xml"/><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>Okta Password Entered in AlternateID Field</title><link>https://feed.craftedsignal.io/briefs/2024-02-okta-password-alternateid/</link><pubDate>Thu, 29 Feb 2024 12:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-02-okta-password-alternateid/</guid><description>Okta logs may contain user passwords if a user mistakenly enters their password into the username field during login, potentially exposing credentials in logs.</description><content:encoded><![CDATA[<p>Okta, a leading identity and access management provider, retains login attempt data in its system logs. This data can be valuable for security monitoring and incident response. However, a misconfiguration or user error can lead to sensitive information, such as passwords, being inadvertently captured within these logs. Specifically, if a user mistakenly enters their password in the username field (referred to as &lsquo;alternateId&rsquo; in Okta logs) during a failed login attempt, the password may be stored in plain text within the log entry. This exposes the password to anyone with access to Okta system logs. This issue was highlighted in a Mitiga blog post, underscoring the risk to user data. Defenders must implement measures to detect and prevent such occurrences to maintain the confidentiality of user credentials and the overall security posture.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>User attempts to log in to an Okta-protected application.</li>
<li>The user mistakenly enters their password in the username (alternateId) field.</li>
<li>The Okta authentication process fails due to incorrect credentials.</li>
<li>Okta logs the failed login attempt, including the &lsquo;core.user_auth.login_failed&rsquo; event.</li>
<li>The password, entered in the alternateId field, is recorded in the Okta system log.</li>
<li>An attacker gains unauthorized access to Okta system logs, potentially through compromised credentials or a misconfigured integration.</li>
<li>The attacker searches for &lsquo;core.user_auth.login_failed&rsquo; events and examines the &lsquo;actor.alternateId&rsquo; field.</li>
<li>The attacker discovers exposed passwords within the &lsquo;actor.alternateId&rsquo; field, potentially enabling account takeover or further lateral movement.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>A successful attack exploiting this vulnerability could lead to widespread credential compromise. The number of potentially affected users depends on how frequently users make this mistake and the duration for which logs are retained. Sectors heavily reliant on Okta for authentication, such as technology, finance, and healthcare, are particularly at risk. If passwords are leaked, attackers can gain unauthorized access to sensitive data, applications, and systems, leading to data breaches, financial loss, and reputational damage.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the provided Sigma rule &ldquo;Okta Password Entered in AlternateID Field&rdquo; to your SIEM to detect instances of passwords potentially being logged in the <code>actor.alternateId</code> field.</li>
<li>Review and adjust the regular expression in the Sigma rule&rsquo;s <code>filter_main</code> section to align with the specific character restrictions in your Okta username configuration.</li>
<li>Implement stricter input validation on Okta login pages to prevent users from entering passwords in the username field.</li>
<li>Regularly audit Okta system logs for sensitive information and enforce least privilege access to log data.</li>
<li>Educate users about the proper use of login forms to reduce the likelihood of entering passwords in the username field.</li>
<li>Implement multi-factor authentication (MFA) to mitigate the impact of compromised passwords, as referenced in security best practices.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>attack.credential-access</category><category>attack.t1552</category><category>okta</category><category>password-leak</category></item><item><title>Cisco 802.1X (dot1x) Disabled on Network Interface</title><link>https://feed.craftedsignal.io/briefs/2024-01-cisco-dot1x-disabled/</link><pubDate>Wed, 03 Jan 2024 18:23:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-cisco-dot1x-disabled/</guid><description>Detection of manual disablement of IEEE 802.1X (dot1x) on a Cisco network device interface, potentially allowing unauthorized network access and lateral movement.</description><content:encoded><![CDATA[<p>The disabling of 802.1X authentication on a Cisco network device can bypass Network Access Control (NAC) mechanisms, potentially granting unauthorized devices access to the internal network. Attackers or malicious insiders might disable dot1x to establish persistence or facilitate lateral movement by connecting rogue devices to the network. This can be accomplished through CLI commands such as &lsquo;access-session port-control force-authorized&rsquo; or &rsquo;no dot1x system-auth-control&rsquo;, depending on the IOS version. These commands either disable 802.1X on a specific interface or globally across the device. The targeted scope is Cisco network devices utilizing 802.1X for network access control.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker gains privileged access to a Cisco network device via compromised credentials or exploiting a vulnerability.</li>
<li>Attacker executes CLI commands to disable 802.1X authentication on a specific interface or globally.</li>
<li>Commands used may include &lsquo;access-session port-control force-authorized&rsquo;, &lsquo;authentication port-control force-authorized&rsquo;, &lsquo;dot1x port-control force-authorized&rsquo;, &rsquo;no access-session port-control&rsquo;, &rsquo;no authentication port-control&rsquo;, &rsquo;no dot1x port-control&rsquo;, or &rsquo;no dot1x system-auth-control&rsquo;.</li>
<li>The network interface transitions to a force-authorized state, bypassing the normal authentication process.</li>
<li>An unauthorized device is connected to the compromised network interface.</li>
<li>The unauthorized device gains network access without proper authentication or authorization.</li>
<li>The attacker leverages the unauthorized access for lateral movement to other systems on the network.</li>
<li>The attacker exfiltrates sensitive data or deploys malicious payloads across the network.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful disabling of dot1x can lead to unauthorized network access, allowing attackers to bypass security controls. This can result in the compromise of sensitive data, the spread of malware, and the disruption of network services. The number of affected devices and the scope of the compromise depend on the network architecture and the attacker&rsquo;s objectives. The impact could range from a single compromised workstation to a full-scale network breach affecting thousands of devices and users.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the Sigma rule <code>Cisco Dot1x Disabled</code> to your SIEM to detect the execution of commands that disable 802.1X authentication.</li>
<li>Monitor Cisco AAA logs for events containing keywords such as &lsquo;access-session port-control force-authorized&rsquo; and &rsquo;no dot1x system-auth-control&rsquo; to identify potential attempts to disable dot1x.</li>
<li>Implement multi-factor authentication (MFA) for all administrative access to Cisco network devices to prevent unauthorized command execution.</li>
<li>Regularly review and audit the configuration of Cisco network devices to ensure that 802.1X is enabled and properly configured on all relevant interfaces.</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>attack.defense-evasion</category><category>attack.persistence</category><category>attack.credential-access</category><category>attack.t1562.001</category><category>attack.t1556.004</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></channel></rss>