Skip to content

About

Unified Security Intelligence Platform — a modular prototype for security monitoring, exposure analysis, threat detection, and incident correlation.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

YellowForce — Unified Security Intelligence Platform

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.


1. Project Overview & Problem Statement

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

YellowForce Security Overview Dashboard Security Overview (/) displaying synthetic posture metrics, connected integration health, correlated incident INC-2026-0841, and the UTC-normalized telemetry stream.


2. Core Capabilities

  • Security Overview (/): Aggregates the synthetic security posture score, integration health counts (4 / 7 healthy), 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/react topology 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 into INC-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.

3. Exposure Graph

YellowForce Exposure Graph 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 inherent CRITICAL/HIGH severity 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 key sk-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 key AKIA...LUMENPROD) $\rightarrow$ resource:res-aws-01 (unauthorized g5.4xlarge EC2 instance i-09f4e2c889d in eu-north-1).

4. Threat Detection Engine

YellowForce Threat Detection Engine 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 $\rightarrow$ Tor login $\rightarrow$ Discord secret exposure. (Does not claim to detect AI-written text from prose alone.) Inferred Relationship

5. Demonstration Walkthrough (Lumen Data Scenario)

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:

  1. Initial Compromise: Contractor Elena Vance (identity:id-13) grants OAuth consent to an unverified app (GDrive-Sync-Verify) from Bucharest (evt-gw-oauth-01).
  2. Session Takeover: Within 13.4 minutes, the session authenticates from a Tor exit node (185.220.101.45) in Amsterdam, triggering RULE-ID-COMPROMISE (ALT-ID-gw-auth-02).
  3. Credential Exposure: Two masked secrets (sk-proj-lum...9x8b and AKIA...LUMENPROD) are posted in Discord #eng-ops, triggering RULE-CRED-EXPOSURE (ALT-CRED-discord-msg-03) and RULE-AI-PHISH-PIPELINE (ALT-PIPE-AI-01).
  4. Independent Downstream Abuse:
    • Branch A: secret:sec-01 drives an 850,000 tokens/min OpenAI API spike (ALT-LLM-llm-usage-04).
    • Branch B: secret:sec-02 launches an unauthorized g5.4xlarge GPU instance in Stockholm (eu-north-1), triggering RULE-CLOUD-UNAUTH (ALT-CLOUD-aws-trail-05).
  5. Correlation: backend/app/engine/correlator.py unifies all 5 alerts into incident INC-2026-0841 without cross-linking Branch A and Branch B.

6. Architecture

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
Loading
  • Backend Entry Point: backend/app/main.py
  • Frontend Entry Point: frontend/app/layout.tsx, frontend/app/page.tsx

7. Technology Stack

  • 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 in backend/app/database.py and currently unused at runtime).
  • Frontend: Next.js 14.2.15 (App Router), React 18.3.1, TypeScript 5.6.3, Tailwind CSS 3.4.14, @xyflow/react 12.12.1, lucide-react 0.453.0.

8. Installation & Local Execution

Backend Setup

# 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 --reload

API interactive docs: http://127.0.0.1:8000/api/docs

Frontend Setup

cd frontend
npm install
npm run dev

Web interface: http://localhost:3000

Environment Variables

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)

9. Tests & Verification Commands

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.py

Run 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.)


10. Implementation Status

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 Architectural Placeholder Incident Management (/incidents) — architectural specification placeholder (Target: Milestone 4); backend correlation APIs are implemented while the interactive frontend UI is planned.


11. Limitations & Security Disclaimer

  • 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.py scaffolds 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.

12. License

This project is licensed under the MIT License — see the LICENSE file for details.

About

Unified Security Intelligence Platform — a modular prototype for security monitoring, exposure analysis, threat detection, and incident correlation.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages