Documentation
¶
Overview ¶
Package stig provides a compliance plugin for STIG security controls.
Index ¶
- Constants
- type LoggingStatus
- type Plugin
- func (sp *Plugin) Description() string
- func (sp *Plugin) GetControlByID(id string) (*plugin.Control, error)
- func (sp *Plugin) GetControls() []plugin.Control
- func (sp *Plugin) Name() string
- func (sp *Plugin) RunChecks(config *model.OpnSenseDocument) []plugin.Finding
- func (sp *Plugin) ValidateConfiguration() error
- func (sp *Plugin) Version() string
Constants ¶
View Source
const ( // NetworkAny represents "any" network in firewall rules. NetworkAny = "any" // MaxDHCPInterfaces represents the maximum number of DHCP interfaces before flagging as unnecessary. MaxDHCPInterfaces = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoggingStatus ¶
type LoggingStatus int
LoggingStatus represents the result of logging configuration analysis.
const ( // LoggingStatusNotConfigured indicates no logging configuration is detected. LoggingStatusNotConfigured LoggingStatus = iota // LoggingStatusComprehensive indicates comprehensive logging is properly configured. LoggingStatusComprehensive // LoggingStatusPartial indicates logging is partially configured but missing critical components. LoggingStatusPartial // LoggingStatusUnableToDetermine indicates logging status cannot be determined due to model limitations. LoggingStatusUnableToDetermine )
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin implements the CompliancePlugin interface for STIG compliance.
func (*Plugin) Description ¶
Description returns the plugin description.
func (*Plugin) GetControlByID ¶
GetControlByID returns a specific control by ID.
func (*Plugin) GetControls ¶
GetControls returns all STIG controls.
func (*Plugin) RunChecks ¶
func (sp *Plugin) RunChecks(config *model.OpnSenseDocument) []plugin.Finding
RunChecks performs STIG compliance checks.
func (*Plugin) ValidateConfiguration ¶
ValidateConfiguration validates the plugin configuration.
Click to show internal directories.
Click to hide internal directories.