Lace Tempest PowerShell Evidence Eraser
Last updated on:
In this page
Rule name | Rule type | Log sources | MITRE ATT&CK tags | Severity |
Lace Tempest PowerShell Evidence Eraser | Standard | Windows | Execution: Command and Scripting Interpreter - PowerShell (T1059.001) | Trouble |
About the rule
Rule Type
Standard
Rule Description
Lace Tempest is an APT group known for using a PowerShell Evidence Eraser targeting SysAid software. By exploiting CVE-2023-47246, a vulnerability in SysAid on-premises, the threat group executes a PowerShell script that erases forensic evidence on the victim’s server following an attack. This rule detects the execution of such PowerShell scripts associated with Lace Tempest’s Evidence Eraser.
Severity
Trouble
Rule journey
Attack chain scenario
Initial access → Exploit Public-Facing Application → Execution → PowerShell script execution → Defense evasion → Indicator Removal
Impact
- Exploitation of vulnerabilities
- Malware execution
- Forensic evidence manipulation
- Data destruction
Rule Requirement
Prerequisites
Logon to Group Policy Management Console with administrative privileges and enable Module Logging for Windows PowerShell in the Group Policy Management Editor. Ensure to enter * in the Module Names window to record all modules. Similarly enable PowerShell Script Block Logging for Windows PowerShell. Finally, create a new registry key "Microsoft-Windows-Powershell/Operational" in the directory "Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog\".
(((( SCRIPTEXECUTED CONTAINS ""cleanll"" ) AND( SCRIPTEXECUTED CONTAINS ""usersfiles.war"" ) AND( SCRIPTEXECUTED CONTAINS ""remove-item -path \""$tomcat_dir"" ) AND( SCRIPTEXECUTED CONTAINS ""sysaidserver"" ) AND( SCRIPTEXECUTED CONTAINS ""sleep"" ) AND( SCRIPTEXECUTED CONTAINS ""while(1)"" ) )))
This rule is triggered when the executed script contains the following suspicious elements:
- cleanll: A command used for file cleanup.
- usersfiles.war: A Web Application Archive file which can be used for deploying malicious web applications.
- remove-item -path "$tomcat_dir": A PowerShell command used to delete files or folders from the Tomcat directory.
- sysaidserver: Refers to the targeted SysAid server or service.
- sleep: A command to pause execution that can be used to evade detection.
- while(1): A function used to keep a process running.
Criteria
Action1: actionname = "PowerShell Script Block Logged" AND SCRIPTEXECUTED contains "cleanLL" AND SCRIPTEXECUTED contains "usersfiles.war" AND SCRIPTEXECUTED contains "Remove-Item -Path "$tomcat_dir" AND SCRIPTEXECUTED contains "SysAidServer" AND SCRIPTEXECUTED contains "sleep " AND SCRIPTEXECUTED contains "while(1)" select Action1.HOSTNAME,Action1.MESSAGE,Action1.SCRIPTEXECUTED
Detection
Execution Mode
realtime
Log Sources
Windows
MITRE ATT&CK
Execution: Command and Scripting Interpreter - PowerShell (T1059.001)
Security Standards
Enabling this rule will help you meet the security standard's requirement listed below:
DE.CM-09: Computing hardware and software, runtime environments, and their data are monitored to find potentially adverse events.
When this rule is triggered, you're notified of a PowerShell script execution involving Lace Tempest's Evidence Eraser. This enables you to monitor runtime environments like PowerShell, detect attempts to exploit CVE-2023-47246, and identify the execution of Evidence Eraser scripts.
Author
Nasreddine Bencherchali (Nextron Systems)
Future actions
Known False Positives
This rule might be triggered when admins execute automated PowerShell scripts for legitimate software upgrades and patch updates.
Next Steps
When this rule is triggered, the following measures can be implemented:
- Identification: Identify if the flagged event is a new incident or part of an existing incident.
- Analysis: Analyze the impact and extent of the incident to comprehend the severity of the attack using the Incident Workbench.
- Response: Respond promptly by initiating an automated workflow to interrupt the network connections and cease the malicious process.
- Audit PowerShell activities: Continuously monitor PowerShell executions, restrict script execution privileges to administrators only, and disable PowerShell on devices where it is not required.
Mitigation
Mitigation ID | Mitigation Name | Mitigation description |
M1049 | Implement antivirus or antimalware scanning to isolate suspicious files. | |
M1045 | Configure policies that allow PowerShell to execute only signed scripts. | |
M1042 | Restrict or disable PowerShell on systems where it is not required. | |
M1038 | Restrict the execution of scripts that contain sensitive language elements i.e., malicious codes using the PowerShell Constrained Language mode. | |
M1026 | Restrict privileges to execute PowerShell scripts to administrators and enforce limitations on the commands that can be executed via remote PowerShell sessions. |


