Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPermissionFixMessage ¶
GetPermissionFixMessage returns a platform-appropriate message for fixing file permissions.
func IsNullDevice ¶
IsNullDevice checks if a path refers to the null device on any platform. On Unix: /dev/null On Windows: nul, NUL, C:\nul, \\.\nul, etc. This function detects both Unix and Windows null device patterns regardless of the current platform, because config files may be shared across systems.
Types ¶
type AICliProbe ¶
type AICliProbe struct {
// contains filtered or unexported fields
}
AICliProbe checks ALI CLI credential and chat files
func NewAICliProbe ¶
func NewAICliProbe(config models.ProbeSettings, registry *detector.Registry) *AICliProbe
NewAICliProbe creates a new AI CLI credentials probe
func (*AICliProbe) IsEnabled ¶
func (p *AICliProbe) IsEnabled() bool
IsEnabled returns whether the probe is enabled
func (*AICliProbe) SetFileIndex ¶
func (p *AICliProbe) SetFileIndex(index *fileindex.FileIndex)
SetFileIndex sets the file index for this probe (implements FileIndexAware)
type CloudProbe ¶
type CloudProbe struct {
// contains filtered or unexported fields
}
CloudProbe checks cloud provider credential files
func NewCloudProbe ¶
func NewCloudProbe(config models.ProbeSettings, registry *detector.Registry) *CloudProbe
NewCloudProbe creates a new cloud credentials probe
func (*CloudProbe) IsEnabled ¶
func (p *CloudProbe) IsEnabled() bool
IsEnabled returns whether the probe is enabled
func (*CloudProbe) SetFileIndex ¶
func (p *CloudProbe) SetFileIndex(index *fileindex.FileIndex)
SetFileIndex sets the file index for this probe (implements FileIndexAware)
type EnvProbe ¶
type EnvProbe struct {
// contains filtered or unexported fields
}
EnvProbe checks environment variables for security issues
func NewEnvProbe ¶
func NewEnvProbe(config models.ProbeSettings, registry *detector.Registry) *EnvProbe
NewEnvProbe creates a new environment variable probe
func (*EnvProbe) SetFileIndex ¶
SetFileIndex sets the file index for this probe (implements FileIndexAware)
type FileIndexAware ¶
type FileIndexAware interface {
// SetFileIndex provides the file index to the probe
SetFileIndex(index *fileindex.FileIndex)
}
FileIndexAware is an optional interface that probes can implement to receive the pre-built file index before execution
type GHProbe ¶
type GHProbe struct {
// contains filtered or unexported fields
}
GHProbe checks for GitHub CLI authentication
func NewGHProbe ¶
func NewGHProbe(config models.ProbeSettings) *GHProbe
NewGHProbe creates a new GitHub CLI probe
type GitProbe ¶
type GitProbe struct {
// contains filtered or unexported fields
}
GitProbe checks Git configuration for security issues
func NewGitProbe ¶
func NewGitProbe(config models.ProbeSettings, registry *detector.Registry) *GitProbe
NewGitProbe creates a new Git probe
type JetBrainsProbe ¶
type JetBrainsProbe struct {
// contains filtered or unexported fields
}
JetBrainsProbe checks JetBrains project files for secrets
func NewJetBrainsProbe ¶
func NewJetBrainsProbe(config models.ProbeSettings, registry *detector.Registry) *JetBrainsProbe
NewJetBrainsProbe creates a new JetBrains probe
func (*JetBrainsProbe) IsEnabled ¶
func (p *JetBrainsProbe) IsEnabled() bool
IsEnabled returns whether the probe is enabled
func (*JetBrainsProbe) SetFileIndex ¶
func (p *JetBrainsProbe) SetFileIndex(index *fileindex.FileIndex)
SetFileIndex sets the file index for this probe (implements FileIndexAware)
type NPMProbe ¶
type NPMProbe struct {
// contains filtered or unexported fields
}
NPMProbe checks NPM and Yarn configuration for security issues
func NewNPMProbe ¶
func NewNPMProbe(config models.ProbeSettings, registry *detector.Registry) *NPMProbe
NewNPMProbe creates a new NPM probe
func (*NPMProbe) SetFileIndex ¶
SetFileIndex sets the file index for this probe (implements FileIndexAware)
type Probe ¶
type Probe interface {
// Name returns the name of the probe (e.g., "git", "ssh", "npm")
Name() string
// Execute runs the probe and returns findings
Execute(ctx context.Context) ([]models.Finding, error)
// IsEnabled returns whether the probe is enabled
IsEnabled() bool
}
Probe defines the interface that all probes must implement
type SSHProbe ¶
type SSHProbe struct {
// contains filtered or unexported fields
}
SSHProbe checks SSH configuration and key security
func NewSSHProbe ¶
func NewSSHProbe(config models.ProbeSettings, registry *detector.Registry) *SSHProbe
NewSSHProbe creates a new SSH probe
func (*SSHProbe) SetFileIndex ¶
SetFileIndex sets the file index for this probe (implements FileIndexAware)
type ShellHistoryProbe ¶
type ShellHistoryProbe struct {
// contains filtered or unexported fields
}
ShellHistoryProbe checks shell history files for secrets
func NewShellHistoryProbe ¶
func NewShellHistoryProbe(config models.ProbeSettings, registry *detector.Registry) *ShellHistoryProbe
NewShellHistoryProbe creates a new shell history probe
func (*ShellHistoryProbe) IsEnabled ¶
func (p *ShellHistoryProbe) IsEnabled() bool
IsEnabled returns whether the probe is enabled
func (*ShellHistoryProbe) Name ¶
func (p *ShellHistoryProbe) Name() string
Name returns the probe name
func (*ShellHistoryProbe) SetFileIndex ¶
func (p *ShellHistoryProbe) SetFileIndex(index *fileindex.FileIndex)
SetFileIndex sets the file index for this probe (implements FileIndexAware)