Skip to content

feat: v0.6.0 - major service detection upgrade - #7

Merged
Bulletdev merged 1 commit into
mainfrom
feat/v0.6-service-detection
Nov 10, 2026
Merged

Bulletdev merged 1 commit into
mainfrom
feat/v0.6-service-detection

Conversation

@Bulletdev

@Bulletdev Bulletdev commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Summary

Major upgrade to OhmZ service detection capabilities with 88 unit tests, 8 new protocol probes, data-driven signatures, and significantly improved accuracy.

Detection improvements

  • 6 new protocol probes: Memcached, MongoDB, MQTT, AMQP, RDP, SMB
  • HTTP app fingerprinting: Elasticsearch, Docker API + 30 data-driven signatures for common self-hosted apps (Grafana, GitLab, Jenkins, Portainer, Nextcloud, etc.)
  • FastAPI auto-discovery: Probes /openapi.json to extract actual app title and version
  • TLS enhancements: ALPN negotiation (h2/http1.1), SAN extraction from certificates, TLS 1.3 cipher suites

Performance & accuracy

  • Probe reorder: NULL (1s) -> HTTP -> Redis/PostgreSQL - cuts detection time ~40% on HTTP-heavy targets
  • Fixed false Redis: Validates RESP format instead of matching any response starting with $ or -
  • Data-driven sigs: src/data/service-probes parsed at compile time via @embedFile - zero runtime cost, easy to extend

Output & testing

  • Extra field now visible in terminal output (version + extra)
  • Fixed all output writers: XML (product/extrainfo/tunnel attributes), grep (version slot), NDJSON (version/extra/tls/scripts fields)
  • Enhanced -sC scripts: OpenAPI spec, docs detection, 404 fingerprint, reverse proxy detection
  • 88 unit tests across banner, tls, output, ports, and sigs modules

Test plan

  • zig build test - 88/88 tests pass
  • zig fmt --check src/ build.zig - clean
  • zig build -Doptimize=ReleaseSafe - builds clean
  • Live scan against test host with -sV - all services correctly identified
  • FastAPI apps show real names via OpenAPI auto-probe

- Add 88 unit tests across banner, tls, output, ports, and sigs modules
- Show extra field in terminal output and fix all output writers (XML, grep, NDJSON, normal)
- Reorder probes: NULL (1s) -> HTTP -> Redis/PostgreSQL for faster detection
- Fix false Redis detection on non-Redis ports (validate RESP format)
- TLS: add ALPN negotiation (h2/http1.1), SAN extraction from certificates, TLS 1.3 cipher suites
- Add 6 new protocol probes: Memcached, MongoDB, MQTT, AMQP, RDP, SMB
- Add HTTP fingerprints for Elasticsearch and Docker API
- Enhanced -sC scripts: OpenAPI, docs, 404 fingerprint, reverse proxy detection
- Data-driven signatures via @embedfile: 5 banner sigs + 30 HTTP app sigs (comptime parsed)
- Auto-probe /openapi.json on FastAPI services to extract app title and version
- FastAPI detection now shows actual service name (e.g. "ProStaff ML 2.0.0")
@Bulletdev
Bulletdev merged commit 9530a70 into main Nov 10, 2026
5 of 6 checks passed
@github-actions

Copy link
Copy Markdown

Semgrep Static Analysis

Severity Count
Errors 0
Critical (HIGH confidence) 0
Warnings 0

No issues found.

@github-actions

Copy link
Copy Markdown

Security Scan Summary

Check Status
Semgrep success
Secret Detection success

All security checks passed!

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

AI Reviewer: first review requested successfully. AI can make mistakes. Always validate suggestions.

Run reviewer

TIP This summary will be updated as you push new changes.

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