Skip to content

refactor(fingerprint): make the favicon tech table the single source#358

Open
TBX3D wants to merge 2 commits into
vmfunc:mainfrom
TBX3D:feat/favicon-ssot
Open

refactor(fingerprint): make the favicon tech table the single source#358
TBX3D wants to merge 2 commits into
vmfunc:mainfrom
TBX3D:feat/favicon-ssot

Conversation

@TBX3D

@TBX3D TBX3D commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

the shodan favicon-hash to tech-name table lived in internal/scan/favicon.go with a separate demo-sync test keeping it lined up against the favicon-*.yaml demo modules. moved it into internal/fingerprint as LookupFaviconTech so there's one table instead of two things that have to agree, and wired the module-side favicon evidence string to name the matched tech (favicon mmh3= tech=) instead of a bare hash.

move the hash->tech map from internal/scan into internal/fingerprint
beside the hash function, exposed as LookupFaviconTech. the scan
Favicon path now resolves tech through it instead of a private map.

drop the demo-sync guard test: it existed only to keep scan's map in
sync with the yaml demo module, and that map no longer exists.
@TBX3D
TBX3D requested a review from vmfunc as a code owner July 9, 2026 22:59
@github-actions github-actions Bot added size/m <200 lines changed scan changes to scan engine modules changes to scan modules tests test changes labels Jul 9, 2026
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

pr summary

7 files changed (+142 -86)

category files
go source 7
tests 4

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 77.77778% with 2 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@7ea1cd2). Learn more about missing BASE report.

Files with missing lines Patch % Lines
internal/modules/favicon.go 50.00% 1 Missing and 1 partial ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #358   +/-   ##
=======================================
  Coverage        ?   54.74%           
=======================================
  Files           ?       81           
  Lines           ?     6881           
  Branches        ?        0           
=======================================
  Hits            ?     3767           
  Misses          ?     2843           
  Partials        ?      271           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

favicon module findings now read the tech straight from the shared
fingerprint table, so a canonical hit reports "favicon mmh3=<n>
tech=<name>" instead of a bare hash. unknown hashes are unaffected.
@TBX3D
TBX3D force-pushed the feat/favicon-ssot branch from abbbb18 to e9c0709 Compare July 9, 2026 23:53
@github-actions github-actions Bot added size/l <500 lines changed and removed size/m <200 lines changed labels Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

modules changes to scan modules scan changes to scan engine size/l <500 lines changed tests test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants