mukul975/anthropic-cybersecurity-skills/performing-sqlite-database-forensics
Claude Code and agent skill by mukul975/anthropic-cybersecurity-skills
- community
Checking that the SKILL.md file is still in the repository.
Performs forensic analysis of SQLite databases by examining B-tree page
Install
npx vskill@latest install mukul975/anthropic-cybersecurity-skills/performing-sqlite-database-forensicsSKILL.md
The same SKILL.md was published earlier as mukul975/anthropic-cybersecurity-skills/performing-sqlite-database-forensics.
Performing SQLite Database Forensics
Overview
SQLite 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.
When to Use
- When conducting security assessments that involve performing sqlite database forensics
- When following incident response procedures for related security events
- When performing scheduled security testing or auditing activities
- When validating security controls through hands-on testing
Prerequisites
- DB Browser for SQLite (sqlitebrowser)
- SQLite command-line tools (sqlite3)
- Python 3.8+ with sqlite3 module
- Belkasoft Evidence Center or Axiom (commercial)
- Hex editor (HxD, 010 Editor) for manual page inspection
- Understanding of B-tree data structures
SQLite Internal Structure
Database Header (First 100 Bytes)
| Offset | Size | Description | |
|---|---|---|---|
| 0 | 16 | Magic string: "SQLite format 3\000" | |
| 16 | 2 | Page size (512-65536 bytes) | |
| 18 | 1 | File format write version | |
| 19 | 1 | File format read version | |
| 24 | 4 | File change counter | |
| 28 | 4 | Database size in pages | |
| 32 | 4 | First freelist trunk page number | |
| 36 | 4 | Total freelist pages | |
| 52 | 4 | Text encoding (1=UTF-8, 2=UTF-16le, 3=UTF-16be) | |
| 96 | 4 | Version-valid-for number |
Page Types
| Type | ID | Description | |
|---|---|---|---|
| B-tree Interior | 0x05 | Internal table node | |
| B-tree Leaf | 0x0D | Table leaf page containing actual records | |
| Index Interior | 0x02 | Internal index node | |
| Index Leaf | 0x0A | Index leaf page | |
| Freelist Trunk | - | Tracks freed pages | |
| Freelist Leaf | - | Freed page with recoverable data | |
| Overflow | - | Continuation of large records |
Deleted Record Recovery
Method 1: Freelist Page Analysis
When records are deleted, SQLite may place their pages on the freelist rather than overwriting them immediately.
Method 2: WAL (Write-Ahead Log) Analysis
The WAL file contains pending transactions that have not yet been checkpointed back to the main database.
Method 3: Unallocated Space Within Pages
Deleted cells within active B-tree pages leave data in the unallocated region between the cell pointer array and the cell content area.
Common Forensic Databases
| Application | Database File | Key Tables | |
|---|---|---|---|
| Chrome | History | urls, visits, downloads, keyword_search_terms | |
| Firefox | places.sqlite | moz_places, moz_historyvisits | |
| Safari | History.db | history_items, history_visits | |
| msgstore.db | messages, chat_list | ||
| Signal | signal.sqlite | sms, mms | |
| iMessage | sms.db | message, handle, chat | |
| Android SMS | mmssms.db | sms, mms, threads | |
| Skype | main.db | Messages, Conversations |
Timestamp Decoding
References
- SQLite File Format: https://www.sqlite.org/fileformat2.html
- Belkasoft SQLite Analysis: https://belkasoft.com/sqlite-analysis
- Spyder Forensics SQLite Training: https://www.spyderforensics.com/sqlite-forensic-fundamentals-2025/
- Forensic Analysis of Damaged SQLite Databases: https://www.forensicfocus.com/articles/forensic-analysis-of-damaged-sqlite-databases/
Example Output
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/performing-sqlite-database-forensics/SKILL.md
Popularity
- Repository stars
- 14,871
- Repository forks
- 1,748
- 7-day trend score
- 48
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 25 May 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mukul975/anthropic-cybersecurity-skills/performing-sqlite-database-forensics)