security_headers_missing

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 8 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    = "security-headers-missing"
	ModuleName  = "Security Headers Missing"
	ModuleShort = "Detects missing/weak HTTP security headers and cacheable sensitive responses"
)

Variables

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

	ModuleConfirmation = "" /* 134-byte string literal not displayed */
	ModuleSeverity     = severity.Info
	ModuleConfidence   = severity.Certain
	ModuleTags         = []string{"header-security", "misconfiguration", "hygiene", "light"}
)

Functions

This section is empty.

Types

type Module

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

Module implements the Security Headers Missing passive scanner. It folds the related header-hardening checks (Referrer-Policy weaknesses and cacheable sensitive HTTPS responses) into a single INFO-severity finding rather than emitting them as separate low-severity findings.

func New

func New() *Module

New creates a new Security Headers Missing module.

func (*Module) CanProcess

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

CanProcess prevents an unsuitable JSON/error/static response from claiming the host before a representative HTML document arrives.

func (*Module) ScanPerHost

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

ScanPerHost checks response headers for missing/weak security headers and cacheable sensitive content once per host.

Jump to

Keyboard shortcuts

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