Skip to content

feat(cve-json): classify .ai service handles as tool credits#719

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:feat/bot-credits-dot-ai
Jul 4, 2026
Merged

feat(cve-json): classify .ai service handles as tool credits#719
potiuk merged 1 commit into
apache:mainfrom
potiuk:feat/bot-credits-dot-ai

Conversation

@potiuk

@potiuk potiuk commented Jul 4, 2026

Copy link
Copy Markdown
Member

Summary

  • Bot-credit detection in generate-cve-json 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 in the CVE record's credits[].
  • Add a \b[\w-]+\.ai\b pattern to BOT_CREDIT_PATTERNS, a matching bullet to bot-credits-policy.md, and two test cases (bugbunny.ai, xbow.ai).

Motivation

Surfaced while crediting an AI bug-hunting service (a .ai product handle) on an advisory: it's an automated discovery service, so CVE 5.x type: "tool" is the accurate row — but the .ai domain 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 .ai form closes that gap.

Test plan

  • pytest tools/cve-tool-vulnogram/generate-cve-json — green; test_pattern_handles_match now covers bugbunny.ai / xbow.ai, test_human_names_do_not_match still green (the \b…\.ai\b anchor doesn't fire on free-standing "AI" or human names).
  • prek run --files … — ruff, mypy, markdownlint, typos, pytest all pass.

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)
@potiuk potiuk added family:security security-* skills capability:intake Import external signal + sync tracker state labels Jul 4, 2026
@potiuk
potiuk merged commit 40e82f4 into apache:main Jul 4, 2026
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

capability:intake Import external signal + sync tracker state family:security security-* skills

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant