> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/xsiam-data-model-schema/fields/target/file.md).

# xdm.target.file

The file that has been created, modified, or deleted.

|           |               |
| --------- | ------------- |
| Datatype  | Compound.File |
| Dataclass | Compound      |

## Field groups

* [`xdm.target.file.permissions`](/xsiam-data-model-schema/fields/target/file/permissions.md)
* [`xdm.target.file.position`](/xsiam-data-model-schema/fields/target/file/position.md)

## Fields

#### `xdm.target.file.filename`

|             |                                                                        |
| ----------- | ---------------------------------------------------------------------- |
| Description | The file name of the file that has been created, modified, or deleted. |
| Datatype    | String                                                                 |
| Dataclass   | Scalar                                                                 |

#### `xdm.target.file.path`

|             |                                                                        |
| ----------- | ---------------------------------------------------------------------- |
| Description | The file path of the file that has been created, modified, or deleted. |
| Datatype    | String                                                                 |
| Dataclass   | Scalar                                                                 |

#### `xdm.target.file.directory`

|             |                                                                             |
| ----------- | --------------------------------------------------------------------------- |
| Description | The file directory of the file that has been created, modified, or deleted. |
| Datatype    | String                                                                      |
| Dataclass   | Scalar                                                                      |

#### `xdm.target.file.extension`

|             |                                                                             |
| ----------- | --------------------------------------------------------------------------- |
| Description | The file extension of the file that has been created, modified, or deleted. |
| Datatype    | String                                                                      |
| Dataclass   | Scalar                                                                      |

#### `xdm.target.file.file_type`

|             |                                                                        |
| ----------- | ---------------------------------------------------------------------- |
| Description | The file type of the file that has been created, modified, or deleted. |
| Datatype    | String                                                                 |
| Dataclass   | Scalar                                                                 |

#### `xdm.target.file.md5`

|             |                                                                                          |
| ----------- | ---------------------------------------------------------------------------------------- |
| Description | The MD5 hash signature for the file that has been created, modified, or deleted content. |
| Datatype    | MD5                                                                                      |
| Dataclass   | Scalar                                                                                   |

#### `xdm.target.file.sha256`

|             |                                                                                             |
| ----------- | ------------------------------------------------------------------------------------------- |
| Description | The SHA256 hash signature for the file that has been created, modified, or deleted content. |
| Datatype    | SHA256                                                                                      |
| Dataclass   | Scalar                                                                                      |

#### `xdm.target.file.is_signed`

|             |                                                                                              |
| ----------- | -------------------------------------------------------------------------------------------- |
| Description | Whether the loaded module of the file that has been created, modified, or deleted is signed. |
| Datatype    | Boolean                                                                                      |
| Dataclass   | Scalar                                                                                       |
| Examples    | True                                                                                         |

#### `xdm.target.file.signer`

|             |                                                                     |
| ----------- | ------------------------------------------------------------------- |
| Description | The signer of the file that has been created, modified, or deleted. |
| Datatype    | String                                                              |
| Dataclass   | Scalar                                                              |
| Examples    | Microsoft Corporation                                               |

#### `xdm.target.file.signature_status`

|             |                                                                                                                                                                                      |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Description | The signature status of the file that has been created, modified, or deleted.                                                                                                        |
| Datatype    | [`XDM_CONST.SIGNATURE_STATUS`](/xsiam-data-model-schema/consts/signature-status.md)                                                                                                  |
| Dataclass   | Scalar                                                                                                                                                                               |
| Examples    | XDM\_CONST.SIGNATURE\_STATUS\_UNSIGNED, XDM\_CONST.SIGNATURE\_STATUS\_SIGNED\_INVALID, XDM\_CONST.SIGNATURE\_STATUS\_SIGNED\_VERIFIED, XDM\_CONST.SIGNATURE\_STATUS\_STATUS\_UNKNOWN |

#### `xdm.target.file.size`

|             |                                                                        |
| ----------- | ---------------------------------------------------------------------- |
| Description | Size in bytes of the file that has been created, modified, or deleted. |
| Datatype    | Number                                                                 |
| Dataclass   | Scalar                                                                 |
| Unit        | Bytes                                                                  |

#### `xdm.target.file.last_modified`

|             |                                                                                             |
| ----------- | ------------------------------------------------------------------------------------------- |
| Description | The last modified time (millisecs) of the file that has been created, modified, or deleted. |
| Datatype    | UnixMillis                                                                                  |
| Dataclass   | Scalar                                                                                      |
| Examples    | 1716549375886                                                                               |

#### `xdm.target.file.metadata_change_time`

|             |                                                                                                          |
| ----------- | -------------------------------------------------------------------------------------------------------- |
| Description | The metadata last modification time (millisecs) of the file that has been created, modified, or deleted. |
| Datatype    | UnixMillis                                                                                               |
| Dataclass   | Scalar                                                                                                   |
| Examples    | 1716549375886                                                                                            |

#### `xdm.target.file.owner_id`

|             |                                                                       |
| ----------- | --------------------------------------------------------------------- |
| Description | The owner id of the file that has been created, modified, or deleted. |
| Datatype    | Number                                                                |
| Dataclass   | Scalar                                                                |
| Examples    | 123456789                                                             |

#### `xdm.target.file.owner_name`

|             |                                                                         |
| ----------- | ----------------------------------------------------------------------- |
| Description | The owner name of the file that has been created, modified, or deleted. |
| Datatype    | String                                                                  |
| Dataclass   | Scalar                                                                  |
| Examples    | admin                                                                   |

#### `xdm.target.file.group_id`

|             |                                                                       |
| ----------- | --------------------------------------------------------------------- |
| Description | The group id of the file that has been created, modified, or deleted. |
| Datatype    | Number                                                                |
| Dataclass   | Scalar                                                                |
| Examples    | 123456789                                                             |

#### `xdm.target.file.group_name`

|             |                                                                         |
| ----------- | ----------------------------------------------------------------------- |
| Description | The group name of the file that has been created, modified, or deleted. |
| Datatype    | String                                                                  |
| Dataclass   | Scalar                                                                  |
| Examples    | all                                                                     |

#### `xdm.target.file.volume_path`

|             |                                                                |
| ----------- | -------------------------------------------------------------- |
| Description | The path identifies the file's precise location in the volume. |
| Datatype    | String                                                         |
| Dataclass   | Scalar                                                         |
| Examples    | /etc/shadow/sec.txt                                            |

#### `xdm.target.file.contributors`

|             |                                                                                                      |
| ----------- | ---------------------------------------------------------------------------------------------------- |
| Description | Git contributors and their last commit time of the file that has been created, modified, or deleted. |
| Datatype    | Json                                                                                                 |
| Dataclass   | Array                                                                                                |
| Examples    | \['{"name": "gmark", "last\_commit\_time": 1699110852}']                                             |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/xsiam-data-model-schema/fields/target/file.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
