Friday, November 22, 2024

Google Researchers Claim First Vulnerability Found Using AI

Must read

Researchers from Google Project Zero and Google DeepMindĀ have found their first real-world vulnerability using a large language model (LLM).

In a November 1 blog post, Google Project Zero researchers said the vulnerability is an exploitable stack buffer underflow in SQLite, a widely used open-source database engine.

A team from Project Zero and DeepMind, working under the Big Sleep project, found the flaw in early October before it appeared in an official release. They immediately reported it to the developers, who fixed it the same day. SQLite users were not impacted.

ā€œThe vulnerability is quite interesting, along with the fact that the existing testing infrastructure for SQLite (both through OSS-Fuzz and the project’s own infrastructure) did not find the issue, so we did some further investigation,ā€ the Big Sleep researchers wrote.

From Naptime Framework to Big Sleep Project

The hybrid teamā€™s AI-powered vulnerability research builds on the work started in 2023 within Project Zero to develop Naptime, a framework enabling an LLM to assist vulnerability researchers.

The frameworkā€™s architecture is centered around the interaction between an AI agent and its set of specialized tools designed to mimic the workflow of a human security researcher and a target codebase.

Infosecurity reported on Naptime in June 2024.

Filling the Fuzzing Failures Gap

While the Big Sleep researchers highlighted that the project is still in the early stages and they only have highly experimental results, they also believe it has ā€œtremendous defensive potential.ā€

Currently, the most common way developers test the software before they go into production is fuzzing.

Also known as fuzz testing, fuzzing involves providing invalid, unexpected or random data as inputs to a computer program or software. The program is then monitored for exceptions such as crashes, failing built-in code assertions, or potential memory leaks.

However, this method seems to have failed to detect the SQLite vulnerability this time. This is due to several complex factors. The bottom line is that the fuzzing setups ā€“ the automated testing tools ā€“ lacked the specific configurations and code versions needed to trigger the issue.

Another common issue is that unknown vulnerabilities, also known as zero-days, are often variants of known and fixed vulnerabilities.

ā€œAs this trend continues, it’s clear that fuzzing is not succeeding at catching such variants, and that for attackers, manual variant analysis is a cost-effective approach,ā€ the Big Sleep researchers wrote.

ā€œBy providing a starting point ā€“ such as the details of a previously fixed vulnerability ā€“ we remove a lot of ambiguity from vulnerability research, and start from a concrete, well-founded theory: ā€˜This was a previous bug; there is probably another similar one somewhere.ā€™ā€

While the researchers conceded that overall, fuzzing will continue to be as ā€“ or more ā€“ effective as LLM-assisted manual vulnerability analysis, they hope ā€œAI can narrow this gap.ā€

ā€œWe hope that in the future this effort will lead to a significant advantage to defenders ā€“ with the potential not only to find crashing test cases, but also to provide high-quality root-cause analysis, triaging and fixing issues could be much cheaper and more effective in the future.ā€Ā 

At this time, the Big Sleep researchers only use small programs with known vulnerabilities to evaluate theĀ progress of their method.

Previous Records of SuccessfulĀ LLM-Assisted Vulnerability Research

While the researchers claimed that this is the first public example of an AI agent finding a previously unknown exploitable memory-safety issue in widely used real-world software,Ā AIfredo Ortega, a security researcher at Neuroengine, said on XĀ  he managed to discover a zero-day inĀ OpenBSD using LLMs back in April 2024 – and he published his result in June.

He also mentionedĀ  the work ofĀ Google’s Open Source Security Team, who found an out-of-bound read in OpenSSL in October.

“I think it’s just an honest mistake, quite common in academic circles. Academics are usually not super aware of what happens outside their circle. They cannot know everything that is published in the field. But they just needed to Google it,” he told Infosecurity.

Read now: How to Disclose, Report and Patch a Software Vulnerability

Latest article