> 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/alibaba-cloud-ecs-instance-ram-role-not-enabled.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Alibaba Cloud ECS instance RAM role not enabled

### Synopsis

| Field               | Value                                           |
| ------------------- | ----------------------------------------------- |
| Rule Type           | Detection                                       |
| Finding Type        | Alibaba Cloud ECS instance RAM role not enabled |
| Finding ID          | 60000325                                        |
| Generates a Finding | This detection rule also generates a finding    |
| Severity            | Medium                                          |
| Category            | CONFIGURATION                                   |
| Cloud Providers     | ALIBABA\_CLOUD                                  |
| Platform Module     | CSPM                                            |
| Asset Types         | ALIBABA\_CLOUD\_ECS\_INSTANCE                   |
| ATT\&CK Tactic      | TA0004 (TA0004)                                 |
| ATT\&CK Technique   | T1078.004 (T1078.004)                           |

### Description

Unauthorized access to Alibaba Cloud Elastic Compute Service (ECS) instances can occur if Resource Access Management (RAM) roles aren't enabled. This misconfiguration allows attackers to potentially compromise the instance using compromised credentials or exploiting weak security settings.

ECS instances rely on RAM roles for secure access to Alibaba Cloud services. Without a RAM role, instances might use less secure methods like directly embedded credentials, increasing the risk of unauthorized access and data breaches. Attackers could exploit these insecure methods to gain control of the instance and its associated data.

The impact of this misconfiguration includes unauthorized access to the ECS instance, potential data exfiltration, and lateral movement within the cloud environment. Implementing RAM roles ensures secure access control and reduces the attack surface, promoting least privilege and improving overall security posture.

To mitigate this, ensure that a RAM role is attached to every ECS instance. Regularly review and update the permissions assigned to the RAM roles, adhering to the principle of least privilege. This involves granting only the necessary permissions required for the instance to function correctly, reducing the potential impact of a compromise.

### Remediation

**Manual steps:**

Alibaba ECS Instance - Manual remediation steps:

1. Log in to Alibaba Cloud Portal
2. Go to Elastic Compute Service
3. In the left-side navigation pane, click 'Instances'
4. Select the reported ECS instance
5. Go to 'All Actions' tab, click on 'Attach/Detach RAM Role' under 'Instance Settings'
6. Select a required RAM Role

   NOTE: If already RAM role is not created create new RAM role and follow the same procedure to attach.
7. Click on 'Confirm'


---

# 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/alibaba-cloud-ecs-instance-ram-role-not-enabled.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.
