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_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.
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. For example, 192.168.200.24 or 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 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_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_t | Timestamp | long_t | The timestamp format is the number of milliseconds since the Epoch 01/01/1970 00:00:00 UTC. For example 1618524549901. | | url_t | URL String | string_t | Uniform Resource Locator (URL) string. For example: http://www.example.com/download/trouble.exe. | | username_t | User Name | string_t | User name. For example: john_doe. | | uuid_t | UUID | string_t | 128-bit universal unique identifier. For example: 123e4567-e89b-12d3-a456-42661417400. |