Adam BlansettSenior Full-Stack & AI Engineer
Autonomous AI WorkforcePhase 3 Starter Scaffold (MIT)

AI Security Operations & SOC Analyst Platform

Self-hosted AI SOC analyst starter scaffold for alert and log correlation, false-positive filtering, threat and IOC enrichment, incident timeline reconstruction, and HITL containment playbooks.

Engineering RoleLead Systems & AI Architect

01. Problem & Context

Security operations teams face overwhelming SIEM and EDR alert fatigue, fragmented threat-intel lookups across IPs, domains, hashes, and CVEs, slow manual incident timeline reconstruction, and severe blast-radius risks from unreviewed automated containment actions.

02. Engineering Solution

Initialized the Phase 3 self-hosted starter scaffold pairing a FastAPI + Pydantic v2 backend (`/api/v1/health{,/live,/ready}`, pure ASGI security-header middleware, fail-fast production secret validation) with a React 18 Vite/Tailwind workspace, PostgreSQL (`pgvector`) + Redis Compose stack, and GitHub Actions CI. Establishes the verified runtime baseline for planned `correlation/`, `enrichment/`, `timeline/`, and `playbooks/` domain modules.

03. System Architecture

Verified starter runtime (`backend/app/main.py`, `core/config.py`, `core/middleware.py`, `api/v1/health.py`) paired with a React 18 TypeScript dashboard (`frontend/src/App.tsx`), Docker Compose (`postgres` pgvector, `redis`, `api`, `frontend`, `ollama` profile), and CI pipeline (`ruff`, `mypy`, `pytest`, `tsc`, `vitest`, `vite build`, `npm audit`, Trivy) ready for the four planned SOC modules in `docs/ARCHITECTURE.md`.

Core Architectural Components

Verified Starter API, Security Baseline & UI Shell (`/api/v1/health*`)

Shipped FastAPI application with versioned `/api/v1/health`, `/live`, and `/ready` probes, ASGI security-header injection (`X-Request-ID`, `nosniff`, `DENY`), fail-fast `validate_production_security()`, offline `mock`/Ollama/Gemini routing settings, and React 18 live health console.

Planned Domain Module: Alert & Log Correlation (`correlation/`)

Blueprint for multi-source SIEM, EDR, and cloud log normalization, entity-graph clustering into unified cases, and deterministic false-positive suppression with triage confidence rationale.

Planned Domain Module: Threat & IOC Enrichment (`enrichment/`)

Blueprint for automated IP, domain, file hash, and CVE extraction, threat-intel reputation caching, and MITRE ATT&CK technique mapping.

Planned Domain Modules: Incident Timeline & Playbooks (`timeline/`, `playbooks/`)

Blueprint for chronological incident event reconstruction backed by cited raw-log evidence and dry-run containment diffs gated behind mandatory SOC analyst approval.

04. Notable Engineering Decisions

Dry-Run Containment Diffs & Mandatory SOC Analyst Approval

Autonomous host isolation or account revocation can take down critical infrastructure on a false positive, so containment playbooks are designed around previewable dry-run diffs and explicit human sign-off.

Offline Deterministic Mock Mode & Local Ollama Inference

Raw security logs and IOC telemetry must remain under strict organizational control; local Ollama execution with `LLM_REDACT_PII_FOR_CLOUD=true` and deterministic `mock` tests prevent unintended telemetry leakage.

Hardened Non-Root Container & Fail-Fast Production Config

SOC tooling itself is a high-value target, so the starter enforces non-root containers, ASGI security headers, strict CORS validation, and `npm audit` + Trivy supply-chain scanning in CI.

05. Engineering Challenges & Solutions

Challenge: Establishing a security-hardened foundation for SOC automation alongside existing `ai-compliance-auditor` and `ai-it-admin` platforms.

Engineering Solution: Shipped a verified baseline with fail-fast secret guards, pure ASGI security headers, offline `pytest`/`vitest` test harnesses, and a clean module boundary separating correlation, enrichment, timeline stitching, and HITL playbooks.

Challenge: Avoiding noisy, unexplainable LLM triage verdicts during alert investigations.

Engineering Solution: Designed the planned `correlation/` and `timeline/` architecture to pair deterministic suppression rules with cited raw-log evidence snippets.

06. Implementation Highlights

  • Verified FastAPI starter with `/api/v1/health`, `/live`, and `/ready` probes plus fail-fast `APP_ENV=production` secret and CORS validation
  • Pure ASGI `SecurityHeadersMiddleware` injecting `X-Request-ID`, `X-Content-Type-Options: nosniff`, `X-Frame-Options: DENY`, and production HSTS
  • React 18 + TypeScript + Vite + Tailwind starter dashboard with live `/api/v1/health` status check and Vitest + Testing Library unit tests
  • PostgreSQL (`pgvector`) + Redis + optional Ollama Docker Compose stack with non-root API and unprivileged Nginx containers
  • Documented Phase 3 `docs/ARCHITECTURE.md` blueprint for `correlation/`, `enrichment/`, `timeline/`, and `playbooks/` modules behind GitHub Actions CI