Skip to content

Add packaged OCSF network detections - #172

Merged
mavam merged 4 commits into
mainfrom
mkt-64-packaged-detections
Aug 10, 2026
Merged

Add packaged OCSF network detections#172
mavam merged 4 commits into
mainfrom
mkt-64-packaged-detections

Conversation

@mavam

@mavam mavam commented Aug 7, 2026

Copy link
Copy Markdown
Member

🔍 Problem

The companion network-detection article provides runnable TQL, but users still have to copy, adapt, and maintain each detector themselves.

🛠️ Solution

  • Add configurable tenzir::detect::* UDOs for scan fan-out, beacon cadence, long connections, and outbound volume bursts.
  • Emit OCSF Detection Findings with stable analytic identities and standard evidence fields.
  • Add a deployable example, user-facing changelog entry, and schema-checked fixture tests for every detector.

🧪 Validation

  • uvx tenzir-test . --match 'tenzir/*'
  • ./.github/scripts/check-tql-syntax.sh
  • cd tenzir/changelog && uvx tenzir-ship validate

The complete local repository suite has one unrelated baseline failure because a Microsoft assertion embeds the worktree-relative path. The touched-package test selection passes locally.

💬 Review

Please focus on the detector defaults, UDO parameter surfaces, and Detection Finding shapes.

CI remains blocked until the published Tenzir packages include the deltas, mad, and skewness functions merged in tenzir/mono#70.

📚 Content PR: tenzir/content#202
🎫 References MKT-64
📎 Related: tenzir/mono#70
⛓️ Depends on #173 (NetFlow traffic.bytes_out mapping)

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@mavam
mavam marked this pull request as draft August 7, 2026 21:00
@mavam
mavam marked this pull request as ready for review August 7, 2026 21:10
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

mavam added 4 commits August 7, 2026 23:16
Add configurable UDOs for scan fan-out, beacon cadence, long connections, and outbound volume bursts. Emit OCSF Detection Findings and cover every operator with schema-checked fixture tests.

Assisted-by: gpt-5.6-sol (pi)
Assisted-by: gpt-5.6-sol (pi)
Switch beacon_cadence and outbound_volume_burst from traffic.bytes to
traffic.bytes_out. The bidirectional total differs across sources (the
Zeek and Suricata mappings sum both directions), whereas bytes_out
consistently carries the source-to-destination count and matches the
originator-bytes signal that RITA scores.
Move the four detectors into tenzir::detect::network, mirroring how
detection catalogs organize by data domain, so future detector families
over other OCSF classes get their own namespace without breaking
deployed pipelines. Stamp each finding with MITRE ATT&CK tactic and
technique mappings in finding_info.attacks and add a version to the
analytic identity.
@mavam
mavam force-pushed the mkt-64-packaged-detections branch from 504ef1d to 8a19cb5 Compare August 7, 2026 21:17
@mavam
mavam merged commit 9db5277 into main Aug 10, 2026
0 of 3 checks passed
@mavam
mavam deleted the mkt-64-packaged-detections branch August 10, 2026 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant