{"id":"ac7102b4-9e1e-4802-9b4f-17c5524c015c","title":"New PowerShell Instance Created","description":"Detects the execution of PowerShell via the creation of a named pipe starting with PSHost","author":"Roberto Rodriguez (Cyb3rWard0g), OTR (Open Threat Research)","status":"test","level":"informational","date":"2019-09-12","modified":"2023-11-30","tags":["attack.execution","attack.t1059.001"],"technique_ids":["T1059.001"],"logsource":{"product":"windows","category":"pipe_created","definition":"Note that you have to configure logging for Named Pipe Events in Sysmon config (Event ID 17 and Event ID 18). The basic configuration is in popular sysmon configuration (https://github.com/SwiftOnSecurity/sysmon-config), but it is worth verifying. You can also use other repo, e.g. https://github.com/Neo23x0/sysmon-config, https://github.com/olafhartong/sysmon-modular. How to test detection? You can check powershell script from this site https://svch0st.medium.com/guide-to-named-pipes-and-hunting-for-cobalt-strike-pipes-dc46b2c5f575"},"falsepositives":["Likely"],"references":["https://threathunterplaybook.com/hunts/windows/190610-PwshAlternateHosts/notebook.html","https://threathunterplaybook.com/hunts/windows/190410-LocalPwshExecution/notebook.html"],"source_path":"rules/windows/pipe_created/pipe_created_powershell_execution_pipe.yml","source_sha256":"e539b45c9eb41cb8d0f0aa689ea99276fd22d9217006ca2256069eb946ccabc8","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/pipe_created/pipe_created_powershell_execution_pipe.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 PowerShell Instance Created\nid: ac7102b4-9e1e-4802-9b4f-17c5524c015c\nrelated:\n    - id: 58cb02d5-78ce-4692-b3e1-dce850aae41a\n      type: derived\nstatus: test\ndescription: Detects the execution of PowerShell via the creation of a named pipe starting with PSHost\nreferences:\n    - https://threathunterplaybook.com/hunts/windows/190610-PwshAlternateHosts/notebook.html\n    - https://threathunterplaybook.com/hunts/windows/190410-LocalPwshExecution/notebook.html\nauthor: Roberto Rodriguez (Cyb3rWard0g), OTR (Open Threat Research)\ndate: 2019-09-12\nmodified: 2023-11-30\ntags:\n    - attack.execution\n    - attack.t1059.001\nlogsource:\n    product: windows\n    category: pipe_created\n    definition: 'Note that you have to configure logging for Named Pipe Events in Sysmon config (Event ID 17 and Event ID 18). The basic configuration is in popular sysmon configuration (https://github.com/SwiftOnSecurity/sysmon-config), but it is worth verifying. You can also use other repo, e.g. https://github.com/Neo23x0/sysmon-config, https://github.com/olafhartong/sysmon-modular. How to test detection? You can check powershell script from this site https://svch0st.medium.com/guide-to-named-pipes-and-hunting-for-cobalt-strike-pipes-dc46b2c5f575'\ndetection:\n    selection:\n        PipeName|startswith: '\\PSHost'\n    condition: selection\nfalsepositives:\n    - Likely\nlevel: informational\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1059.001","id":"T1059.001","name":"PowerShell","page":"techniques/enterprise/T1059.001/"}],"data_path":"data/detection-rules/ac7102b4-9e1e-4802-9b4f-17c5524c015c.json","kind":"sigma"}
