forked from cisagov/icsnpp-opcua-binary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
activate-session-types.zeek
90 lines (73 loc) · 3.51 KB
/
activate-session-types.zeek
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
## activate-session-types.zeek
##
## OPCUA Binary Protocol Analyzer
##
## Zeek script type/record definitions describing the information
## that will be written to the log files.
##
## Author: Kent Kvarfordt
## Contact: kent.kvarfordt@inl.gov
##
## Copyright (c) 2022 Battelle Energy Alliance, LLC. All rights reserved.
module ICSNPP_OPCUA_Binary;
export {
type OPCUA_Binary::ActivateSession: record {
ts : time &log;
uid : string &log;
id : conn_id &log;
opcua_link_id : string &log; # Id back into OCPUA_Binary::Info
#
# Request
#
# Client Signature Data
client_algorithm : string &log &optional;
client_signature : string &log &optional;
# Client Software Certificate
client_software_cert_link_id : string &log &optional; # Id into OCPUA_Binary::ActivateSessionClientSoftwareCert
# Locale Id
opcua_locale_link_id : string &log &optional; # Id into OPCUA_Binary::ActivateSessionLocaleId
# Extension Object
ext_obj_type_id_encoding_mask : string &log &optional;
ext_obj_type_id_namespace_idx : count &log &optional;
ext_obj_type_id_numeric : count &log &optional;
ext_obj_type_id_string : string &log &optional;
ext_obj_type_id_guid : string &log &optional;
ext_obj_type_id_opaque : string &log &optional;
ext_obj_type_id_str : string &log &optional; # String representation of type id (AnonymousIdentityToken, UserNameIdentityToken, X509IdentityToken, etc.)
ext_obj_encoding : string &log &optional;
# Common among all IdentityTokens; Only field for AnonymousIdentityToken
ext_obj_policy_id : string &log &optional;
# UsernameIdentityToken
ext_obj_user_name : string &log &optional;
ext_obj_password : string &log &optional;
ext_obj_encryption_algorithom : string &log &optional;
# Common in X509IdentityToken and IssuedIdentityToken
ext_obj_certificate_data : string &log &optional;
# IssuedIdentityToken
ext_obj_token_data : string &log &optional;
# User Token Signature Data
user_token_algorithm : string &log &optional;
user_token_signature : string &log &optional;
#
# Response
#
server_nonce : string &log &optional;
status_code_link_id : string &log &optional; # Id into OPCUA_Binary::StatusCodeDetail log
activate_session_diag_info_link_id : string &log &optional; # Id into OPCUA_Binary::DiagnosticInfoDetail log
};
type OPCUA_Binary::ActivateSessionClientSoftwareCert: record {
ts : time &log;
uid : string &log;
id : conn_id &log;
client_software_cert_link_id : string &log; # Id back into OCPUA_Binary::ActivateSession
cert_data : string &log;
cert_signature : string &log;
};
type OPCUA_Binary::ActivateSessionLocaleId: record {
ts : time &log;
uid : string &log;
id : conn_id &log;
opcua_locale_link_id : string &log; # Id back into OCPUA_Binary::ActivateSession
local_id : string &log;
};
}