Documentation
¶
Overview ¶
Package servicesignatures identifies passive service greetings using bounded protocol parsers. Rules select parsers; they never contain executable patterns.
Index ¶
Constants ¶
const ( Format = "netcap-service-signatures" SchemaVersion = 1 FileName = "service-signatures.json" MaxCatalogueBytes = 1 << 20 MaxBannerBytes = 8192 )
const InventoryFileName = "service-signatures-status.json"
Variables ¶
This section is empty.
Functions ¶
func PublicationBytes ¶
func PublicationBytes() []byte
func ResourceAttribution ¶
func ResourceAttribution() json.RawMessage
func WriteInventory ¶
WriteInventory atomically records the catalogue used by this capture, including a disabled decoder, so an older run's snapshot cannot masquerade as this run.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func Load ¶
Load falls back to the independently authored protocol catalogue. The error must be surfaced to the operator; a bad external catalogue never stays active.
type Inventory ¶
type Inventory struct {
Format string `json:"format"`
SchemaVersion int `json:"schema_version"`
Scope string `json:"scope"`
State string `json:"state"`
Source string `json:"source"`
SourceSHA256 string `json:"source_sha256,omitempty"`
CheckedAt time.Time `json:"checked_at"`
Degraded bool `json:"degraded"`
Warning string `json:"warning,omitempty"`
RuleCount int `json:"rule_count"`
Protocols []string `json:"protocols"`
Catalogue *Catalogue `json:"catalogue,omitempty"`
Limitations []string `json:"limitations"`
}