sample-aiml-security-assessment

AWS AI Security Framework (AISF) Checks

This document catalogs the AISF-XX rows the report renders under “By Compliance Standard”, the AWS AI Security Framework control each one reports on, and the shipped BR/SM/AC/AG check every row is derived from.

The report’s AISF-NN ids (AISF-05, AISF-00) are this scanner’s own row ids. They are distinct from Prowler’s AISF-AI-06-style requirement ids, which Prowler AISF requirements covers.

Disclaimer

These mappings are PRELIMINARY and ILLUSTRATIVE. They have not been reviewed by AWS Security Assurance Services or external auditors. Validate each mapping against your own reading of the AISF control before relying on an AISF- row as audit evidence. A control that is absent from this catalog is unassessed, which is not evidence of compliance.

Design

AISF is a derived compliance standard. No Lambda runs AISF checks, no aisf_security_report_*.csv is written to S3, and the state machine has no AISF branch. derive_aisf_findings() in aiml-security-assessment/functions/security/generate_consolidated_report/aisf_mappings.py runs at consolidation time in both report paths (the generate_consolidated_report Lambda for single-account runs, and the root consolidate_html_reports.py for multi-account runs) and restates verdicts the incumbent checks already produced under AISF control ids. The changes since last assessment report runs the same function on each of the two runs it compares, so its AISF rows change only when a source check does (see ASSESSMENT_HISTORY.md).

Every control below is covered, meaning one or more incumbent checks assert the control exactly. A control its incumbents assert only in part is deliberately excluded: republishing that incumbent’s Passed under the AISF control id would publish a pass the assessment never earned. tests/test_aisf_derived_standard.py pins the map: each id carries the registered AISF- prefix, no retired id or control reappears, and each mapped control’s baked severity is the collapse of its declared risk band.

AISF- rows are not counted in the framework’s 277-check total. They carry no new assertion, so counting them would double-count the incumbent check. They are excluded from the report’s pass-rate denominator and from Open Action Items for the same reason, which is how OWASP-mapped rows already behave.

Ids are allocated once and never renumbered. AISF_DERIVED_MAP is append-only: a new control takes the next free AISF- number. Reusing or resequencing an id rewrites the meaning of every archived report that already carries it.

Registry entry

The standard is registered by one entry in COMPLIANCE_STANDARDS (report_template.py) carrying "derived": True. That key keeps the slug out of the S3 prefix list the report Lambda builds in app.py: the Lambda’s s3:ListBucket grant restricts s3:prefix to the producing artifacts, so listing a prefix for a standard that writes no CSV returns AccessDenied and fails report generation for every category. A producing standard (the OWASP-style wire-up in DEVELOPER_GUIDE.md) omits the key.

Status semantics

Situation Emitted
every source check for the control passed Passed
any source check for the control failed Failed
any source check present for the account and region failed, even if another is absent Failed, naming the absent Check_IDs
a source check reported N/A and none failed, so no verdict is available N/A, Informational
some source checks present for the account and region, others absent, none failed N/A, Informational, naming the absent Check_IDs
no source check for the control present at all no AISF- row for that control; the absence is reported once per account and region by AISF-00
every source check for the control belongs to a deselected service no AISF- row and no AISF-00 mention; the service shows as Not selected, and the section’s scope text names the control as omitted because that service was not selected

A source check emits one finding per resource, so a leg normally carries several verdicts for one account and region. All of them are aggregated, and Finding_Details names the count per leg (BR-20 (10 findings: 9 Failed, 1 Passed)), so a failing resource cannot be hidden behind a later Passed row from the same check. BR-20 emits its summary Passed row after its per-resource rows, which is the order that made this concrete.

A source check that runs once per account, on the primary Region, reports under the Global Region. An account-wide verdict holds in every Region, so each Global row is aggregated into every regional key of the same account, and Finding_Details says so. The Global key gets its own AISF- rows only for an account with no regional key. Otherwise a Global Failed would sit beside a regional Passed for the same control. The changes report (ASSESSMENT_HISTORY.md) keeps a Global AISF row when that control has no regional source row, so it can pair across runs despite unrelated regional checks. When the control has regional source rows, those rows include the Global evidence and its separate Global AISF row is suppressed.

AISF-00 is a report-completeness marker, not an AISF control. It lists every derived control of a selected service that had no source check for that account and region, so an incomplete scan reads as unassessed instead of silently omitting rows. It links no reference document. See TROUBLESHOOTING.md for the causes.

Severity

Severity comes from the AISF control’s own risk band, not from the source row. An AISF- row is a verdict on an AISF control, and one incumbent check’s severity is not that control’s risk rating; AISF-08 makes that concrete, since its three source checks carry different severities. AISF uses five risk bands and this framework’s SeverityEnum has four, so critical and high both report as High, following section 6 of SECURITY_CHECKS_RESPONSIBLE_AI_GRC_SEVERITY_METHODOLOGY.md, which keeps four levels and accepts that a genuinely critical risk is reported as High. No derived control is rated critical: the three that were (AISF-01, AISF-03, AISF-04) are retired. A control in that band names the band and the downgrade in its Finding_Details, so a reader who sees High against a critical control learns why from the finding itself. A row with Status=N/A always reports Informational.

Check catalogue

Check AISF control Severity Source checks
AISF-00 none (coverage marker) Informational none
AISF-05 AIR-BDR-KB-03 High BR-20
AISF-07 AIR-SGM-EP-08 High SM-18, SM-42
AISF-08 AIR-SGM-TRN-05 Medium SM-09, SM-01, SM-03

AISF-05 AIR-BDR-KB-03 Knowledge Base Vector Store Encryption

Is the underlying vector store or index for a knowledge base encrypted and access-restricted the same way as the source data it was built from?

Source Signal
BR-20 Knowledge Base Customer-Managed KMS Encryption Check

Reference: https://docs.aws.amazon.com/bedrock/latest/userguide/encryption-kb.html

AISF-07 AIR-SGM-EP-08 Batch Inference Network and Encryption Parity

Are batch (offline) inference jobs that process data in bulk held to the same private-network and encryption standard as real-time inference?

Source Signal
SM-18 SageMaker Transform Job Encryption Check (model VPC/isolation config plus job KMS configuration)
SM-42 SageMaker Batch Transform Creation Guardrail (SCP and identity guardrails on CreateModel and CreateTransformJob for encryption, approved network and no direct internet access)

Reference: https://docs.aws.amazon.com/sagemaker/latest/dg/batch-vpc.html

AISF-08 AIR-SGM-TRN-05 Notebook and Development Environment Access Control

Is access to notebook instances and development environments used for model experimentation restricted and monitored the same way as production access?

This is the one control with several source checks. All three legs must report Passed for AISF-08 to report Passed; any Failed leg makes it Failed, even when another leg is missing; otherwise a leg that is missing or N/A makes it N/A, and the finding details name a missing leg.

Source Signal
SM-09 SageMaker Notebook Root Access Check
SM-01 SageMaker Internet Access Check
SM-03 SageMaker Data Protection Check

Reference: https://docs.aws.amazon.com/whitepapers/latest/sagemaker-studio-admin-best-practices/permissions-management.html

Retired ids

These ids were derived once and are not derived now. Each restated an incumbent check that asserts only part of its control, so a restated Passed would have claimed the whole control. The ids stay allocated in RETIRED_AISF_IDS and are never given to another control, so an archived report that carries one still means the control below. The incumbent checks still run, and their producer rows still name the control in the Compliance_Frameworks column with a (partial) tag.

Id AISF control Incumbent Why retired
AISF-01 AIR-ACR-GW-01 AG-24 the incumbent asserts only part of the control
AISF-02 AIR-ACR-RT-09 AC-06 the incumbent asserts only part of the control
AISF-03 AIR-BDR-GRD-01 BR-10 the incumbent asserts only part of the control
AISF-04 AIR-BDR-GRD-03 BR-26 the incumbent asserts only part of the control
AISF-06 AIR-BDR-MDL-10 BR-37 the incumbent asserts only part of the control

Traceability column on producer rows

The AISF- rows above are derived verdicts. The Compliance_Frameworks column publishes no verdict at all: it tags rows the BR/SM/AC/AG/AR checks already emit with the AISF control each check contributes to, so a reader of bedrock_security_report_*.csv can trace a row back to the framework. The Status column still carries the verdict.

The qualifier is what makes a partly asserted control safe to name

An AISF- row restates the incumbent’s Passed under the control id, so only a covered control may reach AISF_DERIVED_MAP. A tag restates nothing, so it may name a partly asserted control as long as it says so. Three forms:

Tag Means
AISF AIR-BDR-KB-03 this check alone asserts the whole control
AISF AIR-SGM-TRN-05 (1 of 3 checks) the control is covered, but jointly, so no single leg asserts it
AISF <control> (partial) the check asserts less than the control requires, and the tightening is outstanding

A check that contributes to several controls carries them pipe-joined, with the AISF prefix repeated on each element so a consumer that splits on | gets a complete token. One value may mix forms, because a check that asserts one control in full often asserts only part of another, so read each element on its own and never the value as a whole.

One map module per producer

The map files are named per producer (aisf_compliance_bedrock.py and so on) for a measured reason. All six producers name their files schema.py and app.py, and app.py reaches its schema with from schema import create_finding, resolved through sys.modules under that bare name. With four files all called aisf_compliance.py, loading two producers into one interpreter gave the second one the first one’s map, and aisf_frameworks("BR-10") returned "" inside the bedrock module. The symptom is an empty tag and no ImportError, so nothing raises. test_two_producers_in_one_interpreter_keep_their_own_maps holds this.

Scope, and what it does not cover

Prowler AISF requirements

Prowler publishes its own AWS AI Security Framework compliance mapping, whose requirement ids (AISF-AI-06, AISF-IAM-07 and so on) are Prowler’s and are not AISF catalogue control ids. Two checks answer Prowler requirements that no check here asserted:

Prowler requirement Check What it reproduces
AISF-AI-06 Bedrock API Audit Trail BR-56 Bedrock LLM Jacking Activity cloudtrail_threat_detection_llm_jacking, with the departures listed in SECURITY_CHECKS.md
AISF-IAM-07 Cognito User Authentication for AI Apps AC-52 Cognito User Pool Authentication the user pool and app client checks, for the pools an AgentCore JWT authorizer names

Neither check carries a Compliance_Frameworks tag. The tag names an AISF catalogue control, and a Prowler requirement id is not one, so writing it into a map would publish a control the catalogue does not have. Mapping either check to a catalogue control it was not assessed against would publish a coverage claim nothing backs. The cross-reference lives in this table and in the code comment on each check instead.

These Prowler requirements are out of charter and have no check here. Each is account hygiene that applies whether or not the account runs an AI workload, Prowler already checks it, and this scanner’s scope is the AI/ML resources in the account:

Adding a control

  1. Confirm the incumbent checks assert the whole control. A check that asserts less belongs in the tag column with a (partial) qualifier; close the gap in the incumbent check first.
  2. Append an entry to AISF_DERIVED_MAP with the next free AISF- number, counting the ids in RETIRED_AISF_IDS as taken, the incumbent Check_IDs, and the control’s risk, rec, and first src URL copied from the AISF control definition. A source is attributed to the service whose Lambda emits it: BR-, SM-, AC- and AR- by prefix, and each AG- id through AGENTIC_SOURCE_SERVICE, because Bedrock, AgentCore and Agent Registry all emit AG- rows. TestAgenticSourceAttribution fails if that table drifts from the three Agentic mapping dictionaries or from any AG- id a producer names. A source no table attributes is logged at runtime and is never removed by service selection, so its control still renders.
  3. Update the coverage bullet in this file, the AISF figures in CHANGELOG.md, and the derived=3 fallback on the registry entry in report_template.py. The report computes its own derived count from AISF_DERIVED_MAP through aisf_mappings.aisf_scope(). If the control moved from (partial) to covered, also update AISF_COVERED_CONTROLS and AISF_PARTIAL_CONTROLS in report_template.py. TestScopeTextCountsComeFromTheData and test_scope_text_states_the_denominator_and_it_reconciles fail until the figures agree.
  4. Add the row to the check catalogue above with its own per-control section.
  5. Change the control’s tags in the aisf_compliance_<module>.py map of each producer that emits an incumbent: a control that became covered is bare or (1 of N checks), never (partial).
  6. Run the full test suite, ruff, cfn-lint and sam validate --lint as CI does.