Documentation
¶
Overview ¶
Most code lifted from https://github.com/botherder/kraken.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Hostname string
Hostname (current machine).
Functions ¶
This section is empty.
Types ¶
type Detection ¶
type Detection struct { Host string `json:"host"` Path string `json:"path"` Signature string `json:"signature"` Timestamp time.Time `json:"timestamp"` }
Detection entry.
func NewDetection ¶
NewDetection builds a new Detection object for the current host.
type FindDetectionsBySiteRequest ¶
type FindDetectionsBySiteRequest struct {
Site string `json:"site"`
}
FindDetectionsBySiteRequest is the request type for /api/search/by_site.
type FindDetectionsBySiteResponse ¶
type FindDetectionsBySiteResponse struct {
Detections []*PathDetection `json:"detections"`
}
FindDetectionsBySiteResponse is the result type for FindDetectionsBySiteRequest.
type FindUnresolvedDetectionPathsRequest ¶
type FindUnresolvedDetectionPathsRequest struct {
Host string `json:"host"`
}
type FindUnresolvedDetectionPathsResponse ¶
type FindUnresolvedDetectionPathsResponse struct {
Paths []string `json:"paths"`
}
type PathDetection ¶
type PathDetection struct { Host string `json:"host"` Path string `json:"path"` Site string `json:"site"` Signatures []string `json:"signatures"` FirstStamp time.Time `json:"first_stamp"` LastStamp time.Time `json:"last_stamp"` }
PathDetection summarizes the detections by path, aggregating all non-resolved detections over time.
type ResolveEntry ¶
type ResolveRequest ¶
type ResolveRequest struct { Host string `json:"host"` Entries []*ResolveEntry `json:"entries"` }
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner can apply YARA rules to files.
func NewScanner ¶
NewScanner loads YARA rules from rulesPath and returns a new Scanner.
type SubmissionRequest ¶
type SubmissionRequest struct {
Detections []*Detection `json:"detections"`
}
SubmissionRequest is the request type for /api/submission.
Click to show internal directories.
Click to hide internal directories.