Files
marcredhat-siem-toolkit-pat…/parsers/MicrosoftDNS-OCSF
T
marc 7c1687efce Sync upstream features; preserve fork KV scanner, parsers, verifier
Brought in 35 upstream commits (MITRE heatmap, health score, dependency map,
PowerQuery playground, onboarding tracker, product grouping, modern UI redesign).

Preserved fork additions:
  backend/routers/quality.py  KV scanner, pattern refs, JS keys, JSON mode,
                              /parsers + /sync-from-sdl endpoints
  parsers/                    96 OCSF + tenant parsers
  tools/stormshield-verify/   end-to-end ingest regression test
  .gitignore                  un-ignored parsers/*
  CHANGES.md, PATCHES.md
2026-05-22 18:19:52 +02:00

49 lines
1.8 KiB
Plaintext

{
// Microsoft DNS debug log parser — OCSF v1.3.0
attributes: {
"metadata.version": "1.3.0",
"metadata.product.vendor_name": "Microsoft",
"metadata.product.name": "DNS Server",
"Category": "network",
"dataSource.vendor": "Microsoft",
"dataSource.name": "DNS Server",
"dataSource.category": "dns",
"category_uid": 4,
"category_name": "Network Activity",
"class_uid": 4003,
"class_name": "DNS Activity",
"activity_id": 1,
"type_uid": 400301,
"status_id": 1,
"severity_id": 1
},
patterns: {
ipv4: "\\d+\\.\\d+\\.\\d+\\.\\d+",
word: "\\S+",
rest: ".*"
},
formats: [
{
id: "msdns_query",
attributes: {
class_uid: 4003, class_name: "DNS Activity",
type_uid: 400301
},
format: ".* $proto=word$ $direction=word$ $src_ip=ipv4$ .* Q .* $query_type=word$ .* $query_name=rest$",
halt: true,
rewrites: [
// DNS tunneling (very long query)
{ input: "query_name", output: "class_uid", match: "^.{120,}$", replace: "2004" },
{ input: "query_name", output: "class_name", match: "^.{120,}$", replace: "Detection Finding" },
{ input: "query_name", output: "category_uid", match: "^.{120,}$", replace: "2" },
{ input: "query_name", output: "type_uid", match: "^.{120,}$", replace: "200401" },
{ input: "query_name", output: "finding_title", match: "^.{120,}$", replace: "MS-DNS Suspected Tunneling (long query)" },
{ input: "query_name", output: "severity_id", match: "^.{120,}$", replace: "4" },
{ input: "query_name", output: "severity", match: "^.{120,}$", replace: "High" }
]
}
]
}