← Latest papers
💻 computer science

CloudFix: Automated Policy Repair for Cloud Access Control Policies Using Large Language Models

This paper introduces CloudFix, the first framework that combines formal fault localization with Large Language Models and SMT solvers to automatically identify and repair errors in cloud access control policies, demonstrating improved accuracy over baselines on a curated dataset of real-world AWS policies.

Original authors: Bethel Hall, Owen Ungaro, William Eiers

Published 2026-02-02
📖 4 min read☕ Coffee break read

Original authors: Bethel Hall, Owen Ungaro, William Eiers

Original paper licensed under CC BY 4.0 (http://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 the security guard for a massive, high-tech office building (the Cloud). Your job is to manage a giant rulebook (the Access Control Policy) that decides who can enter which rooms and what they can do inside.

Sometimes, the rulebook gets written with mistakes. Maybe it accidentally lets a delivery driver into the CEO's office, or it locks the CEO out of their own desk. Fixing these mistakes manually is like trying to find a typo in a 1,000-page novel by reading every single word over and over again. It's slow, boring, and you might miss the error.

This paper introduces CloudFix, a new tool that acts like a "smart editor" for these security rulebooks. It combines two powerful tools to fix the rules automatically: a Logic Detective and a Creative Writer.

The Problem: The "Human Error" Loop

Currently, if a rulebook is broken, a human administrator has to:

  1. Try to open a door (send a request).
  2. See if the guard lets them in or stops them.
  3. If the result is wrong, the human has to guess which rule caused the mistake, rewrite the rule, and try again.
  4. Repeat this until it works.

This is tedious. If the rulebook is huge, humans often just make the rules too loose (like saying "Everyone can enter everywhere") just to make sure nothing gets blocked by accident. This is a security risk.

The Solution: CloudFix

CloudFix automates this repair process using a two-step team:

1. The Logic Detective (Formal Methods)

First, CloudFix uses a "Logic Detective." This isn't a human; it's a mathematical engine that acts like a super-precise calculator.

  • What it does: It takes the broken rulebook and a list of test scenarios (e.g., "The CEO should get in," "The delivery driver should stay out").
  • The Magic: It doesn't just guess. It mathematically proves exactly which specific sentence in the rulebook is causing the mistake. It points a finger and says, "This specific rule is letting the delivery driver in when they shouldn't be."
  • The Analogy: Imagine you have a broken machine. Instead of shaking the whole machine to see what happens, the Detective uses an X-ray to show you the exact loose screw.

2. The Creative Writer (Large Language Models)

Once the Detective finds the exact screw that is loose, it hands the job to the "Creative Writer" (an AI known as a Large Language Model or LLM).

  • What it does: The Writer is very good at understanding language and writing code. It takes the "loose screw" information from the Detective and rewrites the rulebook to fix the problem.
  • The Magic: Because the Writer knows exactly what went wrong (thanks to the Detective), it doesn't have to guess. It can write a precise new rule to fix the specific error.
  • The Analogy: If the Detective says, "The door is stuck because the hinge is rusted," the Writer knows exactly which sentence to change to say, "Lubricate the hinge," rather than randomly suggesting, "Paint the door blue."

How They Work Together

CloudFix runs in a loop:

  1. Check: The Logic Detective checks if the new rulebook works.
  2. Fix: If it still has errors, the Detective finds the new mistake, and the Creative Writer fixes it.
  3. Repeat: They keep doing this until the rulebook is perfect or they run out of time.

What They Tested

The researchers didn't just make this up; they tested it on 282 real-world rulebooks taken from actual AWS (Amazon Web Services) forums where people were complaining about broken rules. They created fake "test scenarios" to see if the rules were broken.

The Results:

  • Better Accuracy: When the Creative Writer was guided by the Logic Detective, it fixed the rules much more often than when the Writer tried to guess on its own.
  • Handling Complexity: As the number of test scenarios grew (making the job harder), the "Writer alone" started to fail, but the "Writer + Detective" team kept working well.
  • Speed: The team fixed the rules faster because they didn't waste time guessing.

The Bottom Line

This paper shows that by combining a mathematical logic engine (to find the exact error) with a smart AI writer (to fix the text), we can automatically repair broken security rules in the cloud. This makes it easier for companies to keep their data safe without needing a human to stare at a rulebook for hours.

The researchers have made their tool and the dataset of broken rules available for others to use and study.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →