checker-ssh/checker
Pierre-Olivier Mercier 258d799a97 checker: implement ShareKey to mutualise SSH probes across targets
An SSH probe (reachability, banner, KEX/host-key algorithm posture, host keys)
depends only on the set of addresses and ports dialed and the probe knobs,
never on which domain name points at the server: SSH has no SNI, so the same
daemon answers identically behind every name. Implement sdk.ObservationSharer
so the host can probe an address set once and serve every target (of the same
user) that points at it, instead of re-connecting per record.

The share key sorts the resolved addresses and ports and folds in the probe
timeout, the auth-probe flag, and the declared SSHFP fingerprints — the latter
live in the observation and drive the SSHFP-match rule, so two services with
the same endpoints but different SSHFP must not share a verdict. The
host/Domain label is intentionally excluded, mirroring the ping checker's
exclusion of which domain the addresses belong to: it does not change
reachability, the negotiated algorithms, the host keys, or the SSHFP
comparison. Inputs with no probable address yield "" so the host falls back to
per-target caching.
2026-06-18 15:28:28 +09:00
..
algorithms.go Initial commit 2026-04-26 16:23:21 +07:00
collect.go checker: implement ShareKey to mutualise SSH probes across targets 2026-06-18 15:28:28 +09:00
definition.go checker: lower minimum check interval to 5 minutes 2026-05-15 17:29:16 +08:00
interactive.go checker: make port 22 probe optional 2026-05-15 17:29:16 +08:00
kexinit.go Initial commit 2026-04-26 16:23:21 +07:00
prober.go checker: enforce prober-as-observation, move all analysis to rules layer 2026-05-15 17:29:16 +08:00
provider.go Initial commit 2026-04-26 16:23:21 +07:00
report.go checker: enforce prober-as-observation, move all analysis to rules layer 2026-05-15 17:29:16 +08:00
rules.go checker: enforce prober-as-observation, move all analysis to rules layer 2026-05-15 17:29:16 +08:00
rules_algorithms.go checker: enforce prober-as-observation, move all analysis to rules layer 2026-05-15 17:29:16 +08:00
rules_auth.go checker: enforce prober-as-observation, move all analysis to rules layer 2026-05-15 17:29:16 +08:00
rules_banner.go checker: enforce prober-as-observation, move all analysis to rules layer 2026-05-15 17:29:16 +08:00
rules_hostkey.go checker: enforce prober-as-observation, move all analysis to rules layer 2026-05-15 17:29:16 +08:00
rules_reachability.go checker: enforce prober-as-observation, move all analysis to rules layer 2026-05-15 17:29:16 +08:00
rules_sshfp.go checker: enforce prober-as-observation, move all analysis to rules layer 2026-05-15 17:29:16 +08:00
service.go Initial commit 2026-04-26 16:23:21 +07:00
sharekey_test.go checker: implement ShareKey to mutualise SSH probes across targets 2026-06-18 15:28:28 +09:00
sshfp.go checker: enforce prober-as-observation, move all analysis to rules layer 2026-05-15 17:29:16 +08:00
types.go checker: enforce prober-as-observation, move all analysis to rules layer 2026-05-15 17:29:16 +08:00
vulns.go Initial commit 2026-04-26 16:23:21 +07:00