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_tBase64 encoded immutable byte sequence.
datetime_tDatetimestring_tThe Internet Date/Time format as defined in RFC-3339. For example 1985-04-12T23:20:50.52Z.
email_tEmail Addressstring_tEmail address. For example: john_doe@example.com.
file_hash_tFile Hashstring_tFile hash. A unique value that corresponds to the content of the file.
file_name_tFile Namestring_tFile name. For example: text-file.txt.
float_tFloatReal floating-point value. For example: 3.14.
hostname_tHostnamestring_tUnique name assigned to a device connected to a computer network. A domain name in general is an Internet address that can be resolved through the Domain Name System (DNS). For example: r2-d2.example.com.
integer_tIntegerSigned integer value.
ip_tIP Addressstring_tInternet Protocol address (IP address), in either IPv4 or IPv6 format.
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 or 22.
process_name_tProcess Namestring_tProcess name. For example: Notepad.
resource_uid_tResource UIDstring_tResource unique identifier. For example, S3 Bucket name or EC2 Instance ID.
string_tStringUTF-8 encoded byte sequence.
subnet_tSubnetstring_tSubnet mask in Classless Inter-Domain Routing (CIDR) notation. For example 192.168.200.0/24.
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.