Drift and generated tests
An analysis keeps the snapshots it took. The Drift panel at the foot of the Analysis view compares two of them and shows what changed. A chain generated from a snapshot you accept as correct fails when a later reading of the target disagrees with that snapshot on the facts the chain pins, so a change reaches you without anybody opening the analysis.
Drift between snapshots
Section titled “Drift between snapshots”Pick the older snapshot in Baseline and the newer one in Compared with (the newest is labeled Current). Until you have refreshed an analysis at least once after its first run, there is only one snapshot and the panel says there is nothing to compare yet.

The panel shows the status on each side with the time it was taken, then four groups:
- New findings: present in the newer snapshot only
- Resolved findings: present in the older snapshot only
- Changed findings: the same finding with a different severity or detail, such as a certificate that moved closer to expiry
- Structure changes: what changed in the data the analyzer read, listed as added, removed or changed, with the path to the changed value (a column’s type, a new table, an index that went away, a share entry, a DNS record)
Findings are matched by their id, so the same weakness on the same account or share is recognized as the same finding across snapshots. Structure is matched by name or DN where the data has one, so a list that comes back in a different order is not reported as changed. A comparison lists at most 500 structure changes.
Some analyzers read a sample (the MongoDB schema samples random documents and the Redis key type histogram samples keys), so they can report small structure changes between two refreshes of a system that did not change.
Generate assertions
Section titled “Generate assertions”Author > Generate assertions in the Analysis view turns the current snapshot into a chain that checks the facts in it. The chain is created in the analysis’s bundle, named after the analysis and opened in a tab. It has one ANALYZE step that re-reads the same target, followed by one ASSERT per fact:
| Fact | Assertion |
|---|---|
| The analysis status | equals the accepted status |
| Each column of each table (SQL schema) | the column’s type equals the accepted type |
| Each table’s row count (SQL schema) | is at least the accepted count |
| The leaf certificate’s expiry (TLS posture) | equals the accepted date |
From the ERD canvas you can do the same for one table with Generate assertions from this table.
For the other analyzers the chain asserts the status only. A drift test pins the findings as well.
Generate a drift test
Section titled “Generate a drift test”Author > Generate a drift test builds a chain from the snapshot you have now. After the ANALYZE step it asserts that:
- the status is unchanged
- the total number of findings is unchanged
- the number of findings at each severity (critical, error, warning and info) is unchanged
- every accepted finding is still present with the same severity
- for a SQL schema, the number of tables is unchanged
The chain stays green on a change the analyzer does not report as a finding (a column whose type changed, for example), so pair it with Generate assertions when that matters. Put the chain in a suite and run it in CI so that a certificate coming up for renewal or a share that grants everyone access shows up as a failed run.
A generated chain is an ordinary chain, so you can edit an expected value, delete an assertion you do not care about or add steps of your own.
Reading analysis results in your own chains
Section titled “Reading analysis results in your own chains”You can add the ANALYZE step to any chain by hand. Its result is read with these extractors:
| Extractor | Reads | Expression |
|---|---|---|
ANALYSIS_STATUS | OK, WARN, FAIL or INCONCLUSIVE | none |
ANALYSIS_FINDING_COUNT | The number of findings | a severity (CRITICAL, ERROR, WARNING, INFO) to count only that one, or empty for all |
ANALYSIS_FINDING | The severity of one finding, or empty when it is absent | the finding’s id, as a generated drift test names it |
DOCTOR_RUNG | The status of one connection doctor step: OK, FAIL, NOT_APPLICABLE or SKIPPED (shown as Not reached) | dns, tcp, tls, handshake or auth |
ERD_TABLE_COUNT | The number of tables in a SQL schema | none |
ERD_COLUMN_TYPE | A column’s type | table.column |
ERD_TABLE_ROWS | A table’s row count | the table name |
TLS_CERT_NOT_AFTER | The leaf certificate’s expiry date | none |
See Chain steps for the ANALYZE step itself and Extractors for how extracted variables feed an assertion.