Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
record
command
Package main provides the record command for the go-safe-cmd-runner.
|
Package main provides the record command for the go-safe-cmd-runner. |
|
runner
command
Package main provides the entry point for the command runner application.
|
Package main provides the entry point for the command runner application. |
|
verify
command
Package main provides the verify command for the go-safe-cmd-runner.
|
Package main provides the verify command for the go-safe-cmd-runner. |
|
internal
|
|
|
ansicolor
Package ansicolor provides small helpers for coloring terminal output using ANSI escape sequences.
|
Package ansicolor provides small helpers for coloring terminal output using ANSI escape sequences. |
|
arm64util
Package arm64util provides shared ARM64 instruction decoding utilities.
|
Package arm64util provides shared ARM64 instruction decoding utilities. |
|
cmdcommon
Package cmdcommon provides common functionality for command-line tools.
|
Package cmdcommon provides common functionality for command-line tools. |
|
common
Package common provides shared utilities and error definitions used across multiple packages.
|
Package common provides shared utilities and error definitions used across multiple packages. |
|
dynamicanalysis
Package dynamicanalysis provides persistent storage for dynamic library analysis results.
|
Package dynamicanalysis provides persistent storage for dynamic library analysis results. |
|
dynlib
Package dynlib provides error types shared between ELF and Mach-O dynamic library analysis packages (elfdynlib and machodylib).
|
Package dynlib provides error types shared between ELF and Mach-O dynamic library analysis packages (elfdynlib and machodylib). |
|
dynlib/elfdynlib
Package elfdynlib provides dynamic library dependency analysis and verification for ELF binaries.
|
Package elfdynlib provides dynamic library dependency analysis and verification for ELF binaries. |
|
dynlib/machodylib
Package machodylib provides Mach-O dynamic library dependency analysis for LC_LOAD_DYLIB integrity verification.
|
Package machodylib provides Mach-O dynamic library dependency analysis for LC_LOAD_DYLIB integrity verification. |
|
fileanalysis
Package fileanalysis provides file analysis storage for syscall analysis results.
|
Package fileanalysis provides file analysis storage for syscall analysis results. |
|
filevalidator
Package filevalidator provides functionality for file validation and verification.
|
Package filevalidator provides functionality for file validation and verification. |
|
filevalidator/pathencoding
Package pathencoding provides error types for hybrid hash filename encoding operations.
|
Package pathencoding provides error types for hybrid hash filename encoding operations. |
|
groupmembership
Package groupmembership provides utilities for checking group membership and related user/group operations using system calls.
|
Package groupmembership provides utilities for checking group membership and related user/group operations using system calls. |
|
libccache
Package libccache provides caching and matching of libc syscall wrapper functions.
|
Package libccache provides caching and matching of libc syscall wrapper functions. |
|
logging
Package logging provides a flexible and extensible logging framework built on top of slog.
|
Package logging provides a flexible and extensible logging framework built on top of slog. |
|
redaction
Package redaction provides error types for redaction operations.
|
Package redaction provides error types for redaction operations. |
|
runner
Package runner provides the core functionality for running commands in a safe and controlled manner with group-based execution and dependency management.
|
Package runner provides the core functionality for running commands in a safe and controlled manner with group-based execution and dependency management. |
|
runner/base/audit
Package audit provides structured audit logging for privileged command execution.
|
Package audit provides structured audit logging for privileged command execution. |
|
runner/base/environment
Package environment provides environment variable filtering and management functionality for secure command execution with allowlist-based access control.
|
Package environment provides environment variable filtering and management functionality for secure command execution with allowlist-based access control. |
|
runner/base/executor
Package executor provides the core functionality for executing commands in a safe and controlled manner.
|
Package executor provides the core functionality for executing commands in a safe and controlled manner. |
|
runner/base/output
Package output provides functionality for capturing command output to files.
|
Package output provides functionality for capturing command output to files. |
|
runner/base/privilege
Package privilege provides secure privilege escalation functionality for command execution.
|
Package privilege provides secure privilege escalation functionality for command execution. |
|
runner/base/risk
Package risk provides command risk evaluation functionality for the safe command runner.
|
Package risk provides command risk evaluation functionality for the safe command runner. |
|
runner/base/risktypes
Package risktypes holds the shared data-transfer objects exchanged between the risk evaluator, the audit logger, the security analyzers, and the resource managers.
|
Package risktypes holds the shared data-transfer objects exchanged between the risk evaluator, the audit logger, the security analyzers, and the resource managers. |
|
runner/base/runnertypes
Package runnertypes defines the core data structures used throughout the command runner.
|
Package runnertypes defines the core data structures used throughout the command runner. |
|
runner/base/security
Package security provides security-related functionality for the command runner.
|
Package security provides security-related functionality for the command runner. |
|
runner/base/variable
Package variable provides definitions and utilities for automatically generated variables.
|
Package variable provides definitions and utilities for automatically generated variables. |
|
runner/bootstrap
Package bootstrap provides application initialization and setup functionality.
|
Package bootstrap provides application initialization and setup functionality. |
|
runner/cli
Package cli provides command-line interface functionality and validation.
|
Package cli provides command-line interface functionality and validation. |
|
runner/config
Package config provides configuration management and variable expansion for commands.
|
Package config provides configuration management and variable expansion for commands. |
|
runner/debuginfo
Package debuginfo provides debug information collection and formatting for dry-run mode.
|
Package debuginfo provides debug information collection and formatting for dry-run mode. |
|
runner/resource
Package resource provides the Manager interface and related types for managing all side-effects in both normal execution and dry-run modes.
|
Package resource provides the Manager interface and related types for managing all side-effects in both normal execution and dry-run modes. |
|
runner/runerrors
Package runerrors provides error classification and handling for the runner.
|
Package runerrors provides error classification and handling for the runner. |
|
safefileio
Package safefileio provides secure file I/O operations with protection against common security vulnerabilities like symlink attacks and TOCTOU race conditions.
|
Package safefileio provides secure file I/O operations with protection against common security vulnerabilities like symlink attacks and TOCTOU race conditions. |
|
security
Package security provides reusable security primitives that are not tied to runner-specific behavior.
|
Package security provides reusable security primitives that are not tied to runner-specific behavior. |
|
security/binaryanalyzer
Package binaryanalyzer provides common types and interfaces for binary analysis, independent of the binary format (ELF, Mach-O, etc.).
|
Package binaryanalyzer provides common types and interfaces for binary analysis, independent of the binary format (ELF, Mach-O, etc.). |
|
security/elfanalyzer
Package elfanalyzer provides ELF binary analysis for detecting network operation capability on Linux.
|
Package elfanalyzer provides ELF binary analysis for detecting network operation capability on Linux. |
|
security/machoanalyzer
Package machoanalyzer implements BinaryAnalyzer for Mach-O binaries.
|
Package machoanalyzer implements BinaryAnalyzer for Mach-O binaries. |
|
shebang
Package shebang provides utilities for parsing and validating shebang lines in script files to enable interpreter tracking and verification.
|
Package shebang provides utilities for parsing and validating shebang lines in script files to enable interpreter tracking and verification. |
|
terminal
Package terminal provides terminal capability detection for interactive UI features.
|
Package terminal provides terminal capability detection for interactive UI features. |
|
verification
Package verification provides file hash verification and result collection for dry-run mode operations.
|
Package verification provides file hash verification and result collection for dry-run mode operations. |
Click to show internal directories.
Click to hide internal directories.