Skip to main content

More Info:

Ensure Sagemaker endpoint has KMS key configured

Risk Level

High

Address

Security

Compliance Standards

  • APRA CPS 234 (Australia)
  • AWS Startup Security Baseline
  • BSI C5 (Germany)
  • Brazil LGPD
  • CCPA / CPRA (California)
  • CIS Critical Security Controls v8
  • CMMC 2.0
  • CSA Cloud Controls Matrix v4
  • DPDPA
  • Digital Operational Resilience Act (EU)
  • HIPAA
  • ISO 27001
  • ISO/IEC 27017
  • ISO/IEC 27018
  • ISO/IEC 27701
  • KSA PDPL
  • MAS Technology Risk Management (Singapore)
  • MITRE ATT&CK (Cloud)
  • NIS2 Directive
  • NIST CSF
  • NIST SP 800-171
  • NYDFS 23 NYCRR 500
  • PCI
  • Reserve Bank of India (RBI) Cyber Security Framework
  • SWIFT Customer Security Controls Framework
  • Sarbanes-Oxley IT General Controls
  • UK NCSC Cyber Assessment Framework

Triage and Remediation

Remediation

Using Console

To remediate the misconfiguration of a Sagemaker Endpoint not having a KMS key configured for AWS DynamoDB using the AWS console, follow these steps:
  1. Open AWS Management Console: Go to the AWS Management Console at https://aws.amazon.com/ and log in to your account.
  2. Navigate to Amazon Sagemaker Console: Click on the “Services” dropdown menu at the top left corner of the console, search for “Sagemaker” and click on it to open the Amazon Sagemaker console.
  3. Select Endpoints: In the Amazon Sagemaker console, click on “Endpoints” from the left-hand side menu to view the list of endpoints.
  4. Select the Endpoint: Identify the Sagemaker Endpoint that is connected to the AWS DynamoDB table that needs a KMS key configured and click on its name to open the details page.
  5. Edit Endpoint Configuration: On the details page of the Sagemaker Endpoint, click on the “Edit” button to modify the endpoint configuration.
  6. Configure KMS Key: In the Endpoint configuration settings, look for the option to configure the KMS key for the endpoint. If the option is not available, it means that the endpoint is not encrypted with a KMS key.
  7. Select KMS Key: Click on the dropdown menu or input field to select or enter the KMS key that you want to use to encrypt the data for the Sagemaker Endpoint connected to the DynamoDB table.
  8. Save Changes: After selecting the appropriate KMS key, click on the “Save” or “Update” button to apply the changes to the Sagemaker Endpoint configuration.
  9. Verify Configuration: Once the changes are saved, verify that the KMS key is successfully configured for the Sagemaker Endpoint connected to the AWS DynamoDB table by checking the endpoint details.
By following these steps, you can remediate the misconfiguration of a Sagemaker Endpoint not having a KMS key configured for AWS DynamoDB using the AWS console.

To remediate the misconfiguration of Sagemaker Endpoint not having a KMS Key configured for AWS DynamoDB using AWS CLI, follow these steps:
  1. Identify the Sagemaker Endpoint: Use the AWS CLI command to identify the Sagemaker Endpoint that needs to have a KMS Key configured. You can list all the Sagemaker endpoints using the following command:
  2. Get the ARN of the Sagemaker Endpoint: Once you have identified the Sagemaker Endpoint that needs to be configured, get the ARN of that endpoint using the following command:
  3. Identify the KMS Key: Next, identify the KMS Key that you want to associate with the Sagemaker Endpoint. You can list all the available KMS keys using the following command:
  4. Update the Sagemaker Endpoint Configuration: Update the Sagemaker Endpoint configuration to associate it with the KMS Key. Use the following command to update the Sagemaker Endpoint configuration:
Replace <endpoint-name> with the actual name of the Sagemaker Endpoint and <kms-key-id> with the ARN of the KMS Key that you want to associate with the Sagemaker Endpoint.By following these steps, you can successfully remediate the misconfiguration of the Sagemaker Endpoint not having a KMS Key configured for AWS DynamoDB using AWS CLI.
To remediate the misconfiguration of Sagemaker Endpoint not having a KMS Key configured in AWS, you can follow these steps using Python:
  1. Import the necessary libraries:
  1. Initialize the DynamoDB client:
  1. Get the list of all the Sagemaker endpoints:
  1. For each Sagemaker endpoint, check if it is using the KMS key:
  1. Run the Python script to remediate the misconfiguration of Sagemaker Endpoint not having a KMS Key configured.
By following these steps, you can remediate the misconfiguration of Sagemaker Endpoint not having a KMS Key configured in AWS DynamoDB using Python.
This remediates the DynamoDB side by ensuring the table is encrypted at rest with the specified KMS key via server_side_encryption.kms_key_arn. It does not normally force table replacement; Terraform will plan an in‑place update.To verify, terraform plan should show a ~ (update in-place) on aws_dynamodb_table.THIS_TABLE with server_side_encryption.enabled set to true and kms_key_arn changing from null (or the old key) to YOUR_KMS_KEY_ARN.