Documentation
¶
Overview ¶
Package export renders normalized findings and events into interoperability formats: STIX 2.1 bundles and OpenTelemetry (GenAI/agent semantic conventions). Plan §10, §24.
Index ¶
- func OCSFEvent(e schema.Event) map[string]any
- func OCSFFinding(fd schema.Finding, caseID string, nowMillis int64) map[string]any
- func SARIF(findings []schema.Finding, caseID string) map[string]any
- func SigmaYAML(p rulepack.Pack, r rulepack.Rule) string
- func WriteOCSFEvents(events []schema.Event, path string) error
- func WriteOCSFFindings(findings []schema.Finding, caseID, path string) error
- func WriteOTel(events []schema.Event, path string) error
- func WriteSARIF(findings []schema.Finding, caseID, path string) error
- func WriteSTIX(findings []schema.Finding, caseID, path string) error
- func WriteSigmaDir(packs []rulepack.Pack, dir string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OCSFFinding ¶
OCSFFinding maps one finding to an OCSF Detection Finding (2004). Findings carry no timestamp of their own; `time` is the export time and the evidence reference points at the timestamped events.
func WriteOCSFEvents ¶
WriteOCSFEvents writes normalized events as OCSF JSON lines.
func WriteOCSFFindings ¶
WriteOCSFFindings writes findings as OCSF Detection Finding JSON lines.
func WriteOTel ¶
WriteOTel writes events as OTLP-style log records mapped to GenAI/agent semantic conventions, with AgentDFIR-specific attributes under the agentdfir.* namespace (plan §10). One JSON document (OTLP/JSON logs).
func WriteSARIF ¶
WriteSARIF writes findings as a SARIF 2.1.0 log.
Types ¶
This section is empty.