Documentation
¶
Index ¶
- func ApplyDSMHardening() error
- func ApplyKernelHardening() error
- func ApplyNetworkHardening() error
- func ApplySSHHardening() error
- func ApplyServiceHardening() error
- func ApplyShellHardening() error
- func PromptUser(message string) string
- type HardeningCheck
- type HardeningResult
- func CheckCertificates() []HardeningResult
- func CheckDSMSecurity() []HardeningResult
- func CheckKernelHardening() []HardeningResult
- func CheckNetworkHardening() []HardeningResult
- func CheckSSHHardening() []HardeningResult
- func CheckSharedFolders() []HardeningResult
- func CheckShellHistory() []HardeningResult
- func CheckSynologyServices() []HardeningResult
- func CheckSynologyUsers() []HardeningResult
- type SecurityScore
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 ¶
PromptUser prompts the user for confirmation
Types ¶
type HardeningCheck ¶
type HardeningCheck struct {
Name string
Fn func() []HardeningResult
}
type HardeningResult ¶
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 ¶
func CalculateScore ¶
func CalculateScore(results []HardeningResult) SecurityScore
func (SecurityScore) String ¶
func (s SecurityScore) String() string
Click to show internal directories.
Click to hide internal directories.