acs-verify: flag a deleted decision and a cut log, and match the client's handshake check

Open
#630 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python, typescript

Research direction

Read acs/testing/verify.py at _check_server_hello and the transcript completion logic, then compare them with acs/client's handshake check and example_guardian.py session handling. Inspect pyproject.toml for command entry points and the tests covering verification; add regression coverage for each listed case. Done means all four behaviors match the acceptance criteria and uv run acs-verify works.

Written by the indexing model from the issue text.

Description

Found while reviewing #618 at df87ec64. Each point was reproduced against the example Guardian running with ML-DSA-65 decision signing.

What is broken
  1. A deleted decision exits 0: replace a signed deny's response line with {"dir": "resp", "envelope": null, "cause": "transport_failure"}, and acs-verify prints "PASS, not complete" with exit 0. A script that checks only the exit code accepts the edited log.
  2. A cut log is called complete: the Guardian keeps signing and chaining steps after sessionEnd (example_guardian.py:1001-1002), but acs-verify treats sessionEnd as the end (verify.py:791-792). Send sessionStart, an allow, sessionEnd, then a step the Guardian denies and signs. Cut the last two lines, and acs-verify prints "The whole transcript verified" with exit 0, while the uncut log reports "not complete".
  3. The handshake check differs from the client's: _check_server_hello (verify.py:642-654) runs only server_hello_problem. A ServerHello signed with the Guardian's key whose x_acs_lab_response_algorithm is HMAC-SHA256, or missing, passes with exit 0, while acs.client refuses that session as response_algorithm_not_negotiated (_handshake.py:406-408).
  4. There's no acs-verify command: #584 asks for the tool "installed as the acs-verify command", and pyproject.toml has no script entry for it, so only python -m acs.testing.verify works.
Done when
  • A transcript with a request that no signed decision covers exits with its own nonzero code, distinct from a verification failure.
  • A log cut after sessionEnd is not reported complete, or the Guardian refuses steps after sessionEnd.
  • acs-verify refuses a ServerHello that acs.client would refuse, through the same check.
  • uv run acs-verify runs the tool.
  • Each case has a test that fails at df87ec64.

Refs #584
Refs #618

Dominant language
TypeScript
Stars
183
Forks
56
Avg merge
3d 1h
Merged PRs (30d)
67

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GenAI-Security-Project/agent-control-standard

All issues in GenAI-Security-Project/agent-control-standard

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.