PROJECT 32 • DAY 26 OF 90 • FORENSIC INTEGRITY & CHAIN-OF-CUSTODY

KUSTODRA
FORENSIC CUSTODY.

A digital forensic evidence management system and chain-of-custody laboratory — calculating dual-hash SHA-256 and Blake3 digests, logging cryptographic custody transitions, and generating automated legal compliance reports.

Python 3.11+StreamlitSQLite WALReportLab PDFSHA-256 & Blake323/23 Pytest
KUSTODRA Preview
CRYPTOGRAPHY
SHA-256 & Blake3
PYTEST SUITE
23 / 23 Passed
Dual Hash
SHA-256 & Blake3 Digests
Chain of Custody
Immutable Handover Ledger
Court Dossiers
ReportLab PDF Generator
23 / 23
Automated Pytest Passed
01 / Overview

TAMPER-EVIDENT FORENSIC EVIDENCE INTEGRITY & AUDIT TRAILS.

Digital evidence in forensic investigations requires unassailable proof of authenticity. KUSTODRA guarantees artifact integrity through cryptographic dual-hashing, strict custody logging, and audit report generation.

01

Evidence Repository Vault

Centralized digital evidence locker tracking file size, original upload timestamp, case ID bindings, and custodian officer details.

02

Dual-Hash Integrity Lab

Computes SHA-256 and Blake3 cryptographic checksums simultaneously to guard against hash collisions and bit-flip degradation.

03

Chain-of-Custody Ledger

Chronological audit ledger logging every transfer of evidence custody between forensic examiners, law enforcement, and court archives.

04

Integrity Tamper Verification

Re-computes file checksums on demand to immediately flag any file corruption or unauthorized modification.

05

Court-Admissible PDF Export

Compiles comprehensive ReportLab PDF forensic certificates complete with verification stamps, timestamps, and officer credentials.

06

Process Flow Architecture

Visual diagram and compliance rules adhering to ISO/IEC 27037 standards for digital evidence handling.

02 / Architecture

HOW IT WORKS.

Air-gapped forensic evidence verification system powered by Python, hashlib, and Streamlit.

STAGE 01

Artifact Intake

Digital evidence file loaded into secure quarantine folder.

→
STAGE 02

Dual Hashing

Simultaneous streaming computation of SHA-256 & Blake3.

→
STAGE 03

Custody Registration

Case ID, examiner identity, and timestamp logged to DB.

→
STAGE 04

Periodic Audit

Scheduled hash re-verifications detect storage bit rot.

→
STAGE 05

Dossier Export

Generates legally defensible PDF certificate of authenticity.

03 / Screenshots

APPLICATION SCREENSHOTS.

Live screens captured from the running application. Click any image to view full size, or follow setup instructions in the GitHub repository.

04 / Technical Details

FORENSIC CAPABILITIES & VERIFIED SPECS.

Key modules, rules, safety checks, and automated test results documented in the repository.

Subsystem Technical Implementation Verified Capability
Cryptographic Digests Streaming hashlib SHA-256 + blake3 Dual collision-resistant hash signatures
Custody Governance Relational audit logs with officer IDs Unbroken chain-of-custody documentation
Legal Reporting ReportLab PDF certification generator Court-admissible forensic audit dossiers
Test Coverage Pytest verification of forensic pipelines 23 / 23 automated tests passed
05 / Tech Stack

CORE TECHNOLOGIES.

Frameworks, databases, visualization tools, and testing libraries used in KUSTODRA.

FRONTEND UI
Streamlit 1.40+
CRYPTOGRAPHY
Python hashlib (SHA-256 • Blake3)
DATABASE ORM
SQLite WAL • SQLAlchemy
AUDIT REPORTING
ReportLab PDF Engine
STANDARDS
ISO/IEC 27037 Evidence Guidelines
TEST SUITE
Pytest (23/23 Passed)
06 / Next Steps

FUTURE ENHANCEMENTS.

Upcoming improvements planned for KUSTODRA.

Hardware Security Module (HSM) and YubiKey signing for custody transfer verification.
Write-Once-Read-Many (WORM) storage backend integration for immutable cloud archiving.
Automatic metadata stripping and forensic carving for damaged disk image payloads.
OPEN-SOURCE PROJECT • GITHUB.COM/RAGURAMRRP

EXPLORE SOURCE & DOCS.

View the complete codebase, sample datasets, quick-launch scripts, and automated test suites on GitHub.