malwaremanager

package
v0.2.111 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MalwareManagerClient

type MalwareManagerClient interface {
	ReportFileExec(k8sContainerID string, event tracerexectype.Event)
	ReportFileOpen(k8sContainerID string, event traceropentype.Event)
	ContainerCallback(notif containercollection.PubSubEvent)
}

type MalwareManagerMock

type MalwareManagerMock struct {
}

func CreateMalwareManagerMock

func CreateMalwareManagerMock() *MalwareManagerMock

func (MalwareManagerMock) ContainerCallback

func (r MalwareManagerMock) ContainerCallback(_ containercollection.PubSubEvent)

func (MalwareManagerMock) ReportFileExec

func (r MalwareManagerMock) ReportFileExec(_ string, _ tracerexectype.Event)

func (MalwareManagerMock) ReportFileOpen

func (r MalwareManagerMock) ReportFileOpen(_ string, _ traceropentype.Event)

type MalwareResult

type MalwareResult interface {
	// Get Basic Runtime Alert
	GetBasicRuntimeAlert() apitypes.BaseRuntimeAlert
	// Get Runtime Process Details
	GetRuntimeProcessDetails() apitypes.ProcessTree
	// Get Trigger Event
	GetTriggerEvent() igtypes.Event
	// Get Malware Description
	GetMalwareRuntimeAlert() apitypes.MalwareAlert
	// Get K8s Runtime Details
	GetRuntimeAlertK8sDetails() apitypes.RuntimeAlertK8sDetails

	// Set Workload Details
	SetWorkloadDetails(workloadDetails string)
	// Set Basic Runtime Alert
	SetBasicRuntimeAlert(basicRuntimeAlert apitypes.BaseRuntimeAlert)
	// Set Runtime Process Details
	SetRuntimeProcessDetails(processTree apitypes.ProcessTree)
	// Set Trigger Event
	SetTriggerEvent(event igtypes.Event)
	// Set Malware Description
	SetMalwareRuntimeAlert(malwareRuntimeAlert apitypes.MalwareAlert)
	// Set K8s Runtime Details
	SetRuntimeAlertK8sDetails(runtimeAlertK8sDetails apitypes.RuntimeAlertK8sDetails)
}

type MalwareScanner

type MalwareScanner interface {
	// Scan scans the event for malware.
	Scan(eventType utils.EventType, event interface{}, containerPid uint32) MalwareResult
}

Directories

Path Synopsis
v1

Jump to

Keyboard shortcuts

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