Documentation
¶
Index ¶
- type Analyzer
- func (a *Analyzer) Analyze() error
- func (a *Analyzer) AnalyzeLive() error
- func (a *Analyzer) ExportCSV() error
- func (a *Analyzer) ExportHTML() error
- func (a *Analyzer) ExportJSON() error
- func (a *Analyzer) GetC2DetectionCount() int
- func (a *Analyzer) GetCertCount() int
- func (a *Analyzer) GetCredentialCount() int
- func (a *Analyzer) GetCredentials() []Credential
- func (a *Analyzer) GetFileCount() int
- func (a *Analyzer) GetFlowCount() int
- func (a *Analyzer) GetHTTPRequestCount() int
- func (a *Analyzer) GetOutputDir() string
- func (a *Analyzer) GetProcessed() int64
- func (a *Analyzer) GetProcessingTime() time.Duration
- func (a *Analyzer) GetProtocolDistribution() map[string]int64
- func (a *Analyzer) GetRecentC2(limit int) []C2Detection
- func (a *Analyzer) GetRecentThreats(limit int) []Threat
- func (a *Analyzer) GetStartTime() time.Time
- func (a *Analyzer) GetStats() Statistics
- func (a *Analyzer) GetThreatCount() int
- func (a *Analyzer) GetThreats() []Threat
- func (a *Analyzer) GetTopFlows(limit int) []Flow
- func (a *Analyzer) GetTopTalkers(limit int) []TalkerInfo
- func (a *Analyzer) GetTotalBytes() int64
- func (a *Analyzer) IsCaptureStopped() bool
- func (a *Analyzer) PrintSummary()
- func (a *Analyzer) StopCapture()
- type Anonymization
- type BeaconPattern
- type C2Detection
- type Certificate
- type Credential
- type CryptoMining
- type DashboardServer
- type DashboardSnapshot
- type DataExfiltration
- type ExtractedFile
- type Flow
- type FlowKey
- type FlowSnapshot
- type HTTPRequest
- type ICMPTunnel
- type IRCMessage
- type LDAPMessage
- type LateralMovement
- type PacketInfo
- type SIPMessage
- type SNMPMessage
- type SSHTunnel
- type Statistics
- type StegoDetection
- type SyslogMessage
- type TFTPTransfer
- type TLSFingerprint
- type TalkerInfo
- type Threat
- type XMPPMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Analyzer ¶
type Analyzer struct {
// contains filtered or unexported fields
}
func (*Analyzer) AnalyzeLive ¶
func (*Analyzer) ExportHTML ¶
func (*Analyzer) ExportJSON ¶
func (*Analyzer) GetC2DetectionCount ¶
func (*Analyzer) GetCertCount ¶
func (*Analyzer) GetCredentialCount ¶
func (*Analyzer) GetCredentials ¶
func (a *Analyzer) GetCredentials() []Credential
func (*Analyzer) GetFileCount ¶
func (*Analyzer) GetFlowCount ¶
func (*Analyzer) GetHTTPRequestCount ¶
func (*Analyzer) GetOutputDir ¶
func (*Analyzer) GetProcessed ¶
func (*Analyzer) GetProcessingTime ¶
func (*Analyzer) GetProtocolDistribution ¶
func (*Analyzer) GetRecentC2 ¶
func (a *Analyzer) GetRecentC2(limit int) []C2Detection
func (*Analyzer) GetRecentThreats ¶
func (*Analyzer) GetStartTime ¶
func (*Analyzer) GetThreatCount ¶
func (*Analyzer) GetThreats ¶
func (*Analyzer) GetTopFlows ¶
func (*Analyzer) GetTopTalkers ¶
func (a *Analyzer) GetTopTalkers(limit int) []TalkerInfo
func (*Analyzer) GetTotalBytes ¶
func (*Analyzer) IsCaptureStopped ¶
func (*Analyzer) PrintSummary ¶
func (a *Analyzer) PrintSummary()
func (*Analyzer) StopCapture ¶
func (a *Analyzer) StopCapture()
type Anonymization ¶
type Anonymization struct {
Timestamp string
SrcIP string
DstIP string
DstPort uint16
Type string
Confidence string
}
Anonymization represents detected anonymization/VPN usage
type BeaconPattern ¶
type BeaconPattern struct {
FlowKey FlowKey
Interval time.Duration
Jitter float64
Confidence string
PacketCount int
StartTime time.Time
EndTime time.Time
BytesTotal int64
}
BeaconPattern represents a detected beaconing pattern
type C2Detection ¶
type Certificate ¶
type Credential ¶
type CryptoMining ¶
type CryptoMining struct {
Timestamp string
SrcIP string
DstIP string
DstPort uint16
Pool string
Protocol string
Confidence string
}
CryptoMining represents detected cryptocurrency mining activity
type DashboardServer ¶
type DashboardServer struct {
// contains filtered or unexported fields
}
DashboardServer serves a live dashboard over HTTP with SSE updates.
func NewDashboardServer ¶
func NewDashboardServer(a *Analyzer, port int) *DashboardServer
NewDashboardServer creates a dashboard bound to the given analyzer.
func (*DashboardServer) Shutdown ¶
func (ds *DashboardServer) Shutdown()
Shutdown gracefully stops the dashboard server.
func (*DashboardServer) Start ¶
func (ds *DashboardServer) Start() error
Start begins serving the dashboard. Non-blocking.
type DashboardSnapshot ¶
type DashboardSnapshot struct {
Timestamp string `json:"timestamp"`
Uptime string `json:"uptime"`
Stopped bool `json:"stopped"`
Packets int64 `json:"packets"`
Bytes int64 `json:"bytes"`
Flows int `json:"flows"`
Threats int `json:"threats"`
HTTPReqs int `json:"httpReqs"`
C2Count int `json:"c2Count"`
Credentials int `json:"credentials"`
ThreatScore float64 `json:"threatScore"`
Protocols map[string]int64 `json:"protocols"`
TopTalkers []TalkerInfo `json:"topTalkers"`
RecentThreats []Threat `json:"recentThreats"`
RecentC2 []C2Detection `json:"recentC2"`
TopFlows []FlowSnapshot `json:"topFlows"`
}
DashboardSnapshot is the JSON payload sent to the browser each tick.
type DataExfiltration ¶
type DataExfiltration struct {
Timestamp time.Time
SrcIP string
DstIP string
DstPort uint16
Protocol string
BytesOut int64
Duration time.Duration
Rate float64
Method string
Confidence string
}
DataExfiltration represents detected data exfiltration
type ExtractedFile ¶
type FlowSnapshot ¶
type FlowSnapshot struct {
SrcIP string `json:"srcIP"`
SrcPort uint16 `json:"srcPort"`
DstIP string `json:"dstIP"`
DstPort uint16 `json:"dstPort"`
Proto string `json:"proto"`
Packets int64 `json:"packets"`
Bytes int64 `json:"bytes"`
}
FlowSnapshot is a serializable subset of Flow for the dashboard.
type HTTPRequest ¶
type ICMPTunnel ¶
type ICMPTunnel struct {
Timestamp time.Time
SrcIP string
DstIP string
Type uint8
Code uint8
PayloadSize int
Entropy float64
Suspicious bool
Reason string
Confidence string
}
ICMPTunnel represents a detected ICMP tunnel
type IRCMessage ¶
type LDAPMessage ¶
type LateralMovement ¶
type LateralMovement struct {
Timestamp time.Time
SrcIP string
Targets []string
Protocol string
Port uint16
Technique string
Confidence string
TargetCount int
}
LateralMovement represents detected lateral movement activity
type PacketInfo ¶
type SIPMessage ¶
type SNMPMessage ¶
type SSHTunnel ¶
type SSHTunnel struct {
Timestamp time.Time
SrcIP string
DstIP string
SrcPort uint16
DstPort uint16
BytesPerSecond float64
PacketRate float64
Duration float64
TotalBytes int64
TotalPackets int64
Suspicious bool
Reason string
Confidence string
}
SSHTunnel represents a detected SSH tunnel
type Statistics ¶
type StegoDetection ¶
type StegoDetection struct {
Timestamp time.Time
Protocol string
Filename string
FileType string
Indicator string
Confidence string
SrcIP string
DstIP string
Method string
}
StegoDetection represents detected steganography
type SyslogMessage ¶
type TFTPTransfer ¶
type TLSFingerprint ¶
type TLSFingerprint struct {
Timestamp time.Time
SrcIP string
DstIP string
SrcPort uint16
DstPort uint16
JA3Hash string
JA3String string
ServerName string
TLSVersion string
Suspicious bool
Framework string
Confidence string
}
TLSFingerprint represents a JA3/JA4 fingerprint