Parser-Free Querying of Security Logs
The paper introduces Sieve, a system that leverages large language models grounded in automatically extracted log-format context to generate executable code for natural-language security queries, significantly reducing error rates in complex temporal and cross-event log analysis compared to manual scripting.
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 a security detective trying to solve a crime. You have a massive pile of evidence: millions of pages of handwritten notes, receipts, and logs left behind by different people (servers, firewalls, user accounts). The problem is that everyone writes in their own messy, inconsistent handwriting. One person writes dates as "Jan 1," another as "01/01," and another just writes "Monday." Some notes are on sticky notes, others are on napkins, and the ink colors vary.
To solve a case, you need to ask specific questions like, "Show me every time someone tried to break into the building between 2 AM and 4 AM."
The Old Way: The Overworked Librarian
Traditionally, security teams try to fix this by hiring a team of librarians (parsers) to read every single note, figure out the handwriting style, and rewrite everything into a perfect, uniform spreadsheet.
- The Good: Once the spreadsheet is done, asking questions is fast and easy.
- The Bad: It takes forever to build the spreadsheet. Every time a new person starts writing notes in a slightly different way, the librarians have to stop, learn the new style, and rewrite the rules. If a new type of note appears that no one has seen before, the whole system breaks until the librarians fix it.
The Alternative: The Grep Detective
The other option is to skip the librarians entirely. You just grab a magnifying glass (a tool like grep) and scan the raw, messy notes yourself.
- The Good: You can start immediately. No waiting for librarians.
- The Bad: You have to know exactly what every possible handwriting style looks like. If you miss one variation of the word "break-in," you miss the clue. Also, asking complex questions like "Find people who entered from two different doors within 60 seconds" is incredibly hard to do by just scanning lines of text manually.
The New Solution: Sieve (The Smart Translator)
The paper introduces Sieve, a system that acts like a super-smart translator who can instantly write a custom tool for you.
Here is how Sieve works, using a simple analogy:
- The Ask: You ask Sieve a question in plain English: "Find all the IP addresses that tried to break in more than 10 times in a 5-minute window."
- The Quick Scan: Instead of reading the whole million-page book, Sieve quickly flips through the first few pages to see what the handwriting looks like. It creates a tiny "cheat sheet" of the different ways the notes are written (e.g., "Oh, sometimes they say 'Failed password,' sometimes they say 'Auth failure'").
- The Code Writer: Sieve sends your question and this tiny cheat sheet to a very smart AI (a Large Language Model). The AI doesn't read the whole book; it just uses the cheat sheet to write a custom computer script (like a tiny robot program) specifically designed to hunt for your answer.
- The Execution: This custom script runs on the raw notes. Because it was written by the AI based on the cheat sheet, it knows exactly how to find "Failed password" and "Auth failure" and how to count them up.
- The Result: The script gives you the answer. If the script makes a mistake (like a typo), Sieve sees the error, tells the AI, and asks it to rewrite the script. It tries up to four times until it gets it right.
Why This is a Big Deal
The paper tested this on 133 different security questions across 5 different types of logs. Here is what they found:
- It's Smarter than Humans for Hard Cases: When the questions were simple (like "find the word 'error'"), Sieve was just as good as a human expert writing a quick script. But when the questions were hard (like "find patterns across time and different people"), Sieve made 3 times fewer mistakes than humans trying to write scripts from scratch.
- It Doesn't Need a Perfect Librarian First: Sieve doesn't need a pre-made spreadsheet. It works directly on the messy raw notes.
- Simple is Better: The paper found that you don't need a fancy, expensive AI to figure out the handwriting styles first. A simple, fast algorithm that just counts how often certain phrases appear works just as well as the complex methods.
- It's Safe and Reliable: The AI doesn't just guess the answer; it writes code that runs like a normal computer program. This means the result is deterministic (the same question always gets the same answer) and you can look at the code to see exactly how it worked.
The Bottom Line
Sieve bridges the gap between the speed of searching raw text and the power of structured databases. It lets security analysts ask complex questions in plain English and get accurate answers immediately, without waiting for engineers to build a new database schema or struggling to write complex scripts themselves. It turns the "messy notebook" into a searchable database on the fly, one question at a time.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.