Windows HackTool Indicators: NetExec (nxc.exe) PyInstaller Extraction Artifacts

Flags Windows file creation under Temp\_MEI* where NetExec nxc data files are dropped, indicating likely NetExec execution.

FreeReviewedSigma · High · v2
Product
windows
Category
file_event
Author
Swachchhanda Shrawan Poudel (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2026-04-08
Updated
2026-07-31
title: "Windows HackTool Indicators: NetExec (nxc.exe) PyInstaller Extraction Artifacts"
id: ca3cb196-a3ec-4dc1-88b3-c8099e7a17d9
status: experimental
description: This rule identifies Windows file creation events consistent with NetExec (nxc.exe) execution on a local host. It looks for a combination of execution-related content in the image path and on-disk PyInstaller extraction under the Temp directory, specifically including the extracted _MEI* folder and the nxc\data subdirectory. These extracted files are strong on-disk indicators because they are produced during NetExec startup as it unpacks embedded data to a temporary directory.
references:
  - https://github.com/Pennyw0rth/NetExec
  - https://www.netexec.wiki/
  - https://github.com/SigmaHQ/sigma/blob/master/rules/windows/file/file_event/file_event_win_hktl_netexec_file_indicators.yml
author: Swachchhanda Shrawan Poudel (Nextron Systems), Huntrule Team
date: 2026-04-08
tags:
  - attack.execution
  - attack.lateral-movement
  - attack.discovery
  - attack.t1021.002
  - attack.t1059.005
logsource:
  product: windows
  category: file_event
detection:
  selection:
    - Image|contains: \nxc-windows-latest\
    - TargetFilename|contains|all:
        - \Temp\_MEI
        - \nxc\data\
  condition: selection
falsepositives:
  - Unknown
level: high
regression_tests_path: regression_data/rules/windows/file/file_event/file_event_win_hktl_netexec_file_indicators/info.yml
license: DRL-1.1
related:
  - id: efc21479-9e83-41da-8cf1-122e06ba8db3
    type: derived