Skip to content

feat: merge-train/avm#22823

Merged
jeanmon merged 2 commits into
nextfrom
merge-train/avm
Apr 28, 2026
Merged

feat: merge-train/avm#22823
jeanmon merged 2 commits into
nextfrom
merge-train/avm

Conversation

@AztecBot
Copy link
Copy Markdown
Collaborator

@AztecBot AztecBot commented Apr 28, 2026

BEGIN_COMMIT_OVERRIDE
chore(avm)!: remove hack for bb pilcom to see shifted temp columns (#22723)
chore(avm): attacker-simulation tests for shift/unshift row-0 guarantees (#22743)
END_COMMIT_OVERRIDE

jeanmon added 2 commits April 28, 2026 17:45
…ees (#22743)

Add two AvmVerifierTests cases that simulate a malicious prover
injecting a non-zero value into keccak_memory_addr polynomials in
positions the proving system is expected to structurally enforce as
zero:

- ProvingSystemSecurityShiftedLastRowMustBeZero (active): forges
addr_shift at row N-1 by overwriting the shifted view with an
independent polynomial after AvmProver construction. The PCS
shift-consistency check catches the mismatch and verification fails.

- DISABLED_ProvingSystemSecurityUnshiftedFirstRowMustBeZero (disabled):
same pattern for the unshifted polynomial at row 0. Kept disabled
because it requires relaxing two safeguards in
polynomials/polynomial.cpp (Polynomial::add_scaled / operator+= and
Polynomial::shifted); the test comment documents the exact patches
needed and why, for later audit reproduction.

Both tests invoke run_check_circuit on a separate ProverPolynomials
instance holding the same malicious mutation to demonstrate that every
main/lookup/permutation relation still holds on the attacker's trace --
so the verifier's rejection comes from the PCS shift algebra, not from a
relation violation.
@jeanmon jeanmon added this pull request to the merge queue Apr 28, 2026
Merged via the queue into next with commit 6a3d279 Apr 28, 2026
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants