PowerShell Script Evidence Eraser Searching for cleanLL and usersfiles.war

Identifies PowerShell script blocks containing evidence-cleanup indicators and a repeating while(1) loop.

FreeReviewedSigma · High · v5
Product
windows
Category
ps_script
Author
Nasreddine Bencherchali (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2023-11-09
Updated
2026-07-31
title: PowerShell Script Evidence Eraser Searching for cleanLL and usersfiles.war
id: f6794ad8-42be-457c-8e72-13465a1585d4
status: test
description: This rule matches PowerShell script content that appears to automate evidence removal, including strings and commands for cleaning files and targeting items like usersfiles.war and SysAidServer. Such behavior matters because attackers often use scripts to delete artifacts and disrupt forensic evidence on compromised hosts. Detection relies on Windows PowerShell script block telemetry where the script text contains all of the specified substrings, indicating the same erase-style routine.
references:
  - https://www.sysaid.com/blog/service-desk/on-premise-software-security-vulnerability-notification
  - https://github.com/SigmaHQ/sigma/blob/master/rules-emerging-threats/2023/TA/Lace-Tempest/posh_ps_apt_lace_tempest_eraser_script.yml
author: Nasreddine Bencherchali (Nextron Systems), Huntrule Team
date: 2023-11-09
tags:
  - attack.execution
  - attack.t1059.001
  - detection.emerging-threats
logsource:
  product: windows
  category: ps_script
  definition: "Requirements: Script Block Logging must be enabled"
detection:
  selection:
    ScriptBlockText|contains|all:
      - cleanLL
      - usersfiles.war
      - Remove-Item -Path "$tomcat_dir
      - SysAidServer
      - "sleep "
      - while(1)
  condition: selection
falsepositives:
  - Unlikely
level: high
license: DRL-1.1
related:
  - id: b377ddab-502d-4519-9e8c-5590033d2d70
    type: derived