New Generic Credentials Added Via Cmdkey.EXE

Last updated on:

About the rule

Rule Type

Standard

Rule Description

Detects usage of "cmdkey.exe" to add generic credentials. As an example, this can be used before connecting to an RDP session via command line interface.

Severity

Trouble

Rule Requirement

Criteria

Action1: actionname = "Process started" AND (PROCESSNAME endswith "\cmdkey.exe" OR ORIGINALFILENAME = "cmdkey.exe") AND COMMANDLINE contains " -g, /g, –g, —g, ―g" AND COMMANDLINE contains " -u, /u, –u, —u, ―u" AND COMMANDLINE contains " -p, /p, –p, —p, ―p" select Action1.HOSTNAME,Action1.MESSAGE,Action1.COMMANDLINE,Action1.FILE_NAME,Action1.PROCESSNAME,Action1.USERNAME,Action1.PARENTPROCESSNAME

Detection

Execution Mode

realtime

Log Sources

Windows

Author

frack113, Nasreddine Bencherchali (Nextron Systems)