harden

package
v1.0.15 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyDSMHardening

func ApplyDSMHardening() error

func ApplyKernelHardening

func ApplyKernelHardening() error

ApplyKernelHardening applies kernel security hardening

func ApplyNetworkHardening

func ApplyNetworkHardening() error

ApplyNetworkHardening applies network security hardening

func ApplySSHHardening

func ApplySSHHardening() error

ApplySSHHardening applies SSH security hardening.

func ApplyServiceHardening

func ApplyServiceHardening() error

func ApplyShellHardening

func ApplyShellHardening() error

ApplyShellHardening applies shell history hardening

func PromptUser

func PromptUser(message string) string

PromptUser prompts the user for confirmation

Types

type HardeningCheck

type HardeningCheck struct {
	Name string
	Fn   func() []HardeningResult
}

type HardeningResult

type HardeningResult struct {
	Secure         bool
	Message        string
	Recommendation string
}

func CheckCertificates

func CheckCertificates() []HardeningResult

CheckCertificates checks the system certificate and returns a short hardening result.

func CheckDSMSecurity

func CheckDSMSecurity() []HardeningResult

func CheckKernelHardening

func CheckKernelHardening() []HardeningResult

CheckKernelHardening checks kernel security settings

func CheckNetworkHardening

func CheckNetworkHardening() []HardeningResult

CheckNetworkHardening checks network security settings

func CheckSSHHardening

func CheckSSHHardening() []HardeningResult

CheckSSHHardening checks SSH configuration

func CheckSharedFolders

func CheckSharedFolders() []HardeningResult

func CheckShellHistory

func CheckShellHistory() []HardeningResult

CheckShellHistory checks shell history configuration

func CheckSynologyServices

func CheckSynologyServices() []HardeningResult

func CheckSynologyUsers

func CheckSynologyUsers() []HardeningResult

type SecurityScore

type SecurityScore struct {
	Total      int
	Passed     int
	Failed     int
	Percentage int
	Grade      string
}

func CalculateScore

func CalculateScore(results []HardeningResult) SecurityScore

func (SecurityScore) String

func (s SecurityScore) String() string

Jump to

Keyboard shortcuts

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