title: Suspicious Code Page Switch status: experimental description: Detects a code page switch in command line or batch scripts to a rare language author: Florian Roth date: 2019/10/14 references: - https://docs.microsoft.com/en-us/windows/win32/intl/code-page-identifiers - https://twitter.com/cglyer/status/1183756892952248325 logsource: category: process_creation product: windows detection: selection: CommandLine: - 'chcp* 936' # Chinese # - 'chcp* 1256' # Arabic - 'chcp* 1258' # Vietnamese # - 'chcp* 855' # Russian # - 'chcp* 866' # Russian # - 'chcp* 864' # Arabic condition: selection fields: - ParentCommandLine falsepositives: - "Administrative activity (adjust code pages according to your organisation's region)" level: medium