> 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-before.md).

# xdm.target.file\_before

The file before the action.

|           |                     |
| --------- | ------------------- |
| Datatype  | Compound.FileBefore |
| Dataclass | Compound            |

## Field groups

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

## Fields

#### `xdm.target.file_before.filename`

|             |                                              |
| ----------- | -------------------------------------------- |
| Description | The file name of the file before the action. |
| Datatype    | String                                       |
| Dataclass   | Scalar                                       |

#### `xdm.target.file_before.path`

|             |                                              |
| ----------- | -------------------------------------------- |
| Description | The file path of the file before the action. |
| Datatype    | String                                       |
| Dataclass   | Scalar                                       |

#### `xdm.target.file_before.directory`

|             |                                                   |
| ----------- | ------------------------------------------------- |
| Description | The file directory of the file before the action. |
| Datatype    | String                                            |
| Dataclass   | Scalar                                            |

#### `xdm.target.file_before.extension`

|             |                                                   |
| ----------- | ------------------------------------------------- |
| Description | The file extension of the file before the action. |
| Datatype    | String                                            |
| Dataclass   | Scalar                                            |

#### `xdm.target.file_before.file_type`

|             |                                              |
| ----------- | -------------------------------------------- |
| Description | The file type of the file before the action. |
| Datatype    | String                                       |
| Dataclass   | Scalar                                       |

#### `xdm.target.file_before.md5`

|             |                                                                |
| ----------- | -------------------------------------------------------------- |
| Description | The MD5 hash signature for the file before the action content. |
| Datatype    | MD5                                                            |
| Dataclass   | Scalar                                                         |

#### `xdm.target.file_before.sha256`

|             |                                                                   |
| ----------- | ----------------------------------------------------------------- |
| Description | The SHA256 hash signature for the file before the action content. |
| Datatype    | SHA256                                                            |
| Dataclass   | Scalar                                                            |

#### `xdm.target.file_before.is_signed`

|             |                                                                    |
| ----------- | ------------------------------------------------------------------ |
| Description | Whether the loaded module of the file before the action is signed. |
| Datatype    | Boolean                                                            |
| Dataclass   | Scalar                                                             |
| Examples    | True                                                               |

#### `xdm.target.file_before.signer`

|             |                                           |
| ----------- | ----------------------------------------- |
| Description | The signer of the file before the action. |
| Datatype    | String                                    |
| Dataclass   | Scalar                                    |
| Examples    | Microsoft Corporation                     |

#### `xdm.target.file_before.signature_status`

|             |                                                                                                                                                                                      |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Description | The signature status of the file before the action.                                                                                                                                  |
| 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_before.size`

|             |                                              |
| ----------- | -------------------------------------------- |
| Description | Size in bytes of the file before the action. |
| Datatype    | Number                                       |
| Dataclass   | Scalar                                       |
| Unit        | Bytes                                        |

#### `xdm.target.file_before.last_modified`

|             |                                                                   |
| ----------- | ----------------------------------------------------------------- |
| Description | The last modified time (millisecs) of the file before the action. |
| Datatype    | UnixMillis                                                        |
| Dataclass   | Scalar                                                            |
| Examples    | 1716549375886                                                     |

#### `xdm.target.file_before.metadata_change_time`

|             |                                                                                |
| ----------- | ------------------------------------------------------------------------------ |
| Description | The metadata last modification time (millisecs) of the file before the action. |
| Datatype    | UnixMillis                                                                     |
| Dataclass   | Scalar                                                                         |
| Examples    | 1716549375886                                                                  |

#### `xdm.target.file_before.owner_id`

|             |                                             |
| ----------- | ------------------------------------------- |
| Description | The owner id of the file before the action. |
| Datatype    | Number                                      |
| Dataclass   | Scalar                                      |
| Examples    | 123456789                                   |

#### `xdm.target.file_before.owner_name`

|             |                                               |
| ----------- | --------------------------------------------- |
| Description | The owner name of the file before the action. |
| Datatype    | String                                        |
| Dataclass   | Scalar                                        |
| Examples    | admin                                         |

#### `xdm.target.file_before.group_id`

|             |                                             |
| ----------- | ------------------------------------------- |
| Description | The group id of the file before the action. |
| Datatype    | Number                                      |
| Dataclass   | Scalar                                      |
| Examples    | 123456789                                   |

#### `xdm.target.file_before.group_name`

|             |                                               |
| ----------- | --------------------------------------------- |
| Description | The group name of the file before the action. |
| Datatype    | String                                        |
| Dataclass   | Scalar                                        |
| Examples    | all                                           |

#### `xdm.target.file_before.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_before.contributors`

|             |                                                                            |
| ----------- | -------------------------------------------------------------------------- |
| Description | Git contributors and their last commit time of the file before the action. |
| 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-before.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.
