Shortcut writes a file under an executable name and then runs it

LNK_WRITE_THEN_EXECUTE

← All detection heuristics · Windows Shortcut

high LNK_WRITE_THEN_EXECUTE

What it means

A redirect, copy, ren/move or expand creates a file with an executable extension that the same command uses afterwards.

Why it fires

type desktop.ini > %TEMP%\x.exe && %TEMP%\x.exe, ren *.vbss *.vbs & start x.vbs and findstr ... x.lnk > %tmp%\y.vbs & %tmp%\y.vbs all produce the payload under its real name only when the shortcut is opened.

Other Windows Shortcut heuristics

LNK_CONCATENATED_COPIES LNK_MINIMIZED_COMMAND LNK_MALFORMED_STRUCTURE URL_SHORTCUT_REMOTE_ICON LNK_PUP_SHORTCUT LNK_ARGUMENTS_BEYOND_DISPLAY LNK_REMOTE_ICON LNK_LOLBIN_COMMAND LNK_DOCUMENT_MASQUERADE LNK_APPENDED_PAYLOAD URL_SHORTCUT_EXECUTABLE_DOWNLOAD LNK_ENV_VAR_OBFUSCATION LNK_FOLDER_DECOY_LAUNCHER LNK_BATCH_ARGUMENT_INJECTION LNK_TARGET_DOUBLE_EXTENSION LNK_RUNDLL32_USER_WRITABLE_MODULE LNK_RUNDLL32_DISGUISED_MODULE LNK_RUNDLL32_LOCAL_DLL LNK_NOOP_COMMAND_PADDING LNK_ENCODED_COMMAND LNK_AUTOIT_COMPILED_SCRIPT LNK_MASQUERADED_EXTENSION_EXEC LNK_SCRIPT_ENGINE_OVERRIDE LNK_PROGRAM_IN_SHELL_PROFILE_FOLDER