YellowForce is an early-stage prototype of a unified security intelligence platform designed for small businesses and lean startups operating without dedicated security teams.
Prototype & Simulation Notice: YellowForce operates exclusively on synthetic demonstration data (the fictional Lumen Data tenant) in read-only simulation mode. Integrations are simulated, authentication/RBAC and database persistence are not implemented, autonomous remediation is disabled, and the platform is not validated for production deployment.
Small, remote-first organizations frequently rely on a fragmented mix of SaaS tools, chat platforms, cloud providers, GPU marketplaces, and shared LLM API accounts managed by a single founder or acting IT administrator. When a contractor account is compromised or a secret is leaked in chat, security signals are scattered across disconnected tools, making it difficult to trace how an initial phish cascades into cloud compute abuse or API quota exhaustion.
YellowForce demonstrates a unified approach that:
- Normalizes identity, integration, credential, and cloud asset metadata into one inventory.
- Models relationships in an interactive Exposure Graph with explicit evidence provenance.
- Evaluates synthetic telemetry using deterministic, explainable detection rules rather than probabilistic LLM decisions.
- Correlates related alerts into a single incident while preserving independent attack branches.
Security Overview (/) displaying synthetic posture metrics, connected integration health, correlated incident INC-2026-0841, and the UTC-normalized telemetry stream.
- Security Overview (
/): Aggregates the synthetic security posture score, integration health counts (4 / 7healthy), active incident summary, and recent synthetic telemetry feed. - Integration Connectors (
/integrations): Lists 7 simulated read-only connectors (Google Workspace, Discord, AWS, GCP, RunPod GPU Marketplace, Shared LLM Gateway, and LabelForge Internal App) with permission scope details and a simulated metadata sync action. - Asset & Identity Inventory (
/inventory): Searchable directory of 35 synthetic seats across 4 countries, 4 service accounts, 7 cloud resources, and 7 strictly masked secret identifiers. - Exposure Graph (
/exposure-graph): Interactive@xyflow/reacttopology graph connecting identities, channels, credentials, integrations, and cloud resources with attack-path highlighting and blast-radius analysis. - Threat Detection Engine (
/detections): Evaluates synthetic events against 5 deterministic rules, assigns severity, correlates alerts intoINC-2026-0841, and provides an alert inspection drawer. - Incident Management (
/incidents,/incidents/[id]) — Partially Implemented: Backend endpoints (/api/incidents,/api/incidents/{id},/api/detections/correlated-incident) return synthetic incident and correlation data, while the frontend routes currently render architectural specification placeholders.
Exposure Graph (/exposure-graph) showing 66 nodes, 106 edges, active attack-path tracing, and the evidence provenance legend.
The Exposure Graph engine (backend/app/engine/graph_analyzer.py) models how identities, credentials, channels, integrations, and cloud resources connect:
- Attack-Path Traversal: Traces multi-hop paths from compromised identities to downstream targets.
-
Blast Radius Calculation: Traverses directed outbound edges with cycle protection. For leaf assets with zero downstream pivots (such as rogue EC2 instance
resource:res-aws-01), the engine retains the node's inherentCRITICAL/HIGHseverity and surfaces upstream creation provenance (Inspect Upstream Source). -
Evidence Provenance:
- Observed in Simulation (solid edges): Explicitly present in synthetic event or asset-inventory data.
- Inferred Relationship (dashed edges): Derived by deterministic correlation or graph analysis.
- Externally Verified: Reserved for future live provider integrations; not assigned to current synthetic records.
-
Independent Incident Branches:
-
Branch A (
PATH-A-OPENAI-BURNDOWN):identity:id-13(Elena Vance)$\rightarrow$ channel:discord-eng-ops$\rightarrow$ secret:sec-01(OpenAI keysk-proj-lum...9x8b)$\rightarrow$ resource:res-openai-01(OpenAI API quota burn). -
Branch B (
PATH-B-AWS-STOCKHOLM-ROGUE-VM):identity:id-13(Elena Vance)$\rightarrow$ channel:discord-eng-ops$\rightarrow$ secret:sec-02(AWS IAM keyAKIA...LUMENPROD)$\rightarrow$ resource:res-aws-01(unauthorizedg5.4xlargeEC2 instancei-09f4e2c889dineu-north-1).
-
Branch A (
Threat Detection Engine (/detections) showing 5 active alerts, rule summary cards, branch filters, and multi-signal correlation into INC-2026-0841.
The detection pipeline (backend/app/engine/detector.py) normalizes synthetic events (NormalizedSecurityEvent) and evaluates five deterministic rules:
| Rule ID | Rule Name | Deterministic Trigger Condition | Provenance |
|---|---|---|---|
RULE-ID-COMPROMISE |
Compromised Identity & Session Anomaly | Authentication from a Tor exit relay (is_tor_exit) or impossible travel (> 800 km/h and > 500 km). |
Observed in Simulation |
RULE-CRED-EXPOSURE |
Plaintext Credential Disclosure in Channel | High-entropy masked secret patterns detected in contractor-accessible Discord channels. | Observed in Simulation |
RULE-LLM-ANOMALY |
Abnormal LLM API Consumption Surge | Token consumption velocity > 5x baseline or projected daily cost multiplier > 10x. |
Observed in Simulation |
RULE-CLOUD-UNAUTH |
Unauthorized Cloud Resource Instantiation | Compute launched outside approved regions (us-east-1, us-central1) or GPU instance via developer IAM key. |
Observed in Simulation |
RULE-AI-PHISH-PIPELINE |
AI-Assisted Attack Pipeline Indicators | Multi-stage sequence: unverified OAuth grant |
Inferred Relationship |
The synthetic Lumen Data scenario models a 35-person remote company across 4 countries (United States, Romania, India, Philippines) managed by acting IT founder Alex Rivera:
- Initial Compromise: Contractor
Elena Vance(identity:id-13) grants OAuth consent to an unverified app (GDrive-Sync-Verify) from Bucharest (evt-gw-oauth-01). - Session Takeover: Within 13.4 minutes, the session authenticates from a Tor exit node (
185.220.101.45) in Amsterdam, triggeringRULE-ID-COMPROMISE(ALT-ID-gw-auth-02). - Credential Exposure: Two masked secrets (
sk-proj-lum...9x8bandAKIA...LUMENPROD) are posted in Discord#eng-ops, triggeringRULE-CRED-EXPOSURE(ALT-CRED-discord-msg-03) andRULE-AI-PHISH-PIPELINE(ALT-PIPE-AI-01). - Independent Downstream Abuse:
- Branch A:
secret:sec-01drives an 850,000 tokens/min OpenAI API spike (ALT-LLM-llm-usage-04). - Branch B:
secret:sec-02launches an unauthorizedg5.4xlargeGPU instance in Stockholm (eu-north-1), triggeringRULE-CLOUD-UNAUTH(ALT-CLOUD-aws-trail-05).
- Branch A:
- Correlation:
backend/app/engine/correlator.pyunifies all 5 alerts into incidentINC-2026-0841without cross-linking Branch A and Branch B.
flowchart LR
subgraph Frontend["Next.js 14 Frontend (TypeScript)"]
UI["App Router Pages & Drawers"]
RF["React Flow Exposure Graph"]
Client["Typed API Client (lib/api.ts)"]
Fallback["Offline Fallback (lib/mockData.ts)"]
UI --> Client
RF --> Client
Client -.->|Fallback when offline| Fallback
end
subgraph Backend["FastAPI Backend (Python 3.14)"]
API["REST Routers (/api/*)"]
Graph["Graph Analyzer (graph_analyzer.py)"]
Detector["Deterministic Detector (detector.py)"]
Correlator["Incident Correlator (correlator.py)"]
Sim["In-Memory Synthetic Data (simulations/)"]
API --> Graph
API --> Detector
Detector --> Correlator
Graph --> Sim
Detector --> Sim
end
Client -->|HTTP JSON| API
- Backend Entry Point:
backend/app/main.py - Frontend Entry Point:
frontend/app/layout.tsx,frontend/app/page.tsx
- Backend: Python 3.14, FastAPI (
>=0.110.0), Uvicorn (>=0.28.0), Pydantic v2 (>=2.6.0),pydantic-settings(>=2.2.0), SQLAlchemy (>=2.0.28, scaffolded inbackend/app/database.pyand currently unused at runtime). - Frontend: Next.js
14.2.15(App Router), React18.3.1, TypeScript5.6.3, Tailwind CSS3.4.14,@xyflow/react12.12.1,lucide-react0.453.0.
# From the repository root
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r backend/requirements.txt
cd backend
python -m uvicorn app.main:app --host 127.0.0.1 --port 8000 --reloadAPI interactive docs: http://127.0.0.1:8000/api/docs
cd frontend
npm install
npm run devWeb interface: http://localhost:3000
Default local values work without a .env file. See .env.example for optional overrides:
NEXT_PUBLIC_API_URL(frontend, default:http://127.0.0.1:8000/api)ALLOWED_ORIGINS(backend, default:["http://localhost:3000","http://127.0.0.1:3000"])DATABASE_URL(backend, default:sqlite:///./yellowforce.db; unused at runtime)
Run backend verification suites from the repository root (with .venv active):
# Module 5: Deterministic Threat Detection Engine tests
python -u backend/test_detections.py
# Module 4: Exposure Graph tests
python -u backend/test_exposure_graph.py
# Direct endpoint & Pydantic schema validation across Modules 1–5
python -u backend/test_direct.py
# Live HTTP smoke test (starts Uvicorn on 127.0.0.1:8000 and probes 26 endpoints)
python -u backend/run_live_smoke.pyRun frontend TypeScript validation and production build:
cd frontend
npx tsc --noEmit
npm run build(Do not run npm run build concurrently with npm run dev, as both share frontend/.next.)
| Module | Route | Status | Notes |
|---|---|---|---|
| 1. Security Overview | / |
Implemented | Synthetic posture metrics, incident banner, UTC telemetry stream |
| 2. Integration Connectors | /integrations |
Implemented | 7 simulated read-only connectors, scope inspection, simulated sync |
| 3. Asset & Identity Inventory | /inventory |
Implemented | 35 identities, 4 service accounts, 7 cloud resources, 7 masked secrets |
| 4. Exposure Graph | /exposure-graph |
Implemented | Interactive React Flow topology, attack paths, blast radius, provenance |
| 5. Threat Detection Engine | /detections |
Implemented | 5 deterministic rules, correlation banner, alert inspection drawer |
| 6. Incident Management | /incidents |
Partially Implemented | Backend /api/incidents implemented; frontend renders ModuleShell placeholder |
| 7. Incident Timeline | /incidents/[id] |
Partially Implemented | Backend /api/incidents/{id} implemented; frontend renders ModuleShell placeholder |
| 8. AI Investigation Interface | /investigation |
Planned | Frontend ModuleShell placeholder; no backend router |
| 9. Guided Response Playbooks | /response |
Planned | Frontend ModuleShell placeholder; static recommendation data only |
| 10. Audit & Evidence | /audit |
Planned | Frontend ModuleShell placeholder; no backend router |
Incident Management (/incidents) — architectural specification placeholder (Target: Milestone 4); backend correlation APIs are implemented while the interactive frontend UI is planned.
- Prototype Only: Not hardened or validated for production, multi-tenant, or internet-facing deployment.
- Synthetic Data & Simulated Integrations: All Lumen Data identities, events, cloud resources, and connector syncs are simulated; no external provider APIs are called.
- No Authentication or RBAC: All FastAPI endpoints are unauthenticated and intended solely for local demonstration.
- No Database Persistence or Migrations:
backend/app/database.pyscaffolds SQLAlchemy, but no ORM models or migrations exist; runtime state is in-memory and resets on server restart. - No Autonomous Remediation: Read-only design; no automated write actions are performed on any system.
This project is licensed under the MIT License — see the LICENSE file for details.