News: 0175408473

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Google's Big Sleep LLM Agent Discovers Exploitable Bug In SQLite (scworld.com)

(Tuesday November 05, 2024 @11:05AM (msmash) from the moving-forward dept.)


[1]spatwei writes:

> Google has used a large language model (LLM) agent called "Big Sleep" to discover a previously unknown, exploitable memory flaw in a widely used software for the first time, the company announced Friday.

>

> The [2]stack buffer underflow vulnerability in a development version of the popular open-source database engine SQLite was found through variant analysis by Big Sleep, which is a collaboration between Google Project Zero and Google DeepMind.

>

> Big Sleep is an evolution of Project Zero's Naptime project, which is a framework announced in June that enables LLMs to autonomously perform basic vulnerability research. The framework provides LLMs with tools to test software for potential flaws in a human-like workflow, including a code browser, debugger, reporter tool and sandbox environment for running Python scripts and recording outputs.

>

> The researchers provided the Gemini 1.5 Pro-driven AI agent with the starting point of a previous SQLIte vulnerability, providing context for Big Sleep to search for potential similar vulnerabilities in newer versions of the software. The agent was presented with recent commit messages and diff changes and asked to review the SQLite repository for unresolved issues.

>

> Google's Big Sleep ultimately identified a flaw involving the function "seriesBestIndex" mishandling the use of the special sentinel value -1 in the iColumn field. Since this field would typically be non-negative, all code that interacts with this field must be designed to handle this unique case properly, which seriesBestIndex fails to do, leading to a stack buffer underflow.



[1] https://slashdot.org/~spatwei

[2] https://www.scworld.com/news/googles-big-sleep-llm-agent-discovers-exploitable-bug-in-sqlite



Nice find, but... (Score:2)

by iAmWaySmarterThanYou ( 10095012 )

It was looking at recent commits.

Did it find something other current tools would not have found?

Re: (Score:2)

by UnknowingFool ( 672806 )

[1]xkcd [xkcd.com] found it years ago.

[1] https://xkcd.com/327/

Risky to disclose (Score:3)

by idontusenumbers ( 1367883 )

This seems risky to disclose considering the nature of sqlite being embedded and how many things that use SQL don't use a shared library or get updated often, if ever.

Re: (Score:2)

by Mononymous ( 6156676 )

You're saying the disclosure is the risky thing, and not using the software in that way?

sentinel (Score:2)

by groobly ( 6155920 )

Seems that sentinel values are a bad idea in the first place.

When I works, I works hard.
When I sits, I sits easy.
And when I thinks, I goes to sleep.