{"id":"0adc67e0-a68f-4ffd-9c43-28905aad5d6a","title":"HackTool - Koh Default Named Pipe","description":"Detects creation of default named pipes used by the Koh tool","author":"Nasreddine Bencherchali (Nextron Systems)","status":"test","level":"critical","date":"2022-07-08","modified":"2023-08-07","tags":["attack.privilege-escalation","attack.credential-access","attack.stealth","attack.t1528","attack.t1134.001"],"technique_ids":["T1134.001","T1528"],"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":["Unlikely"],"references":["https://github.com/GhostPack/Koh/blob/0283d9f3f91cf74732ad377821986cfcb088e20a/Clients/BOF/KohClient.c#L12"],"source_path":"rules/windows/pipe_created/pipe_created_hktl_koh_default_pipe.yml","source_sha256":"3090dbb25266e9bea297fc3b65c48ed6834e6354ca4bfb24e2d2cc0af94a45a8","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/pipe_created/pipe_created_hktl_koh_default_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: HackTool - Koh Default Named Pipe\nid: 0adc67e0-a68f-4ffd-9c43-28905aad5d6a\nstatus: test\ndescription: Detects creation of default named pipes used by the Koh tool\nreferences:\n    - https://github.com/GhostPack/Koh/blob/0283d9f3f91cf74732ad377821986cfcb088e20a/Clients/BOF/KohClient.c#L12\nauthor: Nasreddine Bencherchali (Nextron Systems)\ndate: 2022-07-08\nmodified: 2023-08-07\ntags:\n    - attack.privilege-escalation\n    - attack.credential-access\n    - attack.stealth\n    - attack.t1528\n    - attack.t1134.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|contains:\n            - '\\imposecost'\n            - '\\imposingcost'\n    condition: selection\nfalsepositives:\n    - Unlikely\nlevel: critical\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1134.001","id":"T1134.001","name":"Token Impersonation/Theft","page":"techniques/enterprise/T1134.001/"},{"key":"enterprise/T1528","id":"T1528","name":"Steal Application Access Token","page":"techniques/enterprise/T1528/"}],"data_path":"data/detection-rules/0adc67e0-a68f-4ffd-9c43-28905aad5d6a.json","kind":"sigma"}
