sample-aiml-security-assessment

Changelog

All notable user-facing and deployable changes to this project are documented in this file.

Changes are accumulated under Unreleased as they are merged. Creating a release is not required for every change. When a version is tagged, move its entries into a dated version section and create a new empty Unreleased section.

Unreleased

Added

Changed

Existing checks judge the values they read and the whole population they cover, where many used to pass on the presence of a field or on a partial read. Rows that passed before can fail after the upgrade. Each row that holds back Passed names what it could not read.

Deprecated

Fixed

Removed

Deployment impact

These instructions assume the 2.0.0 prerequisites below are already applied. When upgrading from an earlier release, complete the 2.0.0 member-role and central infrastructure updates first. Then apply this feature’s parameters and rerun CodeBuild to deploy the assessment/report changes. No additional IAM permissions are introduced by service selection.

New checks and AISF mapping. Apply these updates in order.

  1. Multi-account member-role StackSet update required first because deployment/1-aiml-security-member-roles.yaml changed. The member deployment role gains the AssessmentManagedPolicyLifecycle statement (iam:CreatePolicy, iam:DeletePolicy, iam:GetPolicy, iam:GetPolicyVersion, iam:ListPolicyVersions, iam:CreatePolicyVersion, iam:DeletePolicyVersion and iam:ListEntitiesForPolicy on the account’s policy/aiml-security-* and policy/aiml-sec-* ARNs), and its iam:AttachRolePolicy and iam:DetachRolePolicy condition admits those two policy patterns beside AWSLambdaBasicExecutionRole. Without it, the next assessment deploy fails with iam:CreatePolicy denied and rolls back.
  2. Central or single-account infrastructure update required next because deployment/2-aiml-security-codebuild.yaml and deployment/aiml-security-single-account.yaml changed. The CodeBuild deployment role gains the same managed-policy permissions, and the RequireAgentRegistryManualApproval parameter is removed. A stack update that still passes that parameter fails, so drop it from any saved parameter file first. Direct AWS SAM users drop it from their parameter overrides for the same reason. AR-03 now fails every auto-approving registry, which the parameter used to gate.
  3. CodeBuild run required last. Rerun CodeBuild; it redeploys the assessment code, buildspec.yml, the state machine and the AWS SAM template for your mode. Direct SAM users must redeploy the template they use. The state machine passes TargetRegions to the AgentCore function, so AC-26 and AC-48 can compare Regions.

The AWS SAM templates (aiml-security-assessment/template.yaml and aiml-security-assessment/template-multi-account.yaml) carry the same IAM change:

Deprecated parameter. The four templates that declare RequireBedrockZeroDataRetention mark it deprecated in its description and label. Updating the deployment templates for that is optional; the CodeBuild run above deploys the SAM template change.

Lambda timeouts. The AWS SAM templates raise the Bedrock, SageMaker AI and AgentCore assessment functions’ Timeout to 900. A CodeBuild run of this revision deploys them. No IAM permission changes.

SageMaker AI deadline stops and status corrections. The SM-03, SM-33, SM-35, SM-36, SM-40 and SM-43 changes above are in the SageMaker AI function code only. A CodeBuild run of this revision deploys them. No template, IAM permission or member-role StackSet change.

SageMaker AI artifact object reads. A CodeBuild run of this revision deploys the SageMaker AI role without s3:GetObject, because EnableSageMakerArtifactObjectReads defaults to false. To keep the per-object SM-43 leg, update deployment/aiml-security-single-account.yaml (single account) or deployment/2-aiml-security-codebuild.yaml (multi-account central infrastructure) with the parameter set to true, then run CodeBuild. Both AWS SAM templates changed. No member-role StackSet update is required.

Documentation reorganization (this PR). Deployment impact: none. The documentation changes alone require no stack update or CodeBuild run; the runtime and template changes above retain their stated deployment steps.

2.0.0 - 2026-09-18

This release grows the catalog from 161 checks across five areas to 208 checks across seven, adding OWASP Top 10 for LLM and AWS Agent Registry as assessment areas and renaming the Financial Services GenAI risk capability to Responsible AI GRC. It also hardens the assessment IAM roles and makes incomplete multi-account coverage fail a run rather than publish a partial report.

Upgrading is not a single step and is not fully backward compatible:

Added

Changed

Fixed

Deployment impact

Apply these updates in order.

  1. Multi-account member-role StackSet update required first because deployment/1-aiml-security-member-roles.yaml changed. It creates the member-role customer-managed deployment policy and narrows AIMLSecurityMemberRole to deployment, execution-polling, and report-retrieval operations, including narrowly scoped recovery of failed assessment or SAM-managed stacks; assessment service API permissions remain on SAM Lambda execution roles.
  2. Multi-account central infrastructure update required next because deployment/2-aiml-security-codebuild.yaml changed with the AWS Agent Registry baselines, least-privilege CodeBuild deployment policy, and narrowly scoped failed-stack recovery. This update also removes the obsolete conditional local member-role resource if an older stack still tracks it.
  3. Single-account infrastructure update required because deployment/aiml-security-single-account.yaml changed with the same baselines, CodeBuild policy hardening, and failed-stack recovery. This update also removes the obsolete local member-role resource if an older stack still tracks it.
  4. CodeBuild run required last to deploy the updated assessment code, dependencies, buildspec.yml, and AWS SAM templates (aiml-security-assessment/template.yaml and aiml-security-assessment/template-multi-account.yaml). The updated buildspec also makes incomplete multi-account coverage fail the run instead of publishing an apparently complete consolidated report, and report rendering or upload failures now fail the Step Functions execution. The SAM templates create the standalone AWS Agent Registry assessment Lambda and update the state machine.

The template and CodeBuild updates above also tighten the TargetRegions AllowedPattern to reject all. Any stored parameter value, saved stack input, or automation that passes TargetRegions=all must be changed to an empty value or an explicit region list before the next deployment or CodeBuild run, or CloudFormation/buildspec validation will fail.

Deployments pinned to a tag or commit must update the GitHubBranch CloudFormation parameter to the revision containing these changes before starting CodeBuild.

1.0.0 - 2026-07-10