tls

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package tls checks a target's TLS configuration: protocol versions, cipher strength, certificate validity and expiry, chain, and HSTS preload eligibility. Every check is passive — it performs one TLS handshake with the target host (shared across checks via core.Memo) and inspects the result. It sends no application traffic and no attack payloads.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertChain

type CertChain struct{}

CertChain flags a certificate whose chain or hostname does not verify against the system roots.

func (CertChain) ASVS

func (CertChain) ASVS() []string

func (CertChain) Category

func (CertChain) Category() core.Category

func (CertChain) Description

func (CertChain) Description() string

func (CertChain) ID

func (CertChain) ID() string

func (CertChain) Mode

func (CertChain) Mode() core.Mode

func (CertChain) OWASP

func (CertChain) OWASP() []string

func (CertChain) Run

func (CertChain) Run(ctx context.Context, t core.Target) ([]core.Finding, error)

type CertExpiry

type CertExpiry struct{}

CertExpiry flags certificates that are expired (tagged core.TagExpiredCert, which caps the grade) or expiring soon.

func (CertExpiry) ASVS

func (CertExpiry) ASVS() []string

func (CertExpiry) Category

func (CertExpiry) Category() core.Category

func (CertExpiry) Description

func (CertExpiry) Description() string

func (CertExpiry) ID

func (CertExpiry) ID() string

func (CertExpiry) Mode

func (CertExpiry) Mode() core.Mode

func (CertExpiry) OWASP

func (CertExpiry) OWASP() []string

func (CertExpiry) Run

type HSTSPreload

type HSTSPreload struct{}

HSTSPreload flags an HTTPS host whose leaf certificate is fine but is a good candidate for HSTS preload (informational nudge; the header itself is checked by the headers collector).

func (HSTSPreload) ASVS

func (HSTSPreload) ASVS() []string

func (HSTSPreload) Category

func (HSTSPreload) Category() core.Category

func (HSTSPreload) Description

func (HSTSPreload) Description() string

func (HSTSPreload) ID

func (HSTSPreload) ID() string

func (HSTSPreload) Mode

func (HSTSPreload) Mode() core.Mode

func (HSTSPreload) OWASP

func (HSTSPreload) OWASP() []string

func (HSTSPreload) Run

type WeakCiphers

type WeakCiphers struct{}

WeakCiphers flags a negotiated cipher suite that Go marks insecure (e.g. RC4, 3DES, CBC suites without forward secrecy).

func (WeakCiphers) ASVS

func (WeakCiphers) ASVS() []string

func (WeakCiphers) Category

func (WeakCiphers) Category() core.Category

func (WeakCiphers) Description

func (WeakCiphers) Description() string

func (WeakCiphers) ID

func (WeakCiphers) ID() string

func (WeakCiphers) Mode

func (WeakCiphers) Mode() core.Mode

func (WeakCiphers) OWASP

func (WeakCiphers) OWASP() []string

func (WeakCiphers) Run

type WeakProtocols

type WeakProtocols struct{}

WeakProtocols flags support for TLS 1.0 or TLS 1.1.

func (WeakProtocols) ASVS

func (WeakProtocols) ASVS() []string

func (WeakProtocols) Category

func (WeakProtocols) Category() core.Category

func (WeakProtocols) Description

func (WeakProtocols) Description() string

func (WeakProtocols) ID

func (WeakProtocols) ID() string

func (WeakProtocols) Mode

func (WeakProtocols) Mode() core.Mode

func (WeakProtocols) OWASP

func (WeakProtocols) OWASP() []string

func (WeakProtocols) Run

Jump to

Keyboard shortcuts

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