Windows Shortcut heuristics

47 detection rules

← All detection heuristics

Everything after the end of the shortcut is the same shortcut again (differing only in a few timestamp bytes), or the leftover end of an earlier save of it.
A command-running shortcut has ShowCommand SW_SHOWMINNOACTIVE (7).
Shell Link sizes or offsets do not fit the file (truncated or overlapping structures, missing terminators).
The .url shortcut's IconFile is a UNC path.
A browser started on a URL with partner / tracking parameters or a bare partner tag (homepage and search hijackers, adware 'internet start' pins), shutdown with a displayed message (prank / scare), or crypto-miner tooling in the command line.
A script host or system utility is started with a command line longer than the 260-character Target field.
The icon location (or icon environment block) is a UNC path.
The shortcut starts cmd, PowerShell, mshta, rundll32, regsvr32, wscript/cscript, certutil, msiexec or a similar built-in utility with arguments.
A shortcut that runs a script host uses a document/browser icon, a document double extension (invoice.pdf.lnk) or a document name as its description.
Bytes follow the shortcut's terminal ExtraData block; recognised payloads are extracted as artifacts.
The .url shortcut's http(s) URL ends in an executable, script, shortcut, disk-image or archive extension.
The command is assembled from %VAR:~start,length% substrings or from several variables (call !a!!b!), split across variables inside words (!s!et, wmi!c!), or split with caret escapes.
A command-running shortcut with a folder or drive icon chains a command with opening a folder by its bare name (start __, start explorer <name>).
Shortcut injects a command into a Windows batch script high LNK_BATCH_ARGUMENT_INJECTION
The shortcut targets a batch script that ships with Windows, such as winrm.cmd, and adds & or | to its arguments.
The link target is an executable or script named like another file type (report.pdf.exe, setup.log.exe, name.exe.bat).
rundll32's module is stored directly in a user profile folder, the Desktop, Downloads, Public or a Temp folder.
rundll32 is given a module with an explicit non-DLL extension (.dss, .xxc, .dat, .tmp, ...) outside the Windows directory, followed by an export name.
The shortcut runs rundll32 on a DLL named without a folder and calls one of its functions.
Six or more consecutive do-nothing commands (cls&cls&..., Call&Call&...) or twelve or more empty quoted arguments in the command line.
The command line carries a PowerShell -EncodedCommand, a FromBase64String literal or a character-code sequence that decodes to readable text.
Shortcut runs a compiled AutoIt script high LNK_AUTOIT_COMPILED_SCRIPT
The shortcut's arguments (or the command it starts) pass a compiled AutoIt script (.a3x) to an interpreter.
The command line runs a file as a program even though its name is not a program's: a system or temporary file (desktop.ini, thumbs.db or a .db, .ini or .dat file), or a document or image started from a worm folder such as RECYCLER, or given command-line switches.
wscript/cscript is started with /e:VBScript, /e:VBScript.Encode or /e:JScript on a file without a script extension (for example DCIM.JPG).
The shortcut runs a program or script stored in its own folder under %APPDATA%\Microsoft\Windows\ (other than Start Menu, Recent, SendTo, Templates, Libraries, Themes, ...).
A script host or system utility started by the shortcut runs a file from a folder whose name is blank-looking (invisible characters or underscores), or from a recycle-bin or system folder such as $RECYCLE.BIN or System Volume Information.
The target is named like lsass/svchost/csrss/winlogon/... (or a look-alike such as Isass.exe) and is not in the Windows directory.
The shortcut's target is an .exe/.scr/.com/.pif directly in %APPDATA% (or XP's Application Data), not in a folder of its own.
A cmd command line starts a program or script by a bare relative name and opens a relative document (start report.pdf) or folder (explorer name) in the same command.
The target is a script or program with a hexadecimal name inside a hexadecimal-named folder directly under AppData\Local.
Shortcut runs a script bundled alongside it high LNK_BUNDLED_SCRIPT_DROPPER
A script host (wscript, cscript, mshta or cmd) runs a script (.vbs, .js, .bat, .ps1 or .hta) from a subfolder that ships with the shortcut.
The command line reads a hidden stream attached to a file (name.ext:stream) with a utility that extracts or runs it.
The link target is an executable or script on a UNC path, or any target on a WebDAV / IP-address host.
The target is a program or script outside Windows / Program Files, but the shortcut uses a folder or drive icon, or passes a document's file name as its only argument; critical when the program sits in a drive root or a randomly named folder.
The cmd command clears the hidden/system attribute of a file (attrib -h -s) and then starts that file, directly or after copying it to Temp.
rundll32 url.dll,FileProtocolHandler / zipfldr,RouteTheCall / shell32,ShellExec_RunDLL / shell32,Control_RunDLL / setupapi,InstallHinfSection ... with a program, a relative or user-folder .cpl, or a non-system INF as the operand.
A redirect, copy, ren/move or expand creates a file with an executable extension that the same command uses afterwards.
The .url shortcut uses search-ms:/search: to show files from a location given in the URL.
A .url Internet Shortcut's URL is a file:// or UNC path on another computer (WebDAV, IP address or internet host).
Internet shortcut runs a script or protocol handler critical URL_SHORTCUT_SCRIPT_PROTOCOL
The .url shortcut's URL is javascript:, vbscript:, ms-msdt:, ms-officecmd: or a similar handler.
The shortcut's comment (description) field exactly matches a string written by a known shortcut-spreading worm.
A for loop over *.lnk copies a shortcut over every other shortcut (for %a in (*.lnk) do copy x.lnk %a).
The shortcut's arguments start with a long run of spaces, tabs or line-break characters that pushes the real command out of view.
Shortcut overwrites the Windows hosts file critical LNK_HOSTS_FILE_OVERWRITE
The command copies, moves or redirects data onto %SystemRoot%\System32\drivers\etc\hosts.
A program outside the Windows directory is started with Windows Script Host's /E: engine switch on a non-script file, or with an AutoIt .au3/.a3x script, as its first argument.
A script host or system utility started by the shortcut uses a web address, a network or WebDAV path, a javascript: or vbscript: address, or a download command.
The shortcut's target file name is one that a single ransomware family writes, such as WannaCry's @WanaDecryptor@.exe.
The command line echoes FTP commands (open <server>, credentials, get <file>) into a file and runs ftp -s:<file>; the server is reported as an ftp:// IOC.