{"slug": "safe-automated-bug-discovery-and-fixing-with-prospero", "title": "Safe, automated bug discovery and fixing with Prospero", "summary": "Prospero, a coding harness from developer Chris Wellons (skeeto), can run AI agents inside a no-network Docker or Podman container to set up and run fuzzing campaigns and commit bug fixes, with the headless harness itself confined to the container and the GUI relaying AI chat completions and, on approval, web_search and web_fetch requests. Wellons says Prospero is the only AI tooling with this capability, and notes the headless Linux engines ship only with the Professional Edition, which is 40% off through December 2nd. The approach matters because harness sandboxing cannot contain an agent that runs arbitrary code, so containerizing the fuzzing campaign traps any fallout while fixes flow out through a mounted workspace.", "body_md": "Fuzz testing remains an effective tool for discovering software defects,\nmore so than ever with AI agents driving, fixing bugs on the fly, clearing\nthe way for deeper fuzzing, all unattended. My [coding harness](https://nullprogram.com/blog/2026/10/31/),\n[Prospero](https://github.com/skeeto/prospero), is particularly suited for this task via its unique *deploy\nto container* feature. With a bit of one-time prep work, you can run\nagents within a no-network Docker or Podman container with instructions to\nset up and run a fuzzing campaign on your repository. Any fallout from the\nagent or fuzzing campaign is safely trapped in the container, while bug\nfixes flow out freely. As far as I’m aware, Prospero is the only AI\ntooling with this capability.\n\nFuzz testing has always risked its host. The whole point is to drive the target into undefined behavior, which may summon nasal demons. Coding agents are a new risk to hosts. While not malicious in practice, they make mistakes like humans and may accidentally destroy or leak data to which they have access. Harness sandboxing and permissions systems are merely tools to communicate intention and catch simple mistakes. They cannot contain an agent with the ability to run arbitrary code as part of its job. Assume an agent can do anything its coding harness can do.\n\nThat’s where Prospero comes to the rescue. When you create a new session you can select “new container” as the host, an image, whether to enable networking, and the contents of the workspace. Give the agent a copy of your repository or mount it inside the container. I recommend the latter because the agent can commit fixes directly, and you won’t have to get fixes out of the container somehow. Though of course the agent can change or delete anything in the repository, so give it its own clone (not a worktree) if that’s an issue. Without networking the agent cannot push or pull, but you can.\n\nProspero creates a container running a headless harness, precompiled for\nLinux for this very purpose. **Only [Professional Edition](https://skeeto.itch.io/prospero) comes with\nthese headless engines — 40% off Black Friday Sale through December 2nd**.\nSo *the harness itself is constrained to the container*. The GUI connects\nby pipe to this harness and presents it as a normal, local session. It\nrelays AI chat completions for the container, which is how it operates\nwithout a network. If you grant permission when asked, it also relays\n`web_search` and `web_fetch` requests. So this no-network agent has\nnarrow, restricted internet access in case that’s useful, such as to\nsearch information or download a dependency. Close the GUI and the\ncontainer harness continues independently until it needs the relay, where\nit pauses and waits.\n\nIf the agent needs more from you, and you used a mounted workspace, then you can move or copy the file to that directory on the host and the agent will get it. Mounts make getting data in and out easier.\n\nThe Terminal pane is fully functional. If you open a terminal\n(`` ctrl+` ``) you’ll get a shell inside the container, such as to\npoke around or assist the agent. The Files pane is also 100% functional,\neven including “Open in editor” if it’s a mounted container, so you can\nexamine text files and pictures within the container in Prospero.\n\nIf you have questions about the details, ask your agent while mentioning Prospero. It will load the built-in help skill and link the appropriate Help pages when it answers.\n\nAs mentioned you’ll need an image, and so the one-time prep work is to create an image with the basic tools an agent might need: compilers, fuzzers, debugging tools, build tools, dependencies, etc. You might even include terminal tools for yourself, like Vim. Here’s a minimal Dockerfile for C and C++ with libFuzzer and AFL++:\n\n```\nFROM ubuntu:26.04\n\nRUN apt-get update \\\n && apt-get install -y --no-install-recommends \\\n        build-essential \\\n        gcc-15-plugin-dev \\\n        clang \\\n        libclang-rt-dev \\\n        lld \\\n        cmake \\\n        ninja-build \\\n        pkg-config \\\n        autoconf \\\n        automake \\\n        libtool \\\n        git \\\n        python3 \\\n        gdb \\\n        xxd \\\n        procps\n\nWORKDIR /afl\nARG AFL_VERSION=5.03c\nADD --checksum=sha256:07f089e8591209862898c770a569d8e2b74b459fe967db323fc6a3924dcc82b5 \\\n    https://github.com/AFLplusplus/AFLplusplus/archive/refs/tags/v${AFL_VERSION}.tar.gz ./\nRUN tar xzf v${AFL_VERSION}.tar.gz \\\n && cd AFLplusplus-${AFL_VERSION} \\\n && make -j\"$(nproc)\" \\\n && make install\n\nWORKDIR /work\nENV AFL_QUIET=1 \\\n    AFL_SKIP_CPUFREQ=1 \\\n    AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES=1 \\\n    UBSAN_OPTIONS=handle_sigtrap=1 \\\n    ASAN_OPTIONS=handle_sigtrap=1 \\\n    ASAN_OPTIONS=detect_stack_use_after_return=1:max_malloc_fill_size=1073741824\nCMD [\"/bin/bash\"]\n```\n\nWith that saved as `Dockerfile`:\n\n``` bash\n$ docker build -t ubuntu-fuzz .\n```\n\nNo Linux distribution has shipped a working AFL++ for some years now, so\nit’s compiled from source. The main value is you can fuzz with both GCC\nand Clang, which produce slightly different instrumentation and catch\ndifferent defects. I also [set sanitizer configuration as advice for the\nagent](https://nullprogram.com/blog/2025/02/05/).\n\nAlternatively, explain your situation to an agent, perhaps the same model you’ll use for fuzzing, and have it set up the image for you.\n\nOnce you have your image, and you’ve created your mounted workspace session, then you tell the agent what you want. The prompt can be this simple:\n\nAdd libFuzzer and AFL++ tests to this project. Then run a fuzzing\ncampaign under ASan, UBSan, `-D_FORTIFY_SOURCE`, and `-D_GLIBCXX_DEBUG`.\nFix and commit findings as they are discovered.\n\nConsider Plan mode depending on project size. Set it on a long campaign before you go to sleep, and you might have interesting results in the form of fix commits when you wake up. The container harness has access to the skills on your host — again, by relay — so if you do this often you might want to put it in a skill, further streamlining the whole process.\n\nIn general, mid-tier models are fine as fuzz campaign drivers, and even models below those usually work well, including local models. Writing fuzz tests and fixing the resulting bugs (off-by-one, etc.) doesn’t take much. The main issue you’ll have is refusals. Far too many models are trained to treat fuzz testing as a specialized offensive tool, where in reality it’s just basic testing, regularly used by anyone taking software development seriously.\n\nIf your own projects aren’t suitable, try an open source project that\nhasn’t seen much fuzz testing. The containment makes it low risk, and\nfixes that pop out tend to be simple and easy to send back. If you’re only\nlooking to see it in action, try it on [the GNU Recutils source](https://ftp.gnu.org/gnu/recutils/). The\nlatest release (1.9) is packed with low-hanging fruit, and in minutes\nyou’ll produce a dozen commits fixing buffer overflows and such.", "url": "https://wpnews.pro/news/safe-automated-bug-discovery-and-fixing-with-prospero", "canonical_source": "https://nullprogram.com/blog/2026/11/27/", "published_at": "2026-11-27 03:00:00+00:00", "updated_at": "2026-11-27 08:19:40.142589+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "ai-safety", "developer-tools"], "entities": ["Prospero", "Chris Wellons", "skeeto", "Docker", "Podman", "libFuzzer", "AFL++", "Ubuntu 26.04"], "also_reported_by": [], "takeaway": "Run the coding agent and its fuzzing campaign inside a no-network container with a mounted repository clone, so the agent can commit fixes directly while the harness relays only approved web_search and web_fetch requests.", "recommendation": {"advice": "Run fuzzing agents in a no-network container with a mounted repo clone and relay only approved web requests; harness permissions alone cannot contain an agent that executes arbitrary code.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/safe-automated-bug-discovery-and-fixing-with-prospero", "markdown": "https://wpnews.pro/news/safe-automated-bug-discovery-and-fixing-with-prospero.md", "text": "https://wpnews.pro/news/safe-automated-bug-discovery-and-fixing-with-prospero.txt", "jsonld": "https://wpnews.pro/news/safe-automated-bug-discovery-and-fixing-with-prospero.jsonld"}}