> 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/ibm-cloud-security-group-allow-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).

# IBM Cloud Security Group allow all traffic on SSH port (22)

### Synopsis

| Field               | Value                                                       |
| ------------------- | ----------------------------------------------------------- |
| Rule Type           | Detection                                                   |
| Finding Type        | IBM Cloud Security Group allow all traffic on SSH port (22) |
| Finding ID          | 60000742                                                    |
| Generates a Finding | This detection rule also generates a finding                |
| Severity            | Medium                                                      |
| Category            | CONFIGURATION                                               |
| Cloud Providers     | IBM\_CLOUD                                                  |
| Platform Module     | CSPM                                                        |
| Asset Types         | IBM\_NETWORKING\_SECURITY\_GROUP                            |
| ATT\&CK Tactic      | TA0001 (TA0001)                                             |
| ATT\&CK Technique   | T1190 (T1190)                                               |

### Description

An IBM Cloud VPC security group is a stateful firewall attached to network interfaces, with inbound rules that name a remote, a protocol and a port range. A remote of 0.0.0.0/0 matches every address on the internet, and a rule whose protocol is all permits every port, including the Secure Shell port 22.

This policy identifies security groups with an inbound rule that accepts traffic from any source to the SSH port. A rule qualifies when it permits all protocols, or when its port range covers 22.

SSH reachable from the internet is scanned continuously and attracts sustained credential stuffing and brute force attempts against any account permitting password authentication. A successful login delivers an interactive shell rather than access to one application, giving an attacker a position from which to read local credentials, reach services that trust the host, and establish persistence. Because a security group can be attached to many interfaces, one permissive rule may expose a set of machines rather than a single workload.

As a remediation, narrow the rule's remote to the specific administrative CIDR ranges that require SSH, or remove it and provide access through a VPN or bastion host. Disable password authentication in favour of key-based login on hosts that must accept SSH, and replace any blanket allow-all rule with explicit per-port rules.

### Remediation

**Manual steps:**

IBM Networking Security Group - Manual remediation steps:

Before making any changes, please check the impact to your applications/services. If the Security Groups reported indeed need to restrict all traffic, follow the instructions below:

1. Log in to the IBM Cloud Console
2. Click on 'Menu Icon' and navigate to 'VPC Infrastructure' and then 'Security Groups'
3. Select the 'Security Groups' reported in the alert
4. Go to 'Inbound rules' under 'Rules' tab
5. Click on three dots on the right corner of a row containing rule that has 'Source type' as 'Any' and 'Value' as 22 (or range containing 22)
6. Click on 'Delete'


---

# 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/ibm-cloud-security-group-allow-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.
