Documentation
¶
Overview ¶
Package wincerts is the sensor for the certificates in the Windows system certificate stores: the machine's own certificates, the trust anchors (root and intermediate authorities), trusted publishers and trusted people, for the machine and for the user the collector runs as.
It asks Windows, through internal/winapi, for each allow-listed store and describes each certificate from its own encoded bytes: subject, issuer, validity, key algorithm and size, signature algorithm, and whether a private key is associated with it. It never reads, opens, exports or uses a key (ADR-0005, ADR-0016; SECARCH-001 SR-06, SR-07).
Like windows-cng it knows nothing about Windows itself, so the logic is tested anywhere with a fake, and it runs only for a live Windows host: a mounted disk or a --root override has no certificate stores this sensor could ask about.
Index ¶
Constants ¶
const ( // Name is the sensor's registry name. Name = "windows-certs" // Version is the version of this sensor's behaviour. Version = "0.1.0" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Sensor ¶
type Sensor struct {
// contains filtered or unexported fields
}
Sensor implements sense.Sensor.
func New ¶
func New(env sense.Env, api winapi.CertStoreAPI) *Sensor
New returns a sensor that asks api about the host described by env.