Skip to content

feat!(detector): relace go-msfdb with vuls2#2512

Merged
MaineK00n merged 1 commit intomasterfrom
MaineK00n/go-msfdb
Apr 16, 2026
Merged

feat!(detector): relace go-msfdb with vuls2#2512
MaineK00n merged 1 commit intomasterfrom
MaineK00n/go-msfdb

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:

Replace standalone go-msfdb FillWithMetasploit() with vuls2
EnrichVulnInfos pipeline. Metasploit data is now sourced from
vuls-data-extracted-msf via BoltDB.

  • Extend enrich() to handle sourceTypes.Metasploit → vi.Metasploits
  • Remove detector/msf.go and all FillWithMetasploit() calls
  • Remove MetasploitConf from config and subcmds
  • Remove go-msfdb dependency (go.mod, dependabot.yml)

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

Type of change

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

How Has This Been Tested?

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 15, 2026
@MaineK00n MaineK00n force-pushed the MaineK00n/go-msfdb branch from 0626266 to 4dc2c29 Compare April 15, 2026 10:58
@MaineK00n MaineK00n changed the base branch from master to MaineK00n/go-kev April 15, 2026 10:58
@MaineK00n MaineK00n force-pushed the MaineK00n/go-msfdb branch 2 times, most recently from f3e34f0 to 585253c Compare April 15, 2026 12:17
Base automatically changed from MaineK00n/go-kev to master April 16, 2026 02:43
 Replace standalone go-msfdb FillWithMetasploit() with vuls2
 EnrichVulnInfos pipeline. Metasploit data is now sourced from
 vuls-data-extracted-msf via BoltDB.

 - Extend enrich() to handle sourceTypes.Metasploit → vi.Metasploits
 - Remove detector/msf.go and all FillWithMetasploit() calls
 - Remove MetasploitConf from config and subcmds
 - Remove go-msfdb dependency (go.mod, dependabot.yml)

 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR replaces the legacy go-msfdb-based Metasploit enrichment path with vuls2’s EnrichVulnInfos pipeline, sourcing Metasploit module data from the vuls2 BoltDB-backed dataset.

Changes:

  • Add vuls2 enrichment support for sourceTypes.Metasploit and map it into models.VulnInfo.Metasploits.
  • Remove the standalone Metasploit detector/config plumbing (FillWithMetasploit, MetasploitConf, config template section, DB validation wiring).
  • Drop the github.com/vulsio/go-msfdb dependency and update tests/fixtures to cover Metasploit enrichment.

Reviewed changes

Copilot reviewed 17 out of 18 changed files in this pull request and generated no comments.

Show a summary per file
File Description
subcmds/server.go Removes Metasploit config init and drops Metasploit from ValidateDBs call.
subcmds/report.go Removes Metasploit config init in report flow.
subcmds/report_windows.go Removes Metasploit config init in Windows report flow.
subcmds/discover.go Removes [metasploit] section from generated config template.
server/server.go Removes FillWithMetasploit() server-side enrichment (vuls2 enrichment remains).
detector/util.go Updates ValidateDBs signature and removes Metasploit DB validation.
detector/msf.go Deletes the go-msfdb-backed Metasploit enrichment implementation.
detector/detector.go Removes FillWithMetasploit() from the local detect pipeline (vuls2 enrichment remains).
config/vulnDictConf.go Removes MetasploitConf configuration type.
config/tomlloader.go Stops initializing Metasploit config during TOML load.
config/config.go Removes Metasploit from Config and config validation loop.
detector/vuls2/vendor.go Adds sourceTypes.Metasploit handling + enrichMetasploit() mapping into vi.Metasploits.
detector/vuls2/vuls2_test.go Adds enrichment test case for Metasploit data.
detector/vuls2/testdata/fixtures/enrich/metasploit/datasource.json Adds metasploit datasource fixture for vuls2 DB population.
detector/vuls2/testdata/fixtures/enrich/metasploit/data/2024/CVE-2024-0012.json Adds metasploit vulnerability fixture used by enrichment test.
go.mod Removes github.com/vulsio/go-msfdb requirement.
go.sum Removes go-msfdb checksums.
.github/dependabot.yml Removes go-msfdb from dependabot ignore patterns.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MaineK00n MaineK00n requested a review from shino April 16, 2026 04:12
Copy link
Copy Markdown
Collaborator

@shino shino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍻

@MaineK00n MaineK00n merged commit 8383d40 into master Apr 16, 2026
12 checks passed
@MaineK00n MaineK00n deleted the MaineK00n/go-msfdb branch April 16, 2026 07:19
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.

3 participants