Skip to content

feat!(detector): replace go-cti with vuls2#2530

Draft
MaineK00n wants to merge 3 commits into
masterfrom
MaineK00n/go-cti
Draft

feat!(detector): replace go-cti with vuls2#2530
MaineK00n wants to merge 3 commits into
masterfrom
MaineK00n/go-cti

Conversation

@MaineK00n

Copy link
Copy Markdown
Collaborator

If this Pull Request is work in progress, Add a prefix of “[WIP]” in the title.

What did you implement:

Drop go-cti and the embedded ATT&CK / CAPEC technique dictionary in favor of the new vuls2 attack / capec / cwe datasources.

The CTI mapping is rebuilt downstream by walking each VulnInfo's CWE IDs to RelatedAttackPatterns -> CAPEC.RelatedAttacks, and the resolved techniques and CAPEC entries are emitted under VulnInfo.CtiDetails so that reporter / TUI no longer needs a static lookup table.

The [cti] config section is removed (breaking) but VulnInfo.Ctis is preserved for backward compat with existing report consumers.

Also drop the lingering go-exploitdb entry from dependabot.yml left behind by the earlier vuls2 migration.

Type of change

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?

by unit test

Checklist:

You don't have to satisfy all of the following.

  • Write tests
  • Write documentation
  • Check that there aren't other open pull requests for the same issue/feature
  • Format your source code by make fmt
  • Pass the test by make test
  • Provide verification config / commands
  • Enable "Allow edits from maintainers" for this PR
  • Update the messages below

Is this ready for review?: YES

Reference

@MaineK00n MaineK00n self-assigned this Apr 27, 2026
MaineK00n and others added 3 commits May 28, 2026 15:51
Drop go-cti and the embedded ATT&CK / CAPEC technique dictionary in
favor of the new vuls2 attack / capec / cwe datasources.

The CTI mapping is rebuilt downstream by walking each VulnInfo's CWE
IDs to RelatedAttackPatterns -> CAPEC.RelatedAttacks, and the resolved
techniques and CAPEC entries are emitted under VulnInfo.CtiDetails so
that reporter / TUI no longer needs a static lookup table.

The [cti] config section is removed (breaking) but VulnInfo.Ctis is
preserved for backward compat with existing report consumers.

Also drop the lingering go-exploitdb entry from dependabot.yml left
behind by the earlier vuls2 migration.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
vuls-data-update moved Technique-only fields (Platforms, Tactics,
IsSubtechnique, Parent, …) into Attack.Technique sub-struct.

Update enrichCTI to read a.Technique.Platforms and update the
T1552 fixture to use the nested shape.
vuls-data-update master split the redhat-vex source ID into v1/v2
(see vuls-data-update#f32609e). Rename references accordingly:
RedHatVEX → RedHatVEXv1.

Also drops gopherjs from indirect deps (go mod tidy result).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant