{"id":"6f1a11aa-4b8a-4b7f-9e13-4d3e4ff0e0d4","title":"WSL Kali-Linux Usage","description":"Detects the use of Kali Linux through Windows Subsystem for Linux","author":"Swachchhanda Shrawan Poudel (Nextron Systems)","status":"experimental","level":"high","date":"2025-10-10","modified":"","tags":["attack.stealth","attack.t1202"],"technique_ids":["T1202"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Legitimate installation or usage of Kali Linux WSL by administrators or security teams"],"references":["https://medium.com/@redfanatic7/running-kali-linux-on-windows-51ad95166e6e","https://learn.microsoft.com/en-us/windows/wsl/install"],"source_path":"rules/windows/process_creation/proc_creation_win_wsl_kali_linux_usage.yml","source_sha256":"28ccb77dfb05cf4ab404ead7c60b3f73aa83b1430bad9b0061750d9ace4f7b8b","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_wsl_kali_linux_usage.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: WSL Kali-Linux Usage\nid: 6f1a11aa-4b8a-4b7f-9e13-4d3e4ff0e0d4\nstatus: experimental\ndescription: Detects the use of Kali Linux through Windows Subsystem for Linux\nreferences:\n    - https://medium.com/@redfanatic7/running-kali-linux-on-windows-51ad95166e6e\n    - https://learn.microsoft.com/en-us/windows/wsl/install\nauthor: Swachchhanda Shrawan Poudel (Nextron Systems)\ndate: 2025-10-10\ntags:\n    - attack.stealth\n    - attack.t1202\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection_img_appdata:\n        - Image|contains|all:\n              - ':\\Users\\'\n              - '\\AppData\\Local\\packages\\KaliLinux'\n        - Image|contains|all:\n              - ':\\Users\\'\n              - '\\AppData\\Local\\Microsoft\\WindowsApps\\kali.exe'\n    selection_img_windowsapps:\n        Image|contains: ':\\Program Files\\WindowsApps\\KaliLinux.'\n        Image|endswith: '\\kali.exe'\n    selection_kali_wsl_parent:\n        ParentImage|endswith:\n            - '\\wsl.exe'\n            - '\\wslhost.exe'\n    selection_kali_wsl_child:\n        - Image|contains:\n              - '\\kali.exe'\n              - '\\KaliLinux'\n        - CommandLine|contains:\n              - 'Kali.exe'\n              - 'Kali-linux'\n              - 'kalilinux'\n    filter_main_install_uninstall:\n        CommandLine|contains:\n            - ' -i '\n            - ' --install '\n            - ' --unregister '\n    condition: 1 of selection_img_* or all of selection_kali_* and not 1 of filter_main_*\nfalsepositives:\n    - Legitimate installation or usage of Kali Linux WSL by administrators or security teams\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1202","id":"T1202","name":"Indirect Command Execution","page":"techniques/enterprise/T1202/"}],"data_path":"data/detection-rules/6f1a11aa-4b8a-4b7f-9e13-4d3e4ff0e0d4.json","kind":"sigma"}
