Skip to content

Types define the format and validation rules for attribute values in OCSF.

TypeCaptionBase TypeDescription
boolean_tBooleanBoolean value. One of true or false.
bytestring_tByte Stringstring_tBase 64 encoded immutable byte sequence. Traditional Base 64 is preferred but publishers may use URL-safe Base 64 when known to be acceptable to consumers. These encodings are described in RFC 4648.
datetime_tDatetimestring_tThe Internet Date/Time format as defined in RFC-3339. For example:
2024-09-10T23:20:50.520Z,
2024-09-10 23:20:50.520789Z.
email_tEmail Addressstring_tEmail address. For example:
john_doe@example.com.
file_hash_tHashstring_tHash. A unique value that corresponds to the content of the file, image, ja3_hash or hassh found in the schema. For example:
MD5: 3172ac7e2b55cbb81f04a6e65855a628.
file_name_tFile Namestring_tFile name. For example:
text-file.txt.
file_path_tFile Pathstring_tThe full path to the file. For example: For example:
c:\windows\system32\svchost.exe.
float_tFloatReal floating-point value. For example:
3.14.
hostname_tHostnamestring_tUnique name assigned to a device connected to a computer network. It may be a fully qualified domain name (FQDN). For example:
r2-d2.example.com.,
mx.example.com
integer_tIntegerSigned integer value.
ip_tIP Addressstring_tInternet Protocol address (IP address), in either IPv4 or IPv6 format. For example:
192.168.200.24,
2001:0db8:85a3:0000:0000:8a2e:0370:7334.
json_tJSONEmbedded JSON value. A value can be a string, or a number, or true or false or null, or an object or an array. These structures can be nested. See www.json.org.
long_tLong8-byte long, signed integer value.
mac_tMAC Addressstring_tMedia Access Control (MAC) address. For example:
18:36:F3:98:4F:9A.
port_tPortinteger_tThe TCP/UDP port number. For example:
80,
22.
process_name_tProcess Namestring_tProcess name. For example:
Notepad.
reg_key_path_tRegistry Key Pathstring_tFull path of registry key.
resource_uid_tResource UIDstring_tResource unique identifier. For example, S3 Bucket name or EC2 Instance ID.
string_tStringUTF-8 encoded byte sequence.
subnet_tSubnetstring_tThe subnet represented in a CIDR notation, using the format network_address/prefix_length. The network_address can be in either IPv4 or IPv6 format. The prefix length indicates the number of bits used for the network portion, and the remaining bits are available for host addresses within that subnet. For example:
192.168.1.0/24,
2001:0db8:85a3:0000::/64
timestamp_tTimestamplong_tThe timestamp format is the number of milliseconds since the Epoch 01/01/1970 00:00:00 UTC. For example:
1618524549901.
url_tURL Stringstring_tUniform Resource Locator (URL) string. For example:
http://www.example.com/download/trouble.exe.
username_tUser Namestring_tUser name. For example:
john_doe.
uuid_tUUIDstring_t128-bit universal unique identifier. For example:
123e4567-e89b-12d3-a456-42661417400.