๐ก๏ธ Oracle IAAS Instance legacy IMDS endpoints are enabled๐ข
- Contextual name: ๐ก๏ธ Oracle IAAS Instance legacy IMDS endpoints are enabled๐ข
- ID:
/ce/ca/oracle/compute/disable-instance-legacy-metadata-endpoint - Tags:
- ๐ข Policy with categories
- ๐ข Policy with type
- ๐ข Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Logicโ
- ๐ง prod.logic.yaml๐ข
Descriptionโ
Descriptionโ
This policy identifies Oracle IAAS Instances where legacy Instance Metadata Service (IMDS) endpoints are enabled.
Rationaleโ
The instance metadata service provides runtime information that applications and agents can use from inside a compute instance. Legacy metadata endpoints support older IMDS behavior and can increase the risk of metadata or credential exposure if a workload is affected by Server-Side Request Forgery (SSRF), open proxy behavior, or similar request-forwarding flaws.
Disabling legacy IMDS endpoints helps enforce the newer metadata service behavior and reduces the attack surface for instance metadata access.
Auditโ
This policy flags an Oracle IAAS Instance as
INCOMPLIANTwhen theInstance Options: Legacy IMDS Endpointsfield is set to Enabled.Instances where
Instance Options: Legacy IMDS Endpointsis set to Disabled are marked asCOMPLIANT.Instances where the field is empty or contains an unexpected value are marked as
UNDETERMINED.
Remediationโ
Remediationโ
Disable Legacy IMDS Endpointsโ
Update each affected OCI compute instance so
areLegacyImdsEndpointsDisabledis set totrue. If the instance is managed through Terraform, Resource Manager, or another infrastructure-as-code workflow, update the source configuration before applying the change so future deployments keep legacy IMDS endpoints disabled.From OCI CLIโ
Update the affected instance:
oci compute instance update \
--instance-id {{instance-id}} \
--instance-options '{"areLegacyImdsEndpointsDisabled": true}'Repeat the update for each incompliant instance and verify that legacy IMDS endpoints are disabled after the change is applied.
policy.yamlโ
Linked Framework Sectionsโ
| Section | Sub Sections | Internal Rules | Policies | Flags | Compliance |
|---|---|---|---|---|---|
| ๐ผ CIS Oracle v3.1.0 โ ๐ผ 3.1 Ensure Compute Instance Legacy Metadata service endpoint is disabled - Level 2 (Automated) | 1 | no data | |||
| ๐ผ Cloudaware Framework โ ๐ผ Secure Access | 57 | no data |