---
title: "Automating Security Triage with HackerOne and Deep Search"
description: "Sourcegraph's security team built a small service that receives signed HackerOne webhooks for new bug bounty reports, verifies the signature, and sends the report to the Deep Search API to investigate it against the relevant codebase."
url: "https://swe.quest/articles/automating-security-triage-with-hackerone-and-deep-search-ce50e70d2f61dc6d"
canonical: "https://sourcegraph.com/blog/automating-security-triage-hackerone-deep-search"
source: "Sourcegraph"
published: "2026-06-05"
difficulty: "easy"
kind: "Case study"
reading_minutes: 4
tags: ["security","ai-agents","llms"]
---

# Automating Security Triage with HackerOne and Deep Search

A post on [Sourcegraph](https://swe.quest/sources/sourcegraph.md), published 2026-06-05, 4 min read, Case study. Original: [https://sourcegraph.com/blog/automating-security-triage-hackerone-deep-search](https://sourcegraph.com/blog/automating-security-triage-hackerone-deep-search)

## Summary

Sourcegraph's security team built a small service that receives signed HackerOne webhooks for new bug bounty reports, verifies the signature, and sends the report to the Deep Search API to investigate it against the relevant codebase. The service posts a team-only comment back with a validity verdict, severity, links to affected code, suggested fixes and a link to the Deep Search conversation, and in one case it surfaced a separate critical config-override logic flaw that the reporter had not mentioned. Known risks are reporters driving token consumption, wrong repository mapping and prompt injection in report text. Mitigations include entitlement-based rate limits, invite-only programs, explicit service-to-repo mappings in the prompt and tagging untrusted input.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Security](https://swe.quest/tags/security.md) (Security)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)

## Prerequisites

- bug bounty programs
- webhooks

## Keywords

HackerOne, Deep Search, Sourcegraph, src-cli, prompt injection

## Related posts

- [How we're using Sourcegraph and a Slack bot to detect vulnerabilities and react quickly](https://swe.quest/articles/how-we-re-using-sourcegraph-and-a-slack-bot-to-detect-vulnerabilities-and-react-bfb7cc0f6f98e463.md): Sourcegraph · 2026-05-13 · Medium · 12 min read · Supply chain security, Developer tools, Video & media, Search
  Sourcegraph built a Slack bot that polls the GitHub Advisory Database every 15 minutes, triages advisories with CVSS, Hacker News buzz and a high-reach package list plus supply-chain keywords, and on a single 🚀 reaction generates detection queries, a blog scaffold, social drafts and an auto-edited Deep Search demo video.
- [MCP Horror Stories: The GitHub Prompt Injection Data Heist](https://swe.quest/articles/mcp-horror-stories-the-github-prompt-injection-data-heist-118a1d699702a7aa.md): Docker · 2025-08-14 · Medium · 15 min read · AI agents, Application security, Identity & auth, LLMs
  A prompt injection planted in a public GitHub issue can hijack an AI agent using the official GitHub MCP server.
- [When an AI agent came knocking: Catching malicious contributions in Datadog’s open source repos](https://swe.quest/articles/when-an-ai-agent-came-knocking-catching-malicious-contributions-in-datadog-s-efd5d1e84be0c443.md): Datadog Engineering · 2026-03-09 · Medium · 16 min read · Supply chain security, CI/CD, Threat detection, AI agents, Open source
  An AI agent called hackerbot-claw targeted Datadog's public repositories in late February 2026.
- [Detecting malicious pull requests at scale with LLMs](https://swe.quest/articles/detecting-malicious-pull-requests-at-scale-with-llms-18b7d45442154d44.md): Datadog Engineering · 2025-10-21 · Medium · 12 min read · Supply chain security, Threat detection, LLMs, Code review, Evaluation
  Datadog's SDLC Security team built BewAIre, an LLM-based reviewer that classifies the diff of every merged PR (nearly 10,000 a week) as benign or malicious, with a written rationale emitted as a security signal for real-time triage.
- [How I hunt for vulnerabilities with AI](https://swe.quest/articles/how-i-hunt-for-vulnerabilities-with-ai-3d82bb1020f483da.md): ClickHouse · 2026-06-26 · Medium · 23 min read · Vulnerability research, AI agents, AI for coding, C & C++
  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.

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)
