Near-Deterministic Reconstruction of Enterprise Firewall Decisions for Policy Audit: Proxy Structure, Context Shift, and Residual Uncertainty
This study demonstrates that enterprise firewall decisions can be near-deterministically reconstructed from traffic logs using supervised learning, revealing that high model accuracy often reflects the replication of specific policy proxies and context-dependent rules rather than independent threat detection, thereby enabling retrospective policy audits while highlighting significant limitations in cross-environment generalization and uncertainty calibration.
Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are trying to figure out why a bouncer at a super-strict club lets some people in and turns others away. You have a giant notebook filled with millions of entries, each recording exactly what the bouncer did: "Allowed," "Dropped," or "Denied." In the world of computer security, this notebook is called a "firewall log," and the bouncer is a firewall—a digital gatekeeper that protects a company's network from bad actors. Usually, security experts use these logs to hunt for hackers, looking for patterns that scream "danger!" But there's a tricky problem: sometimes the bouncer's decision isn't about whether a person is actually a criminal; it's just about whether they fit the club's specific dress code or membership list. If you train a computer to guess the bouncer's decisions, it might just learn the dress code perfectly, not because it's a genius detective, but because the clues in the notebook (like the person's shoe size or the time they arrived) give away the answer too easily. This paper asks a fascinating question: If we hide the obvious clues, can a computer still guess the bouncer's moves with near-perfect accuracy? And if it can, does that mean the computer is smart, or just that the clues were too easy to find?
This study dives into a massive notebook containing over one million records from a real corporate firewall, specifically a Palo Alto device. The researchers wanted to see if they could rebuild the "decision surface"—the invisible line the firewall draws to decide who gets in—using only the surrounding details, while hiding the direct reasons for the decision. They treated the firewall's choices (Allow, Drop, Deny) like a puzzle. They removed the most obvious pieces of the puzzle, like the specific application name or the rule number that triggered the action, to see if the remaining clues (like the size of the data packet or the port number) were enough to solve it.
The results are a bit like finding out the club's bouncer is actually following a very rigid, predictable script. The researchers discovered that even after removing the most obvious "shortcuts" (like the application name), powerful computer programs called "tree ensembles" (think of them as super-smart decision trees that ask a series of yes-or-no questions) could still guess the firewall's decision almost perfectly. In fact, two of these programs, XGBoost and LightGBM, got a perfect score, making zero mistakes on the test data. It turns out that the firewall's decision is so tightly linked to the other details in the log that you don't even need to know the rule to know the outcome. For example, they found that just knowing the "Source Port" (a specific number identifying the connection) and the "Bytes" (the size of the data) was enough to determine the decision in millions of cases.
However, the paper is very careful not to call this a "win" for hacking detection. The authors argue that this near-perfect score doesn't mean the computer has learned to spot real hackers. Instead, it means the computer has learned the firewall's internal "grammar." It's like a student who memorizes the answer key to a test rather than understanding the math. When the researchers tried to make the puzzle harder by removing even more clues—like the size of the data or the country of origin—the computer's perfect score dropped, but it was still surprisingly good. This suggests that the firewall's decisions are "redundantly encoded," meaning the same information is repeated in many different fields of the log.
The study also looked at what happens when the computer encounters a situation it hasn't seen before, like a new type of app or a different destination. Here, the magic spell breaks. The computer's confidence wavers, and it starts making mistakes, especially with the rare "Deny" decisions. The researchers used special tools to measure this uncertainty, showing that while the computer is a master at guessing the firewall's moves in familiar territory, it gets lost when the context shifts. They found that if you hide the "application" details, the computer can still guess 99.9% of the time, but if you hide the "volume" and "duration" of the traffic, the accuracy drops slightly, proving that those details were acting as hidden shortcuts.
Ultimately, this paper isn't about building a better hacker detector; it's about auditing the firewall itself. It shows that for this specific company and this specific time window (about 46 minutes of traffic), the firewall's decisions are almost entirely predictable from the surrounding data. The researchers found seven tiny combinations of just four fields that could predict the outcome perfectly. But they also warn that this is a "near-deterministic" reconstruction, meaning it works because the data is consistent, not because the computer understands security. If the firewall's rules change or the network environment shifts, this perfect prediction might vanish. The paper concludes that while we can rebuild the firewall's decision-making process with high accuracy, we must be careful not to mistake this reconstruction for a genuine ability to detect new, unknown threats. It's a powerful tool for checking if the firewall is behaving consistently, but it's not a crystal ball for the future.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.