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 ¶
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 (*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.
Click to show internal directories.
Click to hide internal directories.