Detectionmediumtest
Console CodePage Lookup Via CHCP
Detects use of chcp to look up the system locale value as part of host discovery
Convert In Phoenix Studio
Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.
Launch
_pete_0, TheDFIRReportCreated Mon Feb 21Updated Tue Mar 057090adee-82e2-4269-bd59-80691e7c6338windows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation
Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.
Detection Logic
Detection Logic1 selector
detection:
selection:
ParentImage|endswith: '\cmd.exe'
ParentCommandLine|contains|windash:
- ' -c '
- ' -r '
- ' -k '
Image|endswith: '\chcp.com'
CommandLine|endswith:
- 'chcp'
- 'chcp '
- 'chcp '
condition: selectionFalse Positives
During Anaconda update the 'conda.exe' process will eventually execution the 'chcp' command.
Discord was seen using chcp to look up code pages
MITRE ATT&CK
Tactics
Sub-techniques
Rule Metadata
Rule ID
7090adee-82e2-4269-bd59-80691e7c6338
Status
test
Level
medium
Type
Detection
Created
Mon Feb 21
Modified
Tue Mar 05
Author
Path
rules/windows/process_creation/proc_creation_win_chcp_codepage_lookup.yml
Raw Tags
attack.discoveryattack.t1614.001