filesystem

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const ModuleName = "file_system_and_storage"

ModuleName identifies this component module.

Variables

This section is empty.

Functions

func CollectCryptStorageHint

func CollectCryptStorageHint() *payload.CryptStorageHint

CollectCryptStorageHint summarizes crypttab and lsblk crypt volumes (no key material).

func CollectFileIntegrityTooling

func CollectFileIntegrityTooling() *payload.FileIntegrityTooling

CollectFileIntegrityTooling detects AIDE/Tripwire-style installation hints (no DB upload).

func CollectHostDisk

func CollectHostDisk() (*payload.HostDisk, string)

CollectHostDisk reports mount usage via gopsutil disk.Partitions(false) + disk.Usage. The second return is non-empty when host disk usage could not be collected (error message for ingest).

func CollectHostNetwork

func CollectHostNetwork() (*payload.HostNetwork, string)

CollectHostNetwork summarizes interfaces and public-IP hints via gopsutil net.Interfaces.

func CollectHostPath

func CollectHostPath() *payload.HostPath

CollectHostPath enumerates PATH directories with exists and world-writable flags (skips dirs under /home).

func CollectHostSuid

func CollectHostSuid() *payload.HostSuid

CollectHostSuid lists setuid binaries under common roots (bounded). Implemented with filepath.WalkDir (no external find): gopsutil does not expose filesystem setuid enumeration.

func CollectMountOptionsAudit

func CollectMountOptionsAudit() *payload.MountOptionsAudit

CollectMountOptionsAudit parses /etc/fstab and live mounts (gopsutil disk.Partitions) for hardening flags.

func CollectNfsExportsFingerprint

func CollectNfsExportsFingerprint() *payload.NfsExportsFingerprint

CollectNfsExportsFingerprint parses /etc/exports with path hashes (no raw paths).

func CollectPathPermissionsAudit

func CollectPathPermissionsAudit() *payload.PathPermissionsAudit

CollectPathPermissionsAudit samples world-writable dirs, /tmp sticky, SGID files, and unowned paths (bounded).

func CollectUsbStoragePosture

func CollectUsbStoragePosture() *payload.UsbStoragePosture

CollectUsbStoragePosture reports usb_storage load state and modprobe blacklist hints.

Types

This section is empty.

Jump to

Keyboard shortcuts

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