{"description":"Trending threats, MITRE ATT\u0026CK coverage, and detection metadata — refreshed continuously.","feed_url":"https://feed.craftedsignal.io/tags/temp-directory/","home_page_url":"https://feed.craftedsignal.io/","items":[{"_cs_actors":[],"_cs_cves":[],"_cs_exploited":false,"_cs_products":[],"_cs_severities":["high"],"_cs_tags":["defense-evasion","persistence","privilege-escalation","execution","temp-directory","file-creation"],"_cs_type":"advisory","_cs_vendors":["Microsoft"],"content_html":"\u003cp\u003eThis threat brief focuses on the creation of executable files or scripts within temporary directories on Windows systems, a common tactic used by adversaries to bypass security controls and establish persistence. This behavior is often indicative of malicious activity, such as malware installation, privilege escalation, or unauthorized code execution. The observed activity involves writing files with extensions like \u003ccode\u003e.exe\u003c/code\u003e, \u003ccode\u003e.dll\u003c/code\u003e, \u003ccode\u003e.ps1\u003c/code\u003e, and \u003ccode\u003e.bat\u003c/code\u003e into common temporary locations like \u003ccode\u003e\\Windows\\Temp\\\u003c/code\u003e or \u003ccode\u003e\\AppData\\Local\\Temp\\\u003c/code\u003e. This technique allows attackers to hide malicious files among legitimate temporary files, making detection more challenging. References to campaigns like Volt Typhoon, and ransomware families like LockBit highlight the importance of detecting this behavior.\u003c/p\u003e\n\u003ch2 id=\"attack-chain\"\u003eAttack Chain\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eThe attacker gains initial access to the system (e.g., through phishing or exploiting a vulnerability).\u003c/li\u003e\n\u003cli\u003eThe attacker drops a malicious executable or script onto the compromised system.\u003c/li\u003e\n\u003cli\u003eTo evade detection, the malicious file is created in a temporary directory such as \u003ccode\u003eC:\\Windows\\Temp\\\u003c/code\u003e or \u003ccode\u003eC:\\Users\\\u0026lt;username\u0026gt;\\AppData\\Local\\Temp\\\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe attacker uses a dropper or installer to write the malicious file (e.g., using \u003ccode\u003ecmd.exe\u003c/code\u003e, \u003ccode\u003epowershell.exe\u003c/code\u003e).\u003c/li\u003e\n\u003cli\u003eThe attacker may rename the file to further disguise its purpose.\u003c/li\u003e\n\u003cli\u003eThe attacker executes the malicious file, potentially leading to code execution, privilege escalation, or persistence.\u003c/li\u003e\n\u003cli\u003eThe executed malware performs malicious actions, such as lateral movement, data exfiltration, or ransomware deployment.\u003c/li\u003e\n\u003cli\u003eThe attacker maintains persistence on the system, ensuring continued access and control.\u003c/li\u003e\n\u003c/ol\u003e\n\u003ch2 id=\"impact\"\u003eImpact\u003c/h2\u003e\n\u003cp\u003eSuccessful exploitation can lead to unauthorized code execution, privilege escalation, and persistent access within the targeted environment. This can result in data theft, system compromise, or ransomware deployment. The references to campaigns like Volt Typhoon and ransomware families like LockBit highlight the potential for significant disruption and financial loss. Multiple analytic stories, such as AsyncRAT, DarkGate Malware, and Qakbot, highlight the prevalence of this technique across various threat actors.\u003c/p\u003e\n\u003ch2 id=\"recommendation\"\u003eRecommendation\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003eEnable Sysmon EventID 11 (FileCreate) logging to monitor file creation events on endpoints.\u003c/li\u003e\n\u003cli\u003eDeploy the Sigma rule \u0026ldquo;Executable or Script Creation in Temp Path\u0026rdquo; to your SIEM and tune for your environment.\u003c/li\u003e\n\u003cli\u003eInvestigate any file creation events in temporary directories involving executable or script file types (.exe, .dll, .ps1, .bat, etc.).\u003c/li\u003e\n\u003cli\u003eReview and filter events based on your organization\u0026rsquo;s normal activity to reduce false positives, as mentioned in the \u0026ldquo;known_false_positives\u0026rdquo; section of the source.\u003c/li\u003e\n\u003cli\u003eMonitor for processes spawned from temporary directories, using a process creation monitoring tool and correlate with other suspicious activities.\u003c/li\u003e\n\u003c/ul\u003e\n","date_modified":"2024-01-03T12:00:00Z","date_published":"2024-01-03T12:00:00Z","id":"/briefs/2024-01-executables-or-script-creation-in-temp-path/","summary":"Adversaries may create executables or scripts in temporary directories to evade detection, maintain persistence, and execute unauthorized code on Windows systems.","title":"Executable or Script Creation in Temporary Paths","url":"https://feed.craftedsignal.io/briefs/2024-01-executables-or-script-creation-in-temp-path/"}],"language":"en","title":"CraftedSignal Threat Feed — Temp-Directory","version":"https://jsonfeed.org/version/1.1"}