arXiv:2610.05788cs.SEOct 2026

Manuscript Offprint

arXiv:2610.05788

Finite State Machine-Based Traffic Orchestration for Multi-Engine Analysis Platforms

Ankit Kumar, Thirumoorthi Thangamani

Abstract

Modern application-security platforms route live traffic from a single proxy into several independent analysis engines — behavioral anomaly detection, authentication analysis, resource discovery, access-control inspection, among others. Each engine's appetite for traffic changes on its own schedule, yet the proxy can honor only one forwarding instruction per resource. We present a traffic-orchestration method that models the combined needs of all engines as a single composite finite state machine (FSM) whose state space is the Cartesian product of per-engine states. Every reachable composite state pre-maps to one forwarding configuration, so runtime reduces to a lookup rather than a negotiation. We add two refinements: time-based expiry treated as a first-class FSM transition enabling declarative traffic decay, and per-state multi-tier outputs that let one machine serve every service level. The design is fully declarative, engine-agnostic, and scales to N engines without re-architecture.

1 Introduction

Contemporary security platforms rarely rely on a single detector [5, 10]. Instead they run a portfolio of specialized analysis engines behind a common ingress proxy or gateway. A behavioral engine learns per-endpoint baselines and flags deviations [4]; an authentication engine reasons about credentials and session anomalies; a discovery engine catalogs newly observed APIs; an access-control engine checks authorization semantics such as broken object-level authorization (BOLA) [9]. These are representative, including but not limited to the engine types named here — a deployment may host additional engines, and the method below is agnostic to how many there are. Each engine is an independent consumer of the same underlying request stream.

The difficulty is that these engines do not want the same traffic, and they do not want it at the same time. Traffic demand is a per-engine, per-resource, and time-varying quantity. A behavioral engine that has just flagged an endpoint as suspicious wants every request for a while; the authentication engine may have already concluded its analysis and want nothing; the discovery engine wants a brief burst to seed its catalog and then falls silent. The proxy, however, is a single control point: for any given resource it can forward, sample, or drop [6, 11, 7] — but it must commit to one policy.

This paper addresses the coordination problem that sits between “many engines with divergent, drifting demands” and “one proxy that needs a single, coherent answer per resource.” Rather than letting engines negotiate at runtime — which produces race conditions, duplicated taps, and incoherent policy — we lift the entire coordination problem into a declarative composite finite state machine that is evaluated once per event and produces exactly one forwarding directive.