security_headers_missing

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: MIT Imports: 8 Imported by: 0

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