Documentation ¶
Index ¶
- Constants
- Variables
- func InitHookedSyscall() error
- type DeriveFunction
- func DetectHookedSyscall(kernelSymbols *environment.KernelSymbolTable) DeriveFunction
- func HookedSeqOps(kernelSymbols *environment.KernelSymbolTable) DeriveFunction
- func NetFlowTCPBegin(cache *dnscache.DNSCache) DeriveFunction
- func NetFlowTCPEnd(cache *dnscache.DNSCache) DeriveFunction
- func NetPacketDNS() DeriveFunction
- func NetPacketDNSRequest() DeriveFunction
- func NetPacketDNSResponse() DeriveFunction
- func NetPacketHTTP() DeriveFunction
- func NetPacketHTTPRequest() DeriveFunction
- func NetPacketHTTPResponse() DeriveFunction
- func NetPacketICMP() DeriveFunction
- func NetPacketICMPv6() DeriveFunction
- func NetPacketIPv4() DeriveFunction
- func NetPacketIPv6() DeriveFunction
- func NetPacketTCP() DeriveFunction
- func NetPacketUDP() DeriveFunction
- func NetTCPConnect(cache *dnscache.DNSCache) DeriveFunction
- type ExecFailedGenerator
- type Table
Constants ¶
const ( IPPROTO_TCP uint8 = 6 IPPROTO_UDP uint8 = 17 )
Variables ¶
var NetSeqOps = [6]string{
"tcp4_seq_ops",
"tcp6_seq_ops",
"udp_seq_ops",
"udp6_seq_ops",
"raw_seq_ops",
"raw6_seq_ops",
}
Struct names for the interfaces HookedSeqOpsEventID checks for hooks The show,start,next and stop operation function pointers will be checked for each of those
var NetSeqOpsFuncs = [4]string{
"show",
"start",
"next",
"stop",
}
Functions ¶
Types ¶
type DeriveFunction ¶
DeriveFunction is a function prototype for a function that receives an event as argument and may produce a new event if relevant. It returns a derived or empty event, depending on successful derivation, and an error if one occurred.
func DetectHookedSyscall ¶
func DetectHookedSyscall(kernelSymbols *environment.KernelSymbolTable) DeriveFunction
func HookedSeqOps ¶
func HookedSeqOps(kernelSymbols *environment.KernelSymbolTable) DeriveFunction
func NetFlowTCPBegin ¶
func NetFlowTCPBegin(cache *dnscache.DNSCache) DeriveFunction
func NetFlowTCPEnd ¶
func NetFlowTCPEnd(cache *dnscache.DNSCache) DeriveFunction
func NetPacketDNS ¶
func NetPacketDNS() DeriveFunction
func NetPacketDNSRequest ¶
func NetPacketDNSRequest() DeriveFunction
func NetPacketDNSResponse ¶
func NetPacketDNSResponse() DeriveFunction
func NetPacketHTTP ¶
func NetPacketHTTP() DeriveFunction
func NetPacketHTTPRequest ¶
func NetPacketHTTPRequest() DeriveFunction
func NetPacketHTTPResponse ¶
func NetPacketHTTPResponse() DeriveFunction
func NetPacketICMP ¶
func NetPacketICMP() DeriveFunction
func NetPacketICMPv6 ¶
func NetPacketICMPv6() DeriveFunction
func NetPacketIPv4 ¶
func NetPacketIPv4() DeriveFunction
func NetPacketIPv6 ¶
func NetPacketIPv6() DeriveFunction
func NetPacketTCP ¶
func NetPacketTCP() DeriveFunction
func NetPacketUDP ¶
func NetPacketUDP() DeriveFunction
func NetTCPConnect ¶
func NetTCPConnect(cache *dnscache.DNSCache) DeriveFunction
type ExecFailedGenerator ¶
type ExecFailedGenerator struct {
// contains filtered or unexported fields
}
ExecFailedGenerator is the object which implement the ProcessExecuteFailed event derivation
func InitProcessExecuteFailedGenerator ¶
func InitProcessExecuteFailedGenerator() (*ExecFailedGenerator, error)
InitProcessExecuteFailedGenerator initialize a new generator for the ProcessExecuteFailed event.
func (*ExecFailedGenerator) ProcessExecuteFailed ¶
func (gen *ExecFailedGenerator) ProcessExecuteFailed() DeriveFunction
ProcessExecuteFailed return the DeriveFunction for the "process_execute_failed" event.
type Table ¶
Table defines a table between events and events they can be derived into corresponding to a deriveFunction The Enabled flag is used in order to skip derivation of unneeded events.
func (Table) DeriveEvent ¶
DeriveEvent takes a trace.Event and checks if it can derive additional events from it as defined by a derivationTable.