[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71HAG6MHKNQV8KDZKMT4886":3,"skill-same:01M71HAG6MHKNQV8KDZKMT4886":87},{"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":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":60,"commitSha":61,"skillDirectory":62,"forksCount":14,"repositoryHtmlUrl":63,"repositoryHomepageUrl":6,"ownerHtmlUrl":64,"ownerBlogUrl":6,"ownerDescription":65,"updatedAt":66,"install":67,"resources":80},"01M71HAG6MHKNQV8KDZKMT4886","registry-artifact-extract",null,"Extract and analyze Windows Registry hives to uncover user activity, installed software, autostart entries, and evidence of system compromise.","DCx7C5\u002Fai-marketplace","DCx7C5","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42419559?v=4","01M71C01G2AZV3NTNGWAWSHJPP","DC","01M71C01GQW6G50S2BYMS7PP3E",0,"MIT","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fregistry\u002Fartifact\u002Fextract\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"registry","registry artifact extract","extract","artifact","sonnet","regripper","windows-registry","digital-forensics","activity","software","read","de","uncover","analyze","analysis","collection","Bash","cybersecurity","artifact-analysis","evidence-collection","2026-11-10 10:12:30",false,"---\nname: registry-artifact-extract\ndescription: Extract and analyze Windows Registry hives to uncover user activity, installed software, autostart entries, and evidence of system compromise.\ndomain: cybersecurity\nsubdomain: digital-forensics\ntags:\n- forensics\n- windows-registry\n- artifact-analysis\n- regripper\n- registry-explorer\n- evidence-collection\nnist_csf:\n- RS.AN-01\n- RS.AN-03\n- DE.AE-02\n- RS.MA-01\nmodel: sonnet\nmaxTurns: 20\ntools: [Read, Bash, Glob, Grep]\nmitre_attack:\n- T1547\ncapec: []\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":44,"capec":47,"model":23,"tools":48,"domain":36,"maxTurns":52,"nist_csf":53,"subdomain":26,"description":7,"mitre_attack":58},[45,25,37,24,46,38],"forensics","registry-explorer",[],[49,35,50,51],"Read","Glob","Grep",20,[54,55,56,57],"RS.AN-01","RS.AN-03","DE.AE-02","RS.MA-01",[59],"T1547","main","a91f1293287ffa9f4f1b8f486cd6e835a1568c84","skills\u002Fwindows\u002Fregistry\u002Fartifact\u002Fextract","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace","https:\u002F\u002Fgithub.com\u002FDCx7C5","#Python","2026-09-01 11:21:00",{"source":8,"skillName":5,"commands":68,"prompt":78,"zipAvailable":79},[69,72,75],{"tool":70,"command":71},"npx","npx skills add DCx7C5\u002Fai-marketplace --skill registry-artifact-extract",{"tool":73,"command":74},"bunx","bunx skills add DCx7C5\u002Fai-marketplace --skill registry-artifact-extract",{"tool":76,"command":77},"pnpm","pnpm dlx skills add DCx7C5\u002Fai-marketplace --skill registry-artifact-extract","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fregistry\u002Fartifact\u002Fextract\u002FSKILL.md",true,[81],{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"index.json","REFERENCE","参考文档",632,"https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fregistry\u002Fartifact\u002Fextract\u002Findex.json",[88,98,121,141,163,179],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":92,"licenseFileUrl":93,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":97},"01M73MDK3NT5XHNYTQ5P5172V9","devel-jb-algorithmic-art","- Embed algorithms inline in the HTML artifact (don't create separate .","Apache-2.0","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fdevel-jb-algorithmic-art\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fdevel-jb-algorithmic-art\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"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":39},"01M71HAPZ01KQ30RKTB0FFSQ05","services-wmi-persistence-detect","Detect WMI event subscription persistence by enumerating ActiveScriptEventConsumer, CommandLineEventConsumer, and permanent subscriptions in the WMI repository.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fservices\u002Fwmi\u002Fpersistence\u002Fdetect\u002FSKILL.md",[],[105,106,107,108,109,110,111,36,45,112,113,114,115,116,117,118,119,120,30],"services","detect","services wmi persistence detect","wmi","persistence","process-forensics","process","t1546.003","event-subscription","subscription","repository","commandline-consumer","subscriptions","event","activescript","cm",{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":39},"01M71HAK6JTTTS229T17WJMMCG","services-wmi-exec-exploit","Perform lateral movement across Windows networks using WMI-based remote execution techniques including Impacket wmiexec.py, CrackMapExec, and native WMI commands for stealthy post-exploitation during red team engagements.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fservices\u002Fwmi\u002Fexec\u002Fexploit\u002FSKILL.md",[],[128,108,129,105,130,131,132,33,35,36,133,134,135,136,137,29,138,139,30,140],"exec","services wmi exec exploit","exploit","across","team","traffic","remote","crackmapexec","Impacket","lateral-movement","lateral movement","command","native",{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":39},"01M71HACR4A8XTWTTSXK4124AA","processes-token-impersonate-detect","Detect Windows token impersonation and privilege abuse including SeImpersonatePrivilege exploitation via Potato attacks and token stealing techniques.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fprocesses\u002Ftoken\u002Fimpersonate\u002Fdetect\u002FSKILL.md",[],[106,148,149,150,151,152,153,30,154,155,156,157,158,110,36,159,120,160,161,162],"processes token impersonate detect","token","processes","impersonation","potato","via","attacks","printspoofer","token-impersonation","seimpersonate","privilege-escalation","techniques","escalation","windows","exploitation",{"skillNo":164,"name":165,"nameZh":6,"description":166,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":167,"categories":168,"keywords":169,"publishedAt":39},"01M71HAABSB4Z6QFSXEG00R4RK","processes-thread-injection-detect","Detect Windows thread injection techniques including CreateRemoteThread, QueueUserAPC, NtCreateThreadEx, and thread hijacking via process memory analysis.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fprocesses\u002Fthread\u002Finjection\u002Fdetect\u002FSKILL.md",[],[150,170,106,171,172,173,120,174,161,159,111,30,153,175,176,177,178,33,110,36],"injection","processes thread injection detect","thread","process-injection","memory","nt-api","thread-injection","apc-injection","api",{"skillNo":180,"name":181,"nameZh":6,"description":182,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":183,"categories":184,"keywords":185,"publishedAt":39},"01M71HA7H311V5G14WMX58HQSS","processes-hollow-technique-detect","Detect process hollowing (RunPE) by identifying processes with mismatched image paths between PEB and VAD tree, or unmapped PE headers in memory.","https:\u002F\u002Fgithub.com\u002FDCx7C5\u002Fai-marketplace\u002Fblob\u002Fmain\u002Fskills\u002Fwindows\u002Fprocesses\u002Fhollow\u002Ftechnique\u002Fdetect\u002FSKILL.md",[],[106,186,150,187,188,189,111,30,190,191,192,193,194,110,36,195,196,120,174,197],"processes hollow technique detect","pe-header","headers","mismatched","with","in memory","image","runpe","peb","process-hollow","memory-forensics","tree"]