Keep reusable secrets out of evidence before recording
A recorded prompt, tool result or context can carry an authentication secret into durable evidence. Hashing or signing that record does not remove the plaintext from the record. The unadopted F13 candidate text proposes keeping reusable authentication secrets out of fields that enter an EventHash or a Merkle leaf, and referring to a credential by a non-secret identifier assigned by its issuer.
For new records, remove secrets before recording and before commitment. A hash of a low-entropy secret is not the proposed replacement identifier. Crypto-shredding applies only to fields encrypted before commitment; it cannot withdraw a secret already committed in plaintext. Do not silently redact or rewrite original signed bytes or fixed evidence artifacts to make them pass a later check.
This walkthrough shows what the synthetic screening experiment can report. It is not a production scanner, a VAP v1.2 requirement or a conformance verifier. Use only the supplied synthetic cases and the synthetic example below. Do not upload live secrets or production logs, and do not add real credentials to the case files. This page has no upload or screening service.
Run the pinned synthetic experiment
You need Git and Python 3.12 or later; the experiment uses the Python standard library only. The following block creates a fresh temporary directory, checks out the reviewed commit in a detached state, runs the unit tests, then writes a new suite report outside the checkout. It does not alter an existing checkout or the repository's fixed artifacts.
screening_dir="$(mktemp -d "${TMPDIR:-/tmp}/vap-secret-screening.XXXXXX")"
(
set -eu
test -d "$screening_dir"
git clone https://github.com/veritaschain/vap-spec.git "$screening_dir/vap-spec"
cd "$screening_dir/vap-spec"
git checkout --detach cecaad292e8c088f14cfcc5396790e5f5474a73a
git rev-parse HEAD
cd experiments/secret-value-screening
python3 -c 'import sys; assert sys.version_info >= (3, 12), "Python 3.12 or later required"'
python3 -W error -m unittest discover -s tests -v
python3 secret_screen.py run-suite > "$screening_dir/suite.json"
cat "$screening_dir/suite.json"
)
Run subsequent commands in the same shell so that screening_dir still points to this directory. The subshell stops at the first failure. If a command fails, inspect it before proceeding; a partial or missing report is not a successful run. The printed revision must be cecaad292e8c088f14cfcc5396790e5f5474a73a.
The source defines 14 cases. An expected suite result has cases: 14, matched: 14 and known_limit_cases: ["S11-hash-of-low-entropy-secret"]. Here, matched counts cases whose observed result agrees with the expected result, including a known miss and rejected input. It does not count secret-free records. run-suite exits 0 when every case agrees with its expectation. This is an expected outcome from the source, not a claim that this page's publication performed a research run.
Read the result, coverage and exit code together
| Result | What it supports | What it does not support |
|---|---|---|
SECRET_PATTERN_FOUND | A known shape, or a non-empty string under a secret-named member, was found at a reported JSON Pointer. | That the value is an active credential. Harmless values can match. |
NO_PATTERN_MATCHED | No configured pattern matched the screened string values. | That the record contains no secret, or that F13 is satisfied. |
INPUT_REJECTED | Examples include a byte order mark, duplicate member names, syntax errors detected by this parser and a non-object top level, rejected without repair. This is not general strict JSON conformance validation. | Any assessment of the input's secret content. |
For the screen command, exit 0 means NO_PATTERN_MATCHED; both a finding and a rejected input return exit 1. Exit 0 is not an absence-of-secrets guarantee. Check the JSON result and coverage fields, not only the shell status.
For findings, the report includes pointer, pattern class and value_length (the length of the containing string). It never includes the matched value itself. Do not copy a detected value into a ticket or a second audit log as an explanation.
Inspect an explicit gap in coverage
After the setup block, create this synthetic-only input and declare one member not assessed:
cat > "$screening_dir/synthetic-event.json" <<'JSON'
{
"header": {"event_type": "AI_DECISION"},
"provenance": {
"context": {
"protected": {"ciphertext": "synthetic-placeholder"}
}
}
}
JSON
python3 "$screening_dir/vap-spec/experiments/secret-value-screening/secret_screen.py" \
screen "$screening_dir/synthetic-event.json" \
--not-assessed /provenance/context/protected
The expected report includes the following fields (excerpt derived from the implementation):
{
"result": "NO_PATTERN_MATCHED",
"findings": [],
"not_assessed": ["/provenance/context/protected"],
"complete_coverage": false
}
--not-assessed is a caller declaration that a member was withheld or encrypted before commitment. It is not evidence that encryption occurred. Pointers actually skipped during traversal appear in not_assessed and make complete_coverage false; nothing is concluded about their content. Other declarations appear in not_assessed_but_absent and do not, by themselves, make that flag false. That label does not prove the member is absent: existing empty objects or arrays and declarations inside the excluded security block can also appear there.
complete_coverage: true still means coverage of the implementation's local screening scope only. The top-level security block is always excluded. The experiment does not establish which fields a real profile commits into a hash or Merkle leaf.
What the 14 synthetic cases demonstrate
The case file stores placeholders. secret_screen.py assembles synthetic strings at runtime; they grant access to nothing. Expected outcomes fall into five groups:
| Cases | Input and expected result | Reading the result |
|---|---|---|
| S02–S08, S13 8 cases | Secret-shaped values in an input, tool result, context, profile payload or free text: SECRET_PATTERN_FOUND. | Known shapes can be located; S13 has multiple findings at separate pointers. |
| S01, S09, S10 3 cases | A clean fixture, digest/signature controls and an issuer-assigned identifier: NO_PATTERN_MATCHED. | These are synthetic controls, not evidence of general detection accuracy. S09 also exercises the excluded security block. |
| S11 1 case | A hash of a low-entropy secret: NO_PATTERN_MATCHED. | An intentional known limitation, even when the suite passes. |
| S12 1 case | A declared protected member: NO_PATTERN_MATCHED, with a not_assessed entry. | The content is not assessed; coverage is incomplete. |
| S14 1 case | Duplicate member names: INPUT_REJECTED. | The input is rejected rather than repaired. |
S11: a digest does not reveal how its input was chosen
S11 refers to a credential using the hash of a low-entropy secret. F13 would not accept that reference as a non-secret identifier, because guessing could recover the underlying secret. The pattern checker cannot distinguish this hash from another digest, so it returns NO_PATTERN_MATCHED. A passing suite deliberately preserves this limitation.
This is the core review lesson: a third party can demonstrate a violation when the evidence exposes one, but cannot establish compliance with F13 by finding no pattern. An issuer-assigned identifier and an indistinguishable-looking digest require different provenance knowledge; the string alone cannot supply it.
Keep the screening boundary visible
The implementation searches string values for six shapes: a PEM private-key header, a three-part token beginning eyJ, a bearer token, URL user information, a cookie header and a named assignment in free text. It also reports non-empty strings under configured member names such as password or api_key. A match identifies a shape, not whether the value can authenticate.
It can miss opaque secrets, values split across members, encoded or compressed content, and names in other languages or conventions. Member names are not screened as values. Harmless content under a member named secret can produce a false positive. These tests do not measure production detection rates.
The F13 text is a discussion draft with no assigned proposal number or target release. Merging it into a repository does not adopt it. First-party CI, a local rerun of these cases and independently conducted reproduction are different evidence; independent third-party reproduction has not been established. The experiment changes no normative text, signed records or fixed evidence.
Continue with the VAP proposal reading guide for adoption and review status, the Explorer verification guide for interpreting record-verification results, or the AI agent audit-log guide for broader logging design.
Sources and reviewed revision
Source checked on . This page explains the fixed revision below; it does not report a new execution, independent validation or deployment. Existing research outputs and original signed bytes remain unchanged.
- Experiment README: scope, reproduction and limitations
- Implementation: patterns, coverage fields and exit codes
- All 14 synthetic cases and expected outcomes
- F13 candidate text and open review points
All four sources are pinned to vap-spec@cecaad292e8c088f14cfcc5396790e5f5474a73a.