< Back to Projects

API Threat Detection Platform

Node.js Kafka Redis REST APIs API Security Docker Prometheus Grafana

Overview

Built a reusable API security platform that combines low-latency synchronous gateway enforcement with asynchronous behavioral threat detection using Kafka and Redis.

The platform detects multi-request attack patterns such as credential stuffing, BOLA enumeration, and sensitive business-flow abuse, then feeds temporary risk signals back into the gateway for subsequent request enforcement.

Architecture

Internet → Gateway → Upstream Application

Gateway → Kafka → Analyzer Service → Redis → Gateway Enforcement

The gateway handles known enforcement decisions synchronously, while behavioral analysis is processed asynchronously through Kafka consumers. Detected threats are stored as temporary Redis TTL flags and evaluated on subsequent requests.

Key Implementations

Attack Scenarios

Risk Scoring

  • 0–29: LOW — Allow
  • 30–59: MEDIUM — Warn
  • 60–79: HIGH — Rate Limit (429)
  • 80–100: CRITICAL — Block (403)

Infrastructure

Security Considerations

Limitations