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

# OCI Security List allows all traffic on SSH port (22)

### Synopsis

| Field               | Value                                                 |
| ------------------- | ----------------------------------------------------- |
| Rule Type           | Detection                                             |
| Finding Type        | OCI Security List allows all traffic on SSH port (22) |
| Finding ID          | 60000457                                              |
| Generates a Finding | This detection rule also generates a finding          |
| Severity            | Medium                                                |
| Category            | CONFIGURATION                                         |
| Cloud Providers     | OCI                                                   |
| Platform Module     | CSPM                                                  |
| Asset Types         | OCI\_NETWORKING\_SECURITY\_LIST                       |
| ATT\&CK Tactic      | TA0001 (TA0001)                                       |
| ATT\&CK Technique   | T1133 (T1133)                                         |

### Description

Unrestricted inbound traffic on port 22 to Oracle Cloud Infrastructure (OCI) Virtual Machines via security lists presents a significant security risk. This allows unauthorized access to the instances, potentially leading to data breaches or complete server compromise.

The OCI security list controls network traffic to Virtual Machines. By default, all traffic is denied. Allowing unrestricted ingress on port 22, the default SSH port, bypasses this security mechanism. Attackers can easily scan for open port 22 and attempt brute-force attacks or exploit known vulnerabilities to gain unauthorized access.

The impact of this misconfiguration is severe. Successful exploitation grants attackers complete control over the Virtual Machine, including access to sensitive data and the potential to launch further attacks against other resources within the environment. Restricting access to port 22 minimizes the attack surface and strengthens the overall security posture.

To mitigate this, explicitly allow inbound SSH traffic only from trusted IP addresses or networks in your OCI security list. Regularly review and update your security lists, ensuring that only necessary traffic is allowed. Consider using bastion hosts for secure remote access to Virtual Machines and employing multi-factor authentication for added security.

### Remediation

**Manual steps:**

OCI Networking Security List - Manual remediation steps:

1. Login to the OCI Console
2. Type the resource reported in the alert into the Search box at the top of the Console.
3. Click the resource reported in the alert from the Resources submenu
4. Go to section 'Security rules'.
5. Navigate to Ingress Rules.
6. If you want to add a rule, click Add Ingress Rules
7. If you want to delete an existing rule, click the Actions icon (three dots), and then click Remove.
8. If you wanted to edit an existing rule, click the Actions icon (three dots), and then click 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 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/oci-security-list-allows-all-traffic-on-ssh-port-22.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.
