[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ADV6X0GJBWHD0HVE5JK8QZ":3,"skill-same:01M6ADV6X0GJBWHD0HVE5JK8QZ":103},{"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":26,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":62,"commitSha":63,"skillDirectory":64,"forksCount":65,"repositoryHtmlUrl":66,"repositoryHomepageUrl":67,"ownerHtmlUrl":68,"ownerBlogUrl":69,"ownerDescription":70,"updatedAt":71,"install":72,"resources":85},"01M6ADV6X0GJBWHD0HVE5JK8QZ","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.","mukul975\u002FAnthropic-Cybersecurity-Skills","mukul975","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42860185?v=4","01M6ADEQR8T5M4EEG6C67BQCWF","Mahipal","01M6ADJPMYWG1E5GM1FWBE3128",36146,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fanalyzing-windows-registry-for-artifacts\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000016","图像与多媒体","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"analyzing windows registry for artifacts","windows","registry","artifacts","analyzing","artifact-analysis","registry-explorer","regripper","windows-registry","digital-forensics","evidence-collection","dfir","image","forensics","persistence","triage","cybersecurity","2026-11-10 10:12:30",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":49,"author":50,"domain":43,"license":15,"version":51,"nist_csf":52,"subdomain":36,"description":7,"mitre_attack":56},[40,35,32,34,33,37],"mahipal","1.0",[53,54,55],"RS.AN-03","DE.AE-02","RS.MA-01",[57,58,59,60,61],"T1012","T1547.001","T1112","T1003.002","T1025","main","54a798831d2266a3ca61ce68a7acb80b81160d57","skills\u002Fanalyzing-windows-registry-for-artifacts",4425,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills","https:\u002F\u002Fmahipal.engineer\u002FAnthropic-Cybersecurity-Skills\u002F","https:\u002F\u002Fgithub.com\u002Fmukul975","Mahipal.engineer","🔐 Cybersecurity | 💻 Dev | 📷 Street Photographer\r\n🎓 MSc | 📚 Research & AI Security","2026-08-31 12:32:44",{"source":8,"skillName":5,"commands":73,"prompt":83,"zipAvailable":84},[74,77,80],{"tool":75,"command":76},"npx","npx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill analyzing-windows-registry-for-artifacts",{"tool":78,"command":79},"bunx","bunx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill analyzing-windows-registry-for-artifacts",{"tool":81,"command":82},"pnpm","pnpm dlx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill analyzing-windows-registry-for-artifacts","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fanalyzing-windows-registry-for-artifacts\u002FSKILL.md",true,[86,91,97],{"path":87,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":89,"sourceHtmlUrl":90},"LICENSE","许可证",11255,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fanalyzing-windows-registry-for-artifacts\u002FLICENSE",{"path":92,"resourceType":93,"resourceTypeDesc":94,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Fapi-reference.md","REFERENCE","参考文档",2135,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fanalyzing-windows-registry-for-artifacts\u002Freferences\u002Fapi-reference.md",{"path":98,"resourceType":99,"resourceTypeDesc":100,"sizeBytes":101,"sourceHtmlUrl":102},"scripts\u002Fagent.py","SCRIPT","脚本",8203,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fanalyzing-windows-registry-for-artifacts\u002Fscripts\u002Fagent.py",[104,130,154,182,204,231],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":111,"publishedAt":44},"01M6AGDM3HJXTKXX15ZZ0ZVCJ3","verifying-build-provenance-with-slsa-sigstore","Verifies artifact signatures and SLSA provenance using Sigstore's cosign (verify, verify-attestation, verify-blob-attestation) and slsa-verifier (verify-artifact), enforcing keyless OIDC builder identity and source repo against SLSA Build levels. Use in CI\u002FCD before deploying artifacts, when consuming third-party attestations, establishing a SLSA Build L3 pipeline, or confirming provenance during incident response or admission control.","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fverifying-build-provenance-with-slsa-sigstore\u002FSKILL.md",[110],{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[112,113,114,115,116,43,117,118,119,120,30,121,122,123,124,125,126,127,128,129],"sigstore","provenance","slsa","verifying build provenance with slsa sigstore","security","incident response","identity","pr","code","ci","supply-chain","pipeline","supply-chain-security","t1195","attestation","code-signing","cosign","keyless",{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":137,"publishedAt":44},"01M6AGDGBPWYVZ2F11GFKJ4HZ9","validating-tpm-measured-boot-attestation","Verifies TPM 2.0 measured-boot integrity and remote attestation with tpm2-tools -- reading PCRs (tpm2_pcrread), replaying the boot event log, generating and checking signed quotes (tpm2_quote\u002Ftpm2_checkquote), and sealing secrets to a PCR policy. Use to confirm a system booted trusted firmware\u002Fkernel for Zero Trust device posture, detect boot-chain tampering via PCR drift, or build a golden-value baseline for fleet attestation.","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalidating-tpm-measured-boot-attestation\u002FSKILL.md",[136],{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[138,126,139,140,116,141,43,119,142,143,144,145,146,147,148,149,150,151,152,153],"boot","TPM","validating tpm measured boot attestation","policy","verification","ZeRO","firmware","Tools","measured-boot","PCR","integrity","secrets","remote-attestation","tpm2-tools","integrity-verification","trusted-computing",{"skillNo":155,"name":156,"nameZh":6,"description":157,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":158,"categories":159,"keywords":164,"publishedAt":44},"01M6AGDCW0Y4FXZ3362GT1941M","validating-backup-integrity-for-recovery","Validates backup integrity through cryptographic hash verification, automated restore testing, corruption detection, and recoverability checks to confirm backups are reliable for disaster recovery and ransomware response. Use before relying on backups for recovery, when building post-backup validation pipelines, auditing backup infrastructure for compliance, or checking immutable\u002Fair-gapped backups for silent corruption or tampering.","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalidating-backup-integrity-for-recovery\u002FSKILL.md",[160,163],{"categoryNo":161,"categoryName":162,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[148,165,166,167,168,43,169,170,142,171,172,173,174,175,176,177,178,179,180,181],"backup","recovery","validating backup integrity for recovery","testing","infrastructure","validation","compliance","hash-verification","incident-response","ransomware","cryptocurrency","detection","t1078","t1490","immutable","disaster-recovery","restore-testing",{"skillNo":183,"name":184,"nameZh":6,"description":185,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":186,"categories":187,"keywords":189,"publishedAt":44},"01M6AGD9GBG2KZ336AE763J3WH","triaging-windows-with-kape","Runs KAPE (Kroll Artifact Parser and Extractor) to collect targeted forensic artifacts (registry hives, $MFT, event logs, prefetch, browser data) via Targets and parse them with Modules wrapping Eric Zimmerman's EZ Tools (PECmd, MFTECmd, RECmd). Use during early incident containment\u002Ftriage when full disk imaging is impractical but a defensible, parseable Windows artifact set is needed quickly, including at-scale remote collection.","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-windows-with-kape\u002FSKILL.md",[188],{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[28,190,191,43,29,192,193,194,38,195,196,197,198,199,36,200,145,201,202,203],"kape","triaging windows with kape","browser","logs","windows-forensics","mft","mftecmd","data","prefetch","eric-zimmerman","SET","collection","pecmd","artifact-collection",{"skillNo":205,"name":206,"nameZh":6,"description":207,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":208,"categories":209,"keywords":211,"publishedAt":44},"01M6AGD5PW5J4EVZM958WD74ZQ","triaging-vulnerabilities-with-ssvc-framework","Triages and prioritizes vulnerabilities with CISA's Stakeholder-Specific Vulnerability Categorization (SSVC) decision tree, weighing exploitation status (via the CISA KEV catalog and FIRST EPSS API), technical impact, automatability, and mission prevalence to output Track\u002FTrack*\u002FAttend\u002FAct decisions. Use when prioritizing vulnerability scan results (OpenVAS, Nessus, Qualys) for remediation planning beyond raw CVSS scores.","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-vulnerabilities-with-ssvc-framework\u002FSKILL.md",[210],{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[212,213,214,43,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230],"vulnerabilities","framework","triaging vulnerabilities with ssvc framework","status","planning","CISA","vulnerability-management","risk-management","nessus","qualys","openvas","cvss","remediation","risk","vulnerability","api","prioritization","ssvc","decision-tree",{"skillNo":232,"name":233,"nameZh":6,"description":234,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":235,"categories":236,"keywords":238,"publishedAt":44},"01M6AGD24TTQQM4CXG69E3B9TJ","triaging-security-incident","Performs initial triage of security incidents using the NIST SP 800-61r3 and SANS PICERL frameworks, classifying incident type, assigning priority by business impact, and routing to the appropriate response team. Use when a SIEM\u002FEDR alert needs human classification, concurrent alerts must be prioritized, or a user report or threat-intel IOC match requires initial incident categorization.","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-security-incident\u002FSKILL.md",[237],{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[116,239,43,240,241,242,243,244,245,246,247,177,248,178,249,250,251,252,253,254],"triaging security incident","siem","file","ioc","soc","NIST-800-61","NIST","severity","edr","execution","analysis","classification","severity-classification","incident-triage","SANS-PICERL","SOC-operations"]