CyberShastra
OSINT platform for law-enforcement investigators: look-ups from a phone number, email or ID.
Security note: No access until an admin approves; every look-up logged
- When
- 2025–2026
- Status
- private repository
- Layer
- L2 Backend & data
- Stack
- Django REST Framework, Python, AWS Elastic Beanstalk, Razorpay
AI Cortex, AI systems layer1 graph · 5 agentskeyreach, Platform & delivery layer32 providersContributor Scout, AI systems layer6 reviewersSBOM + SCA (SBOM & SCA Automation), Platform & delivery layer3,500+ secretsProductForge, AI systems layer5 gated stagesSDLC agents (SDLC Agent Family), AI systems layer5 agentsGlyphMemory, AI systems layer308 writersZephyron, AI systems layer151 attack typesCyberShastra, Backend & data layer27 look-up typesKodeAtlas, Backend & data layer6 languagesRelease train (Release-Train Orchestration), Platform & delivery layer100+ servicesDoc storage (Hybrid Document Storage), Backend & data layer200K+ uploads/moCloud Critic, Platform & delivery layer13 Azure toolsLLM Guard (LLM Guard & LeakGuard), AI systems layeron-device DLPData masking (Dynamic Data Masking), Backend & data layerMySQL + PostgreSQLCyber range (Cyber Range Platform), Backend & data layer1,000+ learnersPentest bot (Automated Web Pentest Bot), Backend & data layerrecon → report
Attacker’s note: Per-project isolation, enforced at every layer.Attacker’s note: Deterministic, read-only, zero AI by design.Attacker’s note: Findings without an input-to-impact chain are rejected.Attacker’s note: 3,500+ exposed credentials surfaced, then gated.Attacker’s note: Every claim carries a confidence label.Attacker’s note: Audit log keeps field names, never values.Attacker’s note: Negative results kept: 115 of 308 writers got worse.Attacker’s note: Every leak proven by a canary the target can’t fake.Attacker’s note: No access until an admin approves; every look-up logged.Attacker’s note: Every edge traced to an exact source line.Attacker’s note: Single-click rollback for the whole train.Attacker’s note: Keeps serving through network-tunnel failures.Attacker’s note: Read-only: it never modifies infrastructure.Attacker’s note: Prompt injection → explainable allow / flag / block.Attacker’s note: Sensitive data masked by role, with auditability.Attacker’s note: An isolated Kali environment per learner.Attacker’s note: Recon, scanning and reporting as one workflow.
Problem
Investigators at law-enforcement agencies need to start from a phone number or an email and find what’s out there about a person. A tool like that is only acceptable if access is tightly controlled and every use can be audited.
Decisions
- Agencies as tenants
- Each agency is onboarded as its own account with its own admins, and the 27 look-up types are priced and switched on per agency.
- No access without approval
- Investigators sign up under their agency, verify their email, and can’t sign in until an admin approves them.
- Every look-up accounted for
- Each look-up is token-authenticated, charged against both the investigator’s and the agency’s credit pool, and logged with what was asked and what came back.
- Payments that can’t double-count
- Credit top-ups carry idempotency keys, so a retried payment is never counted twice.
Architecture
Build view: components and how data flows. Hover a part to trace it.
Press B to flip between build and break.
WhoInvestigatorsigns up under an agency
WhoAgency adminapproves accounts
GateVerified + approvedtoken auth
GateCredit poolsinvestigator + agency
Look-up27 look-up typesphone, email, ID
RecordAudit logquery + response
Read this diagram as text
Flow in CyberShastra
- Investigator → Verified + approved
- Agency admin → Verified + approved (approval)
- Verified + approved → Credit pools
- Credit pools → 27 look-up types (metered)
- 27 look-up types → Audit log
Security reading
- Boundary, no look-up without approval, credits and a log entry: Verified + approved, Credit pools, 27 look-up types, Audit log
Implementation
- Django REST Framework and Python on AWS Elastic Beanstalk, with Razorpay for credit top-ups.
Connections
Skills: Django / DRF, OSINT, Python.