Windows File Creation of CrackMapExec-Related Temp Scripts and Output Files
Flags Windows file creation in C:\Windows\Temp\ with filenames and patterns associated with CrackMapExec artifacts.
- Product
- windows
- Category
- file_event
- Author
- Nasreddine Bencherchali (Nextron Systems) (SigmaHQ), DRL 1.1
- Published
- 2024-03-11
- Updated
- 2026-07-31
ATT&CK techniques
Cred AccessRecon
Resource Dev
Initial Access
Execution
Persistence
Priv Esc
Defense Evasion
Cred Access
Discovery
Lateral Movement
Collection
C2
Exfiltration
Impact
What it detects
This rule identifies Windows file creation events where the target filename is in C:\Windows\Temp\ and matches specific script or output naming patterns associated with CrackMapExec. Attackers may drop PowerShell payloads and generated marker/data files in this location to support credential access and execution workflows. Detection relies on Windows file event telemetry that captures TargetFilename for newly created files, including full paths and filenames.
Reporting behind it
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 File Creation of CrackMapExec-Related Temp Scripts and Output Files
id: f8bb5185-6bd7-4421-ae2f-f12c84a5f06b
related:
- id: 9433ff9c-5d3f-4269-99f8-95fc826ea489
type: obsolete
- id: 736ffa74-5f6f-44ca-94ef-1c0df4f51d2a
type: derived
status: test
description: This rule identifies Windows file creation events where the target filename is in C:\Windows\Temp\ and matches specific script or output naming patterns associated with CrackMapExec. Attackers may drop PowerShell payloads and generated marker/data files in this location to support credential access and execution workflows. Detection relies on Windows file event telemetry that captures TargetFilename for newly created files, including full paths and filenames.
references:
- https://github.com/byt3bl33d3r/CrackMapExec/
- https://github.com/SigmaHQ/sigma/blob/master/rules/windows/file/file_event/file_event_win_hktl_crackmapexec_indicators.yml
author: Nasreddine Bencherchali (Nextron Systems), Huntrule Team
date: 2024-03-11
modified: 2024-06-27
tags:
- attack.credential-access
- attack.t1003.001
logsource:
product: windows
category: file_event
detection:
selection_path:
TargetFilename|startswith: C:\Windows\Temp\
selection_names_str:
TargetFilename|endswith:
- \temp.ps1
- \msol.ps1
selection_names_re:
- TargetFilename|re: \\[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\.txt$
- TargetFilename|re: \\[a-zA-Z]{8}\.tmp$
condition: selection_path and 1 of selection_names_*
falsepositives:
- Unknown
level: high
license: DRL-1.1