<?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-Evasion — CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/attack.defense-evasion/</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>Tue, 09 Jan 2024 14:30:00 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/attack.defense-evasion/feed.xml" rel="self" type="application/rss+xml"/><item><title>Linux Service Stop and Disable Detection</title><link>https://feed.craftedsignal.io/briefs/2024-01-09-linux-service-disable/</link><pubDate>Tue, 09 Jan 2024 14:30:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-09-linux-service-disable/</guid><description>Attackers may halt or disable security services on Linux systems to evade defenses, maintain persistence, or disrupt operations, detected through the use of utilities like 'systemctl', 'service', and 'chkconfig'.</description><content:encoded><![CDATA[<p>Attackers may attempt to stop or disable services on a compromised Linux system to impair security tools, disrupt operations, or facilitate further malicious activities. This can involve disabling security software, logging mechanisms, or other critical services that could hinder the attacker&rsquo;s objectives. This activity often forms part of a broader attack campaign aimed at maintaining persistence, evading detection, or causing system-wide disruption. The commands <code>systemctl</code>, <code>service</code>, and…</p>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>attack.defense-evasion</category><category>attack.t1562</category><category>attack.impact</category><category>attack.t1489</category></item><item><title>Windows EventLog Autologger Session Disabled via Registry Modification</title><link>https://feed.craftedsignal.io/briefs/2024-01-autologger-disable/</link><pubDate>Tue, 09 Jan 2024 14:22:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-autologger-disable/</guid><description>Adversaries may attempt to disable Windows EventLog autologger sessions via registry modification to evade detection and prevent security monitoring of early boot activities and system events.</description><content:encoded><![CDATA[<p>Attackers may disable Windows EventLog autologger sessions by modifying specific registry keys, thus evading detection and preventing security monitoring of early boot activities and system events. The AutoLogger event tracing session records events early in the operating system boot process, allowing applications and device drivers to capture traces before user login. Disabling these sessions can blind security monitoring tools, especially those focused on early boot activity, making it harder to detect malicious activity. This technique allows attackers to operate with less scrutiny during critical phases of system startup, potentially enabling persistence or other malicious objectives.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>The attacker gains initial access to the system, possibly through exploitation of a vulnerability or through stolen credentials.</li>
<li>The attacker uses <code>reg.exe</code> or PowerShell to modify the registry.</li>
<li>The attacker targets registry keys under <code>\Control\WMI\Autologger\</code>.</li>
<li>The attacker modifies the <code>Start</code> value to disable specific autologger sessions like EventLog-Application or EventLog-System.</li>
<li>Alternatively, the attacker modifies the <code>Enabled</code> value to disable specific providers of an autologger session.</li>
<li>The attacker executes the command, changing the registry value to disable the targeted autologger session or provider.</li>
<li>The system no longer records events for the disabled autologger session or provider.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Disabling the Windows EventLog autologger can severely impact an organization&rsquo;s ability to detect and respond to threats. Security monitoring tools that rely on these logs will be unable to record early boot activities and system events, leading to a gap in visibility. This can allow attackers to establish persistence mechanisms, escalate privileges, or perform other malicious activities without being detected. The impact could range from undetected malware infections to significant data breaches, depending on the attacker&rsquo;s objectives.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the Sigma rule <code>Windows EventLog Autologger Session Registry Modification Via CommandLine</code> to your SIEM and tune for your environment to detect this behavior in your environment.</li>
<li>Monitor process creation events for <code>reg.exe</code>, <code>powershell.exe</code>, or <code>pwsh.exe</code> with command-line arguments that contain <code>\Control\WMI\Autologger\</code> and either <code>Start</code> or <code>Enabled</code> based on the Sigma rule&rsquo;s detections.</li>
<li>Implement Atomic Red Team simulations to validate detections and train security staff.</li>
<li>Investigate any instances of registry modifications related to Autologger sessions to determine if they are legitimate or malicious.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>attack.defense-evasion</category><category>attack.t1562.002</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>Windows AutoLogger Session Tampering Detection</title><link>https://feed.craftedsignal.io/briefs/2024-01-autologger-tampering/</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-autologger-tampering/</guid><description>Attackers may disable AutoLogger sessions by modifying specific registry values to evade detection and prevent security monitoring of early boot activities and system events, a technique observed in intrusions involving IcedID and XingLocker ransomware.</description><content:encoded><![CDATA[<p>Attackers are increasingly targeting Windows Event Tracing (ETW) and AutoLogger sessions to evade detection. The AutoLogger session is crucial as it records events early in the operating system boot process, providing security solutions with essential telemetry. This technique involves tampering with registry keys associated with AutoLogger sessions, specifically disabling or stopping them by setting DWORD values to 0. This is done to blind security solutions, preventing them from monitoring early boot activities and critical system events. Disabling these sessions allows adversaries to operate with less scrutiny, making it harder to detect malicious activities during the initial phases of a system compromise. This technique has been observed in attacks involving IcedID and XingLocker ransomware.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Initial access is achieved through an as-yet-unspecified method (e.g., exploitation, phishing).</li>
<li>The attacker gains administrative privileges on the target system.</li>
<li>The attacker identifies AutoLogger sessions to disable, focusing on those relevant to security monitoring, such as &lsquo;\EventLog-&rsquo; or &lsquo;\Defender&rsquo;.</li>
<li>The attacker modifies the registry to disable the targeted AutoLogger sessions. This involves setting the &lsquo;Enabled&rsquo; or &lsquo;Start&rsquo; DWORD values under the <code>HKLM\System\CurrentControlSet\Control\WMI\Autologger</code> registry key to 0.</li>
<li>The attacker may use tools like <code>wevtutil.exe</code> or directly interact with the registry via PowerShell or <code>cmd.exe</code> to make these changes.</li>
<li>The security monitoring capabilities reliant on the tampered AutoLogger sessions are effectively impaired or disabled.</li>
<li>With logging impaired, the attacker proceeds with the main objectives, such as lateral movement, data exfiltration, or ransomware deployment, with a reduced risk of detection.</li>
<li>The ultimate goal is to compromise the system, steal data, or deploy ransomware, bypassing security measures that rely on early boot and system event logging.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful tampering with AutoLogger sessions can significantly reduce the visibility of security solutions, allowing attackers to operate undetected for extended periods. This can lead to delayed incident response, increased dwell time, and greater potential for damage, including data breaches, financial losses, and reputational damage. The sectors most at risk are those heavily reliant on Windows-based systems and proactive security monitoring. The DFIR Report documented a case where adversaries moved from IcedID infection to XingLocker ransomware deployment within 24 hours, highlighting the speed and potential impact of these attacks.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the Sigma rule <code>Potential AutoLogger Sessions Tampering</code> to your SIEM to detect malicious registry modifications related to AutoLogger sessions.</li>
<li>Investigate any registry modifications under the <code>\Control\WMI\Autologger\</code> path, focusing on changes to <code>Enabled</code> or <code>Start</code> values, as identified in the Sigma rule.</li>
<li>Monitor process creation events for <code>wevtutil.exe</code> modifying registry keys related to AutoLogger, as specified in the <code>filter_main_wevtutil</code> section of the Sigma rule.</li>
<li>Correlate registry modification events with process execution events to identify the source of the tampering, paying close attention to processes originating from the Windows Defender platform, as outlined in the <code>filter_main_defender</code> section of the Sigma rule.</li>
<li>Implement endpoint detection and response (EDR) solutions with robust registry monitoring capabilities to identify and block unauthorized modifications to AutoLogger settings.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">threat</category><category>attack.defense-evasion</category><category>attack.t1562.002</category></item><item><title>Detection of Python One-Liners with Base64 Decoding</title><link>https://feed.craftedsignal.io/briefs/2024-01-python-base64-decode/</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-python-base64-decode/</guid><description>This brief outlines a method to detect malicious use of Python one-liners employing base64 decoding to execute obfuscated payloads, a common tactic for evading traditional security measures.</description><content:encoded><![CDATA[<p>Attackers frequently leverage Python one-liners with base64 encoding to obfuscate and execute malicious code. This technique bypasses standard security measures by concealing the true nature of the payload. The abuse involves embedding base64-encoded commands within Python scripts, which are then decoded and executed at runtime. While legitimate uses of Python and base64 exist, their combination in a single command line, especially with execution flags, is a strong indicator of malicious activity. This technique has been observed in various attacks, including those originating from fake AI websites, where malicious Python code is injected to perform unauthorized actions. Defenders should monitor for such patterns to identify and neutralize potential threats.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Initial Access: The attacker gains access to the system, often through social engineering or exploiting a vulnerability.</li>
<li>Payload Delivery: A base64-encoded payload is delivered to the victim machine via email, website, or other means.</li>
<li>Python Invocation: Python is invoked via the command line, often using <code>python.exe</code> or <code>python3</code>.</li>
<li>Import Base64 Module: The <code>import base64</code> statement is used to load the necessary decoding libraries.</li>
<li>Decoding Execution: The base64-encoded payload is decoded using functions like <code>base64.b64decode()</code> within the Python one-liner using the <code>-c</code> flag for command execution.</li>
<li>Code Execution: The decoded payload is executed in memory, performing malicious actions such as installing malware or establishing persistence.</li>
<li>Lateral Movement: The attacker leverages the compromised system to move laterally within the network, compromising additional systems.</li>
<li>Data Exfiltration/System Damage: The attacker exfiltrates sensitive data or causes damage to the system, depending on their objectives.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation can lead to complete system compromise, data theft, and potentially, a foothold for lateral movement within the network. The use of base64 encoding significantly hinders detection efforts, allowing attackers to operate undetected for extended periods. If successful, organizations could face data breaches, financial losses, and reputational damage.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the provided Sigma rule targeting <code>process_creation</code> events on Windows systems to detect Python commands utilizing base64 decoding functions (<code>CommandLine|contains</code> with <code>import base64</code>, <code>b64decode</code>, and <code>-c</code>).</li>
<li>Inspect command-line arguments of Python processes for suspicious base64 decoding patterns (as seen in the detection rule).</li>
<li>Implement application control policies to restrict the execution of unauthorized Python scripts, mitigating potential exploitation attempts.</li>
<li>Enable Sysmon process creation logging to ensure adequate coverage for the provided Sigma rule.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>attack.execution</category><category>attack.defense-evasion</category><category>attack.t1059.006</category><category>attack.t1027.010</category></item><item><title>Service Startup Type Modification via WMIC</title><link>https://feed.craftedsignal.io/briefs/2024-01-wmic-service-startup-change/</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-wmic-service-startup-change/</guid><description>Adversaries use the Windows Management Instrumentation Command-line (WMIC) utility to modify the startup type of services, setting them to 'Manual' or 'Disabled' to impair defenses or disrupt system operations.</description><content:encoded><![CDATA[<p>Attackers may leverage WMIC, a legitimate Windows command-line utility, to modify the startup type of services. This tactic is often used to disable security products or critical system services, hindering incident response or creating system instability. By setting services to &ldquo;Manual&rdquo; or &ldquo;Disabled&rdquo;, adversaries ensure that these services do not automatically start upon system boot, achieving persistence or impeding detection. While WMIC is a built-in tool, its use for modifying service startup types is often indicative of malicious activity, especially when performed on security-related services. This activity may be part of a larger attack chain aimed at deploying ransomware, exfiltrating data, or establishing a persistent presence on the compromised system.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker gains initial access to the target system, potentially through phishing, exploiting a vulnerability, or compromised credentials.</li>
<li>The attacker executes <code>wmic.exe</code> with specific command-line arguments to interact with Windows services.</li>
<li>The <code>service</code> alias is invoked within WMIC to target specific services.</li>
<li>The <code>ChangeStartMode</code> method is used to modify the startup type of the targeted service.</li>
<li>The attacker sets the startup type to either <code>Manual</code> or <code>Disabled</code>, preventing the service from automatically starting on subsequent reboots.</li>
<li>If the targeted service is a security product, this action effectively disables the defense mechanism.</li>
<li>The attacker proceeds with further malicious activities, such as deploying malware or exfiltrating sensitive data, with reduced resistance.</li>
<li>The compromised system experiences degraded security posture and potential operational disruptions.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful modification of service startup types can severely impact system security and availability. Disabling security software can lead to undetected malware infections and data breaches. Disabling critical system services can cause system instability, data loss, or complete system failure. While the exact number of victims is unknown, this technique is broadly applicable across Windows environments, potentially affecting organizations of any size and in any sector. The impact ranges from minor operational disruptions to significant financial losses due to data breaches and ransomware attacks.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the provided Sigma rule to your SIEM to detect suspicious <code>wmic.exe</code> process creations that attempt to change service startup types.</li>
<li>Investigate any instances where <code>wmic.exe</code> is used to modify service startup types, especially when the targeted services are related to security or critical system functions.</li>
<li>Implement endpoint detection and response (EDR) solutions to provide enhanced visibility into process execution and system modifications.</li>
<li>Regularly review and audit service configurations to identify unauthorized changes.</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>attack.execution</category><category>attack.t1047</category><category>attack.defense-evasion</category><category>attack.t1562.001</category></item><item><title>Suspicious CSC.exe Parent Process</title><link>https://feed.craftedsignal.io/briefs/2024-01-02-csc-suspicious-parent/</link><pubDate>Tue, 02 Jan 2024 15:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-02-csc-suspicious-parent/</guid><description>The Csc.exe (C# compiler) process is being launched by unusual parent processes or from suspicious locations, indicating potential malware execution or defense evasion.</description><content:encoded><![CDATA[<p>Attackers are leveraging the legitimate Csc.exe (C# compiler) to execute malicious code, often as a part of defense evasion or payload delivery. This is achieved by spawning Csc.exe from unusual parent processes such as scripting hosts (cscript.exe, wscript.exe), Office applications (excel.exe, winword.exe), or PowerShell, especially when combined with encoded commands. Observed techniques also include launching Csc.exe from temporary or unusual directories. This activity bypasses traditional application whitelisting and can lead to the execution of arbitrary code. This activity has been associated with WarzoneRAT, DarkVNC, and the delivery of IMAPLoader malware.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker gains initial access, potentially through phishing or exploiting a vulnerability.</li>
<li>A script or Office macro executes, initiating a command-line process.</li>
<li>This process then invokes a scripting host (e.g., cscript.exe) or PowerShell.</li>
<li>The scripting host or PowerShell executes a command that downloads or creates a C# source code file.</li>
<li>Csc.exe is then invoked, often from a temporary directory, to compile the downloaded/created C# code.</li>
<li>The compiled C# code executes, performing malicious actions.</li>
<li>The malicious code may establish persistence, communicate with a C2 server, or perform data exfiltration.</li>
<li>The final objective might be to deploy ransomware, steal sensitive data, or establish a persistent backdoor.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation can lead to arbitrary code execution, allowing attackers to compromise systems, steal data, or deploy malware. Depending on the user&rsquo;s permissions, the attacker could gain elevated privileges. The observed techniques have been associated with ransomware deployment, data theft, and remote access trojans (RATs).</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the Sigma rule &ldquo;Csc.EXE Execution Form Potentially Suspicious Parent&rdquo; to detect suspicious parent processes of csc.exe.</li>
<li>Monitor process creation events for csc.exe with parent processes like scripting hosts or Office applications.</li>
<li>Investigate any instances of csc.exe being executed from temporary directories or user profile locations by reviewing process_creation logs.</li>
<li>Enable Sysmon process creation logging to capture detailed process information, including parent-child relationships, for effective detection.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>attack.execution</category><category>attack.defense-evasion</category><category>csc.exe</category><category>payload-delivery</category></item></channel></rss>