Skip to content

Flagwake 0.5.3

Latest

Choose a tag to compare

@Sid00011 Sid00011 released this 18 Nov 16:22

A security fix to signed results. Scores, incidents and the verification of unsigned reports are unchanged (same generator version, rules hash and golden fingerprint).

pip install --upgrade "flagwake[provenance]"

The issue

In Flagwake's signing workflow (.github/workflows/check.yml) at v0.5.0rc4 to v0.5.2, the calling workflow's defender-env could name one of the job's own variables, such as ACTIONS_ID_TOKEN_REQUEST_TOKEN, and the defender then received it. With that token a defender could obtain the run's signing identity and sign a report it made itself, so a signature from those releases does not prove the report came from the run. Unsigned reports, scores and flagwake verify without --provenance were not affected.

What changed

  • A defender in the signing workflow gets only secrets of the calling workflow, never one of the job's own variables. A name starting with ACTIONS_, GITHUB_ or RUNNER_ is refused everywhere, and the check starts with no ACTIONS_ variable at all. The self-test tries each way of naming the token with the real token present.
  • flagwake verify --provenance reports a signature from the signing workflow at v0.5.0rc4 to v0.5.2 as not official and names the calling workflow file at the signed commit, so an earlier result can be judged by hand; --require-official asks for a new run.
  • The model agent's shared pace no longer skips a beat when the next incident reads it in the same millisecond.

How to judge a result signed by an affected release: SECURITY.md, "Fixed security issues". Full list: CHANGELOG.md.