Documentation
¶
Index ¶
Constants ¶
const FlightSimRevision = "3709d1c6905d9527885c62f66f49a955c7b0d191"
const StatsFilename = "NetworkDetection.json"
Variables ¶
This section is empty.
Functions ¶
func BeaconStats ¶
BeaconStats summarizes the intervals between consecutive connection starts. Jitter is the coefficient of variation (standard deviation / mean).
func SyntheticOnlyCase ¶
SyntheticOnlyCase reports qualification cases without a captured FlightSim execution: the benign controls and periodic beacons, which FlightSim at the pinned revision does not generate.
Types ¶
type ApplicationEngine ¶
type ApplicationEngine struct {
Alerts, Overflow uint64
// contains filtered or unexported fields
}
func NewApplication ¶
func NewApplication(c Config) *ApplicationEngine
func (*ApplicationEngine) Observe ¶
func (e *ApplicationEngine) Observe(o ApplicationObservation) []*types.Alert
type ApplicationObservation ¶
type ApplicationObservation struct {
At int64
Scope Scope
Kind, SrcIP, DstIP string
SrcPort, DstPort uint16
Method, Path, Host, CommunityID, Qualification string
Status int
Executable bool
}
func Observation ¶
func Observation(m proto.Message) (ApplicationObservation, bool)
type Config ¶
type Config struct {
WindowNS int64 `json:"windowNS"`
DedupNS int64 `json:"dedupNS"`
MaxKeys int `json:"maxKeys"`
MaxFlows int `json:"maxFlows"`
DNSNames int `json:"dnsNames"`
ScanTargets int `json:"scanTargets"`
SMTPHosts int `json:"smtpHosts"`
ICMPEchoes int `json:"icmpEchoes"`
SSHBytes uint64 `json:"sshBytes"`
ApprovedSources []string `json:"approvedSources"`
Indicators []Indicator `json:"indicators"`
// Periodic TCP connection starts from one source to one service. Samples
// is the number of connection starts examined (0 disables), Jitter the
// largest accepted coefficient of variation of their intervals.
BeaconSamples int `json:"beaconSamples"`
BeaconJitter float64 `json:"beaconJitter"`
BeaconMinIntervalNS int64 `json:"beaconMinIntervalNS"`
BeaconWindowNS int64 `json:"beaconWindowNS"`
}
func DefaultConfig ¶
func DefaultConfig() Config
func LoadConfig ¶
type Event ¶
type Event struct {
At int64 `json:"at"`
Scope Scope `json:"scope"`
Kind string `json:"kind"`
SrcIP string `json:"srcIP"`
DstIP string `json:"dstIP"`
SrcPort uint16 `json:"srcPort,omitempty"`
DstPort uint16 `json:"dstPort,omitempty"`
Name string `json:"name,omitempty"`
QType uint16 `json:"qType,omitempty"`
Seq uint32 `json:"seq,omitempty"`
Payload []byte `json:"payload,omitempty"`
}
Event is capture-derived; fixture scenario labels are never detector inputs.
type Evidence ¶
type Evidence struct {
Schema int `json:"schema"`
Detector string `json:"detector"`
Classification string `json:"classification"`
Scope Scope `json:"scope"`
FirstSeen int64 `json:"firstSeen"`
LastSeen int64 `json:"lastSeen"`
Observed uint64 `json:"observed"`
Threshold uint64 `json:"threshold"`
WindowNS int64 `json:"windowNS"`
Samples []string `json:"samples"`
Limitations []string `json:"limitations"`
Indicator *Indicator `json:"indicator,omitempty"`
}
type Scope ¶
type Stats ¶
type Stats struct {
ApplicationAlerts uint64 `json:"applicationAlerts,omitempty"`
Schema int `json:"schema"`
Events uint64 `json:"events"`
Alerts uint64 `json:"alerts"`
Overflow uint64 `json:"overflow"`
Late uint64 `json:"late"`
StreamGaps uint64 `json:"streamGaps"`
Keys int `json:"keys"`
Flows int `json:"flows"`
Indicators int `json:"indicators"`
Error string `json:"error,omitempty"`
}