{"success":true,"data":{"ext":"lnk","name":"Windows shell link","description":"Windows Shell Link (LNK) is a shortcut file format created by Microsoft for the Windows operating system and maintained as part of the Windows shell. It is used to point to programs, documents, folders, and network resources, and is commonly generated by the desktop, Start menu, and File Explorer. LNK files are generally safe, but they may record access paths and can be abused in malicious shortcuts or forensic investigations.","mime":[],"risk_level":"Safe","signatures":[{"hex":"4C 00 00 00 01 14 02 00","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_lnk(file_path: str) -> bool:\n    \"\"\"Check if file is a valid LNK by magic bytes.\"\"\"\n    signature = bytes([0x4C, 0x00, 0x00, 0x00, 0x01, 0x14, 0x02, 0x00])\n    with open(file_path, \"rb\") as f:\n        return f.read(8) == signature","node":"function isLNK(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x4C, 0x00, 0x00, 0x00, 0x01, 0x14, 0x02, 0x00]);\n  return buffer.subarray(0, 8).equals(signature);\n}","go":"func IsLNK(data []byte) bool {\n    signature := []byte{0x4C, 0x00, 0x00, 0x00, 0x01, 0x14, 0x02, 0x00}\n    if len(data) < 8 {\n        return false\n    }\n    return bytes.Equal(data[:8], signature)\n}"}}}