The File object represents the metadata associated with a file stored in a computer system. It encompasses information about the file itself, including its attributes, properties, and organizational details. Defined by D3FEND d3f:File.
- Extends:
_entity
Attributes
Section titled “Attributes”name
- Type:
file_name_t - Requirement: required
The name of the file. For example: svchost.exe
type_id
- Type:
integer_t - Requirement: required
- Values:
0-Unknown: The type is unknown.1-Regular File2-Folder3-Character Device4-Block Device5-Local Socket6-Named Pipe7-Symbolic Link99-Other: The type is not mapped. See thetypeattribute, which contains a data source specific value.
The file type ID.
data_classification
- Type:
data_classification - Requirement: recommended
The Data Classification object includes information about data classification levels and data category types.
ext
- Type:
string_t - Requirement: recommended
The extension of the file, excluding the leading dot. For example: exe from svchost.exe, or gz from export.tar.gz.
hashes
- Type:
fingerprint - Requirement: recommended
An array of hash attributes.
path
- Type:
string_t - Requirement: recommended
The full path to the file. For example: c:\windows\system32\svchost.exe.
accessed_time
- Type:
timestamp_t - Requirement: optional
The time when the file was last accessed.
accessed_time_dt
- Type:
datetime_t - Requirement: optional
The time when the file was last accessed.
accessor
- Type:
user - Requirement: optional
The name of the user who last accessed the object.
attributes
- Type:
integer_t - Requirement: optional
The bitmask value that represents the file attributes.
company_name
- Type:
string_t - Requirement: optional
The name of the company that published the file. For example: Microsoft Corporation.
confidentiality
- Type:
string_t - Requirement: optional
The file content confidentiality, normalized to the confidentiality_id value. In the case of ‘Other’, it is defined by the event source.
confidentiality_id
- Type:
integer_t - Requirement: optional
- Values:
0-Unknown: The confidentiality is unknown.1-Not Confidential2-Confidential3-Secret4-Top Secret5-Private6-Restricted99-Other: The confidentiality is not mapped. See theconfidentialityattribute, which contains a data source specific value.
The normalized identifier of the file content confidentiality indicator.
created_time
- Type:
timestamp_t - Requirement: optional
The time when the file was created.
created_time_dt
- Type:
datetime_t - Requirement: optional
The time when the file was created.
creator
- Type:
user - Requirement: optional
The user that created the file.
desc
- Type:
string_t - Requirement: optional
The description of the file, as returned by file system. For example: the description as returned by the Unix file command or the Windows file type.
is_system
- Type:
boolean_t - Requirement: optional
The indication of whether the object is part of the operating system.
mime_type
- Type:
string_t - Requirement: optional
The Multipurpose Internet Mail Extensions (MIME) type of the file, if applicable.
modified_time
- Type:
timestamp_t - Requirement: optional
The time when the file was last modified.
modified_time_dt
- Type:
datetime_t - Requirement: optional
The time when the file was last modified.
modifier
- Type:
user - Requirement: optional
The user that last modified the file.
owner
- Type:
user - Requirement: optional
The user that owns the file/object.
parent_folder
- Type:
string_t - Requirement: optional
The parent folder in which the file resides. For example: c:\windows\system32
product
- Type:
product - Requirement: optional
The product that created or installed the file.
security_descriptor
- Type:
string_t - Requirement: optional
The object security descriptor.
signature
- Type:
digital_signature - Requirement: optional
The digital signature of the file.
size
- Type:
long_t - Requirement: optional
The size of data, in bytes.
type
- Type:
string_t - Requirement: optional
The file type.
uid
- Type:
string_t - Requirement: optional
The unique identifier of the file as defined by the storage system, such the file system file ID.
version
- Type:
string_t - Requirement: optional
The file version. For example: 8.0.7601.17514.
xattributes
- Type:
object - Requirement: optional
An unordered collection of zero or more name/value pairs where each pair represents a file or folder extended attribute.For example: Windows alternate data stream attributes (ADS stream name, ADS size, etc.), user-defined or application-defined attributes, ACL, owner, primary group, etc. Examples from DCS:
- ads_name
- ads_size
- dacl
- owner
- primary_group
- link_name - name of the link associated to the file.
- hard_link_count - the number of links that are associated to the file.