tlscbom

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2026 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
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 CipherID added in v0.4.0

func CipherID(s tlsprobe.SuiteResult) (string, bool)

CipherID and GroupID are the catalogue IDs this package gives a suite's cipher and a group, for the evaluation's list of algorithms in use (PRD-011 REQ-CLS-4), so both name them alike.

func Coverage added in v0.3.0

func Coverage(rep *tlsprobe.Report) []cdx.Property

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).

func GroupID added in v0.4.0

func GroupID(g tlsprobe.GroupResult) (string, bool)

GroupID is the catalogue ID this package gives a key-exchange group; see CipherID.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL