Repository navigation
Releases
Flagwake 0.5.3
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_orRUNNER_is refused everywhere, and the check starts with noACTIONS_variable at all. The self-test tries each way of naming the token with the real token present. flagwake verify --provenancereports 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-officialasks 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.
Flagwake 0.5.2
No change to incidents, scores or verification: the generator version, the rules hash and the
golden fingerprint are unchanged, and every earlier report verifies as before. This release
is about connecting any model through any provider, and saying plainly what went wrong when
a connection does not work.
- Why a reply held no command, for any provider. A failed call is now written with the
provider's own message, for example(model call failed: HTTP 404: The model ... does not exist), with anything shaped like a key masked. A reply without a command says why when the
endpoint said: cut off by the reply limit, blocked by a content filter, or refused by the model.
Otherwise it shows the start of what the model wrote, for example(no command in the model reply: answered "I would first look around."), or says it was an empty reply. The page shows
those words, so anyone can see whether the model or the reading of its reply is at fault. - A command written as JSON is read. A reply such as
{"cmd": "logs web-01"}(also
command,actionornext_command, with or without a code fence) counts as that command. - One diagnosis everywhere. The connection check, the page, the result summaries and
flagwake doctorread those lines the same way. They name the cause (quota or rate limit, key,
unknown model, rejected request, provider error, timeout, unreachable address, reply limit,
content filter, refusal, or a reply that is not a command) and its fix. Before, a provider's
quota running out during the connection check was reported as the model sending commands it
is not allowed to use. - Common API differences are handled once, by themselves. If an endpoint wants
max_completion_tokensinstead ofmax_tokens, refusestemperature: 0, or allows a smaller
reply limit, the reference model agent changes that one setting for the rest of the incident
and says so inagent-stderr.log. If the longer try after a cut-off reply is rejected, the
reply counts as cut off, not as a failed call. flagwake doctortreats every model and computer the same. Each test incident gets up to
3 minutes (it was 15 seconds, sized from one tiny first call), with a line after each one. A
slow model gets a warning with an estimate of how long a run takes, not a false "too slow"
failure. Doctor also warns when the provider limits the rate, quotes the provider on HTTP 429,
404 and 400, and explains an empty first reply.- The page says Flagwake is not running any more, instead of the browser's "Failed to fetch",
and its model settings take a pace (requests per minute), asflagwake.yamland--rpmdo,
for a plan with a rate limit. python -m cyberarenaruns theflagwakecommand where its script is not on PATH.- A connection check that allows an occasional slip, the same for every model: one reply
in twenty that is not a command, a few calls the provider refused or dropped, or one of the
three test incidents not closed with a report. Each slip is still listed; a run counts them
against the defender anyway. Before, a single stray reply failed the check. - The connection check stops early on a failure that will not go away: a model the
provider does not know, a refused key, an address that cannot be reached, or a quota whose
wait is counted in hours. It stops after its first test incident, a handful of calls instead
of dozens, and says why; a passing hiccup does not stop it. - One pace across a run. With a pace set, every incident (a new program each time) keeps
the same pace through a small shared file in the temporary folder. Before, the first
requests of each incident came without waiting, and a free tier's per-minute limit refused
some of them. - The wait a provider asked for is written in a refused call's line, and the diagnosis
tells a per-minute limit (seconds) from a daily quota (hours). The provider's message is
kept up to 240 characters. - The result page splits calls the provider refused or dropped from replies that were not
commands, and the check page shows the model settings saved with the defender. - docs/TRY_YOUR_AGENT.md has a section on a model that does not connect.
pip install -U flagwake
flagwake doctorFull history: CHANGELOG.md.
Flagwake 0.5.1
No change to incidents, scores or verification.
- Providers behind a firewall. Every request to a model endpoint or to the public log now
names Flagwake as its user agent (flagwake/<version>). Some providers sit behind a firewall
that refuses the default user agent of Python's HTTP client. Before, every call to such an
endpoint failed with HTTP 403, whatever the key or the model, and a run ended as "not a
measurement" with all its calls failed. flagwake doctoron HTTP 403 says the request was refused and names the possible causes
(the key, a model the key cannot use, or the provider's firewall) with the start of the
answer, instead of blaming the key.
pip install -U flagwake
flagwake doctorFull history: CHANGELOG.md.
Flagwake 0.5.0
The first stable release. Incidents, scoring and verification are those of 0.5.0rc6: the
generator version, the rules hash and the golden fingerprint are unchanged, and every earlier
report verifies as before.
- One name. Reports, the local page,
flagwake --help, the MCP tool descriptions and the docs
call the check Flagwake. The earlier working name is gone from everything but this changelog. - docs/VALIDITY.md lists the signed runs of hosted models as known-groups evidence.
- README: a one-command start with pipx, and where the earlier history is.
- CONTRIBUTING: what the historical names
rc, rules 1 and 2, andlegacymean. - Terms: one name per idea where readers see it (the reference response, planted
instructions, actions on clean machines), and a short glossary in docs/SCORING.md. - Unused functions and constants removed.
- Models that reason before they answer. The reference model agent gives each reply 4096
tokens (was 1024). A reply cut off by the limit before any answer (finish_reason"length")
is asked again once with four times the room (--retry-tokens). If that is cut off too, the
incident stops retrying, and replies that stay cut off are counted ascut_off. Before, such
a model's run ended at a damage index of 100 with every reply unreadable and no hint why. - Not a measurement. When at least half of a run's replies carried no command, the summary,
report.htmland the page say the result measures the connection, not the defender, and name
the fix. The numbers are unchanged.flagwake doctornames cut-off replies, and the page has
optional model settings (reply limit, extra request fields). - Files saved by Windows editors. A report, a company file or
flagwake.yamlthat starts
with a UTF-8 byte-order mark now reads as the same file without it. Before,verifyand
replayanswered "cannot read", and the company file and the defender list failed on line 1.
A signed report must still be the exact bytes that were signed, so--provenancerefuses a
copy that gained a byte-order mark.
pip install flagwake==0.5.0
flagwake demoFull history: CHANGELOG.md.
Flagwake 0.5.0rc6
Changes: see CHANGELOG.md.
Flagwake 0.5.0rc5
Changes: see CHANGELOG.md.
Flagwake 0.5.0rc4
Signed results: a report made by Flagwake's signing workflow in GitHub Actions can be checked by anyone, offline, for how it was made. Built and published by GitHub Actions with PyPI trusted publishing, like 0.5.0rc3.
pip install --upgrade "flagwake[provenance]"
flagwake verify report.json --provenance report.sigstore.json --repo ORG/REPO --attempts --require-officialHow to make one, what a signature shows and what it does not: docs/SIGNED_RESULTS.md. The self-test that runs on every release, with a defender that attacks the harness: signed-check.yml.
Changes
- Signed results. Flagwake's signing workflow (
uses: Sid00011/Flagwake/.github/workflows/check.yml@v0.5.0rc4) runs a defender on fresh incidents and signs the report with a GitHub artifact attestation. The signing certificate names Flagwake's workflow at its release tag, so a reader can check that its steps ran unmodified.--require-officialfails unless every guarantee holds. The Flagwake GitHub Action runs the same steps inside the caller's own workflow, and verify says which of the two signed. - The defender cannot reach the harness.
flagwake check --defender-userruns every defender process as its own user, without sudo, with only the variables you name. Without it, a defender running as the harness's user could read the incident key or the run's signing token, or rewrite report.json before it was signed; the self-test shows each of these working without the separate user and blocked with it. - The attempt log. Every signed check leaves a ticket in Sigstore's public log before its incidents are drawn.
verify --attemptslists every ticket of the repository, also several signed in one run, so a best-of-many result cannot pass for a first try. Tickets are tied to the repository's numeric id (a rename does not reset the count), and a ticket counts only when Sigstore's certificate authority issued its certificate (the public log itself accepts any certificate). - Which model answered.
--agent reference:modelstarts Flagwake's own model agent from the installed code, in Python's isolated mode, with only theFLAGWAKE_LLM_*settings; a signed report shows the model id and the address the model's server returned. For any other defender, verify labels the model id as the defender's own word. Rate-limited calls (HTTP 429) are retried. - Honest labels. A signed report says how its incidents were chosen (drawn in the run, a key given by hand, or a fixed or custom pack), its pack, how many families ran, its company and when it was signed.
- Fix.
flagwake check --familywith families in another order than the company's, or named twice, wrote a report that 0.5.0rc3's verify refused.
Flagwake 0.5.0rc3
Fixes to the page's token check, keys and redirects, how containment is counted under company files, and what flagwake verify checks. Built and published by GitHub Actions with PyPI trusted publishing, like 0.5.0rc2.
pip install --upgrade flagwake
flagwake demo # two example defenders, a verified report, an edited copy that fails (about two seconds)Reports scored by 0.5.0rc2 under a company file do not verify with this version: the rules-2 rules hash names the new containment measure. Reports under the original rules (--world legacy) still verify, unless they carry the tool's own checks (from flagwake run or the page); verify then says to run them again. What changed and why: docs/METHODOLOGY.md. How to check a download: SECURITY.md.
Changes
- The page's token check. A request whose target is an absolute URL (
GET http://host/api/...) no longer reaches the page's API without the token. - Keys never follow a redirect. The reference model agent,
flagwake doctorand the tool example send the key only to the address you set: a redirect is refused, and doctor says so.flagwake doctoralso refuses to send a key over plain http to another machine, as a run does. - Containment counts the hosts the intruder held. Under company files a host the intruder never reached, because the response stopped it first, no longer counts as a missed intrusion (the reference response contained 46 of 60 listed hosts on the practice pack; now 46 of 46). A live incident where doing nothing costs no more than the reference can count as worse than doing nothing. The damage index does not move for any shipped program. The original rules are untouched.
- Verify checks more. The exact seeds, difficulty, repeats and family order of the pack a report names; which of the world's families were left out (also said in the report's header); no command stored after an incident ended; the required blocks present. The tool-mode checks are covered by the report hash, which is recomputed after the contamination warning is added. A report of hand-picked incidents, or one run with a difficulty override, says
custom. A report made by 0.5.0rc2 under the original rules still verifies, unless it carries the tool's own checks (aflagwake runor the page): verify then says to run it again. - Odd replies end one command, not the run. Superscript digits, deeply nested JSON, a huge number in a report's confidence and a reply line over the size limit are unrecognised or invalid commands; an over-long line no longer shifts the replies after it. The start message states the command cap a run actually enforces, and the tools mode enforces it too.
- Docs. The headline index caps each incident at 200 and keeps a value below 0; the docs said it was clipped to [0, 200].
Flagwake 0.5.0rc2
The first release built and published by GitHub Actions with PyPI trusted publishing: on PyPI, each file's Provenance names this repository, the release workflow and the commit it was built from. No upload token exists.
pip install flagwake
flagwake demo # two example defenders, a verified report, an edited copy that fails (about two seconds)How to check a download: SECURITY.md. What a score does and does not mean: docs/LIMITATIONS.md.
Changes
- Verified releases. A version tag builds the package on GitHub Actions and publishes it to
PyPI with trusted publishing, after an approval: no stored token, and PyPI shows for each file
the repository, workflow and commit that built it. The same files are attached to the GitHub
release.SECURITY.mdsays how to check a download. - The name. The Flagwake name and mark are not licensed under the AGPL or CC BY 4.0; a
modified version uses another name (LICENSING.md,NOTICE). - On PyPI.
pip install flagwakeinstalls the command; the README, the quick starts and the
CI example (examples/ci/rc-check.yml, now pinned to a release) use it. - CI. The page tests install Chromium without apt, so they no longer depend on Ubuntu's
package mirrors being reachable from the runner.
Flagwake 0.5.0rc1
First public release candidate. Offline, no model inside the check, no key needed.
Try it (Python 3.11 or newer):
pip install https://github.com/Sid00011/Flagwake/releases/download/v0.5.0rc1/flagwake-0.5.0rc1-py3-none-any.whl
flagwake demo # two example defenders, a verified report, an edited copy that fails (about two seconds)
flagwake ui # the local pageOr clone the repository and run pip install .. What a score does and does not mean: docs/LIMITATIONS.md.
Changes
- Run key and fresh incidents. Every run makes a secret key. The incident id a program receives
is keyed with it, so it cannot be traced back to family and seed, and the default pack,fresh,
draws new seeds for each run from 1,000,000-999,999,999 with it (--run-keyrepeats an earlier
run's incidents;--pack heldoutkeeps the fixed set). The report records the key once the run
is over; verify rebuilds the ids and checks that the incidents belong to the pack the report
names. A report built without a pack name sayscustom. - Keys over plain http. The reference model agent and the tool example refuse to send a key
over plain http to another machine; the registry and the page refuse to store one for such an
address. - A sounder reference response. Under a company file the response that fixes the 0 of the
index is the cheapest of up to four ground-truth command lists; it never acts without approval
and no shipped program does better than it (it used to act unapproved in every
approval-requiredincident). Rules hash and rules-2 fingerprint move; the original rules are
untouched (docs/METHODOLOGY.md, 2026-11-11). - Routine log lines fit the machine and the hour (generator
rc-gen-8): text only; every
shipped program behaves and scores as before. - Cost breakdown.
flagwake demoand the result page show where the damage came from, in
damage points and as shares, next to what doing nothing and the reference response cost. - The demo is a pair. A careful and a gullible example defender on the same incidents, side
by side on the page; the home page shows the same comparison, and a test keeps its numbers true. flagwake mcp --world. The MCP server runs in any company (the default one unless told
otherwise); its transcripts record their company andflagwake reportscores them in it.- A company file with anything in any field gets plain problems. A list or a mapping where a
name belongs used to stop the checker with an error; a fuzz test now covers every field of the
company file and of flagwake.yaml. flagwake --helpis grouped (start here, test a defender, read results, your own company,
other ways in); a program that is not found is named plainly.- Checks.
mypyand a complexity limit (20) run in CI; the longest functions are split.
python scripts/company_checks.pyreproduces the checks of the checker on the shipped
companies (null programs, the reference response, the leak scan, retest, weights, ties). - The mark is signal flag U cut to a swallowtail, the V of a wake.
- Your own company. A strict, documented company-file format (docs/COMPANY_FORMAT.md): zones,
hosts, people and roles, accounts, partner and supplier links, hosted services, business flows,
approval policy, log sources with delays and gaps, the business calendar and optional custom
costs.flagwake world init|validate|show;--worldon check, run, baselines, doctor, replay,
verify and in the registry and the local page. Two shipped companies (18 and 60 hosts).
Families bind to what a company contains and are skipped, with the reason, when it lacks it. - Rules 2 on company files: 20 families (eight new: privileged-laptop-to-payments,
supplier-down-spreading, helpdesk-pressure, stolen-sign-in-saas, backup-targeting, admin-misuse,
credential-in-ticket, signal-in-the-flood), the commandspause,resume,notify,release
andlogs <source>, early assessments that later evidence revises, and difficulty tiers whose
effect was fixed in advance. Three damage terms (outflow, pause cost, backup integrity) and four
decision measures (outflow prevented versus pause cost, anchoring, unsupported claims,
notification appropriateness), re-derived by verify and in the profile. - The environment as tools (mode B): MCP over HTTP or stdio and a local REST API with an
OpenAPI document and webhooks; every call maps one to one to a world command, so scores match
the text protocol (tested on every shipped program).flagwake tools serve|catalogue|openapi| test,mode: toolsin the registry and on the page, and a reference tool loop for models with
tool calls. - Fidelity disclosure in every report: mode, adapter, whether the harness sent instruction
text, and hashes of everything sent (re-derived by verify). - What a score is and is not: a box in every report and docs/VALIDITY.md.
flagwake demo: two shipped example defenders on the practice incidents, the first result
printed with its cost breakdown, written as report.json and report.html and verified, then an
edited copy verified and rejected. Offline, no model, about two seconds.- The local page: a demo on the first screen; results open on the damage index, four headline
figures, the cost breakdown and the findings, with buttons to verify the result and to verify an
edited copy (in memory; the report stays untouched). The page, report.html and the report viewer
share one calm dark-blue design and the Flagwake mark. - Approvals on company files follow shown evidence: the duty manager grants a critical action
when the defender had already been shown an alert or indicator naming the target, and denies it
otherwise, so asking for approval no longer reveals the hidden state (docs/METHODOLOGY.md,
2026-11-04). The rules-2 fingerprint moves. - Varied wording: each attacker event appears in several wordings, chosen per incident
(generator rc-gen-7), so a fixed string per event cannot be memorised. - The reference model scaffold reads the command after a reasoning block (
</think>), so a line
of reasoning never becomes an action, and keeps one line per earlier command with the start of
what it showed, so a model no longer forgets what it read early in a long incident and reads it
again until its call cap. - License: the code is under the GNU Affero General Public License v3.0 (AGPL-3.0-only), with
commercial licenses available from the author (LICENSING.md); the documentation and data are
under CC BY 4.0. - Format identifiers:
flagwake-company-1,flagwake-rc-report-1andflagwake-rc-transcript-1
(docs/METHODOLOGY.md, 2026-11-06). The original world keeps rules 1 byte for byte (same rules
hash and fingerprint), and verify says which version made a report.