cscli scenarios install sigmahq/proc_creation_win_cmd_mklink_osk_cmd
1type: trigger2name: sigmahq/proc_creation_win_cmd_mklink_osk_cmd3description: |4 Detects the creation of a symbolic link between "cmd.exe" and the accessibility on-screen keyboard binary (osk.exe) using "mklink". This technique provides an elevated command prompt to the user from the login screen without the need to log in.5filter: |6 (evt.Meta.service == 'sysmon' && evt.Parsed.EventID == '1') && ((evt.Parsed.Image endsWith '\\cmd.exe' || evt.Parsed.OriginalFileName == 'Cmd.Exe') && evt.Parsed.CommandLine contains 'mklink' && evt.Parsed.CommandLine contains '\\osk.exe' && evt.Parsed.CommandLine contains '\\cmd.exe')7blackhole: 2m8#status: test9labels:10 service: windows11 confidence: 112 spoofable: 013 classification:14 - attack.t1546.0081516 label: "Potential Privilege Escalation Using Symlink Between Osk and Cmd"17 behavior : "windows:audit"18 remediation: false1920scope:21 type: ParentProcessId22 expression: evt.Parsed.ParentProcessId2324