> 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/cortex-xsiam/cloud-security/overview-1.md).

# Serverless function runtime security

Cortex XSIAM enables runtime monitoring within a cloud environment by embedding Cortex XDR agent directly into the code of the serverless function. This allows for real-time monitoring of code execution, processes, networking, and filesystem activity, along with the enforcement of policies to permit or deny these actions. This in-depth runtime visibility enhances the overall security of your serverless functions.

Policy violations are detected and logged in Cortex Issues to allow for effective scoping and analysis in order to thoroughly assess the issues.

#### Use cases

* **Visibility of policy violations in issues**: Use the Issues entity to view the policy violations of serverless functions that have occurred. You can drill down and view information such as region, cloud function runtime, the specific serverless function name which indicates the issue that’s occurred, cloud function request id which is the instance id from the cloud provider.
* **Monitor serverless functions in your cloud environment**: After embedding the agent in the function, the agent monitors for policy violations as defined in the profile you have configured.

#### Supported platforms

Runtime protection for serverless functions is available for Cortex Cloud Runtime Security, Cortex XSIAM Premium, Cortex XSIAM Enterprise, and Cortex XSIAM NG Siem licenses.

* Supported runtime environments: Python, Node.js.
* Supported architecture: x86\_64
* Supported cloud provider: Amazon Web Services (AWS)

#### User roles and permissions

To grant access and configuration permissions to serverless function capabilities in the Cortex tenant, you must verify that the user has the correct settings in the linked role.

1. Go to Settings+Configuration+Access Management → **Roles**.
2. Go to the relevant role, right-click and select **Edit Role** and in the **Components** tab, verify under **Inventory**, that **Agent Profiles**, **Agent Installations** and **Agent Extension Policies** are configured to **View/Edit**.


---

# 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/cortex-xsiam/cloud-security/overview-1.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.
