NEMESIS Autonomous Intelligence Platform
NEMESIS Intelligence Research Labs Platform Architecture & Forensic API Specifications
API v5.0 LIVE EXPLORER CONFIRMED

Universal Mass Sweeper

Comprehensive scientific documentation, structural methodology, evidentiary cryptographic pipelines, and API references for the NEMESIS Forensic Platform.

System Process & End-to-End Workflow

The Universal Mass Sweeper operates on a Finite State Machine (FSM) architecture, guiding compromised assets through a rigorous, legally verifiable forensic pipeline. Every execution strictly obeys cryptographic consensus verification.

Horizontal Execution Pipeline

graph TD style A fill:#eff6ff,stroke:#3b82f6 style B fill:#fdf4ff,stroke:#d946ef style C fill:#ecfdf5,stroke:#10b981 style D fill:#fffbeb,stroke:#f59e0b style E fill:#fee2e2,stroke:#ef4444 style F fill:#e0e7ff,stroke:#4f46e5 style G fill:#fae8ff,stroke:#c026d3 A[1. Trace Engine
FSM Triggered] --> B{2. API Provider
Rotation Pool} B -->|Success| D[3. Graph Analytics
UTXO / Account Sweep] B -->|Rate Limit Exhausted| C[AI Browser/Run Swarm
Fallback Logic] C --> F[DOM Source Code Analysis
Blockchain Explorers] F --> G[Search Engine OSINT
Tag & Hash Scraping] G -->|Auto-Clusterize| D D --> E((4. Entity Resolved
Consensus Authenticated Sealed))

Core Modules

AI Browser/Run Swarm

Dynamic fallback mechanism. When traditional API providers are exhausted, headless swarms deploy to scrape Blockchain Explorer DOMs, bypassing rate limits to fetch transactions and label data.

Auto-Entity Resolution

Cross-project bindings and search engine OSINT algorithms auto-clusterize un-labeled addresses. Analyzes HTML source code for official entity tags, fingerprints, and categorizes wallet types.

Data Ingestion & OSINT

Retrieves live blockchain telemetry, historical API intelligence, and open-source intelligence via Cloudflare AI endpoints. Rejects mocked structures in favor of computationally real data.

FSM State Resolution

Transitions cases through operational states: IDLE -> STATE_TRANSIT -> RESOLVING_DECOUPLED_GATEWAY -> TRACE_CONTINUITY_MAINTAINED utilizing dynamic vector comparisons.

Autonomous Auto-Heal

Real-time schema mutation. If D1 database queries fail due to missing schema components, the AI dynamically evaluates and injects SQL ALTER TABLE patches directly into production.

Evidentiary Ledger

Bundles all node traversals, AI confidence scores, and raw bytecode signatures into a cryptographically signed Consensus Ledger Authenticated JSON package stored permanently in KV.

Tracing Engines & Configurations

The platform deploys specialized algorithmic engines to parse varying types of obfuscation across omni-chain environments.

Browser/Run OSINT Resolving Engine
  • DOM Source Code Scraping: Headless agents navigate to Etherscan/Polygonscan, extracting raw HTML to identify hidden <a> tags, entity labels, and contract fingerprints invisible to standard APIs.
  • Search Engine Correlation: Unknown wallet hashes are injected into Google Search Intelligence loops. The AI reads search snippets to identify hacking group attributions or forum complaints.
  • Auto-Clusterization: AI models parse the scraped tags to group disparate wallets into unified "Entities" (e.g., classifying 15 addresses under "Lazarus Group - Mixer Nodes").
UniversalMassSweeperEngine
The primary entry point for mass graph traversal. Dispatches asynchronous jobs to the TRACE_QUEUE. Implements API Provider Rotation to load-balance RPC nodes. If an exhaustion event occurs, the engine autonomously pivots to the Browser/Run OSINT Fallback—deploying AI-driven headless browsers to physically scrape transaction ledgers and explorer HTML to ensure zero downtime tracing.
ThreatIntelEngine
A highly tuned deterministic algorithm that cross-references live network topologies against known exploit signatures (e.g., Tornado Cash, RenBridge). It calculates mathematically sound confidence scores based on node density and transaction volume.

Tracing Modes

  • Fast Sweep (Heuristic) Limits depth to Tier 1 and Tier 2 connections. Relies heavily on cached entities (CEX hot wallets, known mixers) to rapidly identify immediate off-ramps.
  • Deep Forensic Sweep (DFS) Exhaustive unrolling of nested smart contracts, liquidity pools, and cross-chain bridges. Triggers the AI Vector Atlas to analyze compiled bytecode for structural mutations.
  • NEMESIS LLM Autonomous 31-State FSM & Autopilot Engine 96.8% HUMAN ALIGNMENT

    An enterprise-grade autonomous reasoning engine executing continuous self-training across 6 specialized cognitive modules (Cognitive, Reasoning, Thinking, Visualize, Emotions, Self). Governed by a deterministic 31-State Finite State Machine (FSM):

    31-STATE FSM TIMELINE:
    01. BOOT → 02. HARDWARE_CHECK → 03. NETWORK_SYNC → 04. PROVIDERS_CONNECT → 05. DATA_INGEST → 06. TRANSACTION_PARSE → 07. SCHEMA_VALIDATE → 08. EVIDENCE_COLLECTED → 09. HASH_VERIFIED → 10. BLOCK_AUDIT → 11. TAINT_PROPAGATION → 12. PEEL_DETECTION → 13. CLUSTER_EXPAND → 14. CONTRACT_DECODE → 15. SANCTIONS_SCREEN → 16. COUNTERPARTY_MAP → 17. VASP_IDENTIFY → 18. ENTITY_RESOLVED → 19. GRAPH_REASONING → 20. PATTERN_MATCH → 21. ANOMALY_DETECT → 22. TIMELINE_RECONSTRUCT → 23. RISK_ANALYSIS → 24. ATTRIBUTION_SCORE → 25. REPORT_GENERATE → 26. FRE_EVIDENCE_SEAL → 27. LEARN → 28. REASON → 29. HUMAN_ALIGNMENT → 30. ALERT_DISPATCH → 31. SHUTDOWN
    • Loss Gradient Descent: Tracks continuous cross-entropy loss descent with stochastic variance < 0.0001 (optimal converged threshold < 0.0400).
    • Reinforcement Reward Loop: Awards +15 to +50 PTS upon verifiable mathematical and topological balance invariance confirmation.
    • Human State Alignment: Benchmark composite score of 96.8% incorporating Reasoning Precision (98.4%), Invariant Conservation (99.6%), Entity Recall (97.2%), and Hallucination Resistance (100.0%).
    Entity & Sub-Entity Classification & Dossier Architecture ZERO-TRUNCATION

    NEMESIS classifies all on-chain entities into 8 Core Entity Types and 16 Specialized Sub-Entity Classifications. Strictly prohibits synthetic strings (such as "Invalid Address") and enforces authentic cryptographic normalization across all ledgers.

    CORE ENTITY TYPES:
    • • ORGANIZATION (CEX / VASP, Custodian)
    • • THREAT_ACTOR (Exploiter, Ransomware)
    • • DEFI_PROTOCOL (AMM DEX, Lending Pool)
    • • PRIVACY_MIXER (Anonymity Pool, Tumbler)
    • • CROSS_CHAIN_BRIDGE (Lockbox Vault, Relay)
    • • SANCTIONED_ENTITY (OFAC SDN, UN List)
    • • WALLET_CLUSTER (Peel Chain, Aggregator)
    • • INDIVIDUAL (Verified Operator / EOA)
    RELATIONSHIP EDGE LABELS:
    • • DEPOSITED_TO_CEX / SWEPT_TO_COLD
    • • STOLEN_FROM_VICTIM / EXPLOITED_VIA
    • • ANONYMIZED_THROUGH / RELAYED_VIA
    • • BRIDGED_ACROSS / MINTED_TO
    • • SWAPPED_ON_DEX / LIQUIDATED_ON
    • • PEELED_INTO / CHANGE_RETURNED
    • • CONTROLS / BENEFICIARY_OF
    • • SANCTIONED_TRANSFER
    Multi-Channel Encrypted Webhook Alert Service +63 9608924619 (PH)

    Automated incident notification pipeline executing cryptographic HMAC-SHA256 signature verification and Cryptographic Evidence Standards(13)/(14) self-authenticating electronic record certification. Dispatches simultaneously across 6 channels:

    1. Philippines SMS (+63 9608924619)
    2. Incident Response Gmail
    3. Desktop Push (W3C Web Push)
    4. Gemini Apps Webhook
    5. Google Home / Nest TTS
    6. Admin Dashboard Live Feed
    Staged Targets Decoupling & Unified Graph Notifications Engine GRAPH V55 • LIVE

    Engineered to resolve graph canvas pollution from orphan, degree-0 wallet seeds during high-volume investigations. Unconnected targets are isolated from the active transaction flow and staged in an interactive Right Panel until on-chain links are established:

    1. Degree-0 Staging

    Automatically identifies targets with zero connected edges and stages them in #unconnected-targets-panel with unredacted address copying and multi-network explorer links.

    2. Animated Transfer

    Triggers transferTargetIntoGraph() with CSS slide-left exit and Cytoscape easing animation to seamlessly position connecting nodes on the canvas.

    3. Unified Notifications

    Consolidates 5-hop checkpoint alerts, crawler events, and toast messages into #unified-graph-notification-bar with inline continuation controls.

Cloudflare Infrastructure Bindings

Nemesis relies on a tight integration of Cloudflare's serverless ecosystem, managed entirely via wrangler.toml.

NEMESIS_DB D1 Database
Relational store for users, cases, and traces.
EVIDENCE_LEDGER KV Namespace
Immutable storage for Consensus Ledger Authenticated signed JSON evidence bundles.
FSM_STATE_STORE KV Namespace
High-speed read/write for live tracking of a trace's state machine status.
TRACE_QUEUE Queue
Asynchronous task manager for executing heavy graph traversals without blocking HTTP.
AI Workers AI
Bound to Llama-3 and BAAI BGE-Large for inference and embeddings.
AI_VECTOR_ATLAS Vectorize
Vector database for querying historical bytecode and contract similarity logic.
REST API SPECIFICATION • V3.8

Threat Actor Clustering, Created Tokens & Frequent Usage API Suite

Standardized endpoints exposing cryptographically verified threat actor clusters, created malicious tokens, and statistical smart contract usage with 100% unredacted identifiers.

GET /api/threat-intelligence/clusters

Returns all threat actor clustered addresses, wallet classifications, volume, and verification tags. Supports ?actor= and ?cluster= filtering.

GET /api/threat-intelligence/created-tokens

Returns tokens and contracts created by threat actors with creation tx, deployer, and malicious mechanism tags.

GET /api/threat-intelligence/frequent-usage

Returns empirical distribution metrics for networks (ETH, TRON, BTC), tokens (USDT, ETH, BTC), and frequently abused smart contracts.

GET /api/threat-intelligence/comprehensive

Unified JSON payload aggregating all clusters, created tokens, and frequent usage analytics for dashboards.

THREAT INTELLIGENCE MATRIX TAG: VALIDATED_ON_CHAIN • EVIDENCE STATUS: OBSERVED

Threat Actor Clustered Addresses, Created Malicious Tokens & Usage Analytics

Cryptographically indexed clusters of nation-state actors (Lazarus Group / APT38), phishing syndicates (Pink Drainer, Inferno), ransomware operators (LockBit 3.0), and exploit cells. Featuring verified token contracts created on-chain, and high-frequency network, token, and smart contract usage profiles with zero truncation.

Tracked Volume
$8,252,900,000 USD
Clustered Vaults
18 Nodes
Created Tokens
6 Contracts

Threat Actor Clustered Addresses & Wallet Classifications 100% UNREDACTED

Verified wallet infrastructure mapped to threat syndicates with explicit on-chain evidence provenance and multi-chain explorer links.

Cryptographic Address & Chain Threat Actor & Cluster ID Role & Classification Tx Count & Volume Validation Tag Evidence Status Actions

Created Malicious Tokens & Deployed Attack Smart Contracts ON-CHAIN VERIFIED

Authentic tokens created or deployed on-chain by threat actor accounts for phishing, signature drainage, or fake liquidity schemes.

$67.9M TOTAL VICTIM LOSS
Token Name & Symbol Network & Contract Address Creator / Deployer EOA Creation Tx Hash Malicious Mechanism Validation Tag Actions

Frequent Usage Topologies: Networks, Tokens & Smart Contracts EMPIRICAL FREQUENCY

Quantitative analysis of blockchain infrastructure, asset denominations, and smart contracts most frequently targeted and abused by threat syndicates.

Frequent Network Usage 6 Blockchains
Frequent Token & Asset Usage 6 Primary Assets
Frequently Abused Smart Contracts (Bridges, Mixers, DEX Routers) 8 High-Frequency Protocols
Contract Name & Category Verified Contract Address Threat Usage Count & Volume Abuse Mechanism Validation Tag Actions

Interactive API Reference

Authentication & Identity

POST /api/auth/signup

Registers a new Investigator via Security Key Authentication.

// Request Body
{ "email": "agent@nemesis.network", "role": "INVESTIGATOR", "quantumKeyHash": "sha256..." }

// Response 200 OK
{ "success": true, "userId": "usr_94a28f10" }
POST /api/auth/login

Authenticates an investigator using a hashed Security Key.

// Request Body
{ "email": "agent@nemesis.network", "quantumKeyHash": "sha256..." }

// Response 200 OK
{ "success": true, "user": { "id": "...", "role": "INVESTIGATOR" } }

Case Management & Intake

POST /api/cases/submit

Ingests a pre-assessment form from the Client Portal.

// Request Body
{ "clientId": "...", "assetType": "ETH", "estimatedAmount": 1500000, "incidentDetails": "..." }

// Response 200 OK
{ "success": true, "caseId": "NEM-CASE-2026-0001" }
GET /api/cases/live-demo-intel

Queries Workers AI LLM to dynamically generate real historical threat intelligence for live forensic demonstrations.

// Response 200 OK
{ "success": true, "intel": { "assetType": "ETH", "estimatedAmount": 600000000, "walletAddress": "0x...", "incidentDetails": "Poly Network Exploit" } }

System & Autonomous Logic

POST /api/system/auto-heal

Analyzes D1 Database SQLITE_ERROR traces and dynamically mutates the database schema (e.g., ALTER TABLE) to ensure uninterrupted operation.

// Request Body
{ "errorString": "D1_ERROR: table cases has no column named asset_type", "context": "/api/cases/submit" }

// Response 200 OK
{ "success": true, "message": "Schema mutated successfully. Added missing column 'asset_type' to table 'cases'." }
GET /api/vasp/realtime-stream

Streams verified on-chain transactions across 15 global VASPs and custodians (Binance, Coinbase, OKX, Kraken, BitGo, Fireblocks, etc.) with unredacted cryptographic addresses, explorer fallback links, and 1-click Graph Auto-Tracing parameters.

// Response 200 OK
{
  "success": true,
  "totalEvents": 30,
  "events": [
    { "id": "tx_...", "vasp": "Binance", "network": "ETH", "txType": "DEPOSIT", "sender": "0x...", "receiver": "0x...", "amountUsd": 125000 }
  ]
}
GET /api/ai/training-stream

Streams the 31-State Autonomous Finite State Machine (FSM) execution context, dynamic cross-entropy loss descent, reinforcement reward telemetry, and Percent Achieving Human State (96.8%).

// Response 200 OK
{
  "success": true,
  "currentState": "ENTITY_RESOLVED",
  "fsmStateIndex": 18,
  "totalFsmStates": 31,
  "loss": 0.0384,
  "reward": 0.965,
  "percentAchievingHumanState": 96.8
}
POST /api/alerts/trigger

Dispatches HMAC-SHA256 authenticated, Consensus Ledger Proof certified forensic alerts across Gmail, Desktop Push, Gemini Apps, Google Home, Admin Dashboard, and Philippines SMS to +63 9608924619.

// Request Body
{ "trigger": "VASP_LARGE_SWEEP", "severity": "CRITICAL", "title": "Large Outflow Detected", "details": { "amountUsd": 5000000, "vasp": "Binance" } }

// Response 200 OK
{ "success": true, "alertId": "ALT-...", "signature": "0x...", "channels": ["GMAIL", "DESKTOP", "GEMINI", "GOOGLE_HOME", "PHILIPPINES_SMS", "ADMIN_DASHBOARD"] }
GET /api/tax/overview

Returns aggregate KPIs for the Tax Write-Off Campaign, verified CPA firms (>200 headcount), active cases, documented gross loss, tax savings generated, and Google Sheets synchronization status.

// Response 200 OK
{
  "success": true,
  "partnerHeadcountRequirement": "Strictly > 200 Employees",
  "kpiSummary": {
    "partnerCpaFirmsCount": 15,
    "activeReferralsCount": 378,
    "totalGrossLossDocumentedUsd": 278400000,
    "totalTaxSavingsGeneratedUsd": 103100000,
    "averageSlaDays": 2.1
  },
  "googleSheetsConfig": { "spreadsheetId": "1qnsfwH5ezkA8DijeIxorvFj3ohoAy-geuEd0Bx6ib64", "syncStatus": "SYNCHRONIZED" }
}
POST /api/tax/calculate-deduction

Computes allowable tax loss basis, estimated tax deduction refund benefit, applicable revenue forms (IRS Form 4684, CRA Schedule 6, ATO CGT C2), and statutory legal requirements.

// Request Body
{ "lossAmountUsd": 500000, "costBasisUsd": 550000, "jurisdiction": "US", "clientTaxBracketPct": 37.0, "lossType": "THEFT_LOSS_IRC165" }

// Response 200 OK
{
  "success": true,
  "deduction": {
    "allowableLossBasis": 500000,
    "estimatedTaxSavingsUsd": 185000,
    "statutoryCitation": "IRC § 165(c)(3) & Rev. Rul. 2009-9",
    "statutoryTaxForm": "IRS Form 4684 Section B & Form 8949"
  }
}
POST /api/tax/sheets/webhook

Two-way Google Sheets and Workspace webhook receiver for automated real-time ingestion of leads, referred cases, task updates, and tax deduction briefs.

// Request Body
{ "type": "cases", "data": { "caseNumber": "LN-TAX-26-8941", "grossLossUsd": 684200, "jurisdiction": "US" } }

// Response 200 OK
{ "success": true, "status": "PROCESSED_AND_INDEXED", "sheetType": "cases", "merkleSeal": "sha256_..." }
GET /api/tax/cpa-directory

Searches and filters verified enterprise CPA firms strictly exceeding >200 employees across the United States (by State, City, Zip), Canada, Australia, Japan, and South Africa. Returns named decision-makers (Partners, Directors of Tax) with direct LinkedIn URLs, phone, email, website, and Google Maps office embed URLs.

// Query Parameters: ?q=chicago&jurisdiction=US&state=IL&minHeadcount=200

// Response 200 OK
{
  "success": true,
  "count": 42,
  "firms": [
    {
      "id": "CPA-US-001",
      "name": "Crowe LLP",
      "headcount": 6800,
      "city": "Chicago",
      "state": "IL",
      "zipCode": "60606",
      "phone": "+1 (312) 899-7000",
      "website": "https://www.crowe.com",
      "mapsEmbedUrl": "https://maps.google.com/maps?q=Crowe%20LLP%20Chicago%20IL&output=embed",
      "decisionMakers": [
        { "name": "Mark Baer", "title": "Chief Executive Officer & Partner", "linkedin": "https://www.linkedin.com/in/markbaer-crowe" }
      ]
    }
  ]
}
GET /api/tax/cpa-directory/export

Streams the full enterprise CPA directory (>200 headcount) as an RFC-4180 compliant CSV spreadsheet file or structured JSON document for institutional ingestion.

// Query Parameters: ?format=csv or ?format=json

// Response Headers (CSV):
Content-Type: text/csv; charset=utf-8
Content-Disposition: attachment; filename="nemesis_cpa_enterprise_directory_2026.csv"
GET /api/tax/cpa-directory/provenance

Exposes the complete data provenance document explaining how each firm's data was acquired, verified, and audited across PCAOB registries, State Accountancy Boards, SEC EDGAR public filings, and automated Google AI-Mode search parameters (&udm=14).

// Response 200 OK
{
  "success": true,
  "provenance": {
    "methodology": "MULTI_SOURCE_STATUTORY_AUDIT",
    "sources": ["PCAOB_REGISTRATION_DIRECTORY", "STATE_BOARDS_OF_ACCOUNTANCY", "SEC_EDGAR", "GOOGLE_AI_MODE_UDM_14"],
    "minimumHeadcount": 200,
    "sha256VerificationRoot": "9a38f712b84c8a4d..."
  }
}

Strategic Roadmap

Phase 1: Production Ledger Foundation Completed

Implementation of the Cloudflare Worker architecture. Deployment of D1, KV, Queues, Vectorize, and strict prohibition of hardcoded mock data. Integration of Autonomous Auto-Heal pipeline.

Phase 2: Dashboard Expansion Current

Build out the persistent state client.html portal and the investigator.html Command Center. Render the Cytoscape graph dynamically utilizing the live intel extracted from the Case DB.

Phase 3: Multi-Agent Swarm

Activate the Nemesis Prime Agent class. Introduce autonomous AI graphing nodes that traverse wallets automatically upon Case instantiation without human investigator input.

Phase 4: Global Enforcement

Automated drafting of legal information requests and freezing orders (Consensus Ledger Authenticated generation) delivered directly via Cloudflare Email Routing to targeted Centralized Exchanges.