🛡️ #Forensa: The Cryptographic Truth Protocol
Inspiration-- In the high-stakes world of Sexual Assault (Rape) investigations and Custodial Deaths, the medical report is the victim's ultimate voice. However, we identified a critical Systemic Vulnerability: centralized forensic databases are "Honeypots for Corruption." A corrupt administrator can perform Unauthorized Data Mutation—altering "Homicidal Trauma" to "Accidental Injury" in seconds—leaving zero audit trails. We were inspired to eliminate this "Digital Erasure" of justice.I built #Forensa to ensure that once the truth is signed by a medical professional, it becomes a Non-Repudiable piece of history.
What it does-- Forensa is a Decentralized Forensic Accountability Layer that secures the Chain of Custody for medico-legal evidence. It allows doctors to register death reports and pathologists to log autopsy findings (Internal/External/Toxicology) into a secure terminal.The Integrity Loop: The system continuously monitors the live database.The Red Alert: If a hacker or admin modifies even a single byte of the forensic data, the system detects a Hash Mismatch against the Blockchain anchor and triggers an immediate Integrity Breach Alert. It moves the legal standard from "Trusting the System" to "Verifying the Mathematics."
How we built it-- We architected #Forensa using a Tri-Layer Security Stack: Identity & Evidence Anchoring: The frontend was built with React.js and Tailwind CSS, creating a high-fidelity "Forensic Terminal" UI. Decentralized Sharding: Sensitive evidence imagery and victim certificates are sharded and stored on IPFS via Pinata, ensuring no "Single Point of Failure." Cryptographic Sealing: Using FastAPI (Python), we implemented a multi-stage hashing protocol. The final integrity proof is calculated as:
Immutable Ledger: The FinalAnchor is committed to an EVM-Compatible Blockchain via Solidity Smart Contracts, creating a permanent, timestamped fingerprint of the evidence.
Challenges-- we ran intoThe "Ghost Mutation" Problem: Detecting direct database hacks that bypass the application layer was difficult. We solved this by engineering a Background Audit Loop that performs real-time parity checks between the Live backend data and the On-Chain Ledger.CORS & Origin Security: Deploying a secure tool across multiple cloud origins (Vercel) triggered strict browser security blocks. I had to architect custom CORS Middleware in FastAPI to allow secure, encrypted communication between the terminal and the backend without exposing vulnerabilities.Zero-Knowledge Privacy: Balancing public blockchain transparency with victim privacy was a challenge. We achieved this by only anchoring the Hash Shards on-chain, while the actual sensitive PII remains encrypted.
Accomplishments that we're proud ofSuccessful-- "Malware Injection" Detection: We successfully simulated a database breach where the system identified a tampered "Cause of Death" and flagged it in under 0.04ms. Non-Repudiable Architecture: Creating a system where "Backdating" or "Retroactive Editing" of forensic reports is mathematically impossible. High-Fidelity UX: Building a professional-grade interface that brings Cyber-Security aesthetics to the medical world.
What we learned-- Forensic Cryptography: We mastered the concept of Non-Repudiation—ensuring that a digital signature cannot be denied or altered once committed. Chain of Custody Logic: We learned how to translate complex legal requirements into a Cryptographic Workflow. Full-Stack Resilience: Gained deep expertise in managing Asynchronous State and securing P2P Data Streams via IPFS.
What's next--
ForensaVictim Advocacy Portal: A secure, zero-knowledge portal where survivors can verify the integrity of their own evidence without exposing their identity. SAEK Integration: Expanding the protocol to track Sexual Assault Evidence Kits (SAEK) from the crime scene to the courtroom. AI Forensic Auditing: Implementing Machine Learning to detect patterns of systemic tampering across multiple hospital nodes
Built With
- blockchain
- bnb
- fastapi
- ipfs
- pinata
- react
- solidity
Log in or sign up for Devpost to join the conversation.