Back to Blog
NIST AI RMF Implementation on AWS: A Practical Guide
Compliance Guide·10 min read·

NIST AI RMF Implementation on AWS: A Practical Guide

C

Claw GRC Team

Claw GRC Team

A practical guide to implementing the NIST AI Risk Management Framework on AWS. Maps Govern, Map, Measure, and Manage functions to SageMaker, Clarify, EventBridge, and IAM with code examples.

NIST AI RMF Implementation on AWS: A Practical Guide

The NIST AI Risk Management Framework (AI RMF 1.0, published January 2023 as NIST AI 100-1) is becoming the de facto standard for AI governance in the United States. Federal agencies are writing it into procurement requirements. Enterprise buyers reference it in vendor questionnaires. SOC 2 auditors use it to evaluate AI controls. If you run AI workloads on AWS and sell to US organizations, you need a concrete implementation plan -- not just a policy document.

The AI RMF is organized around four core functions: Govern, Map, Measure, and Manage. Each function contains categories and subcategories that describe specific practices. This guide maps every function to AWS services, provides working code examples, and shows how to collect the evidence your auditors will request.


NIST AI RMF Overview

The AI RMF is not a checklist. It is a risk-based framework designed to be adapted to your organization's context. That said, auditors expect you to address all four functions.

GOVERN -- Establish and maintain policies, processes, and organizational structures for AI risk management. This is the foundation. Without Govern, the other three functions have no authority.

MAP -- Identify and document the context in which AI systems operate. Understand the risks, stakeholders, intended uses, and potential impacts before you build anything.

MEASURE -- Quantify and track AI risks using metrics and evaluation methods. This is where bias detection, performance monitoring, and drift analysis live.

MANAGE -- Respond to identified risks based on prioritization. Implement controls, remediate issues, and communicate with stakeholders.

Each function contains numbered categories (e.g., GOVERN 1, MAP 2) and subcategories (e.g., GOVERN 1.1, MAP 2.3). The AI RMF Playbook provides detailed guidance for each subcategory.

Profiles and Tiers

The AI RMF supports a profile approach: you select which subcategories apply to your AI systems based on risk level and create a "current" profile and a "target" profile. The gap between them becomes your implementation roadmap.

The framework also defines tiers for organizational maturity:

Tier Description Characteristics
Partial Ad hoc, reactive AI risk management is informal and undocumented
Risk Informed Some awareness Policies exist but are not consistently applied
Repeatable Formal processes AI risk management is documented and followed
Adaptive Continuous improvement AI risk management evolves based on lessons learned

Most organizations implementing the AI RMF on AWS start at Tier 2 (Risk Informed) and target Tier 3 (Repeatable) within 12 months.


GOVERN: SCPs, IAM, and AWS Organizations

The GOVERN function establishes the organizational foundation for AI risk management. On AWS, this maps to organizational policies (SCPs), access control (IAM), and account structure (AWS Organizations).

GOVERN 1 (Policies) -- Document and enforce AI governance policies. SCPs provide guardrails that apply across all accounts in your organization.

GOVERN 2 (Accountability) -- Define roles and responsibilities. IAM roles with clear boundaries establish who can train models, deploy endpoints, and approve model versions.

GOVERN 5 (Processes) -- Implement risk management processes. AWS Organizations OUs segregate AI development, staging, and production environments.

Enforcing AI Governance with SCPs

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "RequireEncryptedSageMakerTraining",
      "Effect": "Deny",
      "Action": "sagemaker:CreateTrainingJob",
      "Resource": "*",
      "Condition": {
        "Null": {
          "sagemaker:VolumeKmsKeyId": "true"
        }
      }
    },
    {
      "Sid": "RequireVPCSageMakerTraining",
      "Effect": "Deny",
      "Action": "sagemaker:CreateTrainingJob",
      "Resource": "*",
      "Condition": {
        "Null": {
          "sagemaker:VpcSubnets": "true"
        }
      }
    },
    {
      "Sid": "RestrictBedrockModels",
      "Effect": "Deny",
      "Action": "bedrock:InvokeModel",
      "Resource": "*",
      "Condition": {
        "StringNotEquals": {
          "bedrock:ModelId": [
            "anthropic.claude-3-5-sonnet-20241022-v2:0",
            "anthropic.claude-3-haiku-20240307-v1:0",
            "amazon.titan-embed-text-v2:0"
          ]
        }
      }
    },
    {
      "Sid": "RequireBedrockGuardrail",
      "Effect": "Deny",
      "Action": "bedrock:InvokeModel",
      "Resource": "*",
      "Condition": {
        "Null": {
          "bedrock:GuardrailIdentifier": "true"
        }
      }
    }
  ]
}

This SCP enforces four GOVERN subcategories simultaneously: encrypted training (GOVERN 1.1), network isolation (GOVERN 1.1), approved model list (GOVERN 6.1 for third-party AI), and mandatory guardrails (GOVERN 1.2). Apply it at the AI workload OU level.

Compliance Tip: GOVERN 1.1 requires "legal and regulatory requirements involving AI are understood, managed, and documented." Tag each SCP statement with the regulatory requirement it satisfies. When auditors ask about your governance policies, you point to enforceable SCPs -- not a PDF.


MAP: SageMaker Model Cards and Glue Data Catalog

The MAP function requires you to understand the context in which your AI systems operate. Who uses them? What are the intended and unintended uses? What data do they depend on? What are the potential impacts?

MAP 1 (Intended purpose) -- Document the intended purpose, context, and stakeholders. SageMaker Model Cards capture this structured information.

MAP 2 (Interdependencies) -- Understand how AI systems relate to other systems and data sources. Glue Data Catalog and SageMaker Lineage Tracking provide this visibility.

MAP 3 (Risk identification) -- Identify AI-specific risks (bias, drift, misuse, security). Model Card risk ratings and SageMaker Experiments risk parameters document this analysis.

Documenting AI System Context with Model Cards

import boto3
import json

sagemaker = boto3.client("sagemaker")

model_card_content = {
    "model_overview": {
        "model_description": "Customer churn prediction for enterprise accounts",
        "model_id": "churn-predictor-v4",
        "model_creator": "ML Platform Team",
        "problem_type": "Binary Classification",
        "algorithm_type": "XGBoost",
    },
    "intended_uses": {
        "purpose_of_model": "Predict 90-day churn probability to prioritize "
                            "customer success outreach",
        "intended_users": ["Customer Success managers", "Revenue Operations analysts"],
        "explanations_for_risk_rating": (
            "Medium risk: model output influences human decisions about outreach "
            "priority but does not trigger autonomous actions. Misclassification "
            "may result in delayed outreach but not direct customer harm."
        ),
        "risk_rating": "Medium",
        "factors_affecting_model_efficiency": (
            "Performance may degrade for accounts with less than 3 months of "
            "activity data. Not validated for accounts outside North America."
        ),
    },
    "training_details": {
        "training_observations": (
            "24-month rolling window of account activity. 45,000 accounts "
            "with 8.2% positive class rate. Stratified sampling applied."
        ),
    },
    "evaluation_details": [
        {
            "name": "Performance by Industry Segment",
            "metric_groups": [
                {
                    "name": "fairness_metrics",
                    "metric_data": [
                        {"name": "dpl_industry", "type": "number", "value": 0.04},
                        {"name": "disparate_impact_ratio", "type": "number", "value": 0.96},
                    ],
                }
            ],
        }
    ],
    "additional_information": {
        "ethical_considerations": (
            "Model should not be used to deny service. Predictions must be "
            "reviewed by a human before any account-level action is taken."
        ),
        "custom_details": {
            "nist_ai_rmf_map_1_1": "Intended purpose documented above",
            "nist_ai_rmf_map_1_5": "Risk tolerance: medium, DPL threshold < 0.1",
            "nist_ai_rmf_map_3_1": "Risks: bias across industry, drift over time, data staleness",
        },
    },
}

response = sagemaker.create_model_card(
    ModelCardName="churn-predictor-v4-nist-ai-rmf",
    Content=json.dumps(model_card_content),
    ModelCardStatus="Draft",
    SecurityConfig={"KmsKeyId": "alias/ml-governance-key"},
    Tags=[
        {"Key": "framework", "Value": "nist-ai-rmf"},
        {"Key": "function", "Value": "MAP"},
        {"Key": "subcategories", "Value": "MAP-1.1,MAP-1.5,MAP-3.1"},
    ],
)

Tag every Model Card with the NIST AI RMF subcategories it addresses. This creates a direct audit trail from the framework requirement to the evidence artifact.


MEASURE: Clarify Bias Metrics and Model Monitor

The MEASURE function is where you quantify AI risks. Bias detection, drift measurement, and performance tracking produce the metrics that demonstrate your AI systems behave as intended.

MEASURE 1 (Appropriate methods) -- Apply measurement methods suited to the AI system's risk level. Clarify provides pre-training and post-training bias metrics.

MEASURE 2 (Evaluation) -- Evaluate AI systems for trustworthiness characteristics (validity, reliability, safety, fairness, explainability). Model Monitor provides continuous evaluation.

MEASURE 4 (Feedback) -- Gather feedback about AI system performance from users and stakeholders. CloudWatch metrics and alarm history capture operational feedback.

Continuous Measurement with Model Monitor and Clarify

from sagemaker.model_monitor import (
    DefaultModelMonitor,
    CronExpressionGenerator,
    DataCaptureConfig,
)

# Enable data capture on the endpoint (MEASURE 2.3 - track deployed system behavior)
data_capture_config = DataCaptureConfig(
    enable_capture=True,
    sampling_percentage=100,
    destination_s3_uri="s3://ml-monitoring/churn-v4/data-capture",
    capture_options=["Input", "Output"],
    csv_content_types=["text/csv"],
    json_content_types=["application/json"],
)

# Create Model Monitor (MEASURE 2.2 - evaluation of deployed system)
monitor = DefaultModelMonitor(
    role="arn:aws:iam::123456789:role/SageMakerMonitorRole",
    instance_count=1,
    instance_type="ml.m5.xlarge",
    volume_size_in_gb=20,
    max_runtime_in_seconds=3600,
    env={
        "NIST_AI_RMF_FUNCTION": "MEASURE",
        "NIST_AI_RMF_SUBCATEGORY": "MEASURE-2.2",
    },
)

# Suggest baseline from training data (MEASURE 1.1 - appropriate methods)
monitor.suggest_baseline(
    baseline_dataset="s3://ml-data/churn/training/v4/baseline.csv",
    dataset_format={"csv": {"header": True}},
    output_s3_uri="s3://ml-monitoring/churn-v4/baseline",
)

# Schedule hourly monitoring
monitor.create_monitoring_schedule(
    monitor_schedule_name="churn-v4-nist-measure",
    endpoint_input="churn-predictor-v4-endpoint",
    output_s3_uri="s3://ml-monitoring/churn-v4/reports",
    schedule_cron_expression=CronExpressionGenerator.hourly(),
    statistics=monitor.baseline_statistics(),
    constraints=monitor.suggested_constraints(),
)

Compliance Tip: MEASURE 2.6 specifically requires "bias evaluation results." Run Clarify analysis at three points: pre-training (to verify training data fairness), post-training (to verify model fairness), and ongoing (weekly or monthly on production data). Store all three as separate evidence artifacts.


MANAGE: EventBridge Remediation and Step Functions Workflows

The MANAGE function requires you to respond to identified risks. This is where automated remediation, approval workflows, and stakeholder communication come together.

MANAGE 1 (Prioritize) -- Prioritize risks for response. Event severity in EventBridge rules determines priority.

MANAGE 2 (Sustain value) -- Ensure AI systems continue to provide value. Automated retraining pipelines triggered by drift detection sustain model quality.

MANAGE 3 (Respond) -- Respond to identified risks. EventBridge triggers Lambda functions for automated remediation. Step Functions orchestrate multi-step response workflows.

MANAGE 4 (Communicate) -- Communicate risks and actions to stakeholders. SNS notifications and CloudWatch dashboards provide visibility.

Risk Response Workflow with Step Functions

{
  "Comment": "NIST AI RMF MANAGE - AI Risk Response Workflow",
  "StartAt": "ClassifyRisk",
  "States": {
    "ClassifyRisk": {
      "Type": "Choice",
      "Choices": [
        {
          "Variable": "$.detail.severity",
          "StringEquals": "critical",
          "Next": "DisableEndpointAndNotify"
        },
        {
          "Variable": "$.detail.severity",
          "StringEquals": "high",
          "Next": "RequestHumanReview"
        },
        {
          "Variable": "$.detail.severity",
          "StringEquals": "medium",
          "Next": "TriggerRetraining"
        }
      ],
      "Default": "LogAndMonitor"
    },
    "DisableEndpointAndNotify": {
      "Type": "Parallel",
      "Branches": [
        {
          "StartAt": "ScaleToZero",
          "States": {
            "ScaleToZero": {
              "Type": "Task",
              "Resource": "arn:aws:lambda:us-east-1:123456789:function:scale-endpoint-to-zero",
              "End": true
            }
          }
        },
        {
          "StartAt": "NotifyGovernanceBoard",
          "States": {
            "NotifyGovernanceBoard": {
              "Type": "Task",
              "Resource": "arn:aws:states:::sns:publish",
              "Parameters": {
                "TopicArn": "arn:aws:sns:us-east-1:123456789:ai-governance-critical",
                "Subject.$": "States.Format('CRITICAL: AI Risk - {}', $.detail.endpointName)",
                "Message.$": "States.JsonToString($.detail)"
              },
              "End": true
            }
          }
        }
      ],
      "Next": "RecordRemediationEvidence"
    },
    "RequestHumanReview": {
      "Type": "Task",
      "Resource": "arn:aws:states:::sns:publish.waitForTaskToken",
      "Parameters": {
        "TopicArn": "arn:aws:sns:us-east-1:123456789:ai-governance-review",
        "Subject": "Human Review Required: AI Risk Detected",
        "Message.$": "States.Format('Review required for {}. Approve or reject remediation. Token: {}', $.detail.endpointName, $$.Task.Token)"
      },
      "TimeoutSeconds": 86400,
      "Next": "RecordRemediationEvidence"
    },
    "TriggerRetraining": {
      "Type": "Task",
      "Resource": "arn:aws:lambda:us-east-1:123456789:function:trigger-retraining-pipeline",
      "Next": "RecordRemediationEvidence"
    },
    "LogAndMonitor": {
      "Type": "Task",
      "Resource": "arn:aws:lambda:us-east-1:123456789:function:log-risk-event",
      "End": true
    },
    "RecordRemediationEvidence": {
      "Type": "Task",
      "Resource": "arn:aws:lambda:us-east-1:123456789:function:record-nist-evidence",
      "End": true
    }
  }
}

This Step Functions workflow implements risk-based response: critical risks immediately disable endpoints, high risks require human review, medium risks trigger retraining, and low risks are logged. Every action is recorded as NIST AI RMF MANAGE evidence.


Relationship to NIST 800-53

The NIST AI RMF is complementary to NIST 800-53 (security and privacy controls), not a replacement. Organizations subject to both frameworks -- particularly federal agencies and their contractors -- need to understand how they intersect.

NIST AI RMF Function Related NIST 800-53 Controls AWS Service
GOVERN 1 (Policy) PL-1, PM-1, PM-9 SCPs, AWS Organizations
GOVERN 2 (Accountability) PM-2, PM-10 IAM roles, CloudTrail
MAP 1 (Intended purpose) RA-3, SA-8 Model Cards
MAP 3 (Risk identification) RA-3, RA-5 Model Cards, SageMaker Experiments
MEASURE 1 (Methods) CA-2, CA-7 Clarify, Model Monitor
MEASURE 2 (Evaluation) CA-2, SI-4 Clarify bias reports, monitoring reports
MANAGE 1 (Prioritize) PM-9, RA-3 EventBridge rules with severity
MANAGE 2 (Sustain) SI-4, CA-7 Model Monitor, retraining pipelines
MANAGE 3 (Respond) IR-4, IR-5 EventBridge, Lambda, Step Functions
MANAGE 4 (Communicate) PM-15, IR-6 SNS, CloudWatch Dashboards

If you already implement NIST 800-53 controls on AWS, you have a head start on the AI RMF. The gap is typically in AI-specific requirements: bias evaluation (MEASURE 2.6), model documentation (MAP 1.5), and AI impact assessment (MAP 5.1).


Documentation Requirements

The NIST AI RMF expects organizations to maintain several types of documentation:

AI Risk Management Policy -- Your organizational commitment to AI risk management, including scope, objectives, and governance structure. Store in version control, reference in your SCPs.

AI System Profiles -- For each AI system, document the current and target risk profile. SageMaker Model Cards serve this purpose when populated with NIST AI RMF subcategory metadata.

Risk Assessment Records -- Document identified risks, likelihood, impact, and treatment decisions. SageMaker Experiments risk parameters and Model Card risk ratings provide this.

Measurement Results -- Clarify bias reports, Model Monitor drift reports, and performance metrics over time.

Incident and Response Records -- EventBridge event history, Lambda execution logs, and Step Functions execution records document your response to identified risks.


Using Claw GRC for NIST AI RMF Compliance

Claw GRC pre-maps all NIST AI RMF subcategories to AWS evidence sources:

Pre-built subcategory mappings:

  • All 19 GOVERN subcategories mapped to IAM, SCP, and Organizations evidence
  • All 12 MAP subcategories mapped to Model Cards, Glue Data Catalog, and Experiments
  • All 11 MEASURE subcategories mapped to Clarify, Model Monitor, and CloudWatch
  • All 10 MANAGE subcategories mapped to EventBridge, Lambda, and Step Functions
  • Cross-framework mapping to NIST 800-53, ISO 42001, and SOC 2

Automated evidence collection:

  • SCP and IAM policy snapshots for GOVERN evidence (daily)
  • Model Card exports for MAP evidence (on change)
  • Clarify reports and Model Monitor results for MEASURE evidence (per schedule)
  • EventBridge and Step Functions execution logs for MANAGE evidence (real-time)

Profile and gap analysis:

  • Current vs. target profile visualization across all four functions
  • Tier assessment with recommendations for progression
  • Audit-ready evidence packages organized by NIST AI RMF subcategory

For the complete picture of AWS AI governance, see the Complete Guide to AWS AI/ML Governance. For SageMaker-specific controls, see SageMaker Model Cards for Compliance and AWS Cloud Security for AI Compliance.


Start your NIST AI RMF assessment on AWS ->

CG

Get started with Claw GRC

AI-native compliance automation. 1,026+ controls. MCP-native. Free workspace, no credit card.

Start Free →