> 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/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/aws-lambda-execution-role-having-overly-permissive-inline-policy.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS Lambda execution role having overly permissive inline policy

### Synopsis

| Field               | Value                                                            |
| ------------------- | ---------------------------------------------------------------- |
| Rule Type           | Detection                                                        |
| Finding Type        | AWS Lambda execution role having overly permissive inline policy |
| Finding ID          | 60000685                                                         |
| Generates a Finding | This detection rule also generates a finding                     |
| Severity            | Low                                                              |
| Category            | CONFIGURATION                                                    |
| Cloud Providers     | AWS                                                              |
| Platform Module     | CSPM                                                             |
| Asset Types         | AWS\_IAM\_ROLE                                                   |

### Description

Overly permissive inline policies attached to AWS Lambda function execution roles create a significant security risk. These misconfigurations allow compromised Lambda functions to gain excessive privileges, potentially enabling lateral movement within the AWS account and privilege escalation.

AWS Lambda functions execute code in response to events. An inline policy directly embedded within the function's execution role dictates its permissions. If this policy grants excessive access, such as full control over sensitive resources like S3 buckets or databases, a successful attack on the Lambda function could grant attackers control over those resources. This expands the attack surface and increases the potential impact of a compromise.

The impact of this misconfiguration can be severe, leading to data breaches, unauthorized resource modification, or complete account takeover. Maintaining the principle of least privilege—granting only the necessary permissions—significantly reduces the blast radius of a potential compromise. Restricting permissions to the bare minimum needed for the Lambda function to operate properly limits the damage an attacker can inflict.

To mitigate this risk, implement least privilege access. Instead of using inline policies, use managed policies or IAM roles that define granular permissions. Regularly review and update Lambda function execution roles to ensure they only possess the necessary permissions. Implement robust monitoring and logging to detect unusual activity.

### Remediation

Refer to the following URL to give fine-grained and restrictive permissions to IAM Role Inline Policy: <https://docs.aws.amazon.com/IAM/latest/UserGuide/access\\_policies\\_manage-edit.html#edit-inline-policy-console>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/aws-lambda-execution-role-having-overly-permissive-inline-policy.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
