Executive Summary for Judges:
When blackouts, earthquakes, or conflicts take down cellular towers and internet backbones, first responders rely on ad-hoc wireless mesh relays. However, traditional mesh networks broadcast plain unencrypted packets, leaving life-critical coordinates and rescue plans vulnerable to sniffing, spoofing, and tampering.
RESQ solves this with a military-grade Zero-Trust Mesh Architecture: guaranteed Zero Plaintext on the Wire, authenticated sender identities via Ed25519, ephemeral forward secrecy via X25519 ECDH + ChaCha20-Poly1305, and a Strict 6-Step Receiver Decryption Gate.
- π¨ The Problem & The Solution
- βοΈ Live Contrast Mode: Before vs After RESQ
- π₯οΈ Interactive System Walkthrough
- π‘οΈ The 6-Step Decryption Gate
- βοΈ Tech Stack & Cryptography Standards
- π Quick Start Guide (Run in 2 Minutes)
- π§ͺ Automated Verification & Test Suite
- π₯ Team InnovateX
- π License
| The Disaster Reality (Problem) | The RESQ Innovation (Solution) |
|---|---|
| No Central Infrastructure: Cellular and fiber networks are completely offline during disasters. Responders must use wireless peer-to-peer radio/Wi-Fi hops. | Autonomous Dynamic Mesh: Multi-hop BFS routing that dynamically routes packets through peer devices with TTL and outage resilience. |
| Airwave Packet Sniffing: Radio waves are broadcast in open air. Any nearby bad actor with cheap SDR/Wi-Fi hardware captures all transmitted packets. | Zero Plaintext Wire Exposure: Payloads are encrypted before entering the mesh. Captured packets reveal only high-entropy, unintelligible ciphertext. |
| Impersonation & Rogue Relays: Attackers can inject false coordinates, alter evacuation routes, or replay old distress calls. | Cryptographic Identity & 6-Step Gate: Every packet is signed with Ed25519, verified against a hardware registry, and checked for replays before decryption. |
RESQ features a built-in Side-by-Side Attack Simulator that proves the security model live in front of the judges.
In standard mesh protocols, messages travel in cleartext over untrusted relays. An eavesdropper sniffs the airwaves and reads life-critical distress data immediately.
- Attacker Sniffer Panel: Intercepts packet
PKT-VULN-0530153Fand directly reads:
"SOS: Three people are trapped in Building B. Immediate evacuation required." - Result:
β οΈ CRITICAL LEAK β Target location and team identity exposed to adversaries.
Every dispatch undergoes ephemeral X25519 key exchange, HKDF key derivation, ChaCha20-Poly1305 AEAD encryption, and Ed25519 signing before hitting the mesh.
- Attacker Sniffer Panel: Captured packet displays pure encrypted ciphertext (
QsS/Tat2SCYQTx...). Attacker cannot read a single character of the message. - Active Tamper Defense: Clicking "Test Tampering Defense (Alter 1 Byte)" instantly invalidates the Poly1305 AEAD authentication tag and Ed25519 signature, causing the receiver gate to reject the packet.
- Authorized Receiver Panel: Only the verified keyholder (
RESQ-002) successfully passes all 6 validation gates and decrypts the plaintext.
Simulates a multi-hop ad-hoc wireless mesh topology with dynamic node states, link outages, and packet path tracing.
- Visual Canvas: Real-time visual graph rendering relays (
NODE-AthroughNODE-E) and active links. - BFS Shortest-Path Routing: Automatically calculates optimal multi-hop transit routes with hop-by-hop forwarding and TTL counters.
- Fault Injection & Outage Resilience: Click any node to simulate hardware failure or battery depletion; mesh dynamically computes alternative paths.
- Passive Sniffer Tap: Shows real-time eavesdropping points monitoring passing traffic.
The command dashboard for field commanders and responders to dispatch distress signals and inspect wire packets.
- Authenticated Dispatcher: Cryptographically signs dispatches with the senderβs private key (
Ed25519) and encrypts targeting the recipientβs public key (X25519). - Wire Packet Inspector: Inspects raw packets passing through transit nodes, confirming Zero Plaintext on Wire.
- Recipient Device Inbox & Gate Inspector: Live step-by-step verification readout showing the status of each security checkpoint upon packet arrival.
Real-time audit log of all in-flight dispatches, verification receipts, and hop-by-hop acknowledgment tracking.
- Delivery Status Tracking: Real-time telemetry monitoring acknowledgment confirmations from destination nodes.
- Audit Trails: Immutable transmission timestamps, route hop history, and latency metrics.
The public-key infrastructure (PKI) and cryptographic device authority.
- Responder Enrollment: Onboard field units with auto-generated unique
Rescue ID(e.g.,RESQ-001) and hardwareDevice ID. - Cryptographic Key Provisioning: Generates and associates public signing (
Ed25519) and encryption (X25519) keys. - Instant Revocation: Compromised or captured devices can be revoked in one click. Revoked nodes are instantly blocked by the decryption gate across the entire network.
In RESQ, receiving a packet never automatically exposes data. A packet must pass six sequential cryptographic gates before the receiver's hardware decrypts the emergency payload:
ββββββββββββββββββββββββββββββββ
β Incoming Mesh Wire Packet β
ββββββββββββββββ¬ββββββββββββββββ
β
βΌ
ββββββββββββββββββββββββββββββββββββββββββββββββββ
β Gate 1: Sender Registry Lookup ββββΊ [Fail: Unknown ID] βββΊ REJECT
βββββββββββββββββββββββββ¬βββββββββββββββββββββββββ
β Pass
βΌ
ββββββββββββββββββββββββββββββββββββββββββββββββββ
β Gate 2: Sender Status Validation ββββΊ [Fail: Revoked Unit] βββΊ REJECT
βββββββββββββββββββββββββ¬βββββββββββββββββββββββββ
β Pass
βΌ
ββββββββββββββββββββββββββββββββββββββββββββββββββ
β Gate 3: RFC 8785 Ed25519 Signature Check ββββΊ [Fail: Tampered Wire]βββΊ REJECT
βββββββββββββββββββββββββ¬βββββββββββββββββββββββββ
β Pass
βΌ
ββββββββββββββββββββββββββββββββββββββββββββββββββ
β Gate 4: Recipient Hardware Authorization ββββΊ [Fail: Wrong Target] βββΊ REJECT
βββββββββββββββββββββββββ¬βββββββββββββββββββββββββ
β Pass
βΌ
ββββββββββββββββββββββββββββββββββββββββββββββββββ
β Gate 5: Replay Attack Defense (Packet ID/TTL) ββββΊ [Fail: Duplicate ID] βββΊ REJECT
βββββββββββββββββββββββββ¬βββββββββββββββββββββββββ
β Pass
βΌ
ββββββββββββββββββββββββββββββββββββββββββββββββββ
β Gate 6: ChaCha20-Poly1305 AEAD Decryption ββββΊ [Fail: Corrupt Tag] βββΊ REJECT
βββββββββββββββββββββββββ¬βββββββββββββββββββββββββ
β Pass
βΌ
ββββββββββββββββββββββββββββββββ
β Plaintext Released to Unit β
ββββββββββββββββββββββββββββββββ
- Framework: React 18 + Vite + TypeScript
- Styling & UI: Tailwind CSS (Dark tactical theme with cyber-ops telemetry styling)
- Icons & Visuals: Lucide React + HTML5 Interactive Canvas
- Framework: FastAPI (Python 3.10+)
- Validation: Pydantic v2 schemas
- Architecture: Modular clean architecture (Routers, Services, Repositories, Domain models)
- Digital Signatures:
Ed25519(RFC 8032) for high-speed, collision-resistant message authenticity. - Key Exchange: Ephemeral
X25519(ECDH) ensuring Perfect Forward Secrecy per packet. - Key Derivation:
HKDF-SHA256with 16-byte random salts. - Authenticated Encryption:
ChaCha20-Poly1305(AEAD, RFC 8439) with random 12-byte nonces. - Canonical Serialization:
RFC 8785(JSON Canonicalization Scheme) to ensure immutable signature hashing.
- Python 3.10+
- Node.js 18+ & npm
# From repository root:
uvicorn backend.app.main:app --host 127.0.0.1 --port 8000 --reloadAPI Swagger documentation will be available at: http://127.0.0.1:8000/docs
# In a new terminal window:
cd frontend
npm install
npm run devOpen your browser at: http://localhost:5173
Run the standalone verification scripts and automated tests to evaluate correctness without opening the browser:
# 1. Run Complete End-to-End System Verification (All 16 Invariants)
python3 scripts/verify_all.py
# 2. Run End-to-End Encryption & 6-Step Gate Verification
python3 scripts/verify_phase6.py
# 3. Run Packet Sniffing & Attack Simulation Verification
python3 scripts/verify_phase7.py
# 4. Run Full Automated Test Suite (Pytest)
pytest tests/ -v| Name | Role |
|---|---|
| Krish Anand | Team Leader |
| Abhinav Puri | Team Member |
| Debojit Deb | Team Member |
| Shreya Singh | Team Member |
This project is licensed under the MIT License β see the LICENSE file for details.
RESQ Β· Built with β€οΈ for Tech Adrishta 26 by Team InnovateX, SMIT.








