{"id":"9f0a8bf3-a65b-440a-8c1e-5cb1547c8e70","title":"New DLL Registered Via Odbcconf.EXE","description":"Detects execution of \"odbcconf\" with \"REGSVR\" in order to register a new DLL (equivalent to running regsvr32). Attackers abuse this to install and run malicious DLLs.","author":"Kirill Kiryanov, Beyu Denis, Daniil Yugoslavskiy, oscd.community, Nasreddine Bencherchali (Nextron Systems)","status":"test","level":"medium","date":"2023-05-22","modified":"","tags":["attack.stealth","attack.t1218.008"],"technique_ids":["T1218.008"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Legitimate DLLs being registered via \"odbcconf\" will generate false positives. Investigate the path of the DLL and its content to determine if the action is authorized."],"references":["https://learn.microsoft.com/en-us/sql/odbc/odbcconf-exe?view=sql-server-ver16","https://lolbas-project.github.io/lolbas/Binaries/Odbcconf/","https://redcanary.com/blog/raspberry-robin/","https://web.archive.org/web/20191023232753/https://twitter.com/Hexacorn/status/1187143326673330176","https://www.hexacorn.com/blog/2020/08/23/odbcconf-lolbin-trifecta/","https://www.trendmicro.com/en_us/research/17/h/backdoor-carrying-emails-set-sights-on-russian-speaking-businesses.html"],"source_path":"rules/windows/process_creation/proc_creation_win_odbcconf_register_dll_regsvr.yml","source_sha256":"1a9044bfe19695a6b9df3377f917ca84d8ab8eb9401cb68b53301f2ed194d249","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_odbcconf_register_dll_regsvr.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 DLL Registered Via Odbcconf.EXE\nid: 9f0a8bf3-a65b-440a-8c1e-5cb1547c8e70\nrelated:\n    - id: ba4cfc11-d0fa-4d94-bf20-7c332c412e76\n      type: similar\nstatus: test\ndescription: Detects execution of \"odbcconf\" with \"REGSVR\" in order to register a new DLL (equivalent to running regsvr32). Attackers abuse this to install and run malicious DLLs.\nreferences:\n    - https://learn.microsoft.com/en-us/sql/odbc/odbcconf-exe?view=sql-server-ver16\n    - https://lolbas-project.github.io/lolbas/Binaries/Odbcconf/\n    - https://redcanary.com/blog/raspberry-robin/\n    - https://web.archive.org/web/20191023232753/https://twitter.com/Hexacorn/status/1187143326673330176\n    - https://www.hexacorn.com/blog/2020/08/23/odbcconf-lolbin-trifecta/\n    - https://www.trendmicro.com/en_us/research/17/h/backdoor-carrying-emails-set-sights-on-russian-speaking-businesses.html\nauthor: Kirill Kiryanov, Beyu Denis, Daniil Yugoslavskiy, oscd.community, Nasreddine Bencherchali (Nextron Systems)\ndate: 2023-05-22\ntags:\n    - attack.stealth\n    - attack.t1218.008\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection_img:\n        - Image|endswith: '\\odbcconf.exe'\n        - OriginalFileName: 'odbcconf.exe'\n    selection_cli:\n        # Note: The \"/A\" flag is not required to call a specific action\n        CommandLine|contains|all:\n            - 'REGSVR '\n            - '.dll'\n    condition: all of selection_*\nfalsepositives:\n    - Legitimate DLLs being registered via \"odbcconf\" will generate false positives. Investigate the path of the DLL and its content to determine if the action is authorized.\nlevel: medium\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1218.008","id":"T1218.008","name":"Odbcconf","page":"techniques/enterprise/T1218.008/"}],"data_path":"data/detection-rules/9f0a8bf3-a65b-440a-8c1e-5cb1547c8e70.json","kind":"sigma"}
