# BACGUARD: Fact-Grounded Runtime Mitigation of Broken Access Control

DevFeed: [BACGUARD: Fact-Grounded Runtime Mitigation of Broken Access Control](<https://devfeed.tech/articles/bacguard-fact-grounded-runtime-mitigation-of-broken-access-control-126920.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.10157>)

Author: Moses Ndebugre

Published: 2026-11-10T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>)

Topics: [Access Control](<https://devfeed.tech/topics/access-control.md>), [Authorization](<https://devfeed.tech/topics/authorization.md>), [AI Integration Strategies](<https://devfeed.tech/topics/ai-integration-strategies.md>)

Tags: [access-control](<https://devfeed.tech/tags/access-control.md>), [attacks](<https://devfeed.tech/tags/attacks.md>), [authorization](<https://devfeed.tech/tags/authorization.md>), [broken-access-control](<https://devfeed.tech/tags/broken-access-control.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [data-leakage](<https://devfeed.tech/tags/data-leakage.md>), [database](<https://devfeed.tech/tags/database.md>), [fallback](<https://devfeed.tech/tags/fallback.md>), [false-positive-rate](<https://devfeed.tech/tags/false-positive-rate.md>), [firewalls](<https://devfeed.tech/tags/firewalls.md>), [hybrid](<https://devfeed.tech/tags/hybrid.md>), [language-model](<https://devfeed.tech/tags/language-model.md>), [mitigation](<https://devfeed.tech/tags/mitigation.md>), [owasp](<https://devfeed.tech/tags/owasp.md>), [ownership](<https://devfeed.tech/tags/ownership.md>), [permissions](<https://devfeed.tech/tags/permissions.md>), [proxy](<https://devfeed.tech/tags/proxy.md>), [real-time](<https://devfeed.tech/tags/real-time.md>), [reverse-proxy](<https://devfeed.tech/tags/reverse-proxy.md>), [runtime](<https://devfeed.tech/tags/runtime.md>), [unmodified](<https://devfeed.tech/tags/unmodified.md>)

## AI overview

BACGUARD is a reverse proxy that enforces access control for unmodified applications by reconstructing authorization facts from session data and relational database schemas. It uses database joins to make most decisions deterministically, with a language model as a fallback when violations appear only in response data, such as cross-user leakage. Across six evaluated applications, it reportedly blocked all tested attacks with a false-positive rate below 0.7%; the abstract says Web Application Firewalls were less effective and more disruptive.

## Source excerpt

arXiv:2611.10157v1 Announce Type: new Abstract: Broken Access Control (BAC) has been the foremost category in the OWASP Top Ten since 2021, primarily due to the challenges in enforcing authorization at the application layer. Traditional mechanisms depend on logic embedded in the application, referencing relational database information such as permissions, roles, or ownership. However, missing or incorrect checks can go undetected by external systems, leaving applications vulnerable. This paper presents BACGUARD, a reverse proxy designed to enforce authorization for unmodified applications. BACGUARD reconstructs authorization relations by leveraging authenticated user data from session stores and object ownership from relational schemas. It evaluates whether users are permitted to access resources and blocks unauthorized requests in real time. Unlike existing approaches, BACGUARD bases its authorization on database joins, making the system resilient to forgery. For most requests, decisions are made deterministically. In cases where access control violations are only apparent in response data, such as cross-user data leakage, a language model is used as a fallback. Evaluations on six applications, including those with known vulnerabilities, demonstrate that BACGUARD's hybrid deterministic and language model-based approach blocks all tested attacks with a false-positive rate below 0.7%. Competing solutions like Web Application Firewalls are less effective and more disruptive. The results highlight BACGUARD's primary contribution: the external reconstruction of authorization facts, enabling robust enforcement even when the application itself is flawed.