[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A447BSA73JHZFHVNX2MD79":3,"skill-same:01M7A447BSA73JHZFHVNX2MD79":83},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":14,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":51,"updatedAt":52,"install":53,"resources":66},"01M7A447BSA73JHZFHVNX2MD79","analyzing-windows-lnk-files-for-artifacts",null,"Parse Windows LNK shortcut files to extract target paths, MAC timestamps, volume serial numbers, and machine identifiers for forensic timeline reconstruction. Use when investigating recently-accessed files, tracking removable media or network paths referenced by shortcuts, or building a DFIR timeline from LNK artifacts.","NeelakshSaxena\u002FVayu","NeelakshSaxena","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F87892838?v=4","01M7A3B9YFS6F6N9DD1787DT86","Neelaksh Saxena","01M7A3B9ZKBT09MNMPX2XN69BY",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fanalyzing-windows-lnk-files-for-artifacts\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fanalyzing-windows-lnk-files-for-artifacts\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: analyzing-windows-lnk-files-for-artifacts\ndescription: Parse Windows LNK shortcut files to extract target paths, MAC timestamps,\n  volume serial numbers, and machine identifiers for forensic timeline reconstruction.\n  Use when investigating recently-accessed files, tracking removable media or network\n  paths referenced by shortcuts, or building a DFIR timeline from LNK artifacts.\ndomain: cybersecurity\nsubdomain: digital-forensics\ntags:\n- forensics\n- lnk-files\n- windows-artifacts\n- shortcut-analysis\n- timeline-reconstruction\n- evidence-collection\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- RS.AN-03\n- DE.AE-02\n- RS.MA-01\nmitre_attack:\n- T1547.001\n- T1204.002\n- T1005\n- T1025\n- T1074.001\n---\n\n# Analyzing Windows LNK Files for Artifacts\n\n## When to Use\n- When reconstructing user file access history from Windows shortcut files\n- For tracking accessed files, network shares, and removable media\n- During investigations to prove a user opened specific documents\n- When correlating file access with other timeline artifacts\n- For identifying accessed paths on remote systems or USB devices\n\n## Prerequisites\n- Access to LNK files from forensic image (Recent, Desktop, Quick Launch)\n- LECmd (Eric Zimmerman), python-lnk, or LnkParser for analysis\n- Understanding of LNK file structure (Shell Link Binary format)\n- Knowledge of LNK file locations on Windows systems\n- Forensic workstation with analysis tools installed\n\n## Workflow\n\n### Step 1: Collect LNK Files from Forensic Image\n\n```bash\n# Mount forensic image\nmount -o ro,loop,offset=$((2048*512)) \u002Fcases\u002Fcase-2024-001\u002Fimages\u002Fevidence.dd \u002Fmnt\u002Fevidence\n\nmkdir -p \u002Fcases\u002Fcase-2024-001\u002Flnk\u002F{recent,desktop,startup,custom}\n\n# Copy Recent items LNK files (primary source)\ncp \u002Fmnt\u002Fevidence\u002FUsers\u002F*\u002FAppData\u002FRoaming\u002FMicrosoft\u002FWindows\u002FRecent\u002F*.lnk \\\n   \u002Fcases\u002Fcase-2024-001\u002Flnk\u002Frecent\u002F 2>\u002Fdev\u002Fnull\n\n# Copy automatic destinations (Jump Lists)\ncp \u002Fmnt\u002Fevidence\u002FUsers\u002F*\u002FAppData\u002FRoaming\u002FMicrosoft\u002FWindows\u002FRecent\u002FAutomaticDestinations\u002F*.automaticDestinations-ms \\\n   \u002Fcases\u002Fcase-2024-001\u002Flnk\u002Frecent\u002F 2>\u002Fdev\u002Fnull\n\n# Copy custom destinations (pinned Jump List items)\ncp \u002Fmnt\u002Fevidence\u002FUsers\u002F*\u002FAppData\u002FRoaming\u002FMicrosoft\u002FWindows\u002FRecent\u002FCustomDestinations\u002F*.customDestinations-ms \\\n   \u002Fcases\u002Fcase-2024-001\u002Flnk\u002Fcustom\u002F 2>\u002Fdev\u002Fnull\n\n# Copy Desktop shortcuts\ncp \u002Fmnt\u002Fevidence\u002FUsers\u002F*\u002FDesktop\u002F*.lnk \u002Fcases\u002Fcase-2024-001\u002Flnk\u002Fdesktop\u002F 2>\u002Fdev\u002Fnull\n\n# Copy Startup folder shortcuts (persistence)\ncp \u002Fmnt\u002Fevidence\u002FUsers\u002F*\u002FAppData\u002FRoaming\u002FMicrosoft\u002FWindows\u002FStart\\ Menu\u002FPrograms\u002FStartup\u002F*.lnk \\\n   \u002Fcases\u002Fcase-2024-001\u002Flnk\u002Fstartup\u002F 2>\u002Fdev\u002Fnull\ncp \"\u002Fmnt\u002Fevidence\u002FProgramData\u002FMicrosoft\u002FWindows\u002FStart Menu\u002FPrograms\u002FStartup\"\u002F*.lnk \\\n   \u002Fcases\u002Fcase-2024-001\u002Flnk\u002Fstartup\u002F 2>\u002Fdev\u002Fnull\n\n# Find all LNK files on the system\nfind \u002Fmnt\u002Fevidence\u002F -name \"*.lnk\" -type f 2>\u002Fdev\u002Fnull > \u002Fcases\u002Fcase-2024-001\u002Flnk\u002Fall_lnk_locations.txt\n\n# Count and hash\nls \u002Fcases\u002Fcase-2024-001\u002Flnk\u002Frecent\u002F | wc -l\nsha256sum \u002Fcases\u002Fcase-2024-001\u002Flnk\u002Frecent\u002F*.lnk > \u002Fcases\u002Fcase-2024-001\u002Flnk\u002Flnk_hashes.txt 2>\u002Fdev\u002Fnull\n```\n\n### Step 2: Parse LNK Files with LECmd\n\n```bash\n# Using Eric Zimmerman's LECmd (Windows or via Mono)\n# Process all LNK files in a directory\nLECmd.exe -d \"C:\\cases\\lnk\\recent\\\" --csv \"C:\\cases\\analysis\\\" --csvf lnk_analysis.csv\n\n# Process a single LNK file with verbose output\nLECmd.exe -f \"C:\\cases\\lnk\\recent\\document.pdf.lnk\"\n\n# Process Jump List files\nJLECmd.exe -d \"C:\\cases\\lnk\\recent\\\" --csv \"C:\\cases\\analysis\\\" --csvf jumplist_analysis.csv\n\n# Output includes:\n# - Source file path\n# - Target path (file that was accessed)\n# - Target creation, modification, access timestamps\n# - LNK creation and modification timestamps\n# - Working directory\n# - Command line arguments\n# - Volume serial number and label\n# - Drive type (Fixed, Removable, Network)\n# - Machine ID (NetBIOS name)\n# - MAC address (from tracker database)\n# - File size of target\n```\n\n### Step 3: Parse LNK Files with Python\n\n```bash\npip install LnkParse3\n\npython3 \u003C\u003C 'PYEOF'\nimport LnkParse3\nimport os, json, csv\nfrom datetime import datetime\n\nlnk_dir = '\u002Fcases\u002Fcase-2024-001\u002Flnk\u002Frecent\u002F'\nresults = []\n\nfor filename in sorted(os.listdir(lnk_dir)):\n    if not filename.lower().endswith('.lnk'):\n        continue\n\n    filepath = os.path.join(lnk_dir, filename)\n    try:\n        with open(filepath, 'rb') as f:\n            lnk = LnkParse3.lnk_file(f)\n            info = lnk.get_json()\n\n            parsed = {\n                'lnk_file': filename,\n                'target_path': '',\n                'working_dir': '',\n                'arguments': '',\n                'target_created': '',\n                'target_modified': '',\n                'target_accessed': '',\n                'file_size': '',\n                'drive_type': '',\n                'volume_serial': '',\n                'volume_label': '',\n                'machine_id': '',\n                'mac_address': '',\n            }\n\n            # Extract header timestamps\n            header = info.get('header', {})\n            parsed['target_created'] = str(header.get('creation_time', ''))\n            parsed['target_modified'] = str(header.get('modified_time', ''))\n            parsed['target_accessed'] = str(header.get('accessed_time', ''))\n            parsed['file_size'] = str(header.get('file_size', ''))\n\n            # Extract link info\n            link_info = info.get('link_info', {})\n            if link_info:\n                local_path = link_info.get('local_base_path', '')\n                network_path = link_info.get('common_network_relative_link', {}).get('net_name', '')\n                parsed['target_path'] = local_path or network_path\n\n                vol_info = link_info.get('volume_id', {})\n                if vol_info:\n                    parsed['drive_type'] = str(vol_info.get('drive_type', ''))\n                    parsed['volume_serial'] = str(vol_info.get('drive_serial_number', ''))\n                    parsed['volume_label'] = str(vol_info.get('volume_label', ''))\n\n            # Extract string data\n            string_data = info.get('string_data', {})\n            parsed['working_dir'] = str(string_data.get('working_dir', ''))\n            parsed['arguments'] = str(string_data.get('command_line_arguments', ''))\n\n            # Extract tracker data (machine ID and MAC)\n            extra = info.get('extra', {})\n            tracker = extra.get('DISTRIBUTED_LINK_TRACKER_BLOCK', {})\n            if tracker:\n                parsed['machine_id'] = str(tracker.get('machine_id', ''))\n                parsed['mac_address'] = str(tracker.get('mac_address', ''))\n\n            results.append(parsed)\n\n            # Print summary\n            print(f\"\\n{filename}\")\n            print(f\"  Target: {parsed['target_path']}\")\n            print(f\"  Modified: {parsed['target_modified']}\")\n            print(f\"  Drive: {parsed['drive_type']} (Serial: {parsed['volume_serial']})\")\n            if parsed['machine_id']:\n                print(f\"  Machine: {parsed['machine_id']}\")\n\n    except Exception as e:\n        print(f\"  Error parsing {filename}: {e}\")\n\n# Write results to CSV\nwith open('\u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flnk_analysis.csv', 'w', newline='') as f:\n    writer = csv.DictWriter(f, fieldnames=results[0].keys() if results else [])\n    writer.writeheader()\n    writer.writerows(results)\n\nprint(f\"\\n\\nTotal LNK files parsed: {len(results)}\")\nPYEOF\n```\n\n### Step 4: Analyze for Investigative Value\n\n```bash\n# Identify files accessed from removable media\npython3 \u003C\u003C 'PYEOF'\nimport csv\n\nwith open('\u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flnk_analysis.csv') as f:\n    reader = csv.DictReader(f)\n\n    print(\"=== FILES ACCESSED FROM REMOVABLE MEDIA ===\\n\")\n    removable = []\n    network = []\n\n    for row in reader:\n        if 'DRIVE_REMOVABLE' in row.get('drive_type', '').upper() or \\\n           'removable' in row.get('drive_type', '').lower():\n            removable.append(row)\n            print(f\"  {row['target_modified']} | {row['target_path']} | Vol: {row['volume_serial']}\")\n\n        if 'network' in row.get('drive_type', '').lower() or \\\n           row.get('target_path', '').startswith('\\\\\\\\'):\n            network.append(row)\n\n    print(f\"\\n=== FILES ACCESSED FROM NETWORK SHARES ===\\n\")\n    for row in network:\n        print(f\"  {row['target_modified']} | {row['target_path']}\")\n\n    print(f\"\\nRemovable media files: {len(removable)}\")\n    print(f\"Network share files: {len(network)}\")\n\n    # Check for unique machines (tracker data)\n    machines = set()\n    for row in [*removable, *network]:\n        if row.get('machine_id'):\n            machines.add(row['machine_id'])\n    if machines:\n        print(f\"\\nMachine IDs found: {machines}\")\nPYEOF\n\n# Check Startup folder LNK files for persistence\necho \"=== STARTUP FOLDER SHORTCUTS (PERSISTENCE) ===\" > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fstartup_persistence.txt\nfor lnk in \u002Fcases\u002Fcase-2024-001\u002Flnk\u002Fstartup\u002F*.lnk; do\n    python3 -c \"\nimport LnkParse3\nwith open('$lnk', 'rb') as f:\n    lnk = LnkParse3.lnk_file(f)\n    info = lnk.get_json()\n    target = info.get('link_info', {}).get('local_base_path', 'Unknown')\n    args = info.get('string_data', {}).get('command_line_arguments', '')\n    print(f'  $(basename $lnk): {target} {args}')\n\" >> \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fstartup_persistence.txt 2>\u002Fdev\u002Fnull\ndone\n```\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| Shell Link (.lnk) | Windows shortcut file format containing target path, timestamps, and metadata |\n| Target timestamps | Creation, modification, and access times of the file the shortcut points to |\n| Volume serial number | Unique identifier of the drive volume where the target file resides |\n| Machine ID | NetBIOS name embedded by the Distributed Link Tracking service |\n| MAC address | Network adapter MAC from the machine that created the LNK file |\n| Jump Lists | Recent and pinned file lists per application (contain embedded LNK data) |\n| Automatic Destinations | System-managed Jump List entries for recently opened files |\n| Custom Destinations | User-pinned Jump List items that persist until manually removed |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| LECmd | Eric Zimmerman command-line LNK file parser with CSV\u002FJSON output |\n| JLECmd | Eric Zimmerman Jump List parser |\n| LnkParse3 | Python library for programmatic LNK file analysis |\n| lnk_parser | Alternative Python LNK parsing tool |\n| Autopsy | Forensic platform with LNK file analysis module |\n| KAPE | Automated LNK and Jump List artifact collection |\n| Plaso | Timeline tool with LNK file parser for super-timeline creation |\n| LNK Explorer | GUI tool for interactive LNK file examination |\n\n## Common Scenarios\n\n**Scenario 1: Data Exfiltration via USB Drive**\nAnalyze Recent folder LNK files for targets on removable drives, correlate volume serial numbers with USBSTOR registry entries, build a list of files accessed from USB devices, establish which documents were opened from the removable drive, correlate with file copy timestamps.\n\n**Scenario 2: Malware Persistence via Startup Shortcuts**\nExamine Startup folder LNK files for malicious targets, check target path and arguments for encoded commands or suspicious executables, verify target file exists and examine it, correlate creation timestamp with initial compromise time.\n\n**Scenario 3: Network Share Access Investigation**\nFilter LNK files with network paths (UNC targets), identify which network shares were accessed and when, correlate machine IDs with known corporate systems, check if sensitive file servers were accessed outside of normal duties, build access timeline for compliance investigation.\n\n**Scenario 4: Document Access Timeline for Legal Proceedings**\nExtract all Recent folder LNK files, build chronological list of documents accessed by the user, identify specific files relevant to the case, present target timestamps showing when files were opened, correlate with email and communication timelines.\n\n## Output Format\n\n```\nLNK File Analysis Summary:\n  User Profile: suspect_user\n  Total LNK Files: 234 (Recent: 198, Desktop: 23, Startup: 5, Other: 8)\n\n  File Access Statistics:\n    Local drive (C:):    156 files\n    Removable media:     23 files (3 unique volume serials)\n    Network shares:      15 files (\\\\server01, \\\\fileserver)\n    Other drives:        4 files\n\n  Machine IDs Found: DESKTOP-ABC123, LAPTOP-XYZ789\n  MAC Addresses: AA:BB:CC:DD:EE:FF, 11:22:33:44:55:66\n\n  Removable Media Access:\n    Volume Serial 1234-ABCD:\n      2024-01-15 14:32 - E:\\Confidential\\financial_report.xlsx\n      2024-01-15 14:45 - E:\\Confidential\\customer_database.csv\n      2024-01-15 15:00 - E:\\Projects\\source_code.zip\n\n  Startup Persistence:\n    updater.lnk -> C:\\ProgramData\\svc\\updater.exe (SUSPICIOUS)\n    OneDrive.lnk -> C:\\Users\\...\\OneDrive.exe (Legitimate)\n\n  Timeline: \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flnk_analysis.csv\n```\n","# Analyzing Windows LNK Files for Artifacts\n\n## When to Use\n- When reconstructing user file access history from Windows shortcut files\n- For tracking accessed files, network shares, and removable media\n- During investigations to prove a user opened specific documents\n- When correlating file access with other timeline artifacts\n- For identifying accessed paths on remote systems or USB devices\n\n## Prerequisites\n- Access to LNK files from forensic image (Recent, Desktop, Quick Launch)\n- LECmd (Eric Zimmerman), python-lnk, or LnkParser for analysis\n- Understanding of LNK file structure (Shell Link Binary format)\n- Knowledge of LNK file locations on Windows systems\n- Forensic workstation with analysis tools installed\n\n## Workflow\n\n### Step 1: Collect LNK Files from Forensic Image\n\n```bash\n# Mount forensic image\nmount -o ro,loop,offset=$((2048*512)) \u002Fcases\u002Fcase-2024-001\u002Fimages\u002Fevidence.dd \u002Fmnt\u002Fevidence\n\nmkdir -p \u002Fcases\u002Fcase-2024-001\u002Flnk\u002F{recent,desktop,startup,custom}\n\n# Copy Recent items LNK files (primary source)\ncp \u002Fmnt\u002Fevidence\u002FUsers\u002F*\u002FAppData\u002FRoaming\u002FMicrosoft\u002FWindows\u002FRecent\u002F*.lnk \\\n   \u002Fcases\u002Fcase-2024-001\u002Flnk\u002Frecent\u002F 2>\u002Fdev\u002Fnull\n\n# Copy automatic destinations (Jump Lists)\ncp \u002Fmnt\u002Fevidence\u002FUsers\u002F*\u002FAppData\u002FRoaming\u002FMicrosoft\u002FWindows\u002FRecent\u002FAutomaticDestinations\u002F*.automaticDestinations-ms \\\n   \u002Fcases\u002Fcase-2024-001\u002Flnk\u002Frecent\u002F 2>\u002Fdev\u002Fnull\n\n# Copy custom destinations (pinned Jump List items)\ncp \u002Fmnt\u002Fevidence\u002FUsers\u002F*\u002FAppData\u002FRoaming\u002FMicrosoft\u002FWindows\u002FRecent\u002FCustomDestinations\u002F*.customDestinations-ms \\\n   \u002Fcases\u002Fcase-2024-001\u002Flnk\u002Fcustom\u002F 2>\u002Fdev\u002Fnull\n\n# Copy Desktop shortcuts\ncp \u002Fmnt\u002Fevidence\u002FUsers\u002F*\u002FDesktop\u002F*.lnk \u002Fcases\u002Fcase-2024-001\u002Flnk\u002Fdesktop\u002F 2>\u002Fdev\u002Fnull\n\n# Copy Startup folder shortcuts (persistence)\ncp \u002Fmnt\u002Fevidence\u002FUsers\u002F*\u002FAppData\u002FRoaming\u002FMicrosoft\u002FWindows\u002FStart\\ Menu\u002FPrograms\u002FStartup\u002F*.lnk \\\n   \u002Fcases\u002Fcase-2024-001\u002Flnk\u002Fstartup\u002F 2>\u002Fdev\u002Fnull\ncp \"\u002Fmnt\u002Fevidence\u002FProgramData\u002FMicrosoft\u002FWindows\u002FStart Menu\u002FPrograms\u002FStartup\"\u002F*.lnk \\\n   \u002Fcases\u002Fcase-2024-001\u002Flnk\u002Fstartup\u002F 2>\u002Fdev\u002Fnull\n\n# Find all LNK files on the system\nfind \u002Fmnt\u002Fevidence\u002F -name \"*.lnk\" -type f 2>\u002Fdev\u002Fnull > \u002Fcases\u002Fcase-2024-001\u002Flnk\u002Fall_lnk_locations.txt\n\n# Count and hash\nls \u002Fcases\u002Fcase-2024-001\u002Flnk\u002Frecent\u002F | wc -l\nsha256sum \u002Fcases\u002Fcase-2024-001\u002Flnk\u002Frecent\u002F*.lnk > \u002Fcases\u002Fcase-2024-001\u002Flnk\u002Flnk_hashes.txt 2>\u002Fdev\u002Fnull\n```\n\n### Step 2: Parse LNK Files with LECmd\n\n```bash\n# Using Eric Zimmerman's LECmd (Windows or via Mono)\n# Process all LNK files in a directory\nLECmd.exe -d \"C:\\cases\\lnk\\recent\\\" --csv \"C:\\cases\\analysis\\\" --csvf lnk_analysis.csv\n\n# Process a single LNK file with verbose output\nLECmd.exe -f \"C:\\cases\\lnk\\recent\\document.pdf.lnk\"\n\n# Process Jump List files\nJLECmd.exe -d \"C:\\cases\\lnk\\recent\\\" --csv \"C:\\cases\\analysis\\\" --csvf jumplist_analysis.csv\n\n# Output includes:\n# - Source file path\n# - Target path (file that was accessed)\n# - Target creation, modification, access timestamps\n# - LNK creation and modification timestamps\n# - Working directory\n# - Command line arguments\n# - Volume serial number and label\n# - Drive type (Fixed, Removable, Network)\n# - Machine ID (NetBIOS name)\n# - MAC address (from tracker database)\n# - File size of target\n```\n\n### Step 3: Parse LNK Files with Python\n\n```bash\npip install LnkParse3\n\npython3 \u003C\u003C 'PYEOF'\nimport LnkParse3\nimport os, json, csv\nfrom datetime import datetime\n\nlnk_dir = '\u002Fcases\u002Fcase-2024-001\u002Flnk\u002Frecent\u002F'\nresults = []\n\nfor filename in sorted(os.listdir(lnk_dir)):\n    if not filename.lower().endswith('.lnk'):\n        continue\n\n    filepath = os.path.join(lnk_dir, filename)\n    try:\n        with open(filepath, 'rb') as f:\n            lnk = LnkParse3.lnk_file(f)\n            info = lnk.get_json()\n\n            parsed = {\n                'lnk_file': filename,\n                'target_path': '',\n                'working_dir': '',\n                'arguments': '',\n                'target_created': '',\n                'target_modified': '',\n                'target_accessed': '',\n                'file_size': '',\n                'drive_type': '',\n                'volume_serial': '',\n                'volume_label': '',\n                'machine_id': '',\n                'mac_address': '',\n            }\n\n            # Extract header timestamps\n            header = info.get('header', {})\n            parsed['target_created'] = str(header.get('creation_time', ''))\n            parsed['target_modified'] = str(header.get('modified_time', ''))\n            parsed['target_accessed'] = str(header.get('accessed_time', ''))\n            parsed['file_size'] = str(header.get('file_size', ''))\n\n            # Extract link info\n            link_info = info.get('link_info', {})\n            if link_info:\n                local_path = link_info.get('local_base_path', '')\n                network_path = link_info.get('common_network_relative_link', {}).get('net_name', '')\n                parsed['target_path'] = local_path or network_path\n\n                vol_info = link_info.get('volume_id', {})\n                if vol_info:\n                    parsed['drive_type'] = str(vol_info.get('drive_type', ''))\n                    parsed['volume_serial'] = str(vol_info.get('drive_serial_number', ''))\n                    parsed['volume_label'] = str(vol_info.get('volume_label', ''))\n\n            # Extract string data\n            string_data = info.get('string_data', {})\n            parsed['working_dir'] = str(string_data.get('working_dir', ''))\n            parsed['arguments'] = str(string_data.get('command_line_arguments', ''))\n\n            # Extract tracker data (machine ID and MAC)\n            extra = info.get('extra', {})\n            tracker = extra.get('DISTRIBUTED_LINK_TRACKER_BLOCK', {})\n            if tracker:\n                parsed['machine_id'] = str(tracker.get('machine_id', ''))\n                parsed['mac_address'] = str(tracker.get('mac_address', ''))\n\n            results.append(parsed)\n\n            # Print summary\n            print(f\"\\n{filename}\")\n            print(f\"  Target: {parsed['target_path']}\")\n            print(f\"  Modified: {parsed['target_modified']}\")\n            print(f\"  Drive: {parsed['drive_type']} (Serial: {parsed['volume_serial']})\")\n            if parsed['machine_id']:\n                print(f\"  Machine: {parsed['machine_id']}\")\n\n    except Exception as e:\n        print(f\"  Error parsing {filename}: {e}\")\n\n# Write results to CSV\nwith open('\u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flnk_analysis.csv', 'w', newline='') as f:\n    writer = csv.DictWriter(f, fieldnames=results[0].keys() if results else [])\n    writer.writeheader()\n    writer.writerows(results)\n\nprint(f\"\\n\\nTotal LNK files parsed: {len(results)}\")\nPYEOF\n```\n\n### Step 4: Analyze for Investigative Value\n\n```bash\n# Identify files accessed from removable media\npython3 \u003C\u003C 'PYEOF'\nimport csv\n\nwith open('\u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flnk_analysis.csv') as f:\n    reader = csv.DictReader(f)\n\n    print(\"=== FILES ACCESSED FROM REMOVABLE MEDIA ===\\n\")\n    removable = []\n    network = []\n\n    for row in reader:\n        if 'DRIVE_REMOVABLE' in row.get('drive_type', '').upper() or \\\n           'removable' in row.get('drive_type', '').lower():\n            removable.append(row)\n            print(f\"  {row['target_modified']} | {row['target_path']} | Vol: {row['volume_serial']}\")\n\n        if 'network' in row.get('drive_type', '').lower() or \\\n           row.get('target_path', '').startswith('\\\\\\\\'):\n            network.append(row)\n\n    print(f\"\\n=== FILES ACCESSED FROM NETWORK SHARES ===\\n\")\n    for row in network:\n        print(f\"  {row['target_modified']} | {row['target_path']}\")\n\n    print(f\"\\nRemovable media files: {len(removable)}\")\n    print(f\"Network share files: {len(network)}\")\n\n    # Check for unique machines (tracker data)\n    machines = set()\n    for row in [*removable, *network]:\n        if row.get('machine_id'):\n            machines.add(row['machine_id'])\n    if machines:\n        print(f\"\\nMachine IDs found: {machines}\")\nPYEOF\n\n# Check Startup folder LNK files for persistence\necho \"=== STARTUP FOLDER SHORTCUTS (PERSISTENCE) ===\" > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fstartup_persistence.txt\nfor lnk in \u002Fcases\u002Fcase-2024-001\u002Flnk\u002Fstartup\u002F*.lnk; do\n    python3 -c \"\nimport LnkParse3\nwith open('$lnk', 'rb') as f:\n    lnk = LnkParse3.lnk_file(f)\n    info = lnk.get_json()\n    target = info.get('link_info', {}).get('local_base_path', 'Unknown')\n    args = info.get('string_data', {}).get('command_line_arguments', '')\n    print(f'  $(basename $lnk): {target} {args}')\n\" >> \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fstartup_persistence.txt 2>\u002Fdev\u002Fnull\ndone\n```\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| Shell Link (.lnk) | Windows shortcut file format containing target path, timestamps, and metadata |\n| Target timestamps | Creation, modification, and access times of the file the shortcut points to |\n| Volume serial number | Unique identifier of the drive volume where the target file resides |\n| Machine ID | NetBIOS name embedded by the Distributed Link Tracking service |\n| MAC address | Network adapter MAC from the machine that created the LNK file |\n| Jump Lists | Recent and pinned file lists per application (contain embedded LNK data) |\n| Automatic Destinations | System-managed Jump List entries for recently opened files |\n| Custom Destinations | User-pinned Jump List items that persist until manually removed |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| LECmd | Eric Zimmerman command-line LNK file parser with CSV\u002FJSON output |\n| JLECmd | Eric Zimmerman Jump List parser |\n| LnkParse3 | Python library for programmatic LNK file analysis |\n| lnk_parser | Alternative Python LNK parsing tool |\n| Autopsy | Forensic platform with LNK file analysis module |\n| KAPE | Automated LNK and Jump List artifact collection |\n| Plaso | Timeline tool with LNK file parser for super-timeline creation |\n| LNK Explorer | GUI tool for interactive LNK file examination |\n\n## Common Scenarios\n\n**Scenario 1: Data Exfiltration via USB Drive**\nAnalyze Recent folder LNK files for targets on removable drives, correlate volume serial numbers with USBSTOR registry entries, build a list of files accessed from USB devices, establish which documents were opened from the removable drive, correlate with file copy timestamps.\n\n**Scenario 2: Malware Persistence via Startup Shortcuts**\nExamine Startup folder LNK files for malicious targets, check target path and arguments for encoded commands or suspicious executables, verify target file exists and examine it, correlate creation timestamp with initial compromise time.\n\n**Scenario 3: Network Share Access Investigation**\nFilter LNK files with network paths (UNC targets), identify which network shares were accessed and when, correlate machine IDs with known corporate systems, check if sensitive file servers were accessed outside of normal duties, build access timeline for compliance investigation.\n\n**Scenario 4: Document Access Timeline for Legal Proceedings**\nExtract all Recent folder LNK files, build chronological list of documents accessed by the user, identify specific files relevant to the case, present target timestamps showing when files were opened, correlate with email and communication timelines.\n\n## Output Format\n\n```\nLNK File Analysis Summary:\n  User Profile: suspect_user\n  Total LNK Files: 234 (Recent: 198, Desktop: 23, Startup: 5, Other: 8)\n\n  File Access Statistics:\n    Local drive (C:):    156 files\n    Removable media:     23 files (3 unique volume serials)\n    Network shares:      15 files (\\\\server01, \\\\fileserver)\n    Other drives:        4 files\n\n  Machine IDs Found: DESKTOP-ABC123, LAPTOP-XYZ789\n  MAC Addresses: AA:BB:CC:DD:EE:FF, 11:22:33:44:55:66\n\n  Removable Media Access:\n    Volume Serial 1234-ABCD:\n      2024-01-15 14:32 - E:\\Confidential\\financial_report.xlsx\n      2024-01-15 14:45 - E:\\Confidential\\customer_database.csv\n      2024-01-15 15:00 - E:\\Projects\\source_code.zip\n\n  Startup Persistence:\n    updater.lnk -> C:\\ProgramData\\svc\\updater.exe (SUSPICIOUS)\n    OneDrive.lnk -> C:\\Users\\...\\OneDrive.exe (Legitimate)\n\n  Timeline: \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Flnk_analysis.csv\n```\n",{"name":5,"tags":25,"author":32,"domain":33,"license":15,"version":34,"nist_csf":35,"subdomain":39,"description":7,"mitre_attack":40},[26,27,28,29,30,31],"forensics","lnk-files","windows-artifacts","shortcut-analysis","timeline-reconstruction","evidence-collection","mahipal","cybersecurity","1.0",[36,37,38],"RS.AN-03","DE.AE-02","RS.MA-01","digital-forensics",[41,42,43,44,45],"T1547.001","T1204.002","T1005","T1025","T1074.001","main","7540bbccf0c1ded6156a467b02c95b61ad62413f",".agents\u002Fskills\u002Fanalyzing-windows-lnk-files-for-artifacts","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena","Currently exploring the intersection of tech","2026-09-11 03:02:31",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add NeelakshSaxena\u002FVayu --skill analyzing-windows-lnk-files-for-artifacts",{"tool":59,"command":60},"bunx","bunx skills add NeelakshSaxena\u002FVayu --skill analyzing-windows-lnk-files-for-artifacts",{"tool":62,"command":63},"pnpm","pnpm dlx skills add NeelakshSaxena\u002FVayu --skill analyzing-windows-lnk-files-for-artifacts","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fanalyzing-windows-lnk-files-for-artifacts\u002FSKILL.md",true,[67,71,77],{"path":68,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fapi-reference.md","REFERENCE","参考文档",2301,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fanalyzing-windows-lnk-files-for-artifacts\u002Freferences\u002Fapi-reference.md",{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"scripts\u002Fagent.py","SCRIPT","脚本",6645,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fanalyzing-windows-lnk-files-for-artifacts\u002Fscripts\u002Fagent.py",[84,91,98,105,112,119],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":20},"01M7ACCCVNCFKMA9X6D15X6G98","runpodctl","Runpod CLI for managing GPU\u002FCPU workloads from the terminal — pods, serverless endpoints, templates, network volumes, Hub deploys, models, SSH, and file transfer (send\u002Freceive). Use for terminal\u002FCI\u002Fscripting, Hub browse\u002Fdeploy, SSH setup, `doctor`, or when the Runpod MCP tools are not connected. For structured tool calls in an MCP-enabled session, prefer runpod-mcp.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpodctl\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":20},"01M7ACC63SRHEA5KMCHSMZK2TC","runpod","Start here for any Runpod task — running GPU\u002FCPU pods, deploying serverless endpoints, templates, network volumes, building images, or understanding how Runpod works. Routes to the right skill (runpod-mcp, runpodctl, flash, companion-clis, runpod-usage, runpod-templates, runpod-migrate) and indexes two dozen live-verified end-to-end examples (golden paths) — use it when the lane is unclear, and for any multi-step or provisioning task even when it is not.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":20},"01M7ACC0Q1C89N9BZBV91CTQTF","runpod-usage","How Runpod works and how to work it — pods vs serverless, GPU\u002FVRAM selection, storage, building a container, networking, plus the agentic pod development loop (provision → ssh-exec → set up → poll readiness) and on-pod install hygiene (uv\u002Fapt). Use to answer \"how does X work\", \"which GPU\", \"how do I build a container\", or \"how do I stand up a workload on a pod\". Guidance, not a tool — execute with runpodctl, runpod-mcp, or flash.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-usage\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":20},"01M7ACBRPE345GF5GM5B8P8RRC","runpod-templates","Runpod's official prebuilt pod templates (ComfyUI, PyTorch, and others): what each image ships, which ports and paths it uses, how to pick one, how to pin a version, and what is missing on first boot. Use when a task says \"run \u003CX> on a pod\" and an official template already covers it, instead of building an image — and when a user needs help with or wants to fix something about a Runpod template they are already running (won't boot, can't reach the UI, missing models, wrong CUDA line, broken ComfyUI workflow metadata on imported workflows): start here and route onward. Deploy with runpodctl or runpod-mcp; end-to-end walkthroughs live in the runpod router's golden paths.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-templates\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":20},"01M7ACBJATHKVX1TWES2F44GY8","runpod-migrate","Migrate a codebase from the Runpod GraphQL API or REST v1 to REST v2 — inventory which parts use which API version, rewrite the call sites, flag breaking changes, and verify. Use when someone asks to move to v2, asks what v2 would change, or asks which Runpod API their code is on. For managing infrastructure rather than migrating code, use runpod-mcp or runpodctl.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-migrate\u002FSKILL.md",[],[],{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":20},"01M7ACBC7GHVH6T9YEAPCG2AP8","runpod-mcp","Manage Runpod infrastructure — pods, serverless endpoints, jobs, templates, network volumes, container-registry auth, GPU\u002FCPU catalog, and billing — via the Runpod MCP server's structured tool calls. Use when the Runpod MCP tools (create-pod, list-endpoints, …) are connected in this session, or to connect them (hosted OAuth or local npx). Prefer this over runpodctl for plain infra CRUD when MCP is available; use runpodctl for the terminal, file transfer, or SSH setup.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-mcp\u002FSKILL.md",[],[]]