feat(cve-json): classify .ai service handles as tool credits#719
Merged
Conversation
Bot-credit detection matched hyphenated -ai/-agent/-gpt handles but not domain-style AI-service handles like `bugbunny.ai`, so an AI bug-hunting service credited by its .ai product handle landed as type:finder instead of type:tool. Add a `\b[\w-]+\.ai\b` pattern, a policy-doc bullet, and two test cases (bugbunny.ai, xbow.ai). Generated-by: Claude Code (Claude Opus 4.8)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
generate-cve-jsonmatched hyphenated-ai/-agent/-gpthandles but not domain-style AI-service handles likebugbunny.ai, so an AI bug-hunting service credited by its.aiproduct handle landed astype: finderinstead oftype: toolin the CVE record'scredits[].\b[\w-]+\.ai\bpattern toBOT_CREDIT_PATTERNS, a matching bullet tobot-credits-policy.md, and two test cases (bugbunny.ai,xbow.ai).Motivation
Surfaced while crediting an AI bug-hunting service (a
.aiproduct handle) on an advisory: it's an automated discovery service, so CVE 5.xtype: "tool"is the accurate row — but the.aidomain form slipped past the existing hyphen-suffix patterns and there's no manual override hook (the field is the single source of truth; the generator decides finder-vs-tool). Adding the.aiform closes that gap.Test plan
pytest tools/cve-tool-vulnogram/generate-cve-json— green;test_pattern_handles_matchnow coversbugbunny.ai/xbow.ai,test_human_names_do_not_matchstill green (the\b…\.ai\banchor doesn't fire on free-standing "AI" or human names).prek run --files …— ruff, mypy, markdownlint, typos, pytest all pass.