Inspiration

Modern social-engineering attacks are fragmented by design. A threat actor might initiate an attack via SMS, direct the victim to a credential-harvesting page, follow up with a spoofed corporate email, and send an OTP lure via voice call. Existing tools like VirusTotal analyze each artifact in complete isolation—they can't answer if these separate messages are part of the same coordinated threat campaign. We built PhantomTrace to connect these disparate pieces of evidence into unified forensic dossiers and reconstruct cross-case infrastructure relationships.

What it does

PhantomTrace is an AI-assisted digital threat investigation platform that shifts the focus from individual URLs to entire attack campaigns.

  • Multi-Channel Ingestion: Securely processes SMS alerts, emails with headers, PDFs, and images.
  • Deterministic Extraction: Uses strict RFC-compliant regex to extract URLs, domains, IPs, and crypto addresses before any AI is involved.
  • Six-Agent AI Pipeline: Orchestrates 6 specialized AI agents (powered by Groq LLaMA-3.3-70B) to analyze text, URLs, emails, and files for psychological manipulation and brand spoofing.
  • Campaign Reconstruction: Automatically identifies shared C2 domains and IP infrastructure across independent cases to uncover coordinated attacks, visualized in an interactive relationship graph.

How we built it

We architected PhantomTrace with a decoupled, high-performance stack:

  • Backend: Java 21 and Spring Boot 3.4.2, handling orchestration, JWT authentication, and a transparent Heuristic Risk Assessment Engine.
  • Database: PostgreSQL 16 (managed via Flyway migrations) for strict multi-tenant data isolation.
  • Frontend: React 18, Vite 6, and Tailwind CSS, utilizing @xyflow/react to render our interactive Evidence Relationship Graph.
  • Integrations: Groq API for lightning-fast LLM inference, combined with live VirusTotal v3 and Abuse.ch URLhaus feeds for verifiable threat intelligence.

Challenges we ran into

Our biggest challenge was maintaining strict forensic integrity. We had to ensure that generative AI hallucinations didn't contaminate hard factual evidence. To solve this, we developed the Epistemic Truth Standard, which explicitly categorizes every finding into tripartite labels: VERIFIED (deterministic regex/crypto hashes), AI_INFERENCE (analytical hypotheses from Groq), and UNKNOWN (unresolvable lookups). We also had to engineer a robust generic domain filter to prevent common platforms (like google.com or bit.ly) from creating false-positive campaign links between isolated cases.

Accomplishments that we're proud of

  • Cross-Investigation Campaign Reconstruction: Building the engine that seamlessly links shared domains and IPs across isolated cases without compromising tenant data boundaries.
  • Transparent Risk Scoring: Rejecting opaque "black box" risk scores in favor of a transparent, weighted heuristic matrix (e.g., Verified Threat +40, OTP Theft +25) so analysts know exactly why an artifact is flagged.
  • Testing Rigor: Achieving a 100% pass rate across 200+ tests, including Property-Based Testing (PBT) with 4,000+ randomized inputs to verify mathematical clamping and RFC compliance.

What we learned

We learned how to effectively orchestrate multi-agent LLM workflows (coordinating six specialized agents concurrently) while gracefully handling external API rate limits. We also deepened our experience with React Flow (constructing complex hierarchical DAG layouts) and advanced Spring Boot security patterns for multi-tenant isolation.

What's next for Phantom-Trace

We plan to expand our deterministic extraction pipeline to support full IPv6 indicators, integrate additional external threat feeds (like Shodan or AlienVault OTX), and introduce real-time collaborative workspaces so multiple security analysts can work on a single forensic dossier simultaneously.

Built With

Share this project:

Updates

Submission history