19–21 Nov 2026
"Alexandru Ioan Cuza" University of Iasi and "Gheorghe Asachi" Technical University of Iași
Europe/Bucharest timezone

Behavioural State Consistency in Horizontally Scaled Context-Aware Security Middleware

19 Nov 2026, 17:30
15m
Room 1

Room 1

Paper presentation Network Security Network Security

Speaker

Mr Flavius Stasac (Doctoral School of Engineering Sciences, Department of Computer Science and Information Technology, University of Oradea, 410087 Oradea, Romania)

Description

Context-aware security mechanisms adapt their response according to the risk associated with each request, relying not only on immediate request-level signals but also on behavioral evidence accumulated over time, such as recognized device fingerprints, repeated failed authentication attempts, and dynamically generated blocklists. While this form of accumulated state is often kept in process memory, such an architectural choice is reliable mainly in single-process deployments and becomes increasingly fragile when the same middleware is horizontally scaled behind a load balancer to support production-level traffic. This paper investigates the security and performance implications of that mismatch between local state management and distributed execution. We show that the risk assessment performed by context-aware security middleware can be understood as the interaction of two components with distinct scaling properties: stateless per-request scoring, which remains independent of previous observations and can scale with the number of worker processes, and stateful behavioral accumulation, which becomes fragmented across workers when no shared coordination mechanism is used. As a result, when an attacker's requests are distributed across w worker processes, each process observes only approximately one w-th of the overall attack sequence, allowing malicious behavior to remain below thresholds that would have been exceeded in a single-process configuration. To evaluate this effect, we analyze an adaptive encryption middleware in three deployment scenarios: a single-process baseline, a multi-worker cluster that maintains behavioral state locally, and a multi-worker cluster in which behavioral state is externalized to a shared data store. Across configurations ranging from one to eight worker processes, and under attack traffic patterns designed to exercise threshold-based detection, we measure detection degradation, sustained throughput, and the latency overhead introduced by coordinated state access. The results reveal a practical trade-off that is frequently overlooked in the design of context-aware security systems: stateless risk scoring may be scaled with limited architectural friction, whereas stateful behavioral evidence requires explicit coordination whose performance cost must be incorporated into deployment decisions. Building on these findings, the paper offers practical design guidance for deploying context-aware security middleware in load-balanced production environments while preserving the consistency and effectiveness of behavioral detection.

Keywords: context-aware security; horizontal scaling; distributed state; behavioral state consistency; adaptive encryption; web application security; security middleware

Authors

Prof. Cornelia Aurora Győrödi (Department of Computers and Information Technology, University of Oradea, 410087 Oradea, Romania) Mr Flavius Stasac (Doctoral School of Engineering Sciences, Department of Computer Science and Information Technology, University of Oradea, 410087 Oradea, Romania) Prof. Robert Ștefan Győrödi (epartment of Computers 
and Information Technology
University of Oradea Oradea, România)

Presentation materials

There are no materials yet.