{"id":"1ea13e8c-03ea-409b-877d-ce5c3d2c1cb3","title":"ADFS Database Named Pipe Connection By Uncommon Tool","description":"Detects suspicious local connections via a named pipe to the AD FS configuration database (Windows Internal Database).\nUsed to access information such as the AD FS configuration settings which contains sensitive information used to sign SAML tokens.\n","author":"Roberto Rodriguez @Cyb3rWard0g","status":"test","level":"medium","date":"2021-10-08","modified":"2023-11-30","tags":["attack.collection","attack.t1005"],"technique_ids":["T1005"],"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":["Unknown"],"references":["https://github.com/Azure/Azure-Sentinel/blob/f99542b94afe0ad2f19a82cc08262e7ac8e1428e/Detections/SecurityEvent/ADFSDBNamedPipeConnection.yaml","https://o365blog.com/post/adfs/","https://github.com/Azure/SimuLand"],"source_path":"rules/windows/pipe_created/pipe_created_adfs_namedpipe_connection_uncommon_tool.yml","source_sha256":"f2f8221fc26b2daa9fd19ab04671aeda3e8aa02bb3536b3a9c752308aff58e9b","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/pipe_created/pipe_created_adfs_namedpipe_connection_uncommon_tool.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: ADFS Database Named Pipe Connection By Uncommon Tool\nid: 1ea13e8c-03ea-409b-877d-ce5c3d2c1cb3\nstatus: test\ndescription: |\n    Detects suspicious local connections via a named pipe to the AD FS configuration database (Windows Internal Database).\n    Used to access information such as the AD FS configuration settings which contains sensitive information used to sign SAML tokens.\nreferences:\n    - https://github.com/Azure/Azure-Sentinel/blob/f99542b94afe0ad2f19a82cc08262e7ac8e1428e/Detections/SecurityEvent/ADFSDBNamedPipeConnection.yaml\n    - https://o365blog.com/post/adfs/\n    - https://github.com/Azure/SimuLand\nauthor: Roberto Rodriguez @Cyb3rWard0g\ndate: 2021-10-08\nmodified: 2023-11-30\ntags:\n    - attack.collection\n    - attack.t1005\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: '\\MICROSOFT##WID\\tsql\\query'\n    filter_main_generic:\n        Image|endswith:\n            - ':\\Windows\\System32\\mmc.exe'\n            - ':\\Windows\\system32\\svchost.exe'\n            - ':\\Windows\\System32\\wsmprovhost.exe'\n            - ':\\Windows\\SysWOW64\\mmc.exe'\n            - ':\\Windows\\SysWOW64\\wsmprovhost.exe'\n            - ':\\Windows\\WID\\Binn\\sqlwriter.exe'\n            - '\\AzureADConnect.exe'\n            - '\\Microsoft.Identity.Health.Adfs.PshSurrogate.exe'\n            - '\\Microsoft.IdentityServer.ServiceHost.exe'\n            - '\\Microsoft.Tri.Sensor.exe'\n            - '\\sqlservr.exe'\n            - '\\tssdis.exe'\n    condition: selection and not 1 of filter_main_*\nfalsepositives:\n    - Unknown\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1005","id":"T1005","name":"Data from Local System","page":"techniques/enterprise/T1005/"}],"data_path":"data/detection-rules/1ea13e8c-03ea-409b-877d-ce5c3d2c1cb3.json","kind":"sigma"}
