zeek: map conn reverse-DNS hostnames to OCSF src/dst endpoint hostname fields#23885
Draft
cepolation-datadog wants to merge 1 commit into
Draft
zeek: map conn reverse-DNS hostnames to OCSF src/dst endpoint hostname fields#23885cepolation-datadog wants to merge 1 commit into
cepolation-datadog wants to merge 1 commit into
Conversation
Add schema-remappers for id.orig_h_name.vals.0 and id.resp_h_name.vals.0 to ocsf.src_endpoint.hostname and ocsf.dst_endpoint.hostname respectively. Include a sanitized conn test log with DNS_PTR hostname resolution data. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
|
Contributor
Validation ReportAll 21 validations passed. Show details
|
jbfeldman-dd
approved these changes
May 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Maps Corelight-enhanced
connlog fieldsid.orig_h_nameandid.resp_h_name(reverse-DNS PTR lookups) toocsf.src_endpoint.hostnameandocsf.dst_endpoint.hostnamein the Network Activity [4001] OCSF class.Motivation
Corelight enriches conn logs with reverse-DNS hostname resolution for both the originator and responder. Previously this data was not surfaced in the OCSF output. Mapping it to
hostname_tfields on the endpoint objects makes it queryable and consistent with how other log sources (e.g. TLSserver_name) populate endpoint hostnames.The source fields are arrays (
vals: ["hostname"]) since a single IP can have multiple PTR records. We map the first entry via dot-index notation (id.orig_h_name.vals.0).Review checklist (to be filled by reviewers)
qa/requiredif this PR needs QA validation, orqa/skip-qaif it does not. Exactly one of the two is required.backport/<branch-name>label to the PR and it will automatically open a backport PR once this one is merged