On this page
- An LNK file is a Windows shortcut that points to a file, folder or program.
- A double click starts the target with the arguments stored inside.
- Readers like exiftool print the target and start nothing.
- Sharing an LNK file also shares the computer name inside it.
What Is an LNK File?
An LNK file is a Windows shortcut. It is a small binary file that points to a file, a folder or a program. Windows hides the ending, so most people never see it.
According to the Microsoft shell link specification, the format stores what Windows needs to reach another object. Our LNK file guide shows the parts byte by byte.
A shortcut stores a target path, the program arguments, a working folder, a comment and an icon.
What Happens When You Open an LNK File?
A double click starts the target with the arguments stored in the file. We started no LNK file, because we worked on Linux.
Windows hides the .lnk ending, so an LNK file can look like the program it points to. Read the Target field in Properties before you open a file from someone else.
Is an LNK File Safe?
Reading an LNK file with a reader starts nothing. The risk is what the file starts when you open it.
The Register reported on 4 December 2025 that attackers hid harmful arguments in LNK files. They padded the arguments with white space so the Target field looked blank or harmless. The flaw is tracked as CVE-2025-9491.
The article says Microsoft called the case low severity at first. We could not confirm any later change. Treat an LNK file from an unknown sender like an EXE file.
What Does an LNK File Leak?
An LNK file shows facts about the computer that made it.
- The computer name. All 334 Tracker blocks in our public set named a computer.
- Folder and file names. The target and the arguments can name user folders and documents.
- Drive details. The forensics wiki lists the volume serial number and the network share name.
How to Read an LNK File Without Starting It
Five readers printed what an LNK file stores and started nothing on Linux. These commands read a copy of the file.
sha256sum shortcut.lnk
head -c 20 shortcut.lnk | xxd
file shortcut.lnk
exiftool shortcut.lnkA real LNK file starts with the bytes 4c 00 00 00. The exiftool output shows the target, the arguments and the working folder. Compare them with what you expect.
How to Share an LNK File Safely
Read the File First
Read the target, arguments and working folder in a reader.
Look for Private Names
Check the Tracker block and the paths for computer names and user names.
Send the Target Instead
Send the target or a short instruction when the other side can make its own shortcut.
Hash the File
Send the SHA256 hash on another channel so the other side can check it.
What We Checked and What We Left Out
Our counts come from 552 public LNK files that we read on Linux. We scanned no file for malware and started no public file, so we cannot say what any of them starts. The incident facts come from The Register.
Frequently Asked Questions
What is an LNK file?
An LNK file is a Windows shortcut. It points to a file, folder or program and stores the target, the arguments and a working folder.
Is an LNK file safe to open?
Not when you do not know its target. A double click starts the target with the stored arguments. Read the file with a reader first.
Can an LNK file contain a virus?
The file only points to a target, and the target can be harmful. The Register reported attacks that hid harmful arguments in LNK files.
How do I see where an LNK file points?
Use the Target field in Properties or a reader like exiftool. A reader prints the target and starts nothing.
Why do I not see the .lnk ending?
Windows hides it by default. Wikipedia says the NeverShowExt registry option controls this.
Does an LNK file show my computer name?
Yes. The Tracker block names the computer that made the file. All 334 Tracker blocks in our public set did.
Can I open an LNK file on a Mac?
A Mac does not start the target by itself. A reader like exiftool prints the contents on a Mac or on Linux.
