Detectionmediumtest
Console CodePage Lookup Via CHCP
Detects use of chcp to look up the system locale value as part of host discovery
_pete_0, TheDFIRReportCreated 2022-02-21Updated 2024-03-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
2022-02-21
Modified
2024-03-05
Author
Path
rules/windows/process_creation/proc_creation_win_chcp_codepage_lookup.yml
Raw Tags
attack.discoveryattack.t1614.001