[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7D6QYR8WM2SKS76DN56CGP3":3,"skill-same:01M7D6QYR8WM2SKS76DN56CGP3":85},{"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":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":6,"ownerHtmlUrl":51,"ownerBlogUrl":52,"ownerDescription":53,"updatedAt":54,"install":55,"resources":68},"01M7D6QYR8WM2SKS76DN56CGP3","analyzing-windows-registry-for-artifacts",null,"Extract and analyze Windows Registry hives with tools like RegRipper and Registry Explorer to uncover user activity, installed software, autostart\u002Fpersistence entries, and evidence of system compromise. Use when investigating registry-based persistence, reconstructing user or system activity, or performing DFIR triage on a Windows image.","SaiVatsal\u002FSkills-I-Use","SaiVatsal","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F242597752?v=4","01M7D5YM1T4VXW9203M0GFAHZ1","SaiVatsalPolimera","01M7D5YM2D61ST39XVR2V7B7ZJ",3,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fanalyzing-windows-registry-for-artifacts\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fanalyzing-windows-registry-for-artifacts\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: analyzing-windows-registry-for-artifacts\ndescription: Extract and analyze Windows Registry hives with tools like RegRipper\n  and Registry Explorer to uncover user activity, installed software, autostart\u002Fpersistence\n  entries, and evidence of system compromise. Use when investigating registry-based\n  persistence, reconstructing user or system activity, or performing DFIR triage\n  on a Windows image.\ndomain: cybersecurity\nsubdomain: digital-forensics\ntags:\n- forensics\n- windows-registry\n- artifact-analysis\n- regripper\n- registry-explorer\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- T1012\n- T1547.001\n- T1112\n- T1003.002\n- T1025\n---\n\n# Analyzing Windows Registry for Artifacts\n\n## When to Use\n- When investigating user activity on a Windows system during an incident\n- For identifying autorun\u002Fpersistence mechanisms used by malware\n- When tracing installed software, USB devices, and network connections\n- During insider threat investigations to reconstruct user actions\n- For correlating registry timestamps with other forensic artifacts\n\n## Prerequisites\n- Forensic image or extracted registry hive files\n- RegRipper, Registry Explorer (Eric Zimmerman), or python-registry\n- Access to registry hive locations (SAM, SYSTEM, SOFTWARE, NTUSER.DAT, UsrClass.dat)\n- Understanding of Windows Registry structure (hives, keys, values)\n- SIFT Workstation or forensic analysis environment\n\n## Workflow\n\n### Step 1: Extract Registry Hives from the Forensic Image\n\n```bash\n# Mount the forensic image read-only\nmkdir \u002Fmnt\u002Fevidence\nmount -o ro,loop,offset=$((2048*512)) \u002Fcases\u002Fcase-2024-001\u002Fimages\u002Fevidence.dd \u002Fmnt\u002Fevidence\n\n# Copy system registry hives\ncp \u002Fmnt\u002Fevidence\u002FWindows\u002FSystem32\u002Fconfig\u002FSAM \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002F\ncp \u002Fmnt\u002Fevidence\u002FWindows\u002FSystem32\u002Fconfig\u002FSYSTEM \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002F\ncp \u002Fmnt\u002Fevidence\u002FWindows\u002FSystem32\u002Fconfig\u002FSOFTWARE \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002F\ncp \u002Fmnt\u002Fevidence\u002FWindows\u002FSystem32\u002Fconfig\u002FSECURITY \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002F\ncp \u002Fmnt\u002Fevidence\u002FWindows\u002FSystem32\u002Fconfig\u002FDEFAULT \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002F\n\n# Copy user-specific hives\ncp \u002Fmnt\u002Fevidence\u002FUsers\u002F*\u002FNTUSER.DAT \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002F\ncp \u002Fmnt\u002Fevidence\u002FUsers\u002F*\u002FAppData\u002FLocal\u002FMicrosoft\u002FWindows\u002FUsrClass.dat \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002F\n\n# Copy transaction logs (for dirty hive recovery)\ncp \u002Fmnt\u002Fevidence\u002FWindows\u002FSystem32\u002Fconfig\u002F*.LOG* \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002Flogs\u002F\n\n# Hash all extracted hives\nsha256sum \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002F* > \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002Fhive_hashes.txt\n```\n\n### Step 2: Analyze with RegRipper for Automated Artifact Extraction\n\n```bash\n# Install RegRipper\ngit clone https:\u002F\u002Fgithub.com\u002Fkeydet89\u002FRegRipper3.0.git \u002Fopt\u002Fregripper\n\n# Run RegRipper against NTUSER.DAT (user profile)\nperl \u002Fopt\u002Fregripper\u002Frip.pl -r \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FNTUSER.DAT \\\n   -f ntuser > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fntuser_report.txt\n\n# Run against SYSTEM hive\nperl \u002Fopt\u002Fregripper\u002Frip.pl -r \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FSYSTEM \\\n   -f system > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fsystem_report.txt\n\n# Run against SOFTWARE hive\nperl \u002Fopt\u002Fregripper\u002Frip.pl -r \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FSOFTWARE \\\n   -f software > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fsoftware_report.txt\n\n# Run against SAM hive (user accounts)\nperl \u002Fopt\u002Fregripper\u002Frip.pl -r \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FSAM \\\n   -f sam > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fsam_report.txt\n\n# Run specific plugins\nperl \u002Fopt\u002Fregripper\u002Frip.pl -r \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FNTUSER.DAT \\\n   -p userassist > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fuserassist.txt\n\nperl \u002Fopt\u002Fregripper\u002Frip.pl -r \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FSYSTEM \\\n   -p usbstor > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fusbstor.txt\n```\n\n### Step 3: Extract Persistence and Autorun Entries\n\n```bash\n# Using python-registry for targeted extraction\npip install python-registry\n\npython3 \u003C\u003C 'PYEOF'\nfrom Registry import Registry\n\n# Open SOFTWARE hive\nreg = Registry.Registry(\"\u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FSOFTWARE\")\n\n# Check Run keys (autostart)\nautorun_paths = [\n    \"Microsoft\\\\Windows\\\\CurrentVersion\\\\Run\",\n    \"Microsoft\\\\Windows\\\\CurrentVersion\\\\RunOnce\",\n    \"Microsoft\\\\Windows\\\\CurrentVersion\\\\RunServices\",\n    \"Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\Explorer\\\\Run\",\n    \"Wow6432Node\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Run\"\n]\n\nfor path in autorun_paths:\n    try:\n        key = reg.open(path)\n        print(f\"\\n=== {path} (Last Modified: {key.timestamp()}) ===\")\n        for value in key.values():\n            print(f\"  {value.name()}: {value.value()}\")\n    except Registry.RegistryKeyNotFoundException:\n        pass\n\n# Check installed services\nkey = reg.open(\"Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Svchost\")\nprint(f\"\\n=== Svchost Groups ===\")\nfor value in key.values():\n    print(f\"  {value.name()}: {value.value()}\")\nPYEOF\n\n# Check NTUSER.DAT for user-specific autorun\npython3 \u003C\u003C 'PYEOF'\nfrom Registry import Registry\n\nreg = Registry.Registry(\"\u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FNTUSER.DAT\")\n\nuser_autorun = [\n    \"Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Run\",\n    \"Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\RunOnce\",\n    \"Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Explorer\\\\StartupApproved\\\\Run\"\n]\n\nfor path in user_autorun:\n    try:\n        key = reg.open(path)\n        print(f\"\\n=== {path} (Last Modified: {key.timestamp()}) ===\")\n        for value in key.values():\n            print(f\"  {value.name()}: {value.value()}\")\n    except Registry.RegistryKeyNotFoundException:\n        pass\nPYEOF\n```\n\n### Step 4: Analyze User Activity Artifacts\n\n```bash\n# Extract UserAssist data (program execution history with ROT13 encoding)\npython3 \u003C\u003C 'PYEOF'\nfrom Registry import Registry\nimport codecs, struct, datetime\n\nreg = Registry.Registry(\"\u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FNTUSER.DAT\")\n\nua_path = \"Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Explorer\\\\UserAssist\"\nkey = reg.open(ua_path)\n\nfor guid_key in key.subkeys():\n    count_key = guid_key.subkey(\"Count\")\n    print(f\"\\n=== {guid_key.name()} ===\")\n    for value in count_key.values():\n        decoded_name = codecs.decode(value.name(), 'rot_13')\n        data = value.value()\n        if len(data) >= 16:\n            run_count = struct.unpack('\u003CI', data[4:8])[0]\n            focus_count = struct.unpack('\u003CI', data[8:12])[0]\n            timestamp = struct.unpack('\u003CQ', data[60:68])[0] if len(data) >= 68 else 0\n            if timestamp > 0:\n                ts = datetime.datetime(1601,1,1) + datetime.timedelta(microseconds=timestamp\u002F\u002F10)\n                print(f\"  {decoded_name}: Runs={run_count}, Focus={focus_count}, Last={ts}\")\n            else:\n                print(f\"  {decoded_name}: Runs={run_count}, Focus={focus_count}\")\nPYEOF\n\n# Extract Recent Documents (MRU lists)\nperl \u002Fopt\u002Fregripper\u002Frip.pl -r \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FNTUSER.DAT \\\n   -p recentdocs > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Frecentdocs.txt\n\n# Extract typed URLs (browser)\nperl \u002Fopt\u002Fregripper\u002Frip.pl -r \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FNTUSER.DAT \\\n   -p typedurls > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Ftypedurls.txt\n\n# Extract typed paths in Explorer\nperl \u002Fopt\u002Fregripper\u002Frip.pl -r \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FNTUSER.DAT \\\n   -p typedpaths > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Ftypedpaths.txt\n```\n\n### Step 5: Extract System and Network Information\n\n```bash\n# Computer name and OS version from SYSTEM hive\nperl \u002Fopt\u002Fregripper\u002Frip.pl -r \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FSYSTEM \\\n   -p compname > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fsystem_info.txt\n\n# Network interfaces and configuration\nperl \u002Fopt\u002Fregripper\u002Frip.pl -r \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FSYSTEM \\\n   -p nic2 >> \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fsystem_info.txt\n\n# Wireless network history\nperl \u002Fopt\u002Fregripper\u002Frip.pl -r \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FSOFTWARE \\\n   -p networklist > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fnetwork_history.txt\n\n# Timezone configuration\nperl \u002Fopt\u002Fregripper\u002Frip.pl -r \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FSYSTEM \\\n   -p timezone > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Ftimezone.txt\n\n# Shutdown time\nperl \u002Fopt\u002Fregripper\u002Frip.pl -r \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FSYSTEM \\\n   -p shutdown > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fshutdown.txt\n\n# Installed software from Uninstall keys\nperl \u002Fopt\u002Fregripper\u002Frip.pl -r \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FSOFTWARE \\\n   -p uninstall > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Finstalled_software.txt\n```\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| Registry hive | Binary file storing a section of the registry (SAM, SYSTEM, SOFTWARE, NTUSER.DAT) |\n| MRU (Most Recently Used) | Lists tracking recently accessed files, commands, and search terms |\n| UserAssist | ROT13-encoded registry entries tracking program execution with timestamps |\n| ShimCache | Application compatibility cache recording executed programs |\n| AmCache | Detailed execution history including SHA-1 hashes of executables |\n| BAM\u002FDAM | Background\u002FDesktop Activity Moderator tracking program execution in Win10+ |\n| Last Write Time | Timestamp on registry keys indicating when they were last modified |\n| Transaction logs | Journal files allowing recovery of registry state after improper shutdown |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| RegRipper | Automated registry artifact extraction with plugin architecture |\n| Registry Explorer | Eric Zimmerman GUI tool for interactive registry analysis |\n| python-registry | Python library for programmatic registry hive parsing |\n| RECmd | Eric Zimmerman command-line registry analysis tool |\n| yarp | Yet Another Registry Parser for Python-based analysis |\n| AppCompatCacheParser | Dedicated ShimCache\u002FAppCompatCache parser |\n| AmcacheParser | Dedicated AmCache.hve analysis tool |\n| ShellBags Explorer | Specialized tool for analyzing ShellBag artifacts |\n\n## Common Scenarios\n\n**Scenario 1: Malware Persistence Investigation**\nExtract SOFTWARE and NTUSER.DAT hives, check all Run\u002FRunOnce keys for unauthorized entries, examine services for suspicious additions, check scheduled tasks registry keys, correlate autorun timestamps with malware execution timeline.\n\n**Scenario 2: User Activity Reconstruction**\nAnalyze UserAssist for program execution history, examine RecentDocs for accessed files, check TypedPaths for Explorer navigation, extract ShellBags for folder access patterns, build a timeline of user activity around the incident window.\n\n**Scenario 3: Unauthorized Software Detection**\nParse Uninstall keys for all installed applications, compare against approved software baseline, check BAM\u002FDAM for recently executed programs not in approved list, examine AppCompatCache for execution evidence even after uninstallation.\n\n**Scenario 4: USB Data Exfiltration Investigation**\nExtract USBSTOR entries from SYSTEM hive for connected devices, correlate device serial numbers with MountedDevices, check NTUSER.DAT MountPoints2 for user access to removable media, examine SetupAPI logs for first-connection timestamps.\n\n## Output Format\n\n```\nRegistry Analysis Summary:\n  System: DESKTOP-ABC123 (Windows 10 Pro Build 19041)\n  Timezone: Eastern Standard Time (UTC-5)\n  Last Shutdown: 2024-01-18 23:45:12 UTC\n\n  Autorun Entries:\n    HKLM Run:     5 entries (1 suspicious: \"updater.exe\" -> C:\\ProgramData\\svc\\updater.exe)\n    HKCU Run:     3 entries (all legitimate)\n    Services:     142 entries (2 unknown: \"WinDefSvc\", \"SysMonAgent\")\n\n  User Activity (NTUSER.DAT):\n    UserAssist Programs:  234 entries\n    Recent Documents:     89 entries\n    Typed URLs:           45 entries\n    Typed Paths:          12 entries\n\n  USB Devices Connected:\n    - Kingston DataTraveler (Serial: 0019E06B4521) - First: 2024-01-10, Last: 2024-01-18\n    - WD My Passport (Serial: 575834314131) - First: 2024-01-15, Last: 2024-01-15\n\n  Installed Software:     127 applications\n  Suspicious Findings:    3 items flagged for review\n```\n","# Analyzing Windows Registry for Artifacts\n\n## When to Use\n- When investigating user activity on a Windows system during an incident\n- For identifying autorun\u002Fpersistence mechanisms used by malware\n- When tracing installed software, USB devices, and network connections\n- During insider threat investigations to reconstruct user actions\n- For correlating registry timestamps with other forensic artifacts\n\n## Prerequisites\n- Forensic image or extracted registry hive files\n- RegRipper, Registry Explorer (Eric Zimmerman), or python-registry\n- Access to registry hive locations (SAM, SYSTEM, SOFTWARE, NTUSER.DAT, UsrClass.dat)\n- Understanding of Windows Registry structure (hives, keys, values)\n- SIFT Workstation or forensic analysis environment\n\n## Workflow\n\n### Step 1: Extract Registry Hives from the Forensic Image\n\n```bash\n# Mount the forensic image read-only\nmkdir \u002Fmnt\u002Fevidence\nmount -o ro,loop,offset=$((2048*512)) \u002Fcases\u002Fcase-2024-001\u002Fimages\u002Fevidence.dd \u002Fmnt\u002Fevidence\n\n# Copy system registry hives\ncp \u002Fmnt\u002Fevidence\u002FWindows\u002FSystem32\u002Fconfig\u002FSAM \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002F\ncp \u002Fmnt\u002Fevidence\u002FWindows\u002FSystem32\u002Fconfig\u002FSYSTEM \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002F\ncp \u002Fmnt\u002Fevidence\u002FWindows\u002FSystem32\u002Fconfig\u002FSOFTWARE \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002F\ncp \u002Fmnt\u002Fevidence\u002FWindows\u002FSystem32\u002Fconfig\u002FSECURITY \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002F\ncp \u002Fmnt\u002Fevidence\u002FWindows\u002FSystem32\u002Fconfig\u002FDEFAULT \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002F\n\n# Copy user-specific hives\ncp \u002Fmnt\u002Fevidence\u002FUsers\u002F*\u002FNTUSER.DAT \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002F\ncp \u002Fmnt\u002Fevidence\u002FUsers\u002F*\u002FAppData\u002FLocal\u002FMicrosoft\u002FWindows\u002FUsrClass.dat \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002F\n\n# Copy transaction logs (for dirty hive recovery)\ncp \u002Fmnt\u002Fevidence\u002FWindows\u002FSystem32\u002Fconfig\u002F*.LOG* \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002Flogs\u002F\n\n# Hash all extracted hives\nsha256sum \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002F* > \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002Fhive_hashes.txt\n```\n\n### Step 2: Analyze with RegRipper for Automated Artifact Extraction\n\n```bash\n# Install RegRipper\ngit clone https:\u002F\u002Fgithub.com\u002Fkeydet89\u002FRegRipper3.0.git \u002Fopt\u002Fregripper\n\n# Run RegRipper against NTUSER.DAT (user profile)\nperl \u002Fopt\u002Fregripper\u002Frip.pl -r \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FNTUSER.DAT \\\n   -f ntuser > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fntuser_report.txt\n\n# Run against SYSTEM hive\nperl \u002Fopt\u002Fregripper\u002Frip.pl -r \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FSYSTEM \\\n   -f system > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fsystem_report.txt\n\n# Run against SOFTWARE hive\nperl \u002Fopt\u002Fregripper\u002Frip.pl -r \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FSOFTWARE \\\n   -f software > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fsoftware_report.txt\n\n# Run against SAM hive (user accounts)\nperl \u002Fopt\u002Fregripper\u002Frip.pl -r \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FSAM \\\n   -f sam > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fsam_report.txt\n\n# Run specific plugins\nperl \u002Fopt\u002Fregripper\u002Frip.pl -r \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FNTUSER.DAT \\\n   -p userassist > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fuserassist.txt\n\nperl \u002Fopt\u002Fregripper\u002Frip.pl -r \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FSYSTEM \\\n   -p usbstor > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fusbstor.txt\n```\n\n### Step 3: Extract Persistence and Autorun Entries\n\n```bash\n# Using python-registry for targeted extraction\npip install python-registry\n\npython3 \u003C\u003C 'PYEOF'\nfrom Registry import Registry\n\n# Open SOFTWARE hive\nreg = Registry.Registry(\"\u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FSOFTWARE\")\n\n# Check Run keys (autostart)\nautorun_paths = [\n    \"Microsoft\\\\Windows\\\\CurrentVersion\\\\Run\",\n    \"Microsoft\\\\Windows\\\\CurrentVersion\\\\RunOnce\",\n    \"Microsoft\\\\Windows\\\\CurrentVersion\\\\RunServices\",\n    \"Microsoft\\\\Windows\\\\CurrentVersion\\\\Policies\\\\Explorer\\\\Run\",\n    \"Wow6432Node\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Run\"\n]\n\nfor path in autorun_paths:\n    try:\n        key = reg.open(path)\n        print(f\"\\n=== {path} (Last Modified: {key.timestamp()}) ===\")\n        for value in key.values():\n            print(f\"  {value.name()}: {value.value()}\")\n    except Registry.RegistryKeyNotFoundException:\n        pass\n\n# Check installed services\nkey = reg.open(\"Microsoft\\\\Windows NT\\\\CurrentVersion\\\\Svchost\")\nprint(f\"\\n=== Svchost Groups ===\")\nfor value in key.values():\n    print(f\"  {value.name()}: {value.value()}\")\nPYEOF\n\n# Check NTUSER.DAT for user-specific autorun\npython3 \u003C\u003C 'PYEOF'\nfrom Registry import Registry\n\nreg = Registry.Registry(\"\u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FNTUSER.DAT\")\n\nuser_autorun = [\n    \"Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Run\",\n    \"Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\RunOnce\",\n    \"Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Explorer\\\\StartupApproved\\\\Run\"\n]\n\nfor path in user_autorun:\n    try:\n        key = reg.open(path)\n        print(f\"\\n=== {path} (Last Modified: {key.timestamp()}) ===\")\n        for value in key.values():\n            print(f\"  {value.name()}: {value.value()}\")\n    except Registry.RegistryKeyNotFoundException:\n        pass\nPYEOF\n```\n\n### Step 4: Analyze User Activity Artifacts\n\n```bash\n# Extract UserAssist data (program execution history with ROT13 encoding)\npython3 \u003C\u003C 'PYEOF'\nfrom Registry import Registry\nimport codecs, struct, datetime\n\nreg = Registry.Registry(\"\u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FNTUSER.DAT\")\n\nua_path = \"Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Explorer\\\\UserAssist\"\nkey = reg.open(ua_path)\n\nfor guid_key in key.subkeys():\n    count_key = guid_key.subkey(\"Count\")\n    print(f\"\\n=== {guid_key.name()} ===\")\n    for value in count_key.values():\n        decoded_name = codecs.decode(value.name(), 'rot_13')\n        data = value.value()\n        if len(data) >= 16:\n            run_count = struct.unpack('\u003CI', data[4:8])[0]\n            focus_count = struct.unpack('\u003CI', data[8:12])[0]\n            timestamp = struct.unpack('\u003CQ', data[60:68])[0] if len(data) >= 68 else 0\n            if timestamp > 0:\n                ts = datetime.datetime(1601,1,1) + datetime.timedelta(microseconds=timestamp\u002F\u002F10)\n                print(f\"  {decoded_name}: Runs={run_count}, Focus={focus_count}, Last={ts}\")\n            else:\n                print(f\"  {decoded_name}: Runs={run_count}, Focus={focus_count}\")\nPYEOF\n\n# Extract Recent Documents (MRU lists)\nperl \u002Fopt\u002Fregripper\u002Frip.pl -r \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FNTUSER.DAT \\\n   -p recentdocs > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Frecentdocs.txt\n\n# Extract typed URLs (browser)\nperl \u002Fopt\u002Fregripper\u002Frip.pl -r \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FNTUSER.DAT \\\n   -p typedurls > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Ftypedurls.txt\n\n# Extract typed paths in Explorer\nperl \u002Fopt\u002Fregripper\u002Frip.pl -r \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FNTUSER.DAT \\\n   -p typedpaths > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Ftypedpaths.txt\n```\n\n### Step 5: Extract System and Network Information\n\n```bash\n# Computer name and OS version from SYSTEM hive\nperl \u002Fopt\u002Fregripper\u002Frip.pl -r \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FSYSTEM \\\n   -p compname > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fsystem_info.txt\n\n# Network interfaces and configuration\nperl \u002Fopt\u002Fregripper\u002Frip.pl -r \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FSYSTEM \\\n   -p nic2 >> \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fsystem_info.txt\n\n# Wireless network history\nperl \u002Fopt\u002Fregripper\u002Frip.pl -r \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FSOFTWARE \\\n   -p networklist > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fnetwork_history.txt\n\n# Timezone configuration\nperl \u002Fopt\u002Fregripper\u002Frip.pl -r \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FSYSTEM \\\n   -p timezone > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Ftimezone.txt\n\n# Shutdown time\nperl \u002Fopt\u002Fregripper\u002Frip.pl -r \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FSYSTEM \\\n   -p shutdown > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Fshutdown.txt\n\n# Installed software from Uninstall keys\nperl \u002Fopt\u002Fregripper\u002Frip.pl -r \u002Fcases\u002Fcase-2024-001\u002Fregistry\u002FSOFTWARE \\\n   -p uninstall > \u002Fcases\u002Fcase-2024-001\u002Fanalysis\u002Finstalled_software.txt\n```\n\n## Key Concepts\n\n| Concept | Description |\n|---------|-------------|\n| Registry hive | Binary file storing a section of the registry (SAM, SYSTEM, SOFTWARE, NTUSER.DAT) |\n| MRU (Most Recently Used) | Lists tracking recently accessed files, commands, and search terms |\n| UserAssist | ROT13-encoded registry entries tracking program execution with timestamps |\n| ShimCache | Application compatibility cache recording executed programs |\n| AmCache | Detailed execution history including SHA-1 hashes of executables |\n| BAM\u002FDAM | Background\u002FDesktop Activity Moderator tracking program execution in Win10+ |\n| Last Write Time | Timestamp on registry keys indicating when they were last modified |\n| Transaction logs | Journal files allowing recovery of registry state after improper shutdown |\n\n## Tools & Systems\n\n| Tool | Purpose |\n|------|---------|\n| RegRipper | Automated registry artifact extraction with plugin architecture |\n| Registry Explorer | Eric Zimmerman GUI tool for interactive registry analysis |\n| python-registry | Python library for programmatic registry hive parsing |\n| RECmd | Eric Zimmerman command-line registry analysis tool |\n| yarp | Yet Another Registry Parser for Python-based analysis |\n| AppCompatCacheParser | Dedicated ShimCache\u002FAppCompatCache parser |\n| AmcacheParser | Dedicated AmCache.hve analysis tool |\n| ShellBags Explorer | Specialized tool for analyzing ShellBag artifacts |\n\n## Common Scenarios\n\n**Scenario 1: Malware Persistence Investigation**\nExtract SOFTWARE and NTUSER.DAT hives, check all Run\u002FRunOnce keys for unauthorized entries, examine services for suspicious additions, check scheduled tasks registry keys, correlate autorun timestamps with malware execution timeline.\n\n**Scenario 2: User Activity Reconstruction**\nAnalyze UserAssist for program execution history, examine RecentDocs for accessed files, check TypedPaths for Explorer navigation, extract ShellBags for folder access patterns, build a timeline of user activity around the incident window.\n\n**Scenario 3: Unauthorized Software Detection**\nParse Uninstall keys for all installed applications, compare against approved software baseline, check BAM\u002FDAM for recently executed programs not in approved list, examine AppCompatCache for execution evidence even after uninstallation.\n\n**Scenario 4: USB Data Exfiltration Investigation**\nExtract USBSTOR entries from SYSTEM hive for connected devices, correlate device serial numbers with MountedDevices, check NTUSER.DAT MountPoints2 for user access to removable media, examine SetupAPI logs for first-connection timestamps.\n\n## Output Format\n\n```\nRegistry Analysis Summary:\n  System: DESKTOP-ABC123 (Windows 10 Pro Build 19041)\n  Timezone: Eastern Standard Time (UTC-5)\n  Last Shutdown: 2024-01-18 23:45:12 UTC\n\n  Autorun Entries:\n    HKLM Run:     5 entries (1 suspicious: \"updater.exe\" -> C:\\ProgramData\\svc\\updater.exe)\n    HKCU Run:     3 entries (all legitimate)\n    Services:     142 entries (2 unknown: \"WinDefSvc\", \"SysMonAgent\")\n\n  User Activity (NTUSER.DAT):\n    UserAssist Programs:  234 entries\n    Recent Documents:     89 entries\n    Typed URLs:           45 entries\n    Typed Paths:          12 entries\n\n  USB Devices Connected:\n    - Kingston DataTraveler (Serial: 0019E06B4521) - First: 2024-01-10, Last: 2024-01-18\n    - WD My Passport (Serial: 575834314131) - First: 2024-01-15, Last: 2024-01-15\n\n  Installed Software:     127 applications\n  Suspicious Findings:    3 items flagged for review\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","windows-registry","artifact-analysis","regripper","registry-explorer","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],"T1012","T1547.001","T1112","T1003.002","T1025","main","8a3b3de73262a4c4db64523949360f3c599c2fb1","Anthropic-Cybersecurity-Skills-main\u002Fskills\u002Fanalyzing-windows-registry-for-artifacts",0,"https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use","https:\u002F\u002Fgithub.com\u002FSaiVatsal","https:\u002F\u002Fsaivatsal.github.io\u002FPortfolio\u002F","The Longer It Takes The Stronger It Becomes ","2026-09-21 22:45:58",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add SaiVatsal\u002FSkills-I-Use --skill analyzing-windows-registry-for-artifacts",{"tool":61,"command":62},"bunx","bunx skills add SaiVatsal\u002FSkills-I-Use --skill analyzing-windows-registry-for-artifacts",{"tool":64,"command":65},"pnpm","pnpm dlx skills add SaiVatsal\u002FSkills-I-Use --skill analyzing-windows-registry-for-artifacts","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fanalyzing-windows-registry-for-artifacts\u002FSKILL.md",true,[69,73,79],{"path":70,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":74,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fapi-reference.md","REFERENCE","参考文档",2135,"https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fanalyzing-windows-registry-for-artifacts\u002Freferences\u002Fapi-reference.md",{"path":80,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":83,"sourceHtmlUrl":84},"scripts\u002Fagent.py","SCRIPT","脚本",8203,"https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002FAnthropic-Cybersecurity-Skills-main\u002Fskills\u002Fanalyzing-windows-registry-for-artifacts\u002Fscripts\u002Fagent.py",[86,94,102,111,118,125],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":90,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":20},"01M7DJZP6E6KMBQV4CZSDPZEZ8","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":98,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":20},"01M7DJZFTS5TS06K2TV3MDTE67","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fweb-artifacts-builder\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":106,"licenseFileUrl":107,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":20},"01M7DJRK4SRQ908F2TJM6EZ7EV","ui-styling","Create beautiful, accessible user interfaces with shadcn\u002Fui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs. Use when building user interfaces, implementing design systems, creating responsive layouts, adding accessible components (dialogs, dropdowns, forms, tables), customizing themes and colors, implementing dark mode, generating visual designs and posters, or establishing consistent styling patterns across applications.","MIT","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fui-styling\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fui-styling\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":106,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":20},"01M7DJR902059VEQP23PVM2WA0","design","Comprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini AI), corporate identity program (50 deliverables, CIP mockups), HTML presentations (Chart.js), banner design (22 styles, social\u002Fads\u002Fweb\u002Fprint), icon design (15 styles, SVG, Gemini 3.1 Pro), social photos (HTML→screenshot, multi-platform). Actions: design logo, create CIP, generate mockups, build slides, design banner, generate icon, create social photos, social media images, brand identity, design system. Platforms: Facebook, Twitter, LinkedIn, YouTube, Instagram, Pinterest, TikTok, Threads, Google Ads.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fdesign\u002FSKILL.md",[],[],{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":106,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":20},"01M7DJR56QF5N6XYTCPCFHFMNP","design-system","Token architecture, component specifications, and slide generation. Three-layer tokens (primitive→semantic→component), CSS variables, spacing\u002Ftypography scales, component specs, strategic slide creation. Use for design tokens, systematic design, brand-compliant presentations.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fdesign-system\u002FSKILL.md",[],[],{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":106,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":20},"01M7DJQXB6M0SFF7NX8J5N01AH","banner-design","Design banners for social media, ads, website heroes, creative assets, and print. Multiple art direction options with AI-generated visuals. Actions: design, create, generate banner. Platforms: Facebook, Twitter\u002FX, LinkedIn, YouTube, Instagram, Google Display, website hero, print. Styles: minimalist, gradient, bold typography, photo-based, illustrated, geometric, retro, glassmorphism, 3D, neon, duotone, editorial, collage. Uses ui-ux-pro-max, frontend-design, ai-artist, ai-multimodal skills.","https:\u002F\u002Fgithub.com\u002FSaiVatsal\u002FSkills-I-Use\u002Fblob\u002Fmain\u002Fui-ux-pro-max-skill-main\u002Fcli\u002Fassets\u002Fskills\u002Fbanner-design\u002FSKILL.md",[],[]]