After each assessment run, the framework compares each account’s results with
that account’s previous run and writes a “Changes since last assessment”
report next to the run’s main report. It shows which findings were resolved,
which are still open, which regressed, which are new, and which no longer
appear.
Interactive page: summary counts, counts by assessment area, and a filterable table of findings by change
security_assessment_changes_<YYYYMMDD_HHMMSS>.csv
The same results, one row per finding, with both runs’ details, statuses, and severities
The timestamp is when the current run’s results were saved, in UTC, so
the name identifies the run it describes. Running the comparison again for the
same two runs overwrites the file instead of adding another.
In single-account mode the build also writes a small run record,
assessment_history_run_<execution_id>.json, after every run. It says
whether the run’s Step Functions execution succeeded; see
Which run is “the previous run”.
The first run of an account has nothing to compare with, so no changes report
is written for it. Every later run gets one, including runs where nothing
changed (“No changes since the last assessment”).
A sample page is in sample-reports/
(security_assessment_changes.html). It comes from a real run, compared with
the run before it, and was anonymized together with the single-account sample
report: account IDs, resource IDs, and resource names are synthetic
placeholders, and the same resource has the same placeholder on both pages.
Turning it on or off
The report is controlled by the EnableAssessmentHistory deployment
parameter in both deployment/aiml-security-single-account.yaml and
deployment/2-aiml-security-codebuild.yaml:
Value
Effect
true (default)
A changes report is written after each run
false
The comparison is skipped; the build log says Changes report disabled (EnableAssessmentHistory=false)
The parameter reaches the build as the ENABLE_ASSESSMENT_HISTORY
CodeBuild environment variable. Stacks created before the parameter existed
don’t have the variable, and are treated as true. A change takes effect on
the next build.
Findings CSVs are saved every run whatever the setting, so after turning the
report back on, the next run compares with the most recent usable run,
including runs made while it was off. Run records are written only while the
setting is on, so runs made while it was off are judged by their files alone.
When it runs
The comparison runs in the CodeBuild post-build phase (buildspec.yml),
after the run’s results are in the central AssessmentBucket:
Single-account: after the results are synced to the central bucket,
and only if the Step Functions execution succeeded. The run record is
written first, whether the execution succeeded or not.
Multi-account: once per account, after the multi-account report step
(which is skipped when any account failed) and before the build’s failure
summary. Accounts whose run failed
get no changes report; the build log names them and gives the reasons from
the build’s failure list.
It can’t fail an assessment run:
Any problem is printed as a WARNING line and the build carries on.
Each account is handled on its own, so one account’s problem doesn’t stop
the others.
The step has a time limit of one minute per account, and at least 5
minutes, but never more than the build time left. It’s skipped when less
than 6 minutes of build time are left. Accounts not started before the
limit get a WARNING line, and a summary line counts them.
In multi-account builds the accounts are started in an order that moves
along one account with each CodeBuild build number, so if the limit is
reached, it isn’t always the same accounts that miss out.
The CSV is written before the page, so if the page can’t be written, the
CSV is still there.
It reads only the findings CSVs already in the bucket and, in single-account
mode, the run records. It does not modify the scanners, the AWS SAM templates,
the Step Functions workflow, or the IAM roles.
Which run is “the previous run”
Runs are told apart by the Step Functions execution ID in each findings CSV’s
name. Execution IDs are random, so runs are ordered by when S3 saved their
files; a run’s time is its latest file’s time.
The previous run is the most recent usable run saved before the current
run. A run is usable when:
Its files are complete. Every core service the run selected (Amazon
Bedrock, Amazon SageMaker AI, Amazon Bedrock AgentCore, AWS Agent Registry),
and OWASP if it ran, has a CSV with at least one row for every region the
run’s CSV names show (its core CSVs, or its OWASP CSVs when no core service
was selected), and the Responsible AI GRC CSV, if present, has at least one
row. This follows the main report’s own completeness check, but from the files alone: the main report
knows which regions the run was asked to scan and which options were on,
and the files don’t. So a run that failed partway can still look complete.
Its run record, if it has one, says it succeeded. In single-account
mode the build writes assessment_history_run_<execution_id>.json after
every run. A Step Functions execution only succeeds when the main report’s
completeness check passes, so a run recorded as failed is never used. Runs
with no record (made before this was added, or while the setting was off)
are judged by their files alone. In multi-account mode the build uploads a
run’s files only after checking them, so no records are written.
Runs that aren’t usable are skipped and named in the build log, with the
reason.
An older run with a CSV that can’t be read is skipped the same way, and the
next older run is tried. A current run with a CSV that can’t be read gets no
report.
Runs saved after the current run (for example, from another build running
at the same time) are ignored and noted in the log.
Two runs saved in the same second are ordered by execution ID, so the choice
is always the same.
Besides the current run and the chosen previous run, only runs passed over
between them may be read; runs older than the chosen previous run never are.
Service selection. A service turned off with the deployment’s
Enable*Assessment switches writes no CSV, so its CSVs aren’t required. Which
services a run selected comes from:
the current run: the build’s ENABLE_BEDROCK, ENABLE_SAGEMAKER,
ENABLE_AGENTCORE, and ENABLE_AGENT_REGISTRY settings (a missing setting
means selected);
an earlier single-account run: its run record, which lists the selected
services;
any other earlier run (multi-account runs, and single-account runs whose
record doesn’t list the selection): the services it has CSVs for. In
multi-account mode the build uploads an account’s files only after finding a
CSV for each selected service, so a service with no CSV there wasn’t
selected.
A selected service with no CSV still makes a run incomplete. A run with all
four services off (Responsible AI GRC and OWASP only) is usable.
Runs made before release 2.0.0 have no AWS Agent Registry CSV and no run
record, so they are judged by their files: AWS Agent Registry counts as not
selected in that run and isn’t compared, and checks added in 2.0.0 are listed
as found in only one run.
What is compared
Only what ran in both runs is compared:
Core services (Amazon Bedrock, Amazon SageMaker AI, Amazon Bedrock
AgentCore, AWS Agent Registry) are compared only if both runs selected them. Otherwise the report’s notes say “Not
compared (not selected in both runs)”, and the service’s sidebar count and
row in the counts by area say so instead of showing zero; the headline
counts leave it out and the note under them names it.
Optional modules (Responsible AI GRC, OWASP) are compared only if both
runs have them. Otherwise the report says “Not compared (enabled in only
one run)”.
Regions are compared only if both runs scanned them (taken from the core
CSV names, or the OWASP CSV names when a run has no core CSV). Otherwise the
report says “Not compared (scanned in only one run)”. Global rows (account-level findings) are always compared. A row
whose Region lists several regions is compared when every listed region was
scanned in both runs.
Check IDs that appear in only one run (for example, after upgrading the
framework) are listed in the report as a note. Only scanner check IDs are
counted; derived AISF IDs never are, because both runs use the same mapping.
AWS AI Security Framework (AISF) rows are absent from findings CSVs. The
changes report derives them from each run’s compared findings with the main
report’s aisf_mappings.py: only services selected in both runs and regions
scanned in both runs contribute. Both runs use the current mapping, so a
mapping update does not appear as a change in findings. An AISF control changes
when one of its source checks changes.
The changes report retains a Global AISF row when that control has no
regional source row in the account, so it can pair across runs even if
unrelated regional checks appear. When the control has a regional source row,
its regional AISF rows incorporate any account-wide source findings and its
separate Global row is omitted. The main report folds account-wide findings
into every regional key and suppresses the entire Global key when an account
has regional keys, so a Global AISF row in the changes report can be absent
from the main report. A regional AISF row in the changes report appears only
where that control has a regional source row. When SM-18’s regional source rows
disappear between otherwise comparable runs while Global SM-42 stays Failed
in both, the old regional AISF-07 rows are No longer reported and the new
Global AISF-07 row is New, because their Region keys differ. AISF-00
appears under Global only for an account without regional rows; otherwise
each region’s AISF-00 names controls with no source there. Each mapped
AISF control currently draws on one service, so a service not selected in
both runs removes its controls from the comparison and a note names them.
If AISF rows cannot be derived, the other assessment areas are still
compared and the report explains why in its notes. An unreadable derived row
or a mapping error is named in a note while successfully derived controls
remain in the comparison.
Change states
Previous run
Current run
Change
Failed
Passed
Resolved
Failed
Failed
Still open
Passed
Failed
Regressed
Not present, or N/A
Failed
New
Failed
Not present
No longer reported
Failed
N/A
No longer assessed
All other combinations have no Failed result in either run (for example,
Passed → Passed or Passed → N/A) and are shown as Not failing.
Failed → N/A is not counted as resolved, because N/A also covers
access-denied and unavailable-region results.
How findings are matched between runs
Rows are grouped by assessment area, Region, and Check_ID. The Finding
title isn’t part of the group: many checks use one title when they fail and
another when they pass or can’t be assessed (for example, SM-04 writes
“GuardDuty Not Enabled”, “GuardDuty Enabled”, or “GuardDuty Check Error”).
Some checks write one row per resource (for example, one row per IAM role),
with the resource only in Finding_Details. Within a group, rows are paired
in five steps: same title and details, same details with a new title, one row
each, several rows against one summary row, and everything else left unpaired.
The five matching steps in detail
1. **Same title, identical details.** Rows with the same `Finding` and
`Finding_Details` are paired. Then rows with the same `Finding` are paired
if their details match once values that change on every run are blanked
out:
| Changing value | Written by |
| --- | --- |
| `(N days)` | AC-03 (and AG-17, mapped from it), AR-02 |
| `N days ago` | FS-31 (and OW-09, mapped from it) |
| `on YYYY-MM-DD`, `since YYYY-MM-DD` | BR-14, SM-02 |
Only these values are blanked. Digits in general are not, because
resource names contain digits. A test fails if a scanner starts writing
another day count or date into `Finding_Details` without it being added
to this list.
2. **Same details, new title.** Rows whose details match, blanked the same
way, are paired even if the title changed (for example, a title renamed in
a new release).
3. **One row each.** Two remaining rows are paired even if their title and
details differ, if each is its run's only row in the group, or its run's
only row with that title. If both are Failed and their details differ, the
row shows as Still open and is marked "details changed" (see
[Known limits](#known-limits)).
4. **Several rows and one summary row.** If one run has several Failed rows
left and the other run's only row for the check isn't Failed (a Passed
summary such as "All 3 models have network isolation enabled", or an N/A
error row), each Failed row is paired with that row. Several Failed rows
and a Passed summary show as Resolved; a Passed summary and several Failed
rows show as Regressed.
5. **Everything else is unpaired**, and shows as New or No longer reported.
A pair is made only when it's unambiguous: if two rows would pair with the
same row in steps 1 and 2, none of them is paired. The CSV's `Match_Rule`
column records which step paired each row (`exact`, `normalized`, `details`,
`single-row`, `check-level`, or `unmatched`), so any result can be traced. A
`check-level` summary row appears once for each row it's paired with.
Repeated rows within a run are dropped first, with the same rule the main
report uses.
Reading the report
The page uses the main report’s layout, styling, and light/dark setting (the
choice carries over between the two reports).
Header: both runs’ save times (UTC), how many days apart they are
(counted by calendar date), and the account. When the current run’s main
report can be identified with certainty, the header links to it.
Summary counts: Regressed, New, Still open, Resolved, No longer
reported, and No longer assessed, for the four core services only, or for
those of them selected in both runs; the note under the counts names any
service left out. With none of the four selected in both runs, the counts
show “—”. Most Agentic AI Security, OWASP, and AISF rows are derived from
service findings, so one change can appear in several areas; counts are
shown per area and not added across areas.
Counts by area: under the main report’s headings (By Service, By Lens,
By Governance Framework, By Compliance Standard).
Changes table: the main report’s columns, with Change in place of
Status; under each change, the two runs’ statuses (for example
Passed → Failed). Filters for search, Region, Assessment Area, Severity,
and Change. By default the table shows every change state and hides Not
failing rows; choose All Findings in the Change filter to show them.
A Still open row whose two Failed rows were paired only because each run had
one, with different details, reads Failed → Failed · details changed and
has a note under its details.
Clicking an area in the sidebar filters the table to it.
Severity: the current run’s, except for No longer reported and No
longer assessed rows, which show the previous run’s (the current one is
missing or just “Informational”).
Details: when a finding’s details differ between the runs, both
versions are shown, labeled “previous run” and “current run”.
The sidebar lists the main report and the changes CSV by file name. The links
work when the files are in the same folder, for example downloaded together
or copied with aws s3 sync; opening the page straight from the S3 console
opens one file at a time. The main report has no link to a single finding:
use its search box, for example with the Check ID.
The changes CSV
One row per compared finding, in these columns:
Column
Contents
Account_ID
The account
Assessment_Area
bedrock, sagemaker, agentcore, agent-registry, agentic, responsible-ai-grc, owasp, or aisf
Region, Check_ID, Finding
As in the findings CSVs
Change
One of the change states above, including Not failing
Previous_Status, Current_Status
Passed, Failed, N/A, or Not present
Previous_Severity, Current_Severity
Each run’s severity (blank when not present)
Previous_Finding_Details, Current_Finding_Details
Each run’s details (blank when not present)
Resolution, Reference
From the current run, or the previous run when the finding is gone
Match_Rule
exact, normalized, details, single-row, check-level, or unmatched
Previous_Execution_ID, Current_Execution_ID
The two runs compared
A cell that starts with =, +, -, @, a tab, or a carriage return gets
a leading ' so spreadsheet programs don’t run it as a formula; finding text
can contain resource names chosen by anyone who can create resources.
Build log messages
Search the CodeBuild log for Changes report to find the comparison’s
messages. If no changes report was written, the message says why.
All build log messages
| Message | Meaning |
| --- | --- |
| `Changes report for account ` | Start of that account's comparison |
| `Compared run (saved