Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Decoder = &decoder.AbstractDecoder{ Type: types.Type_NC_Exploit, Name: "Exploit", Description: "An exploit proof of concept that is applicable for a version of software observed on the network", PostInit: func(e *decoder.AbstractDecoder) error { // Load vulnerabilities DB index var ( err error indexName = db.Path(resolvers.DataBaseFolderPath) ) exploitLog, _, err = logging.InitZapLogger( decoderconfig.Instance.Out, "exploit", decoderconfig.Instance.Debug, ) if err != nil { return err } db.ExploitsIndex, err = db.Open(indexName) if err != nil { db.ExploitsIndex = nil exploitLog.Warn("exploit lookups disabled", zap.String("path", indexName), zap.Error(err)) } return nil }, DeInit: func(decoder *decoder.AbstractDecoder) error { db.Close(db.ExploitsIndex) return exploitLog.Sync() }, }
Decoder for protocol analysis and writing audit records to disk.
Functions ¶
func ExploitsLookup ¶
ExploitsLookup searches netcap.sqlite for exploits applicable to software. Results require an explicit reference to an applicable CVE.
func ResetExploitStore ¶
func ResetExploitStore()
ResetExploitStore clears the exploit deduplication store This should be called when resetting state between processing different files
Types ¶
This section is empty.