---
title: >-
  Publicly accessible EC2 with High or Critical vulnerability associated with
  Role that can become Admin
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Datadog Security > OOTB Rules > Publicly accessible EC2 with High or
  Critical vulnerability associated with Role that can become Admin
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Publicly accessible EC2 with High or Critical vulnerability associated with Role that can become Admin

## Description{% #description %}

A publicly-accessible EC2 instance with critical or high vulns can assume a role that can become admin.

## Remediation{% #remediation %}

1. Review and apply security patches for the high and critical severity vulnerabilities. If no patch is available, apply compensating controls such as disabling or removing the vulnerable component.
1. Assess whether this instance needs to be accessible from the internet. If not, restrict access to the instance by updating the security group or network ACL to only allow access from trusted sources.
1. Review the IAM role associated with the instance profile and remove unnecessary privilege-escalation permissions. Apply the principle of least privilege, and use permission boundaries where appropriate to limit administrative access.
