Documentation
¶
Overview ¶
tasks defines the task interface, a task should be able
Index ¶
- Constants
- func GetAllTaskSetsNames() []string
- func GetAllTasksNames() []string
- func Validate(f *reportv1.Finding) error
- type HostnameTask
- type Inputs
- type MountTask
- type NetworkTask
- type PSAllTask
- type PSParentTask
- type PSSingleTask
- type PathTask
- type ProcessTask
- type ProxyTask
- type SandboxTask
- type SocketTask
- type Task
- type UserContextTask
Constants ¶
View Source
const ( WRITEABLEPATHS = "writeable_paths" SENSITIVEREADABLEPATHS = "sensitive_readable_paths" EXTERNALHOSTDNSRESOLUTION = "external_host_dns_resolution" EXTERNALHOSTCONNECTIVITY = "external_host_connectivity" UDPPORTSOPEN = "udp_ports_open" TCPPORTSOPEN = "tcp_ports_open" PROXYDETECTION = "proxy_detection" UNIXSOCKETDETECTION = "unix_socket_detection" PROCESSDETECTION = "process_detection" PARENTPROCESSDETECTION = "parent_process_detection" MOUNTEDVOLUMESDETECTION = "mounted_volumes_detections" USERCONTEXTDETECTION = "user_context_detection" HOSTNAMEDETECTION = "hostname_detection" SANDBOXDETECTION = "sandbox_detection" )
View Source
const TaskPrefix = "baseline"
Variables ¶
This section is empty.
Functions ¶
func GetAllTaskSetsNames ¶
func GetAllTaskSetsNames() []string
GetAllTaskSetsNames returns all the tasksets names
func GetAllTasksNames ¶
func GetAllTasksNames() []string
GetAllTasksNames returns all the tasks names
Types ¶
type HostnameTask ¶
type HostnameTask struct {
// contains filtered or unexported fields
}
HostnameTask produces: HOSTNAMEDETECTION
func NewHostnameTask ¶
func NewHostnameTask() *HostnameTask
func (*HostnameTask) GetDescription ¶
func (t *HostnameTask) GetDescription() string
type MountTask ¶
type MountTask struct {
// contains filtered or unexported fields
}
MountTask produces: MOUNTEDVOLUMESDETECTION
func NewMountTask ¶
func NewMountTask() *MountTask
func (*MountTask) GetDescription ¶
func (t *MountTask) GetDescription() string
type NetworkTask ¶
type NetworkTask struct {
// contains filtered or unexported fields
}
NetworkTask produces: EXTERNALHOSTDNSRESOLUTION, EXTERNALHOSTCONNECTIVITY, TCPPORTSOPEN, UDPPORTSOPEN
func NewNetworkTask ¶
func NewNetworkTask() *NetworkTask
func (*NetworkTask) GetDescription ¶
func (t *NetworkTask) GetDescription() string
type PSAllTask ¶
type PSAllTask struct {
// contains filtered or unexported fields
}
func NewPSAllTask ¶
func NewPSAllTask() *PSAllTask
func (*PSAllTask) GetDescription ¶
func (t *PSAllTask) GetDescription() string
type PSParentTask ¶
type PSParentTask struct {
// contains filtered or unexported fields
}
func NewPSParentTask ¶
func NewPSParentTask() *PSParentTask
func (*PSParentTask) GetDescription ¶
func (t *PSParentTask) GetDescription() string
type PSSingleTask ¶
type PSSingleTask struct {
// contains filtered or unexported fields
}
func NewPSSingleTask ¶
func NewPSSingleTask() *PSSingleTask
func (*PSSingleTask) GetDescription ¶
func (t *PSSingleTask) GetDescription() string
type PathTask ¶
type PathTask struct {
// contains filtered or unexported fields
}
func NewPathTask ¶
func NewPathTask() *PathTask
func (*PathTask) GetDescription ¶
func (t *PathTask) GetDescription() string
type ProcessTask ¶
type ProcessTask struct {
// contains filtered or unexported fields
}
ProcessTask produces: PROCESSDETECTION, PARENTPROCESSDETECTION
func NewProcessTask ¶
func NewProcessTask() *ProcessTask
func (*ProcessTask) GetDescription ¶
func (t *ProcessTask) GetDescription() string
type ProxyTask ¶
type ProxyTask struct {
// contains filtered or unexported fields
}
ProxyTask produces: PROXYDETECTION
func NewProxyTask ¶
func NewProxyTask() *ProxyTask
func (*ProxyTask) GetDescription ¶
func (t *ProxyTask) GetDescription() string
type SandboxTask ¶
type SandboxTask struct {
// contains filtered or unexported fields
}
SandboxTask produces: SANDBOXDETECTION
func NewSandboxTask ¶
func NewSandboxTask() *SandboxTask
func (*SandboxTask) GetDescription ¶
func (t *SandboxTask) GetDescription() string
type SocketTask ¶
type SocketTask struct {
// contains filtered or unexported fields
}
SocketTask produces: UNIXSOCKETDETECTION
func NewSocketTask ¶
func NewSocketTask() *SocketTask
func (*SocketTask) GetDescription ¶
func (t *SocketTask) GetDescription() string
type Task ¶
type Task interface {
// GetName returns the name of the task
GetName() string
// GetDescription returns the description of the task
GetDescription() string
// Run executes the task producing Findings
Run(ctx context.Context, ti Inputs) ([]*reportv1.Finding, error)
}
func GetPSTasks ¶
func GetPSTasks() []Task
func GetTaskSetsTasks ¶
func GetTasksByName ¶
GetTasksByName returns the given task
type UserContextTask ¶
type UserContextTask struct {
// contains filtered or unexported fields
}
UserContextTask produces: USERCONTEXTDETECTION
func NewUserContextTask ¶
func NewUserContextTask() *UserContextTask
func (*UserContextTask) GetDescription ¶
func (t *UserContextTask) GetDescription() string
Click to show internal directories.
Click to hide internal directories.