STIX Wiki
STIX Wiki

Overview

IntroductionGetting StartedWalkthrough

Reference

Domain Objects
Relationship Objects
Cyber-observable Objects
ArtifactAutonomous System (AS)DirectoryDomain NameEmail AddressEmail MessageFileIPv4 AddressIPv6 AddressMAC AddressMutexNetwork TrafficProcessSoftwareURLUser AccountWindows™ Registry Key ObjectX.509 Certificate
Meta Objects
Bundle Object
Cyber-observable Objects

File

The File object represents the properties of a file. A File object MUST contain at least one of hashes or name.

TODO: Add extensions TODO: Add examples

Properties

Required Common Properties
typeid
Optional Common Properties
spec_versionobject_marking_refsgranular_markingsdefangedextensions
Not Applicable
created_by_refrevokedlabelsconfidencelangexternal_references
File Specific
extensionshashessizenamename_encmagic_number_hexmime_typectimemtimeatimeparent_directory_refcontains_refscontent_ref
PropertyTypeDescription
typeoptional
stringThe value of this property MUST be `file`.
extensionsoptional
The File Object defines the following extensions. In addition to these, producers MAY create their own. Extensions: ntfs-ext, raster-image-ext, pdf-ext, archive-ext, windows-pebinary-ext
hashesoptional
objectSpecifies a dictionary of hashes for the file.
sizeoptional
integerSpecifies the size of the file, in bytes, as a non-negative integer.
nameoptional
stringSpecifies the name of the file.
name_encoptional
stringSpecifies the observed encoding for the name of the file.
magic_number_hexoptional
stringThe hex data type encodes an array of octets (8-bit bytes) as hexadecimal. The string MUST consist of an even number of hexadecimal characters, which are the digits '0' through '9' and the letters 'a' through 'f'. In order to allow pattern matching on custom objects, all properties that use the hex type, the property name MUST end with '_hex'.
mime_typeoptional
stringSpecifies the MIME type name specified for the file, e.g., 'application/msword'.
ctimeoptional
stringRepresents timestamps across the CTI specifications. The format is an RFC3339 timestamp, with a required timezone specification of 'Z'.
mtimeoptional
stringRepresents timestamps across the CTI specifications. The format is an RFC3339 timestamp, with a required timezone specification of 'Z'.
atimeoptional
stringRepresents timestamps across the CTI specifications. The format is an RFC3339 timestamp, with a required timezone specification of 'Z'.
parent_directory_refoptional
stringSpecifies the parent directory of the file, as a reference to a Directory Object.
contains_refsoptional
list of stringSpecifies a list of references to other Observable Objects contained within the file.
content_refoptional
stringSpecifies the content of the file, represented as an Artifact Object.

Email Message

Previous Page

IPv4 Address

Next Page

On this page

Properties