Skip to main content

๐Ÿ›ก๏ธ 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 Type: COMPLIANCE_POLICY
  • Policy Categories: SECURITY

Logicโ€‹

Descriptionโ€‹

Open File

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 INCOMPLIANT when the Instance Options: Legacy IMDS Endpoints field is set to Enabled.

Instances where Instance Options: Legacy IMDS Endpoints is set to Disabled are marked as COMPLIANT.

Instances where the field is empty or contains an unexpected value are marked as UNDETERMINED.

Remediationโ€‹

Open File

Remediationโ€‹

Disable Legacy IMDS Endpointsโ€‹

Update each affected OCI compute instance so areLegacyImdsEndpointsDisabled is set to true. 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โ€‹

Open File

Linked Framework Sectionsโ€‹

SectionSub SectionsInternal RulesPoliciesFlagsCompliance
๐Ÿ’ผ CIS Oracle v3.1.0 โ†’ ๐Ÿ’ผ 3.1 Ensure Compute Instance Legacy Metadata service endpoint is disabled - Level 2 (Automated)1no data
๐Ÿ’ผ Cloudaware Framework โ†’ ๐Ÿ’ผ Secure Access57no data