Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated network mappings #211

Merged
merged 1 commit into from
Jan 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 13 additions & 22 deletions src/main/resources/OSMapping/network/fieldmappings.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,17 @@
fieldmappings:
Z: Z
action: action
answers: zeek-dns-answers
c-uri: c-uri
c-useragent: c-useragent
certificate-serial: zeek-x509-certificate-serial
cipher: zeek-kerberos-cipher
client_header_names: zeek-http-client_header_names
dst_ip: netflow-destination_ipv4_address
dst_port: netflow-destination_transport_port
endpoint: zeek-dce_rpc-endpoint
id-orig_h: id-orig_h
id-resp_p: id-resp_p
method: method
name: name
action: netflow-firewall_event
certificate.serial: zeek-x509-certificate-serial
name: zeek-smb_files-name
path: zeek-smb_files-path
dst_port: netflow-tcp_destination_port
netflow-destination_transport_port: netflow-destination_transport_port
qtype_name: zeek-dns-qtype_name
operation: zeek-dce_rpc-operation
path: path
qtype: zeek-dns-qtype_name
endpoint: zeek-dce_rpc-endpoint
zeek-dce_rpc-endpoint: zeek-dce_rpc-endpoint
answers: zeek-dns-answers
query: zeek-dns-query
request_body_len: request_body_len
request_type: zeek-kerberos-request_type
client_header_names: zeek-http-client_header_names
resp_mime_types: zeek-http-resp_mime_types
src_port: netflow-source_transport_port
status_code: status_code
user_agent: user_agent
cipher: zeek-kerberos-cipher
request_type: zeek-kerberos-request_type
128 changes: 44 additions & 84 deletions src/main/resources/OSMapping/network/mappings.json
Original file line number Diff line number Diff line change
@@ -1,104 +1,64 @@
{
"properties": {
"dst_port": {
"type": "alias",
"path": "dst_port"
"zeek-smb_files-name": {
"path": "zeek.smb_files.name",
"type": "alias"
},
"src_port": {
"type": "alias",
"path": "src_port"
"zeek-x509-certificate-serial": {
"path": "zeek.x509-certificate.serial",
"type": "alias"
},
"action": {
"type": "alias",
"path": "action"
"netflow-tcp_destination_port": {
"path": "netflow.tcp_destination_port",
"type": "alias"
},
"dst_ip": {
"type": "alias",
"path": "dst_ip"
"netflow-destination_transport_port": {
"path": "netflow-destination_transport_port",
"type": "alias"
},
"operation": {
"type": "alias",
"path": "operation"
"netflow-firewall_event": {
"path": "netflow.firewall_event",
"type": "alias"
},
"endpoint": {
"type": "alias",
"path": "endpoint"
"zeek-smb_files-path": {
"path": "zeek.smb_files.path",
"type": "alias"
},
"path": {
"type": "alias",
"path": "path"
"zeek-dns-qtype_name": {
"path": "zeek.dns.qtype_name",
"type": "alias"
},
"certificate-serial": {
"type": "alias",
"path": "certificate-serial"
"zeek-dce_rpc-endpoint": {
"path": "zeek.dce_rpc.endpoint",
"type": "alias"
},
"query": {
"type": "alias",
"path": "query"
"zeek-dce_rpc-operation": {
"path": "zeek.dce_rpc.operation",
"type": "alias"
},
"Z": {
"type": "alias",
"path": "Z"
"zeek-dns-answers": {
"path": "zeek.dns.answers",
"type": "alias"
},
"qtype": {
"type": "alias",
"path": "qtype"
"zeek-dns-query": {
"path": "zeek.dns.query",
"type": "alias"
},
"answers": {
"type": "alias",
"path": "answers"
"zeek-http-client_header_names": {
"path": "zeek.http.client_header_names",
"type": "alias"
},
"id-resp_p": {
"type": "alias",
"path": "id-resp_p"
},
"resp_mime_types": {
"type": "alias",
"path": "resp_mime_types"
},
"c-uri": {
"type": "alias",
"path": "c-uri"
},
"c-useragent": {
"type": "alias",
"path": "c-useragent"
},
"status_code": {
"type": "alias",
"path": "status_code"
},
"client_header_names": {
"type": "alias",
"path": "client_header_names"
},
"request_body_len": {
"type": "alias",
"path": "request_body_len"
},
"user_agent": {
"type": "alias",
"path": "user_agent"
},
"method": {
"type": "alias",
"path": "method"
},
"id-orig_h": {
"type": "alias",
"path": "id-orig_h"
},
"name": {
"type": "alias",
"path": "name"
"zeek-http-resp_mime_types": {
"path": "zeek.http.resp_mime_types",
"type": "alias"
},
"zeek-kerberos-cipher": {
"type": "alias",
"path": "zeek-kerberos-cipher"
"path": "zeek.kerberos.cipher",
"type": "alias"
},
"zeek-kerberos-request_type": {
"type": "alias",
"path": "zeek-kerberos-request_type"
"path": "zeek.kerberos.request_type",
"type": "alias"
}
}
}
}