{"id":"9248c7e1-2bf3-4661-a22c-600a8040b446","title":"Potential Rundll32 Execution With DLL Stored In ADS","description":"Detects execution of rundll32 where the DLL being called is stored in an Alternate Data Stream (ADS).","author":"Harjot Singh, '@cyb3rjy0t'","status":"test","level":"high","date":"2023-01-21","modified":"2026-03-16","tags":["attack.stealth","attack.t1564.004"],"technique_ids":["T1564.004"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Unknown"],"references":["https://lolbas-project.github.io/lolbas/Binaries/Rundll32"],"source_path":"rules/windows/process_creation/proc_creation_win_rundll32_ads_stored_dll_execution.yml","source_sha256":"79c31422095b2d77939530abcbf60c3c0b64cd6dfc6eef1a16f3150f79f8fa8a","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_rundll32_ads_stored_dll_execution.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Potential Rundll32 Execution With DLL Stored In ADS\nid: 9248c7e1-2bf3-4661-a22c-600a8040b446\nstatus: test\ndescription: Detects execution of rundll32 where the DLL being called is stored in an Alternate Data Stream (ADS).\nreferences:\n    - https://lolbas-project.github.io/lolbas/Binaries/Rundll32\nauthor: Harjot Singh, '@cyb3rjy0t'\ndate: 2023-01-21\nmodified: 2026-03-16\ntags:\n    - attack.stealth\n    - attack.t1564.004\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection_img:\n        - Image|endswith: '\\rundll32.exe'\n        - OriginalFileName: 'RUNDLL32.EXE'\n    selection_cli:\n        # Example:\n        #   rundll32 \"C:\\ads\\file.txt:ADSDLL.dll\",DllMain\n        # Note: This doesn't cover the use case where a full path for the DLL isn't used. As it requires a more expensive regex\n        CommandLine|re: '[Rr][Uu][Nn][Dd][Ll][Ll]32(?:\\.[Ee][Xx][Ee])? \\S+?\\w:\\S+?:'\n    condition: all of selection_*\nfalsepositives:\n    - Unknown\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1564.004","id":"T1564.004","name":"NTFS File Attributes","page":"techniques/enterprise/T1564.004/"}],"data_path":"data/detection-rules/9248c7e1-2bf3-4661-a22c-600a8040b446.json","kind":"sigma"}
