{"id":"b1ec66c6-f4d1-4b5c-96dd-af28ccae7727","title":"New Generic Credentials Added Via Cmdkey.EXE","description":"Detects usage of \"cmdkey.exe\" to add generic credentials.\nAs an example, this can be used before connecting to an RDP session via command line interface.\n","author":"frack113, Nasreddine Bencherchali (Nextron Systems)","status":"test","level":"medium","date":"2023-02-03","modified":"2024-03-05","tags":["attack.credential-access","attack.t1003.005"],"technique_ids":["T1003.005"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Legitimate usage for administration purposes"],"references":["https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1021.001/T1021.001.md#t1021001---remote-desktop-protocol"],"source_path":"rules/windows/process_creation/proc_creation_win_cmdkey_adding_generic_creds.yml","source_sha256":"81c2ef728ca9c48ea1d610cc382258bd56a9dca473543065c417e20989800e8a","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_cmdkey_adding_generic_creds.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: New Generic Credentials Added Via Cmdkey.EXE\nid: b1ec66c6-f4d1-4b5c-96dd-af28ccae7727\nstatus: test\ndescription: |\n    Detects usage of \"cmdkey.exe\" to add generic credentials.\n    As an example, this can be used before connecting to an RDP session via command line interface.\nreferences:\n    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1021.001/T1021.001.md#t1021001---remote-desktop-protocol\nauthor: frack113, Nasreddine Bencherchali (Nextron Systems)\ndate: 2023-02-03\nmodified: 2024-03-05\ntags:\n    - attack.credential-access\n    - attack.t1003.005\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection_img:\n        - Image|endswith: '\\cmdkey.exe'\n        - OriginalFileName: 'cmdkey.exe'\n    selection_cli_generic:\n        CommandLine|contains|windash: ' -g' # Generic\n    selection_cli_user:\n        CommandLine|contains|windash: ' -u' # User\n    selection_cli_password:\n        CommandLine|contains|windash: ' -p' # Password\n    condition: all of selection_*\nfalsepositives:\n    - Legitimate usage for administration purposes\nlevel: medium\nregression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_cmdkey_adding_generic_creds/info.yml\nsimulation:\n    - type: atomic-red-team\n      name: RDP to DomainController\n      technique: T1021.001\n      atomic_guid: 355d4632-8cb9-449d-91ce-b566d0253d3e\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1003.005","id":"T1003.005","name":"Cached Domain Credentials","page":"techniques/enterprise/T1003.005/"}],"data_path":"data/detection-rules/b1ec66c6-f4d1-4b5c-96dd-af28ccae7727.json","kind":"sigma"}
