{"id":"304afd73-55a5-4bb9-8c21-0b1fc84ea9e4","title":"PSEXEC Remote Execution File Artefact","description":"Detects creation of the PSEXEC key file. Which is created anytime a PsExec command is executed. It gets written to the file system and will be recorded in the USN Journal on the target system","author":"Nasreddine Bencherchali (Nextron Systems)","status":"test","level":"high","date":"2023-01-21","modified":"2023-02-23","tags":["attack.lateral-movement","attack.privilege-escalation","attack.execution","attack.persistence","attack.t1136.002","attack.t1543.003","attack.t1570","attack.s0029"],"technique_ids":["T1136.002","T1543.003","T1570"],"logsource":{"category":"file_event","product":"windows"},"falsepositives":["Unlikely"],"references":["https://aboutdfir.com/the-key-to-identify-psexec/","https://twitter.com/davisrichardg/status/1616518800584704028"],"source_path":"rules/windows/file/file_event/file_event_win_sysinternals_psexec_service_key.yml","source_sha256":"b742e33eb0d56c654300de8ac448ca988d8e7970579cbca82de46da315a626ea","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/file/file_event/file_event_win_sysinternals_psexec_service_key.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: PSEXEC Remote Execution File Artefact\nid: 304afd73-55a5-4bb9-8c21-0b1fc84ea9e4\nstatus: test\ndescription: Detects creation of the PSEXEC key file. Which is created anytime a PsExec command is executed. It gets written to the file system and will be recorded in the USN Journal on the target system\nreferences:\n    - https://aboutdfir.com/the-key-to-identify-psexec/\n    - https://twitter.com/davisrichardg/status/1616518800584704028\nauthor: Nasreddine Bencherchali (Nextron Systems)\ndate: 2023-01-21\nmodified: 2023-02-23\ntags:\n    - attack.lateral-movement\n    - attack.privilege-escalation\n    - attack.execution\n    - attack.persistence\n    - attack.t1136.002\n    - attack.t1543.003\n    - attack.t1570\n    - attack.s0029\nlogsource:\n    category: file_event\n    product: windows\ndetection:\n    selection:\n        TargetFilename|startswith: 'C:\\Windows\\PSEXEC-'\n        TargetFilename|endswith: '.key'\n    condition: selection\nfalsepositives:\n    - Unlikely\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1136.002","id":"T1136.002","name":"Domain Account","page":"techniques/enterprise/T1136.002/"},{"key":"enterprise/T1543.003","id":"T1543.003","name":"Windows Service","page":"techniques/enterprise/T1543.003/"},{"key":"enterprise/T1570","id":"T1570","name":"Lateral Tool Transfer","page":"techniques/enterprise/T1570/"}],"data_path":"data/detection-rules/304afd73-55a5-4bb9-8c21-0b1fc84ea9e4.json","kind":"sigma"}
