🔒 Security

FedRAMP

Federal Risk and Authorization Management Program

A US federal government cloud security authorization program. Cloud service providers (CSPs) must obtain FedRAMP authorization to offer services to federal agencies.

📖 Detailed Explanation

FedRAMP (Federal Risk and Authorization Management Program) is a cloud security certification program introduced by the U.S. federal government in 2011. It provides standardized security assessment, authorization, and continuous monitoring processes so that federal agencies can use cloud services securely. Cloud service providers (CSPs) cannot sell services to the federal government without FedRAMP authorization, and this is a market worth billions of dollars annually.

FedRAMP is based on the NIST SP 800-53 security control baselines and is classified into three impact levels: Low, Moderate, and High. Low covers basic data protection (125 controls), Moderate covers data that includes personal information (325 controls), and High covers data that affects national security or human life (421 controls). Most SaaS products target the Moderate level, and obtaining authorization takes 6 months to 2 years.

There are two authorization paths: the JAB (Joint Authorization Board) path and the Agency path. In the JAB path, the Department of Defense (DoD), the Department of Homeland Security (DHS), and the General Services Administration (GSA) jointly conduct the assessment and issue a P-ATO (Provisional Authority to Operate). In the Agency path, an individual federal agency acts as sponsor and issues an ATO; it is faster but valid only for that agency. Once authorized, the service is listed in the FedRAMP Marketplace, and other agencies can reuse it as well.

For AI service companies, FedRAMP is an essential gateway to entering the U.S. public sector. AWS, Azure, and GCP all hold FedRAMP High authorization, and if you build an AI service on these platforms, you can inherit their authorization scope. However, AI model serving or data processing pipelines that use your own infrastructure require separate authorization, and must pass an independent security assessment by a 3PAO (Third Party Assessment Organization).

💻 Code Example

# FedRAMP Moderate 준수 AWS 인프라 구성
# Terraform으로 FedRAMP 통제 요구사항 구현

provider "aws" {
  region = "us-gov-west-1"  # GovCloud 리전 사용 (FedRAMP High)
}

# AC-2: 계정 관리 - IAM 정책
resource "aws_iam_policy" "fedramp_access_policy" {
  name        = "FedRAMP-Compliant-Access"
  description = "FedRAMP AC-2 compliant access control policy"

  policy = jsonencode({
    Version = "2012-10-17"
    Statement = [
      {
        Sid    = "RequireMFA"
        Effect = "Deny"
        Action = "*"
        Resource = "*"
        Condition = {
          BoolIfExists = {
            "aws:MultiFactorAuthPresent" = "false"
          }
        }
      },
      {
        Sid    = "EnforceSessionTimeout"
        Effect = "Allow"
        Action = ["sts:AssumeRole"]
        Resource = "*"
        Condition = {
          NumericLessThanEquals = {
            "aws:SessionDuration" = "3600"  # 1시간 세션 제한
          }
        }
      }
    ]
  })
}

# AU-2: 감사 이벤트 - CloudTrail 설정
resource "aws_cloudtrail" "fedramp_audit" {
  name                          = "fedramp-audit-trail"
  s3_bucket_name                = aws_s3_bucket.audit_logs.id
  include_global_service_events = true
  is_multi_region_trail         = true
  enable_log_file_validation    = true
  kms_key_id                    = aws_kms_key.audit_key.arn

  event_selector {
    read_write_type           = "All"
    include_management_events = true

    data_resource {
      type   = "AWS::S3::Object"
      values = ["arn:aws:s3:::"]
    }
  }

  tags = {
    FedRAMP_Control = "AU-2,AU-3,AU-6"
    Compliance      = "FedRAMP-Moderate"
  }
}

# SC-8: 전송 보호 - 암호화 강제
resource "aws_s3_bucket_policy" "enforce_tls" {
  bucket = aws_s3_bucket.data_bucket.id

  policy = jsonencode({
    Version = "2012-10-17"
    Statement = [
      {
        Sid       = "DenyInsecureTransport"
        Effect    = "Deny"
        Principal = "*"
        Action    = "s3:*"
        Resource  = [
          aws_s3_bucket.data_bucket.arn,
          "${aws_s3_bucket.data_bucket.arn}/*"
        ]
        Condition = {
          Bool = {
            "aws:SecureTransport" = "false"
          }
        }
      }
    ]
  })
}

# SC-28: 저장 데이터 보호 - KMS 암호화
resource "aws_kms_key" "fedramp_key" {
  description             = "FedRAMP compliant encryption key"
  deletion_window_in_days = 30
  enable_key_rotation     = true  # SC-12: 키 순환

  policy = jsonencode({
    Version = "2012-10-17"
    Statement = [
      {
        Sid    = "EnableIAMPolicies"
        Effect = "Allow"
        Principal = {
          AWS = "arn:aws:iam::${data.aws_caller_identity.current.account_id}:root"
        }
        Action   = "kms:*"
        Resource = "*"
      }
    ]
  })

  tags = {
    FedRAMP_Control = "SC-12,SC-28"
  }
}
# FedRAMP 컴플라이언스 검증 스크립트
import boto3
from datetime import datetime, timedelta
from typing import Dict, List, Any

class FedRAMPComplianceChecker:
    """FedRAMP 통제 요구사항 자동 검증"""

    def __init__(self):
        self.iam = boto3.client('iam')
        self.s3 = boto3.client('s3')
        self.cloudtrail = boto3.client('cloudtrail')
        self.results: List[Dict[str, Any]] = []

    def check_ac2_account_management(self) -> Dict[str, Any]:
        """AC-2: 계정 관리 통제 검증"""
        issues = []

        # 비활성 사용자 확인 (90일 이상)
        users = self.iam.list_users()['Users']
        for user in users:
            last_used = self.iam.get_user(UserName=user['UserName'])
            if 'PasswordLastUsed' in user:
                days_inactive = (datetime.now(user['PasswordLastUsed'].tzinfo) -
                                user['PasswordLastUsed']).days
                if days_inactive > 90:
                    issues.append(f"비활성 계정: {user['UserName']} ({days_inactive}일)")

        # MFA 미설정 사용자 확인
        for user in users:
            mfa_devices = self.iam.list_mfa_devices(UserName=user['UserName'])
            if not mfa_devices['MFADevices']:
                issues.append(f"MFA 미설정: {user['UserName']}")

        return {
            "control": "AC-2",
            "name": "Account Management",
            "status": "PASS" if not issues else "FAIL",
            "issues": issues
        }

    def check_au2_audit_events(self) -> Dict[str, Any]:
        """AU-2: 감사 이벤트 통제 검증"""
        issues = []

        trails = self.cloudtrail.describe_trails()['trailList']
        if not trails:
            issues.append("CloudTrail이 활성화되지 않음")
        else:
            for trail in trails:
                status = self.cloudtrail.get_trail_status(Name=trail['Name'])
                if not status.get('IsLogging'):
                    issues.append(f"CloudTrail 비활성: {trail['Name']}")
                if not trail.get('LogFileValidationEnabled'):
                    issues.append(f"로그 무결성 검증 미활성: {trail['Name']}")

        return {
            "control": "AU-2",
            "name": "Audit Events",
            "status": "PASS" if not issues else "FAIL",
            "issues": issues
        }

    def check_sc28_data_at_rest(self) -> Dict[str, Any]:
        """SC-28: 저장 데이터 보호 검증"""
        issues = []

        buckets = self.s3.list_buckets()['Buckets']
        for bucket in buckets:
            try:
                encryption = self.s3.get_bucket_encryption(Bucket=bucket['Name'])
            except self.s3.exceptions.ClientError:
                issues.append(f"암호화 미설정: {bucket['Name']}")

        return {
            "control": "SC-28",
            "name": "Protection of Information at Rest",
            "status": "PASS" if not issues else "FAIL",
            "issues": issues
        }

    def generate_poam(self) -> str:
        """Plan of Action and Milestones (POA&M) 생성"""
        poam_items = []

        for result in self.results:
            if result['status'] == 'FAIL':
                poam_items.append({
                    "control": result['control'],
                    "weakness": result['issues'],
                    "remediation_date": (datetime.now() +
                                        timedelta(days=30)).strftime("%Y-%m-%d"),
                    "status": "Open"
                })

        return poam_items

    def run_assessment(self) -> Dict[str, Any]:
        """전체 FedRAMP 평가 실행"""
        self.results = [
            self.check_ac2_account_management(),
            self.check_au2_audit_events(),
            self.check_sc28_data_at_rest(),
        ]

        passed = sum(1 for r in self.results if r['status'] == 'PASS')
        total = len(self.results)

        return {
            "assessment_date": datetime.now().isoformat(),
            "impact_level": "Moderate",
            "controls_assessed": total,
            "controls_passed": passed,
            "compliance_rate": f"{(passed/total)*100:.1f}%",
            "results": self.results,
            "poam": self.generate_poam()
        }

# 실행 예시
checker = FedRAMPComplianceChecker()
report = checker.run_assessment()
print(f"FedRAMP 준수율: {report['compliance_rate']}")
# OSCAL (Open Security Controls Assessment Language)
# FedRAMP System Security Plan (SSP) 예시

system-security-plan:
  uuid: "550e8400-e29b-41d4-a716-446655440000"
  metadata:
    title: "AI Analytics Platform - FedRAMP SSP"
    version: "1.0.0"
    oscal-version: "1.0.4"
    published: "2026-01-26T00:00:00Z"
    last-modified: "2026-01-26T00:00:00Z"
    roles:
      - id: system-owner
        title: "System Owner"
      - id: isso
        title: "Information System Security Officer"
      - id: ao
        title: "Authorizing Official"

  import-profile:
    href: "https://raw.githubusercontent.com/GSA/fedramp-automation/master/baselines/rev5/json/FedRAMP_rev5_MODERATE-baseline-resolved-profile_catalog.json"
    # FedRAMP Moderate 베이스라인 import

  system-characteristics:
    system-name: "AI Analytics Platform"
    description: "클라우드 기반 AI 분석 플랫폼"
    security-sensitivity-level: moderate
    system-information:
      information-types:
        - title: "Controlled Unclassified Information (CUI)"
          categorizations:
            - system: "https://doi.org/10.6028/NIST.SP.800-60v2r1"
              information-type-ids:
                - "C.2.4.1"  # Privacy Information

    security-impact-level:
      security-objective-confidentiality: moderate
      security-objective-integrity: moderate
      security-objective-availability: moderate

    authorization-boundary:
      description: |
        시스템 경계는 AWS GovCloud 내 VPC로 제한됨.
        - 웹 애플리케이션 계층 (ALB, ECS)
        - AI/ML 처리 계층 (SageMaker)
        - 데이터 저장 계층 (RDS, S3)

  system-implementation:
    users:
      - uuid: "user-001"
        role-ids:
          - admin
        authorized-privileges:
          - title: "시스템 관리자"
            functions-performed:
              - "시스템 구성 관리"
              - "사용자 계정 관리"

    components:
      - uuid: "comp-001"
        type: "software"
        title: "AWS Identity and Access Management"
        description: "AC-2 통제 구현"
        status:
          state: operational
        responsible-roles:
          - role-id: isso

      - uuid: "comp-002"
        type: "software"
        title: "AWS CloudTrail"
        description: "AU-2, AU-3, AU-6 통제 구현"
        status:
          state: operational

      - uuid: "comp-003"
        type: "software"
        title: "AWS KMS"
        description: "SC-12, SC-28 통제 구현"
        status:
          state: operational

  control-implementation:
    description: "FedRAMP Moderate 통제 구현 상세"
    implemented-requirements:
      - uuid: "ir-ac-2"
        control-id: "ac-2"
        statements:
          - statement-id: "ac-2_smt.a"
            uuid: "stmt-ac-2-a"
            description: |
              AWS IAM을 통해 계정 유형을 정의하고 관리합니다.
              - 시스템 관리자: AdministratorAccess 정책
              - 데이터 분석가: ReadOnlyAccess + S3 특정 버킷
              - AI 엔지니어: SageMaker 전용 정책

      - uuid: "ir-sc-28"
        control-id: "sc-28"
        statements:
          - statement-id: "sc-28_smt"
            uuid: "stmt-sc-28"
            description: |
              모든 저장 데이터는 AES-256으로 암호화됩니다.
              - S3: SSE-KMS 암호화 적용
              - RDS: TDE(Transparent Data Encryption) 적용
              - EBS: 볼륨 암호화 필수

🗣️ Say It Like This in Practice

💬 In a strategy meeting for entering the U.S. public market
"If we want to target federal government customers, FedRAMP authorization is essential. At the Moderate level, we have to implement 325 controls, and we should expect at least 12 months through the 3PAO assessment. If we build on AWS GovCloud, we can inherit a significant portion."
💬 In a discussion on setting the authorization scope
"Minimizing the FedRAMP boundary is the key. If we train AI models outside the boundary and include only the inference API and data stores in the authorization scope, the burden of implementing controls drops significantly. ConMon (continuous monitoring) is also easier to manage the narrower the scope is."
💬 When deciding between Agency ATO and JAB P-ATO
"NASA has agreed to act as sponsor, so the Agency path is faster. A JAB P-ATO is more prestigious, but the queue is long. Once we get the Agency ATO, we'll be listed in the FedRAMP Marketplace and other agencies can reuse it too."

⚠️ Cautions & Best Practices

❌
Excessive Expansion of the Authorization Scope

If you include the entire system in the FedRAMP scope, the costs of implementing controls and continuous monitoring grow exponentially. Include only the core components that process federal data in the boundary, and separate the rest outside the boundary.

❌
Insufficient ConMon Automation

Even after obtaining authorization, FedRAMP requires monthly vulnerability scans, quarterly POA&M updates, and annual security assessments. Managing these manually makes it impossible to maintain authorization. Automate with tools such as AWS Security Hub and Splunk.

❌
Neglecting Documentation

With FedRAMP, documentation is as important as technical implementation. If the SSP (System Security Plan), CIS (Control Implementation Summary), or POA&M is incomplete, the 3PAO assessment will flag it. Write the documents at the same time as you implement.

✅
FedRAMP Best Practices

Obtain the FedRAMP Ready designation first to secure credibility in the market. Leverage the infrastructure of already-authorized CSPs to maximize control inheritance, and managing documents in OSCAL format makes automation and reuse easier.

🔗 Related Terms

📚 Learn More