Windows: Jlaive In-Memory Assembly Execution via Copied Batch Executable
Detects chained cmd/.bat staging that uses xcopy plus PowerShell/pwsh and attrib +h/+s to run a .bat.exe payload associated with Jlaive.
- Product
- windows
- Category
- process_creation
- Author
- Jose Luis Sanchez Martinez (@Joseliyo_Jstnk) (SigmaHQ), DRL 1.1
- Published
- 2022-05-24
- Updated
- 2026-07-31
ATT&CK techniques
ExecutionRecon
Resource Dev
Initial Access
Execution
Persistence
Priv Esc
Defense Evasion
Cred Access
Discovery
Lateral Movement
Collection
C2
Exfiltration
Impact
What it detects
This rule matches a Windows process tree where a cmd.exe parent running a .bat script launches xcopy. The launched xcopy process includes PowerShell or pwsh.exe and copies a file ending with .bat.exe, and it also looks for attrib.exe usage that sets the +s and +h attributes on the same .bat.exe. This pattern is indicative of staging and executing code in-memory using a tool like Jlaive, which attackers use to reduce on-disk artifacts and evade detection. Telemetry relies on Windows process creation events, including Image and CommandLine details for cmd.exe, xcopy.exe, and attrib.exe.
Reporting behind it
- jstnk9.github.iohttps://jstnk9.github.io/jstnk9/research/Jlaive-Antivirus-Evasion-Tool
- web.archive.orghttps://web.archive.org/web/20220514073704/https://github.com/ch2sh/Jlaive
- github.comhttps://github.com/SigmaHQ/sigma/blob/master/rules/windows/process_creation/proc_creation_win_hktl_jlaive_batch_execution.yml
Changelog
v2- v2Candidate ingested via manual entry.2026-07-31
- v1No changelog recorded for this version.2026-07-30
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.
title: "Windows: Jlaive In-Memory Assembly Execution via Copied Batch Executable"
id: 32495855-d083-4aef-a213-357f99736f2f
status: test
description: This rule matches a Windows process tree where a cmd.exe parent running a .bat script launches xcopy. The launched xcopy process includes PowerShell or pwsh.exe and copies a file ending with .bat.exe, and it also looks for attrib.exe usage that sets the +s and +h attributes on the same .bat.exe. This pattern is indicative of staging and executing code in-memory using a tool like Jlaive, which attackers use to reduce on-disk artifacts and evade detection. Telemetry relies on Windows process creation events, including Image and CommandLine details for cmd.exe, xcopy.exe, and attrib.exe.
references:
- https://jstnk9.github.io/jstnk9/research/Jlaive-Antivirus-Evasion-Tool
- https://web.archive.org/web/20220514073704/https://github.com/ch2sh/Jlaive
- https://github.com/SigmaHQ/sigma/blob/master/rules/windows/process_creation/proc_creation_win_hktl_jlaive_batch_execution.yml
author: Jose Luis Sanchez Martinez (@Joseliyo_Jstnk), Huntrule Team
date: 2022-05-24
modified: 2023-02-22
tags:
- attack.execution
- attack.t1059.003
logsource:
product: windows
category: process_creation
detection:
parent_selection:
ParentImage|endswith: \cmd.exe
ParentCommandLine|endswith: .bat
selection1:
Image|endswith: \xcopy.exe
CommandLine|contains|all:
- powershell.exe
- .bat.exe
selection2:
Image|endswith: \xcopy.exe
CommandLine|contains|all:
- pwsh.exe
- .bat.exe
selection3:
Image|endswith: \attrib.exe
CommandLine|contains|all:
- +s
- +h
- .bat.exe
condition: parent_selection and (1 of selection*)
falsepositives:
- Unknown
level: medium
license: DRL-1.1
related:
- id: 0a99eb3e-1617-41bd-b095-13dc767f3def
type: derived