tls_protocol_cipher_audit

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: MIT Imports: 14 Imported by: 1 module, 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

Index

Constants

View Source
const (
	ModuleID    = "tls-protocol-cipher-audit"
	ModuleName  = "TLS Protocol & Cipher Audit"
	ModuleShort = "Grades a host's TLS by negotiating deprecated protocols and weak cipher suites directly"
)

Variables

View Source
var (
	ModuleDesc = `` /* 610-byte string literal not displayed */

	ModuleConfirmation = "" /* 188-byte string literal not displayed */
	ModuleSeverity     = severity.Low
	ModuleConfidence   = severity.Certain
	ModuleTags         = []string{"tls", "crypto", "transport", "misconfiguration", "hygiene", "moderate"}
)

Functions

This section is empty.

Types

type Module

type Module struct {
	modkit.BaseActiveModule
	// contains filtered or unexported fields
}

Module implements the TLS Protocol & Cipher Audit active scanner.

func New

func New() *Module

New creates a new TLS Protocol & Cipher Audit module.

func (*Module) CanProcess

func (m *Module) CanProcess(ctx *httpmsg.HttpRequestResponse) bool

CanProcess accepts any request carrying a resolvable service; the HTTPS/TLS gate is applied once per host inside ScanPerHost.

func (*Module) IncludesBaseCanProcess

func (m *Module) IncludesBaseCanProcess() bool

IncludesBaseCanProcess returns false because this module uses a custom CanProcess.

func (*Module) ScanPerHost

func (m *Module) ScanPerHost(
	ctx *httpmsg.HttpRequestResponse,
	httpClient *http.Requester,
	scanCtx *modkit.ScanContext,
) ([]*output.ResultEvent, error)

ScanPerHost audits the host's TLS configuration. It first confirms the host actually speaks TLS (a baseline handshake) — the technology gate — then probes each weak protocol/cipher setting, re-confirming every hit with a second handshake before reporting. A host that only supports TLS 1.2+/forward-secret AEAD suites yields no finding.

Jump to

Keyboard shortcuts

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