Documentation
¶
Overview ¶
Package tlscbom turns an active TLS scan's observations into CBOM assets. It lives apart from internal/cbom so that a program that only needs the host inventory (the collector) does not link the TLS scanner.
Index ¶
Constants ¶
const ( EvidenceObserved = "observed" EvidenceAccepted = "accepted" EvidenceDerived = "derived" EvidenceNegotiated = "negotiated" )
The evidence states (AUDIT-TLS-CBOM-001 A-5), written as cipherhorizon:evidence on every component. They say how a fact was learned, and they are never a probability:
- observed: seen directly: a ServerHello for a protocol version, a certificate and what it states (its key, its signature algorithm), decoded from the bytes the server sent;
- accepted: a probe offering only that one thing was answered (a key-exchange group named by a HelloRetryRequest, a TLS 1.3 signature scheme answered with a ServerHello);
- derived: implied by an accepted thing through a fixed, cited mapping: the bulk cipher, key exchange and authentication an accepted suite's IANA registry entry names;
- negotiated: used by the one handshake a current client completed (see markNegotiated).
What was not tested, or proved nothing, is stated per stage in the document's metadata (Coverage).
Variables ¶
This section is empty.
Functions ¶
func Coverage ¶ added in v0.3.0
Coverage states, in the document's metadata, what the scan covered (AUDIT-TLS-CBOM-001 A-6): one property per stage (done; done with inconclusive parts; not tested and why; inconclusive), whether the scan was complete, and the registry the derived facts were mapped with. Without it an absent component cannot be told apart from an untested one.
func FromTLSReport ¶
func FromTLSReport(rep *tlsprobe.Report) []collector.CryptoAsset
FromTLSReport turns an active TLS scan's observations into CBOM assets: one protocol component per supported version, with the cipher suites it accepts and, for TLS 1.3, the key-exchange groups it accepts; and one certificate component per certificate the scan retrieved (every position in every chain, deduplicated by fingerprint). Every algorithm the suites, groups and certificates reference is emitted once as its own component, so that no DependsOn edge points at something absent from the document.
This states only what was observed on the wire: no readiness level, no TLS hygiene score, no finding. Those live in the evaluation, which is not a CBOM's business (principle 4: closed vocabularies, nothing guessed). An algorithm with no catalogue entry — a legacy cipher such as RC4, a named curve this program does not carry (SEED, Camellia, a binary curve) — is still named in the suite or certificate text; it simply gets no algorithm reference.
The caller decides whether to run pqc.Analyze/Annotate over the result, the same as it would for a host inventory; this package cannot do so itself without an import cycle (pqc imports cbom for its property namespace).
Types ¶
This section is empty.