New Generic Credentials Added Via Cmdkey.EXE

 Original Source: [Sigma source]
Title: New Generic Credentials Added Via Cmdkey.EXE
Status: test
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.
References:
  -https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1021.001/T1021.001.md#t1021001---remote-desktop-protocol
Author: frack113, Nasreddine Bencherchali (Nextron Systems)
Date: 2023-02-03
modified:2024-03-05
Tags:
  • -'attack.credential-access'
  • -'attack.t1003.005'
Logsource:
  • category: process_creation
  • product: windows
Detection:
  selection_img:
Image|endswith:'\cmdkey.exe' OriginalFileName:'cmdkey.exe'   selection_cli_generic:
    CommandLine|contains|windash: ' -g'
  selection_cli_user:
    CommandLine|contains|windash: ' -u'
  selection_cli_password:
    CommandLine|contains|windash: ' -p'
  condition:all of selection_*
Falsepositives:
  -Legitimate usage for administration purposes
Level: medium