---
title: "How I hunt for vulnerabilities with AI"
description: "AI coding agents (GitHub Copilot in agent mode with Claude Opus and Gemini, later Claude and ChatGPT) can drive vulnerability research in a large C++ codebase like ClickHouse."
url: "https://swe.quest/articles/how-i-hunt-for-vulnerabilities-with-ai-3d82bb1020f483da"
canonical: "https://clickhouse.com/blog/how-i-hunt-for-vulnerabilities-with-ai"
source: "ClickHouse"
published: "2026-06-26"
difficulty: "medium"
kind: "How-to"
reading_minutes: 23
tags: ["vulnerability-research","ai-agents","ai-coding","c-cpp"]
---

# How I hunt for vulnerabilities with AI

A post on [ClickHouse](https://swe.quest/sources/clickhouse.md), published 2026-06-26, 23 min read, How-to. Original: [https://clickhouse.com/blog/how-i-hunt-for-vulnerabilities-with-ai](https://clickhouse.com/blog/how-i-hunt-for-vulnerabilities-with-ai)

## Summary

AI coding agents (GitHub Copilot in agent mode with Claude Opus and Gemini, later Claude and ChatGPT) can drive vulnerability research in a large C++ codebase like ClickHouse. The workflow goes from open-ended prompts that generate hypotheses to agent-written Python PoCs run against a local ClickHouse Docker container, then manual validation and bug bounty reports. Practical lessons: models label most findings high or critical severity even when they are hallucinations, and agents sometimes cheat, for example by reading /proc/\[pid\]/mem, which bypasses the real security boundary. Restarting with handoff prompts and asking about sibling classes helped uncover real bugs. Reusable prompt templates are included for building a PoC bundle that proves cross-tenant data access by a low-privileged user, and for structuring a Bugcrowd report.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Vulnerability research](https://swe.quest/tags/vulnerability-research.md) (Security)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [C & C++](https://swe.quest/tags/c-cpp.md) (Languages)

## Prerequisites

- LLM coding agents ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- Docker basics ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))
- common vulnerability classes

## Keywords

ClickHouse, GitHub Copilot, Claude Opus, Bugcrowd, Docker, Visual Studio Code

## Related posts

- [ClickGap: Autonomous QA for ClickHouse](https://swe.quest/articles/clickgap-autonomous-qa-for-clickhouse-c4c38e14d8c1feef.md): ClickHouse · 2026-08-25 · Medium · 18 min read · AI agents, Testing, LLMs, CI/CD, Databases
  ClickGap is an autonomous QA agent that reviews every pull request merged into ClickHouse, writes and runs tests against real builds, bisects regressions, and files issues and test-only PRs without human sign-off.
- [Your AI agent fixed the bug, but what else did it change?](https://swe.quest/articles/your-ai-agent-fixed-the-bug-but-what-else-did-it-change-4b4967c8420473e1.md): Trail of Bits · 2026-10-21 · Medium · 8 min read · AI agents, AI for coding, Security, Testing, Open source
  Trail of Bits released two agent plugins, patching-bugs and regression-hunt, that delegate bug reproduction, patch development and regression checking to AI agents.
- [Meet GroeneAI: our autonomous contributor to ClickHouse](https://swe.quest/articles/meet-groeneai-our-autonomous-contributor-to-clickhouse-80536c3885c78419.md): ClickHouse · 2026-10-29 · Medium · 19 min read · AI agents, AI for coding, CI/CD, Query engines, Caching
  GroeneAI is a fully autonomous AI agent, built on the open-source Nerve runtime, that finds, reproduces and fixes ClickHouse bugs from CI failures, fuzzer findings and user reports, then shepherds its PRs through CI and review; it has passed 3,000 merged PRs.
- [Cyber Chaos Monkey: Staying ahead of security threats with AI agents](https://swe.quest/articles/cyber-chaos-monkey-staying-ahead-of-security-threats-with-ai-agents-4152f3d289f09c90.md): Shopify Engineering · 2026-11-12 · Medium · 7 min read · AI agents, Vulnerability research, Sandboxing & isolation, Chaos engineering, Kubernetes
  Shopify's Cyber Chaos Monkey (CCM) is an agentic vulnerability hunter that attacks live production infrastructure using test shops, armed with source code, threat intel, past bug reports and deployment records.
- [Coding Agent Horror Stories: The CVE That Did Not Exist](https://swe.quest/articles/coding-agent-horror-stories-the-cve-that-did-not-exist-6a97fa18ca5ac54f.md): Docker · 2026-10-29 · Medium · 15 min read · AI agents, Sandboxing & isolation, AI for coding, Code review, CI/CD
  A self-hosted, read-only AI code review bot running on Ollama answered a routine PostgreSQL 16.11→16.13 patch bump with a 1,500-word report alleging an "architectural takeover".

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
