> 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-security-group-allows-all-ingress-traffic-on-cifs-port-445.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS Security Group allows all ingress traffic on CIFS port (445)

### Synopsis

| Field               | Value                                                            |
| ------------------- | ---------------------------------------------------------------- |
| Rule Type           | Detection                                                        |
| Finding Type        | AWS Security Group allows all ingress traffic on CIFS port (445) |
| Finding ID          | 60001481                                                         |
| Generates a Finding | This detection rule also generates a finding                     |
| Severity            | Low                                                              |
| Category            | CONFIGURATION                                                    |
| Cloud Providers     | AWS                                                              |
| Platform Module     | CSPM                                                             |
| Asset Types         | EC2\_SECURITY\_GROUP                                             |
| ATT\&CK Tactic      | TA0112 (TA0112)                                                  |
| ATT\&CK Technique   | T1685 (T1685)                                                    |

### Description

AWS Security Groups permitting unrestricted inbound traffic on port 445, used by the Common Internet File System (CIFS) protocol, pose a significant security risk. This misconfiguration exposes network shares to unauthorized access from any source.

CIFS facilitates file sharing across a network. Openly exposing port 445 without restrictions allows attackers to easily access shared files and potentially compromise sensitive data. Untrusted IP addresses can connect to the CIFS share, enabling data exfiltration, malware propagation, or even system control.

The impact of this misconfiguration is substantial; unauthorized access could lead to data breaches, ransomware attacks, and significant operational disruption. Restricting access to only trusted networks minimizes the attack surface and protects sensitive data. Following this best practice reduces the likelihood of exploitation and strengthens overall network security.

Mitigation involves configuring AWS Security Groups to restrict inbound traffic on port 445 to only trusted IP addresses or networks. Employ least privilege principles; only allow necessary connections, using specific IP addresses or CIDR blocks instead of broadly allowing all traffic. Regularly review and update Security Group rules to maintain a secure configuration.

### Remediation

**Manual steps:**

EC2 Security Group - Manual remediation steps:

To restrict the traffic on the security group to known IP/CIDR range, perform the following actions:

1. Log in to the AWS Console
2. Navigate to the 'VPC' service
3. On the left-hand panel, click on 'Security Groups' under the 'Security' section
4. Select the 'Security Group' that is reported.
5. Click on the 'Edit Inbound Rule'.
6. in the 'Edit inbound rules' window, remove or restric the CIDR to trusted IP on the rule which has 'Source' value as 0.0.0.0/0 or ::/0 and 'Port Range' value as 445 (or range containing 445)
7. Click 'Save rules' to save.

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-security-group-allows-all-ingress-traffic-on-cifs-port-445.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.
