> 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-lightsail-instance-allows-ingress-from-the-internet.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS Lightsail Instance allows ingress from the internet

### Synopsis

| Field               | Value                                                   |
| ------------------- | ------------------------------------------------------- |
| Rule Type           | Detection                                               |
| Finding Type        | AWS Lightsail Instance allows ingress from the internet |
| Finding ID          | 60001517                                                |
| Generates a Finding | This detection rule also generates a finding            |
| Severity            | Low                                                     |
| Category            | CONFIGURATION                                           |
| Cloud Providers     | AWS                                                     |
| Platform Module     | CSPM                                                    |
| Asset Types         | AMAZON\_LIGHTSAIL\_INSTANCE                             |
| ATT\&CK Tactic      | TA0112 (TA0112)                                         |
| ATT\&CK Technique   | T1685 (T1685)                                           |

### Description

Unrestricted internet ingress to AWS Lightsail instances exposes them to unauthorized access. This misconfiguration leaves instances vulnerable to various attacks.

AWS Lightsail instances use a built-in firewall to control inbound traffic. By default, or through misconfiguration, all ports might be open to the internet. This allows attackers to easily scan for open ports and exploit known vulnerabilities, leading to instance compromise and data breaches. Attackers can launch brute-force attacks against common services like SSH, potentially gaining full control.

The impact of this misconfiguration includes data exfiltration, unauthorized modification of instance resources, and potential use as a stepping stone for further attacks within the cloud environment. Limiting access to only trusted IP addresses is crucial for minimizing the attack surface and preventing unauthorized access.

Implement a least privilege approach. Configure the Lightsail instance's firewall to allow only necessary ports and specific trusted IP addresses. Regularly review and update firewall rules to remove any unnecessary access and mitigate the risk of unauthorized connections. Monitor logs for suspicious activity.

### Remediation

**Manual steps:**

Amazon Lightsail Instance - Manual remediation steps:

To restrict the traffic on the AWS Lighsail instance firewall rule to known IP/CIDR range, perform the following actions:

1. Sign in to the Lightsail console <https://lightsail.aws.amazon.com/>.
2. In the left navigation pane, choose Instances.
3. Choose the reported instance.
4. Choose the Networking tab on your instance's management page.
5. Click on the Edit icon on the rule containing the unrestricted access (0.0.0.0/0 or ::/0) under the Firewall rules section.

6a. Under Source IP addresses, update the IP address or CIDR range field to the Trusted CIDR range.

or

6b. Remove the rule which has IP address or CIDR range value as 0.0.0.0/0 or ::/0 by clicking the Delete (trash) icon.

Note: Before making any changes, please check the impact on your applications/services.


---

# 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-lightsail-instance-allows-ingress-from-the-internet.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.
