[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AG2BG7CYYFY53KBXY2WG8K":3,"skill-same:01M6AG2BG7CYYFY53KBXY2WG8K":198},{"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":23,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":63,"commitSha":64,"skillDirectory":65,"forksCount":66,"repositoryHtmlUrl":67,"repositoryHomepageUrl":68,"ownerHtmlUrl":69,"ownerBlogUrl":70,"ownerDescription":71,"updatedAt":72,"install":73,"resources":86},"01M6AG2BG7CYYFY53KBXY2WG8K","performing-sqlite-database-forensics",null,"Performs forensic analysis of SQLite databases by examining B-tree page structures, recovering deleted records from freelist pages and Write-Ahead Log (WAL) files, decoding encoded timestamps, and extracting evidence from browser history, messaging apps, and mobile device databases. Use when recovering deleted or unallocated data from a SQLite database during digital forensics or mobile\u002Fbrowser evidence analysis.","mukul975\u002FAnthropic-Cybersecurity-Skills","mukul975","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42860185?v=4","01M6ADEQR8T5M4EEG6C67BQCWF","Mahipal","01M6ADJPMYWG1E5GM1FWBE3128",35884,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-sqlite-database-forensics\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"performing sqlite database forensics","database","forensics","mobile-forensics","b-tree","deleted-records","browser-history","write-ahead-log","wal","freelist","database-forensics","sqlite","cybersecurity","unallocated-space","analysis","t1074","t1059","data","messaging","browser","2026-11-10 10:12:30",false,"---\nname: performing-sqlite-database-forensics\ndescription: Performs forensic analysis of SQLite databases by examining B-tree page\n  structures, recovering deleted records from freelist pages and Write-Ahead Log (WAL)\n  files, decoding encoded timestamps, and extracting evidence from browser history,\n  messaging apps, and mobile device databases. Use when recovering deleted or unallocated\n  data from a SQLite database during digital forensics or mobile\u002Fbrowser evidence\n  analysis.\ndomain: cybersecurity\nsubdomain: digital-forensics\ntags:\n- sqlite\n- database-forensics\n- freelist\n- wal\n- write-ahead-log\n- browser-history\n- mobile-forensics\n- deleted-records\n- b-tree\n- unallocated-space\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- T1005\n- T1074\n- T1119\n- T1070\n- T1059\n---\n\n# Performing SQLite Database Forensics\n\n## Overview\n\nSQLite is the most widely deployed database engine in the world, used by virtually every mobile application, web browser, and many desktop applications to store user data. In digital forensics, SQLite databases are critical evidence sources containing browser history, messaging records, call logs, GPS locations, application preferences, and cached content. Forensic analysis goes beyond simple SQL queries to examine the internal B-tree page structures, freelist pages containing deleted records, Write-Ahead Log (WAL) files preserving transaction history, and unallocated space within database pages where recoverable data may persist after deletion.\n\n\n## When to Use\n\n- When conducting security assessments that involve performing sqlite database forensics\n- When following incident response procedures for related security events\n- When performing scheduled security testing or auditing activities\n- When validating security controls through hands-on testing\n\n## Prerequisites\n\n- DB Browser for SQLite (sqlitebrowser)\n- SQLite command-line tools (sqlite3)\n- Python 3.8+ with sqlite3 module\n- Belkasoft Evidence Center or Axiom (commercial)\n- Hex editor (HxD, 010 Editor) for manual page inspection\n- Understanding of B-tree data structures\n\n## SQLite Internal Structure\n\n### Database Header (First 100 Bytes)\n\n| Offset | Size | Description |\n|--------|------|-------------|\n| 0 | 16 | Magic string: \"SQLite format 3\\000\" |\n| 16 | 2 | Page size (512-65536 bytes) |\n| 18 | 1 | File format write version |\n| 19 | 1 | File format read version |\n| 24 | 4 | File change counter |\n| 28 | 4 | Database size in pages |\n| 32 | 4 | First freelist trunk page number |\n| 36 | 4 | Total freelist pages |\n| 52 | 4 | Text encoding (1=UTF-8, 2=UTF-16le, 3=UTF-16be) |\n| 96 | 4 | Version-valid-for number |\n\n### Page Types\n\n| Type | ID | Description |\n|------|----|-------------|\n| B-tree Interior | 0x05 | Internal table node |\n| B-tree Leaf | 0x0D | Table leaf page containing actual records |\n| Index Interior | 0x02 | Internal index node |\n| Index Leaf | 0x0A | Index leaf page |\n| Freelist Trunk | - | Tracks freed pages |\n| Freelist Leaf | - | Freed page with recoverable data |\n| Overflow | - | Continuation of large records |\n\n## Deleted Record Recovery\n\n### Method 1: Freelist Page Analysis\n\nWhen records are deleted, SQLite may place their pages on the freelist rather than overwriting them immediately.\n\n```python\nimport struct\nimport sqlite3\nimport os\n\n\ndef analyze_freelist(db_path: str) -> dict:\n    \"\"\"Analyze SQLite freelist to identify pages containing deleted data.\"\"\"\n    with open(db_path, \"rb\") as f:\n        # Read header\n        header = f.read(100)\n        page_size = struct.unpack(\">H\", header[16:18])[0]\n        if page_size == 1:\n            page_size = 65536\n        first_freelist_page = struct.unpack(\">I\", header[32:36])[0]\n        total_freelist_pages = struct.unpack(\">I\", header[36:40])[0]\n\n        freelist_info = {\n            \"page_size\": page_size,\n            \"first_freelist_page\": first_freelist_page,\n            \"total_freelist_pages\": total_freelist_pages,\n            \"trunk_pages\": [],\n            \"leaf_pages\": []\n        }\n\n        if first_freelist_page == 0:\n            return freelist_info\n\n        # Walk the freelist trunk chain\n        trunk_page = first_freelist_page\n        while trunk_page != 0:\n            offset = (trunk_page - 1) * page_size\n            f.seek(offset)\n            page_data = f.read(page_size)\n\n            next_trunk = struct.unpack(\">I\", page_data[0:4])[0]\n            leaf_count = struct.unpack(\">I\", page_data[4:8])[0]\n\n            leaves = []\n            for i in range(leaf_count):\n                leaf_page = struct.unpack(\">I\", page_data[8 + i * 4:12 + i * 4])[0]\n                leaves.append(leaf_page)\n\n            freelist_info[\"trunk_pages\"].append({\n                \"page_number\": trunk_page,\n                \"next_trunk\": next_trunk,\n                \"leaf_count\": leaf_count,\n                \"leaf_pages\": leaves\n            })\n            freelist_info[\"leaf_pages\"].extend(leaves)\n            trunk_page = next_trunk\n\n    return freelist_info\n\n\ndef extract_freelist_content(db_path: str, output_dir: str):\n    \"\"\"Extract raw content from freelist pages for analysis.\"\"\"\n    info = analyze_freelist(db_path)\n    os.makedirs(output_dir, exist_ok=True)\n\n    with open(db_path, \"rb\") as f:\n        page_size = info[\"page_size\"]\n        for page_num in info[\"leaf_pages\"]:\n            offset = (page_num - 1) * page_size\n            f.seek(offset)\n            page_data = f.read(page_size)\n            output_file = os.path.join(output_dir, f\"freelist_page_{page_num}.bin\")\n            with open(output_file, \"wb\") as out:\n                out.write(page_data)\n\n    return len(info[\"leaf_pages\"])\n```\n\n### Method 2: WAL (Write-Ahead Log) Analysis\n\nThe WAL file contains pending transactions that have not yet been checkpointed back to the main database.\n\n```python\ndef parse_wal_header(wal_path: str) -> dict:\n    \"\"\"Parse SQLite WAL file header and frame inventory.\"\"\"\n    with open(wal_path, \"rb\") as f:\n        header = f.read(32)\n        magic = struct.unpack(\">I\", header[0:4])[0]\n        file_format = struct.unpack(\">I\", header[4:8])[0]\n        page_size = struct.unpack(\">I\", header[8:12])[0]\n        checkpoint_seq = struct.unpack(\">I\", header[12:16])[0]\n        salt1 = struct.unpack(\">I\", header[16:20])[0]\n        salt2 = struct.unpack(\">I\", header[20:24])[0]\n\n        wal_info = {\n            \"magic\": hex(magic),\n            \"format\": file_format,\n            \"page_size\": page_size,\n            \"checkpoint_sequence\": checkpoint_seq,\n            \"frames\": []\n        }\n\n        # Parse frames (24-byte header + page_size data each)\n        frame_offset = 32\n        frame_num = 0\n        file_size = os.path.getsize(wal_path)\n\n        while frame_offset + 24 + page_size \u003C= file_size:\n            f.seek(frame_offset)\n            frame_header = f.read(24)\n            page_number = struct.unpack(\">I\", frame_header[0:4])[0]\n            db_size_after = struct.unpack(\">I\", frame_header[4:8])[0]\n\n            wal_info[\"frames\"].append({\n                \"frame_number\": frame_num,\n                \"page_number\": page_number,\n                \"db_size_pages\": db_size_after,\n                \"offset\": frame_offset\n            })\n            frame_offset += 24 + page_size\n            frame_num += 1\n\n    return wal_info\n```\n\n### Method 3: Unallocated Space Within Pages\n\nDeleted cells within active B-tree pages leave data in the unallocated region between the cell pointer array and the cell content area.\n\n```python\ndef analyze_unallocated_space(db_path: str, page_number: int) -> dict:\n    \"\"\"Analyze unallocated space within a specific B-tree page.\"\"\"\n    with open(db_path, \"rb\") as f:\n        header = f.read(100)\n        page_size = struct.unpack(\">H\", header[16:18])[0]\n        if page_size == 1:\n            page_size = 65536\n\n        offset = (page_number - 1) * page_size\n        f.seek(offset)\n        page_data = f.read(page_size)\n\n        # Parse page header (8 or 12 bytes depending on type)\n        page_type = page_data[0]\n        first_freeblock = struct.unpack(\">H\", page_data[1:3])[0]\n        cell_count = struct.unpack(\">H\", page_data[3:5])[0]\n        cell_content_offset = struct.unpack(\">H\", page_data[5:7])[0]\n        if cell_content_offset == 0:\n            cell_content_offset = 65536\n\n        header_size = 12 if page_type in (0x02, 0x05) else 8\n        cell_pointer_end = header_size + cell_count * 2\n\n        unallocated_start = cell_pointer_end\n        unallocated_end = cell_content_offset\n        unallocated_size = unallocated_end - unallocated_start\n\n        return {\n            \"page_number\": page_number,\n            \"page_type\": hex(page_type),\n            \"cell_count\": cell_count,\n            \"unallocated_start\": unallocated_start,\n            \"unallocated_end\": unallocated_end,\n            \"unallocated_size\": unallocated_size,\n            \"unallocated_data\": page_data[unallocated_start:unallocated_end].hex()\n        }\n```\n\n## Common Forensic Databases\n\n| Application | Database File | Key Tables |\n|------------|--------------|------------|\n| Chrome | History | urls, visits, downloads, keyword_search_terms |\n| Firefox | places.sqlite | moz_places, moz_historyvisits |\n| Safari | History.db | history_items, history_visits |\n| WhatsApp | msgstore.db | messages, chat_list |\n| Signal | signal.sqlite | sms, mms |\n| iMessage | sms.db | message, handle, chat |\n| Android SMS | mmssms.db | sms, mms, threads |\n| Skype | main.db | Messages, Conversations |\n\n## Timestamp Decoding\n\n```python\nfrom datetime import datetime, timedelta\n\ndef decode_chrome_timestamp(chrome_ts: int) -> datetime:\n    \"\"\"Convert Chrome\u002FWebKit timestamp to datetime (microseconds since 1601-01-01).\"\"\"\n    epoch_delta = 11644473600\n    return datetime.utcfromtimestamp((chrome_ts \u002F 1000000) - epoch_delta)\n\ndef decode_unix_timestamp(unix_ts: int) -> datetime:\n    \"\"\"Convert Unix timestamp to datetime.\"\"\"\n    return datetime.utcfromtimestamp(unix_ts)\n\ndef decode_mac_absolute_time(mac_ts: float) -> datetime:\n    \"\"\"Convert Mac Absolute Time (seconds since 2001-01-01).\"\"\"\n    mac_epoch = datetime(2001, 1, 1)\n    return mac_epoch + timedelta(seconds=mac_ts)\n\ndef decode_mozilla_timestamp(moz_ts: int) -> datetime:\n    \"\"\"Convert Mozilla PRTime (microseconds since Unix epoch).\"\"\"\n    return datetime.utcfromtimestamp(moz_ts \u002F 1000000)\n```\n\n## References\n\n- SQLite File Format: https:\u002F\u002Fwww.sqlite.org\u002Ffileformat2.html\n- Belkasoft SQLite Analysis: https:\u002F\u002Fbelkasoft.com\u002Fsqlite-analysis\n- Spyder Forensics SQLite Training: https:\u002F\u002Fwww.spyderforensics.com\u002Fsqlite-forensic-fundamentals-2025\u002F\n- Forensic Analysis of Damaged SQLite Databases: https:\u002F\u002Fwww.forensicfocus.com\u002Farticles\u002Fforensic-analysis-of-damaged-sqlite-databases\u002F\n\n## Example Output\n\n```text\n$ python3 sqlite_forensics.py --db \u002Fevidence\u002Fchrome\u002FDefault\u002FHistory \\\n    --wal \u002Fevidence\u002Fchrome\u002FDefault\u002FHistory-wal \\\n    --journal \u002Fevidence\u002Fchrome\u002FDefault\u002FHistory-journal \\\n    --output \u002Fanalysis\u002Fsqlite_report\n\nSQLite Database Forensic Analyzer v2.0\n========================================\nDatabase:    \u002Fevidence\u002Fchrome\u002FDefault\u002FHistory\nSize:        48.2 MB\nSQLite Ver:  3.39.5\nPage Size:   4096 bytes\nTotal Pages: 12,345\nEncoding:    UTF-8\n\n[+] Analyzing WAL (Write-Ahead Log)...\n    WAL file:       History-wal (2.1 MB)\n    WAL frames:     512\n    Checkpointed:   No (contains uncommitted data)\n    Recoverable rows from WAL: 234\n\n[+] Analyzing journal file...\n    Journal file:   History-journal (0 bytes - rolled back)\n\n[+] Scanning for deleted records (freelist pages)...\n    Freelist pages:     456\n    Deleted records recovered: 1,892\n\n[+] Analyzing table: urls\n    Active rows:     12,456\n    Deleted rows:    1,234 (recovered from freelist)\n    WAL-only rows:   89\n\n--- Recovered Deleted URLs (Last 10) ---\nRow ID | URL                                              | Title                    | Visit Count | Last Visit (UTC)\n-------|--------------------------------------------------|--------------------------|-------------|---------------------\n89234  | https:\u002F\u002Fmega.nz\u002Ffolder\u002FxYz123#key=AbCdEf        | MEGA                     | 5           | 2024-01-16 03:20:00\n89235  | https:\u002F\u002Ftransfer.sh\u002Fabc123\u002Fdata.7z               | transfer.sh              | 1           | 2024-01-16 03:25:00\n89240  | https:\u002F\u002Ftemp-mail.org\u002Fen\u002F                        | Temp Mail                | 3           | 2024-01-15 13:00:00\n89241  | https:\u002F\u002Fbrowserleaks.com\u002Fip                      | IP Leak Test             | 1           | 2024-01-15 12:55:00\n89245  | https:\u002F\u002Fwww.virustotal.com\u002Fgui\u002Ffile\u002Fa1b2c3...    | VirusTotal               | 2           | 2024-01-15 14:30:00\n89250  | https:\u002F\u002Fgithub.com\u002Fgentilkiwi\u002Fmimikatz\u002Freleases  | Mimikatz Releases        | 1           | 2024-01-15 16:00:00\n89260  | https:\u002F\u002Fraw.githubusercontent.com\u002F...\u002Fpayload.ps1| GitHub Raw               | 1           | 2024-01-15 14:34:00\n89270  | https:\u002F\u002Fpastebin.com\u002Fedit\u002FkL9mN2pQ               | Pastebin - Edit          | 2           | 2024-01-15 14:42:00\n89280  | https:\u002F\u002Fduckduckgo.com\u002F?q=clear+browser+history  | DuckDuckGo               | 1           | 2024-01-17 22:00:00\n89285  | https:\u002F\u002Fduckduckgo.com\u002F?q=anti+forensics+tools   | DuckDuckGo               | 1           | 2024-01-17 22:05:00\n\n[+] Analyzing table: downloads\n    Active rows:     234\n    Deleted rows:    12 (recovered)\n\n--- Recovered Deleted Downloads ---\nRow ID | Filename               | URL                                    | Size      | Start Time (UTC)\n-------|------------------------|----------------------------------------|-----------|---------------------\n5012   | payload.ps1            | https:\u002F\u002Fraw.githubusercontent.com\u002F...  | 4,096     | 2024-01-15 14:34:00\n5015   | mimikatz_trunk.zip     | https:\u002F\u002Fgithub.com\u002F...\u002Freleases\u002F...    | 1,892,352 | 2024-01-15 16:00:00\n5018   | netscan_portable.zip   | https:\u002F\u002Fwww.softperfect.com\u002F...        | 5,242,880 | 2024-01-15 15:05:00\n\n[+] Slack space analysis...\n    Pages with slack space data: 234\n    Partial strings recovered:   67 fragments\n\nSummary:\n  Total records analyzed:  14,578 (active) + 3,126 (deleted\u002FWAL)\n  Evidence-relevant URLs:  23 (flagged)\n  Deleted downloads:       12 (3 tool-related)\n  Anti-forensics evidence: Browser history deletion detected\n  Report: \u002Fanalysis\u002Fsqlite_report\u002Fsqlite_forensics.json\n  Recovered DB: \u002Fanalysis\u002Fsqlite_report\u002FHistory_recovered.db\n```\n","# Performing SQLite Database Forensics\n\n## Overview\n\nSQLite is the most widely deployed database engine in the world, used by virtually every mobile application, web browser, and many desktop applications to store user data. In digital forensics, SQLite databases are critical evidence sources containing browser history, messaging records, call logs, GPS locations, application preferences, and cached content. Forensic analysis goes beyond simple SQL queries to examine the internal B-tree page structures, freelist pages containing deleted records, Write-Ahead Log (WAL) files preserving transaction history, and unallocated space within database pages where recoverable data may persist after deletion.\n\n\n## When to Use\n\n- When conducting security assessments that involve performing sqlite database forensics\n- When following incident response procedures for related security events\n- When performing scheduled security testing or auditing activities\n- When validating security controls through hands-on testing\n\n## Prerequisites\n\n- DB Browser for SQLite (sqlitebrowser)\n- SQLite command-line tools (sqlite3)\n- Python 3.8+ with sqlite3 module\n- Belkasoft Evidence Center or Axiom (commercial)\n- Hex editor (HxD, 010 Editor) for manual page inspection\n- Understanding of B-tree data structures\n\n## SQLite Internal Structure\n\n### Database Header (First 100 Bytes)\n\n| Offset | Size | Description |\n|--------|------|-------------|\n| 0 | 16 | Magic string: \"SQLite format 3\\000\" |\n| 16 | 2 | Page size (512-65536 bytes) |\n| 18 | 1 | File format write version |\n| 19 | 1 | File format read version |\n| 24 | 4 | File change counter |\n| 28 | 4 | Database size in pages |\n| 32 | 4 | First freelist trunk page number |\n| 36 | 4 | Total freelist pages |\n| 52 | 4 | Text encoding (1=UTF-8, 2=UTF-16le, 3=UTF-16be) |\n| 96 | 4 | Version-valid-for number |\n\n### Page Types\n\n| Type | ID | Description |\n|------|----|-------------|\n| B-tree Interior | 0x05 | Internal table node |\n| B-tree Leaf | 0x0D | Table leaf page containing actual records |\n| Index Interior | 0x02 | Internal index node |\n| Index Leaf | 0x0A | Index leaf page |\n| Freelist Trunk | - | Tracks freed pages |\n| Freelist Leaf | - | Freed page with recoverable data |\n| Overflow | - | Continuation of large records |\n\n## Deleted Record Recovery\n\n### Method 1: Freelist Page Analysis\n\nWhen records are deleted, SQLite may place their pages on the freelist rather than overwriting them immediately.\n\n```python\nimport struct\nimport sqlite3\nimport os\n\n\ndef analyze_freelist(db_path: str) -> dict:\n    \"\"\"Analyze SQLite freelist to identify pages containing deleted data.\"\"\"\n    with open(db_path, \"rb\") as f:\n        # Read header\n        header = f.read(100)\n        page_size = struct.unpack(\">H\", header[16:18])[0]\n        if page_size == 1:\n            page_size = 65536\n        first_freelist_page = struct.unpack(\">I\", header[32:36])[0]\n        total_freelist_pages = struct.unpack(\">I\", header[36:40])[0]\n\n        freelist_info = {\n            \"page_size\": page_size,\n            \"first_freelist_page\": first_freelist_page,\n            \"total_freelist_pages\": total_freelist_pages,\n            \"trunk_pages\": [],\n            \"leaf_pages\": []\n        }\n\n        if first_freelist_page == 0:\n            return freelist_info\n\n        # Walk the freelist trunk chain\n        trunk_page = first_freelist_page\n        while trunk_page != 0:\n            offset = (trunk_page - 1) * page_size\n            f.seek(offset)\n            page_data = f.read(page_size)\n\n            next_trunk = struct.unpack(\">I\", page_data[0:4])[0]\n            leaf_count = struct.unpack(\">I\", page_data[4:8])[0]\n\n            leaves = []\n            for i in range(leaf_count):\n                leaf_page = struct.unpack(\">I\", page_data[8 + i * 4:12 + i * 4])[0]\n                leaves.append(leaf_page)\n\n            freelist_info[\"trunk_pages\"].append({\n                \"page_number\": trunk_page,\n                \"next_trunk\": next_trunk,\n                \"leaf_count\": leaf_count,\n                \"leaf_pages\": leaves\n            })\n            freelist_info[\"leaf_pages\"].extend(leaves)\n            trunk_page = next_trunk\n\n    return freelist_info\n\n\ndef extract_freelist_content(db_path: str, output_dir: str):\n    \"\"\"Extract raw content from freelist pages for analysis.\"\"\"\n    info = analyze_freelist(db_path)\n    os.makedirs(output_dir, exist_ok=True)\n\n    with open(db_path, \"rb\") as f:\n        page_size = info[\"page_size\"]\n        for page_num in info[\"leaf_pages\"]:\n            offset = (page_num - 1) * page_size\n            f.seek(offset)\n            page_data = f.read(page_size)\n            output_file = os.path.join(output_dir, f\"freelist_page_{page_num}.bin\")\n            with open(output_file, \"wb\") as out:\n                out.write(page_data)\n\n    return len(info[\"leaf_pages\"])\n```\n\n### Method 2: WAL (Write-Ahead Log) Analysis\n\nThe WAL file contains pending transactions that have not yet been checkpointed back to the main database.\n\n```python\ndef parse_wal_header(wal_path: str) -> dict:\n    \"\"\"Parse SQLite WAL file header and frame inventory.\"\"\"\n    with open(wal_path, \"rb\") as f:\n        header = f.read(32)\n        magic = struct.unpack(\">I\", header[0:4])[0]\n        file_format = struct.unpack(\">I\", header[4:8])[0]\n        page_size = struct.unpack(\">I\", header[8:12])[0]\n        checkpoint_seq = struct.unpack(\">I\", header[12:16])[0]\n        salt1 = struct.unpack(\">I\", header[16:20])[0]\n        salt2 = struct.unpack(\">I\", header[20:24])[0]\n\n        wal_info = {\n            \"magic\": hex(magic),\n            \"format\": file_format,\n            \"page_size\": page_size,\n            \"checkpoint_sequence\": checkpoint_seq,\n            \"frames\": []\n        }\n\n        # Parse frames (24-byte header + page_size data each)\n        frame_offset = 32\n        frame_num = 0\n        file_size = os.path.getsize(wal_path)\n\n        while frame_offset + 24 + page_size \u003C= file_size:\n            f.seek(frame_offset)\n            frame_header = f.read(24)\n            page_number = struct.unpack(\">I\", frame_header[0:4])[0]\n            db_size_after = struct.unpack(\">I\", frame_header[4:8])[0]\n\n            wal_info[\"frames\"].append({\n                \"frame_number\": frame_num,\n                \"page_number\": page_number,\n                \"db_size_pages\": db_size_after,\n                \"offset\": frame_offset\n            })\n            frame_offset += 24 + page_size\n            frame_num += 1\n\n    return wal_info\n```\n\n### Method 3: Unallocated Space Within Pages\n\nDeleted cells within active B-tree pages leave data in the unallocated region between the cell pointer array and the cell content area.\n\n```python\ndef analyze_unallocated_space(db_path: str, page_number: int) -> dict:\n    \"\"\"Analyze unallocated space within a specific B-tree page.\"\"\"\n    with open(db_path, \"rb\") as f:\n        header = f.read(100)\n        page_size = struct.unpack(\">H\", header[16:18])[0]\n        if page_size == 1:\n            page_size = 65536\n\n        offset = (page_number - 1) * page_size\n        f.seek(offset)\n        page_data = f.read(page_size)\n\n        # Parse page header (8 or 12 bytes depending on type)\n        page_type = page_data[0]\n        first_freeblock = struct.unpack(\">H\", page_data[1:3])[0]\n        cell_count = struct.unpack(\">H\", page_data[3:5])[0]\n        cell_content_offset = struct.unpack(\">H\", page_data[5:7])[0]\n        if cell_content_offset == 0:\n            cell_content_offset = 65536\n\n        header_size = 12 if page_type in (0x02, 0x05) else 8\n        cell_pointer_end = header_size + cell_count * 2\n\n        unallocated_start = cell_pointer_end\n        unallocated_end = cell_content_offset\n        unallocated_size = unallocated_end - unallocated_start\n\n        return {\n            \"page_number\": page_number,\n            \"page_type\": hex(page_type),\n            \"cell_count\": cell_count,\n            \"unallocated_start\": unallocated_start,\n            \"unallocated_end\": unallocated_end,\n            \"unallocated_size\": unallocated_size,\n            \"unallocated_data\": page_data[unallocated_start:unallocated_end].hex()\n        }\n```\n\n## Common Forensic Databases\n\n| Application | Database File | Key Tables |\n|------------|--------------|------------|\n| Chrome | History | urls, visits, downloads, keyword_search_terms |\n| Firefox | places.sqlite | moz_places, moz_historyvisits |\n| Safari | History.db | history_items, history_visits |\n| WhatsApp | msgstore.db | messages, chat_list |\n| Signal | signal.sqlite | sms, mms |\n| iMessage | sms.db | message, handle, chat |\n| Android SMS | mmssms.db | sms, mms, threads |\n| Skype | main.db | Messages, Conversations |\n\n## Timestamp Decoding\n\n```python\nfrom datetime import datetime, timedelta\n\ndef decode_chrome_timestamp(chrome_ts: int) -> datetime:\n    \"\"\"Convert Chrome\u002FWebKit timestamp to datetime (microseconds since 1601-01-01).\"\"\"\n    epoch_delta = 11644473600\n    return datetime.utcfromtimestamp((chrome_ts \u002F 1000000) - epoch_delta)\n\ndef decode_unix_timestamp(unix_ts: int) -> datetime:\n    \"\"\"Convert Unix timestamp to datetime.\"\"\"\n    return datetime.utcfromtimestamp(unix_ts)\n\ndef decode_mac_absolute_time(mac_ts: float) -> datetime:\n    \"\"\"Convert Mac Absolute Time (seconds since 2001-01-01).\"\"\"\n    mac_epoch = datetime(2001, 1, 1)\n    return mac_epoch + timedelta(seconds=mac_ts)\n\ndef decode_mozilla_timestamp(moz_ts: int) -> datetime:\n    \"\"\"Convert Mozilla PRTime (microseconds since Unix epoch).\"\"\"\n    return datetime.utcfromtimestamp(moz_ts \u002F 1000000)\n```\n\n## References\n\n- SQLite File Format: https:\u002F\u002Fwww.sqlite.org\u002Ffileformat2.html\n- Belkasoft SQLite Analysis: https:\u002F\u002Fbelkasoft.com\u002Fsqlite-analysis\n- Spyder Forensics SQLite Training: https:\u002F\u002Fwww.spyderforensics.com\u002Fsqlite-forensic-fundamentals-2025\u002F\n- Forensic Analysis of Damaged SQLite Databases: https:\u002F\u002Fwww.forensicfocus.com\u002Farticles\u002Fforensic-analysis-of-damaged-sqlite-databases\u002F\n\n## Example Output\n\n```text\n$ python3 sqlite_forensics.py --db \u002Fevidence\u002Fchrome\u002FDefault\u002FHistory \\\n    --wal \u002Fevidence\u002Fchrome\u002FDefault\u002FHistory-wal \\\n    --journal \u002Fevidence\u002Fchrome\u002FDefault\u002FHistory-journal \\\n    --output \u002Fanalysis\u002Fsqlite_report\n\nSQLite Database Forensic Analyzer v2.0\n========================================\nDatabase:    \u002Fevidence\u002Fchrome\u002FDefault\u002FHistory\nSize:        48.2 MB\nSQLite Ver:  3.39.5\nPage Size:   4096 bytes\nTotal Pages: 12,345\nEncoding:    UTF-8\n\n[+] Analyzing WAL (Write-Ahead Log)...\n    WAL file:       History-wal (2.1 MB)\n    WAL frames:     512\n    Checkpointed:   No (contains uncommitted data)\n    Recoverable rows from WAL: 234\n\n[+] Analyzing journal file...\n    Journal file:   History-journal (0 bytes - rolled back)\n\n[+] Scanning for deleted records (freelist pages)...\n    Freelist pages:     456\n    Deleted records recovered: 1,892\n\n[+] Analyzing table: urls\n    Active rows:     12,456\n    Deleted rows:    1,234 (recovered from freelist)\n    WAL-only rows:   89\n\n--- Recovered Deleted URLs (Last 10) ---\nRow ID | URL                                              | Title                    | Visit Count | Last Visit (UTC)\n-------|--------------------------------------------------|--------------------------|-------------|---------------------\n89234  | https:\u002F\u002Fmega.nz\u002Ffolder\u002FxYz123#key=AbCdEf        | MEGA                     | 5           | 2024-01-16 03:20:00\n89235  | https:\u002F\u002Ftransfer.sh\u002Fabc123\u002Fdata.7z               | transfer.sh              | 1           | 2024-01-16 03:25:00\n89240  | https:\u002F\u002Ftemp-mail.org\u002Fen\u002F                        | Temp Mail                | 3           | 2024-01-15 13:00:00\n89241  | https:\u002F\u002Fbrowserleaks.com\u002Fip                      | IP Leak Test             | 1           | 2024-01-15 12:55:00\n89245  | https:\u002F\u002Fwww.virustotal.com\u002Fgui\u002Ffile\u002Fa1b2c3...    | VirusTotal               | 2           | 2024-01-15 14:30:00\n89250  | https:\u002F\u002Fgithub.com\u002Fgentilkiwi\u002Fmimikatz\u002Freleases  | Mimikatz Releases        | 1           | 2024-01-15 16:00:00\n89260  | https:\u002F\u002Fraw.githubusercontent.com\u002F...\u002Fpayload.ps1| GitHub Raw               | 1           | 2024-01-15 14:34:00\n89270  | https:\u002F\u002Fpastebin.com\u002Fedit\u002FkL9mN2pQ               | Pastebin - Edit          | 2           | 2024-01-15 14:42:00\n89280  | https:\u002F\u002Fduckduckgo.com\u002F?q=clear+browser+history  | DuckDuckGo               | 1           | 2024-01-17 22:00:00\n89285  | https:\u002F\u002Fduckduckgo.com\u002F?q=anti+forensics+tools   | DuckDuckGo               | 1           | 2024-01-17 22:05:00\n\n[+] Analyzing table: downloads\n    Active rows:     234\n    Deleted rows:    12 (recovered)\n\n--- Recovered Deleted Downloads ---\nRow ID | Filename               | URL                                    | Size      | Start Time (UTC)\n-------|------------------------|----------------------------------------|-----------|---------------------\n5012   | payload.ps1            | https:\u002F\u002Fraw.githubusercontent.com\u002F...  | 4,096     | 2024-01-15 14:34:00\n5015   | mimikatz_trunk.zip     | https:\u002F\u002Fgithub.com\u002F...\u002Freleases\u002F...    | 1,892,352 | 2024-01-15 16:00:00\n5018   | netscan_portable.zip   | https:\u002F\u002Fwww.softperfect.com\u002F...        | 5,242,880 | 2024-01-15 15:05:00\n\n[+] Slack space analysis...\n    Pages with slack space data: 234\n    Partial strings recovered:   67 fragments\n\nSummary:\n  Total records analyzed:  14,578 (active) + 3,126 (deleted\u002FWAL)\n  Evidence-relevant URLs:  23 (flagged)\n  Deleted downloads:       12 (3 tool-related)\n  Anti-forensics evidence: Browser history deletion detected\n  Report: \u002Fanalysis\u002Fsqlite_report\u002Fsqlite_forensics.json\n  Recovered DB: \u002Fanalysis\u002Fsqlite_report\u002FHistory_recovered.db\n```\n",{"name":5,"tags":49,"author":50,"domain":36,"license":15,"version":51,"nist_csf":52,"subdomain":56,"description":7,"mitre_attack":57},[35,34,33,32,31,30,27,29,28,37],"mahipal","1.0",[53,54,55],"RS.AN-03","DE.AE-02","RS.MA-01","digital-forensics",[58,59,60,61,62],"T1005","T1074","T1119","T1070","T1059","main","54a798831d2266a3ca61ce68a7acb80b81160d57","skills\u002Fperforming-sqlite-database-forensics",4379,"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":74,"prompt":84,"zipAvailable":85},[75,78,81],{"tool":76,"command":77},"npx","npx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill performing-sqlite-database-forensics",{"tool":79,"command":80},"bunx","bunx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill performing-sqlite-database-forensics",{"tool":82,"command":83},"pnpm","pnpm dlx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill performing-sqlite-database-forensics","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-sqlite-database-forensics\u002FSKILL.md",true,[87,93,98,104,108,112,118,122,126,130,134,138,142,146,150,154,158,162,166,170,174,178,182,186,190,194],{"path":88,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":91,"sourceHtmlUrl":92},"assets\u002Ftemplate.md","ASSET","资产文件",613,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-sqlite-database-forensics\u002Fassets\u002Ftemplate.md",{"path":94,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":96,"sourceHtmlUrl":97},"LICENSE","许可证",11255,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-sqlite-database-forensics\u002FLICENSE",{"path":99,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":102,"sourceHtmlUrl":103},"references\u002Fapi-reference.md","REFERENCE","参考文档",1939,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-sqlite-database-forensics\u002Freferences\u002Fapi-reference.md",{"path":105,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":106,"sourceHtmlUrl":107},"references\u002Fstandards.md",967,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-sqlite-database-forensics\u002Freferences\u002Fstandards.md",{"path":109,"resourceType":100,"resourceTypeDesc":101,"sizeBytes":110,"sourceHtmlUrl":111},"references\u002Fworkflows.md",894,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-sqlite-database-forensics\u002Freferences\u002Fworkflows.md",{"path":113,"resourceType":114,"resourceTypeDesc":115,"sizeBytes":116,"sourceHtmlUrl":117},"scripts\u002F.gitignore","SCRIPT","脚本",14,"https:\u002F\u002Fgithub.com\u002Fasermax\u002Fclaude-plugins\u002Fblob\u002Fmaster\u002Fmahou\u002Fskills\u002Ftelepathy\u002Fscripts\u002F.gitignore",{"path":119,"resourceType":114,"resourceTypeDesc":115,"sizeBytes":120,"sourceHtmlUrl":121},"scripts\u002Fagent.py",7901,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-sqlite-database-forensics\u002Fscripts\u002Fagent.py",{"path":123,"resourceType":114,"resourceTypeDesc":115,"sizeBytes":124,"sourceHtmlUrl":125},"scripts\u002Fbun.lock",3197,"https:\u002F\u002Fgithub.com\u002Fasermax\u002Fclaude-plugins\u002Fblob\u002Fmaster\u002Fmahou\u002Fskills\u002Ftelepathy\u002Fscripts\u002Fbun.lock",{"path":127,"resourceType":114,"resourceTypeDesc":115,"sizeBytes":128,"sourceHtmlUrl":129},"scripts\u002Fpackage.json",267,"https:\u002F\u002Fgithub.com\u002Fasermax\u002Fclaude-plugins\u002Fblob\u002Fmaster\u002Fmahou\u002Fskills\u002Ftelepathy\u002Fscripts\u002Fpackage.json",{"path":131,"resourceType":114,"resourceTypeDesc":115,"sizeBytes":132,"sourceHtmlUrl":133},"scripts\u002Fprocess.py",7234,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fperforming-sqlite-database-forensics\u002Fscripts\u002Fprocess.py",{"path":135,"resourceType":114,"resourceTypeDesc":115,"sizeBytes":136,"sourceHtmlUrl":137},"scripts\u002Fsrc\u002Fanchor.ts",4758,"https:\u002F\u002Fgithub.com\u002Fasermax\u002Fclaude-plugins\u002Fblob\u002Fmaster\u002Fmahou\u002Fskills\u002Ftelepathy\u002Fscripts\u002Fsrc\u002Fanchor.ts",{"path":139,"resourceType":114,"resourceTypeDesc":115,"sizeBytes":140,"sourceHtmlUrl":141},"scripts\u002Fsrc\u002Fblocks.ts",3633,"https:\u002F\u002Fgithub.com\u002Fasermax\u002Fclaude-plugins\u002Fblob\u002Fmaster\u002Fmahou\u002Fskills\u002Ftelepathy\u002Fscripts\u002Fsrc\u002Fblocks.ts",{"path":143,"resourceType":114,"resourceTypeDesc":115,"sizeBytes":144,"sourceHtmlUrl":145},"scripts\u002Fsrc\u002Fedits.ts",2716,"https:\u002F\u002Fgithub.com\u002Fasermax\u002Fclaude-plugins\u002Fblob\u002Fmaster\u002Fmahou\u002Fskills\u002Ftelepathy\u002Fscripts\u002Fsrc\u002Fedits.ts",{"path":147,"resourceType":114,"resourceTypeDesc":115,"sizeBytes":148,"sourceHtmlUrl":149},"scripts\u002Fsrc\u002Fmessages.ts",1675,"https:\u002F\u002Fgithub.com\u002Fasermax\u002Fclaude-plugins\u002Fblob\u002Fmaster\u002Fmahou\u002Fskills\u002Ftelepathy\u002Fscripts\u002Fsrc\u002Fmessages.ts",{"path":151,"resourceType":114,"resourceTypeDesc":115,"sizeBytes":152,"sourceHtmlUrl":153},"scripts\u002Fsrc\u002Fnotifier.ts",1449,"https:\u002F\u002Fgithub.com\u002Fasermax\u002Fclaude-plugins\u002Fblob\u002Fmaster\u002Fmahou\u002Fskills\u002Ftelepathy\u002Fscripts\u002Fsrc\u002Fnotifier.ts",{"path":155,"resourceType":114,"resourceTypeDesc":115,"sizeBytes":156,"sourceHtmlUrl":157},"scripts\u002Fsrc\u002Fserver.ts",5766,"https:\u002F\u002Fgithub.com\u002Fasermax\u002Fclaude-plugins\u002Fblob\u002Fmaster\u002Fmahou\u002Fskills\u002Ftelepathy\u002Fscripts\u002Fsrc\u002Fserver.ts",{"path":159,"resourceType":114,"resourceTypeDesc":115,"sizeBytes":160,"sourceHtmlUrl":161},"scripts\u002Fsrc\u002Fworkspace.ts",7351,"https:\u002F\u002Fgithub.com\u002Fasermax\u002Fclaude-plugins\u002Fblob\u002Fmaster\u002Fmahou\u002Fskills\u002Ftelepathy\u002Fscripts\u002Fsrc\u002Fworkspace.ts",{"path":163,"resourceType":114,"resourceTypeDesc":115,"sizeBytes":164,"sourceHtmlUrl":165},"scripts\u002Ftelepathy.sh",441,"https:\u002F\u002Fgithub.com\u002Fasermax\u002Fclaude-plugins\u002Fblob\u002Fmaster\u002Fmahou\u002Fskills\u002Ftelepathy\u002Fscripts\u002Ftelepathy.sh",{"path":167,"resourceType":114,"resourceTypeDesc":115,"sizeBytes":168,"sourceHtmlUrl":169},"scripts\u002Ftest\u002Fanchor.test.ts",3895,"https:\u002F\u002Fgithub.com\u002Fasermax\u002Fclaude-plugins\u002Fblob\u002Fmaster\u002Fmahou\u002Fskills\u002Ftelepathy\u002Fscripts\u002Ftest\u002Fanchor.test.ts",{"path":171,"resourceType":114,"resourceTypeDesc":115,"sizeBytes":172,"sourceHtmlUrl":173},"scripts\u002Ftest\u002Fblocks.test.ts",2021,"https:\u002F\u002Fgithub.com\u002Fasermax\u002Fclaude-plugins\u002Fblob\u002Fmaster\u002Fmahou\u002Fskills\u002Ftelepathy\u002Fscripts\u002Ftest\u002Fblocks.test.ts",{"path":175,"resourceType":114,"resourceTypeDesc":115,"sizeBytes":176,"sourceHtmlUrl":177},"scripts\u002Ftest\u002Fedits.test.ts",2765,"https:\u002F\u002Fgithub.com\u002Fasermax\u002Fclaude-plugins\u002Fblob\u002Fmaster\u002Fmahou\u002Fskills\u002Ftelepathy\u002Fscripts\u002Ftest\u002Fedits.test.ts",{"path":179,"resourceType":114,"resourceTypeDesc":115,"sizeBytes":180,"sourceHtmlUrl":181},"scripts\u002Ftest\u002Fworkspace.test.ts",5360,"https:\u002F\u002Fgithub.com\u002Fasermax\u002Fclaude-plugins\u002Fblob\u002Fmaster\u002Fmahou\u002Fskills\u002Ftelepathy\u002Fscripts\u002Ftest\u002Fworkspace.test.ts",{"path":183,"resourceType":114,"resourceTypeDesc":115,"sizeBytes":184,"sourceHtmlUrl":185},"scripts\u002Ftsconfig.json",233,"https:\u002F\u002Fgithub.com\u002Fasermax\u002Fclaude-plugins\u002Fblob\u002Fmaster\u002Fmahou\u002Fskills\u002Ftelepathy\u002Fscripts\u002Ftsconfig.json",{"path":187,"resourceType":114,"resourceTypeDesc":115,"sizeBytes":188,"sourceHtmlUrl":189},"scripts\u002Fui\u002Fapp.js",17626,"https:\u002F\u002Fgithub.com\u002Fasermax\u002Fclaude-plugins\u002Fblob\u002Fmaster\u002Fmahou\u002Fskills\u002Ftelepathy\u002Fscripts\u002Fui\u002Fapp.js",{"path":191,"resourceType":114,"resourceTypeDesc":115,"sizeBytes":192,"sourceHtmlUrl":193},"scripts\u002Fui\u002Findex.html",719,"https:\u002F\u002Fgithub.com\u002Fasermax\u002Fclaude-plugins\u002Fblob\u002Fmaster\u002Fmahou\u002Fskills\u002Ftelepathy\u002Fscripts\u002Fui\u002Findex.html",{"path":195,"resourceType":114,"resourceTypeDesc":115,"sizeBytes":196,"sourceHtmlUrl":197},"scripts\u002Fui\u002Fstyle.css",7922,"https:\u002F\u002Fgithub.com\u002Fasermax\u002Fclaude-plugins\u002Fblob\u002Fmaster\u002Fmahou\u002Fskills\u002Ftelepathy\u002Fscripts\u002Fui\u002Fstyle.css",[199,228,252,280,303,330],{"skillNo":200,"name":201,"nameZh":6,"description":202,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":203,"categories":204,"keywords":208,"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",[205],{"categoryNo":206,"categoryName":207,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[209,210,211,212,213,36,214,215,216,217,218,219,220,221,222,223,224,225,226,227],"sigstore","provenance","slsa","verifying build provenance with slsa sigstore","security","incident response","identity","pr","code","artifacts","ci","supply-chain","pipeline","supply-chain-security","t1195","attestation","code-signing","cosign","keyless",{"skillNo":229,"name":230,"nameZh":6,"description":231,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":232,"categories":233,"keywords":235,"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",[234],{"categoryNo":206,"categoryName":207,"taxonomyType":21,"taxonomyTypeDesc":22},[236,224,237,238,213,239,36,216,240,241,242,243,244,245,246,247,248,249,250,251],"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":253,"name":254,"nameZh":6,"description":255,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":256,"categories":257,"keywords":262,"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",[258,261],{"categoryNo":259,"categoryName":260,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":206,"categoryName":207,"taxonomyType":21,"taxonomyTypeDesc":22},[246,263,264,265,266,36,267,268,240,269,270,271,272,273,274,275,276,277,278,279],"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":281,"name":282,"nameZh":6,"description":283,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":284,"categories":285,"keywords":287,"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",[286],{"categoryNo":206,"categoryName":207,"taxonomyType":21,"taxonomyTypeDesc":22},[288,289,290,36,291,43,292,293,294,295,296,41,297,298,56,299,243,300,301,302],"windows","kape","triaging windows with kape","registry","logs","windows-forensics","dfir","mft","mftecmd","prefetch","eric-zimmerman","SET","collection","pecmd","artifact-collection",{"skillNo":304,"name":305,"nameZh":6,"description":306,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":307,"categories":308,"keywords":310,"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",[309],{"categoryNo":206,"categoryName":207,"taxonomyType":21,"taxonomyTypeDesc":22},[311,312,313,36,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329],"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":331,"name":332,"nameZh":6,"description":333,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":334,"categories":335,"keywords":337,"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",[336],{"categoryNo":206,"categoryName":207,"taxonomyType":21,"taxonomyTypeDesc":22},[213,338,36,339,340,341,342,343,344,345,346,275,347,276,38,348,349,350,351,352],"triaging security incident","siem","file","ioc","soc","NIST-800-61","NIST","severity","edr","execution","classification","severity-classification","incident-triage","SANS-PICERL","SOC-operations"]