Skip to content

ProjectAchilles v2.11.0

Choose a tag to compare

@github-actions github-actions released this 15 Nov 19:59
· 655 commits to main since this release
ca0b830

Stage Coverage and a Security Round. Two things make up this release. Analytics gains a view of how much of each attack chain your defenses catch, on the dashboard and in the execution report, and Test Breadth by Host now shows every host, tested or not. And a security review of the whole platform, with one privately reported issue, led to the fixes listed under Security: what a CLI token, an API key, an enrolled agent, a task creator and a test-library build can do is now limited to what each needs. Most installs upgrade without changes; read the upgrade notes if you use the achilles CLI, the analytics API, score alerts, or test builds that need environment variables.

Upgrade notes

  • achilles CLI users sign in again if AGENT_SERVER_URL changes. A CLI token is now accepted only by the deployment that issued it (its audience is AGENT_SERVER_URL). Existing sessions keep working; after a change of that URL the CLI gets a new token on its next refresh, within the hour.
  • CLI sign-in: the code is typed by hand. The sign-in link no longer carries the code. Open the link, type the code the terminal shows, and confirm. Old links with ?code= open the page with an empty field.
  • CLI chat: changes need a confirmation typed in the terminal (confirm plus a 4-character code shown with the proposed action). Chat sessions with no interactive terminal (pipes, CI) are read-only. The CLI's users commands are read-only, and user and API-key management needs a signed-in browser session.
  • Test builds no longer see the backend's environment. go build, go mod and a test's build_all.sh get an allowlisted environment (PATH, HOME, Go, proxy and CA variables, Java and .NET homes, the signing variables). If a test's build reads another variable, name it in BUILD_ENV_PASSTHROUGH (comma-separated) on that install.
  • Score numbers from the API and in alerts can change. Analytics API calls without scoringMode now use the dashboard's any-stage rule (pass scoringMode=all-stages for the old per-stage numbers), and the Defense Score alert compares your threshold with the dashboard's latest-result score over 30 days. Review alert thresholds after upgrading.
  • target_index on a new task or schedule must be an achilles-results-... index. Schedules saved earlier with another name keep running; creating a new one with such a name is refused.
  • An enrolled agent can download a test binary only while it has a task for that test. Scripts that fetched binaries with an agent key outside a task get a 404.
  • With REQUIRE_ORG_ISOLATION=true, risk acceptances need an organization. A caller without one gets 403 on those routes, like on the other per-organization routes.
  • Agent 0.7.4 (released Nov 15) reads bundle_results.json only from a trusted folder. Build it with Build from source (version 0.7.4) on each install, after git pull on Docker and server installs; agents on 0.7.3 keep working.
  • backend-serverless (Vercel) gets the task-response, risk-acceptance, result-index, binary-download and result-identity fixes. It has no CLI sign-in, test builds or test-library reader, so the other changes do not apply there. The new analytics cards are backend-only.

Added

  • Stage coverage in the execution report (PDF). The Executive summary gains an "Attack chains: how many stages caught them" block with the same figures as the dashboard's Stage coverage card for the report's filters and period: the share of stages caught, the share of those chains the Defense Score counts as protected, a blocked / detected / got through bar, and the four chain groups with the tests in each (up to six names per row). It counts the latest run of each chain in the period, which the block states, since the rest of the report counts every run. For a period longer than 365 days (All time), the block covers the last 365 days and says so. The opening paragraph adds one sentence when chains rest on a single stage, and the Method page defines the terms. If the lookup fails, the block reads unavailable and the report still renders. Not on backend-serverless.
  • Stage coverage card on the Analytics dashboard. The Defense Score counts a multi-stage test as protected once any stage is blocked or detected, which does not show how much of each chain rests on that one stage. The new card shows, for the latest run of each multi-stage test on each host, the share of stages that were caught (blocked, detected, got through), and sorts the chains into four rows: rest on a single stage (ran every stage, one caught), depth not tested (stopped at its first block, so later stages never ran), two or more stages caught, and no stage caught. Clicking a row opens Executions for those chains. The Defense Score is unchanged and there is no setting. New endpoint GET /api/analytics/stage-coverage; not available on backend-serverless.
  • Lab endpoint for demos and workshops (docker-compose.lab.yml, deploy/lab-endpoint/): a throwaway linux/amd64 container that runs the agent next to a Docker Compose or server install, enrolled with docker exec achilles-lab-endpoint enroll <TOKEN>. It ships a deliberately unhardened SSH config for the CIS Linux bundle, and its README walks through two scenarios (Shadow AI exfiltration: DNS sinkhole flips 101 to 126; CIS Linux: four fixes flip four controls). The endpoint reaches the backend through its own localhost forwarder; the backend's AGENT_SERVER_URL is not changed. Line endings of the files it copies are forced to LF, so a Windows checkout builds too.
  • Offline kit for workshops and slow networks (deploy/offline-kit/): build-kit.sh builds one folder with everything a Docker Compose install downloads on its first start (amd64 and arm64 images, the test library, the Go modules of the tests you name, the source at that commit), and kit.sh / kit.ps1 load it on a laptop with nothing downloaded except Clerk sign-in. tests/kit.test.sh proves it in a Docker engine with no network.
  • Windows installer -NoBuild: starts the images already loaded (e.g. from the offline kit) instead of rebuilding them.

Changed

  • The test library Sync button moved from the Dashboard to the Tests page. The branch, commit, last-sync time and the Sync button now sit in the Tests page header, next to the list they update. After a sync the list and the commit refresh in place, and a failed sync says "Sync failed" (on the Dashboard a failed sync showed nothing). The Dashboard keeps its "library sync failed" attention chip, which links to the Tests page.
  • Test Breadth by Host shows every host as an equal tile, including untested ones. The card coloured a host that had run 1 of 6 tests in green, the dashboard's colour for "protected", while its tooltip called the same host "Poor"; a host with no run had no cell at all; and the percentage and the "Missing tests" list were computed from different test sets. Now each active host is one tile of the same size on a neutral blue ramp (under 25%, 25–49%, 50–79%, 80% and over), and enrolled hosts with no result in the window are listed by name in a "Not tested" group below the tiles ("No matching result" when filters are applied), so a fleet with many untested hosts no longer hides the hosts that have results. The share, the "1 of 6" count and the missing list come from one test set: the tests run in the last 90 days (or 30 days, or the selected window) plus any test run in the window, for the selected organization only (the baseline used to count every organization's tests). Tiles are ordered lowest breadth first and the card says so, clicking a host shows which tests it ran and which it did not, and tiles no longer scale with the number of runs (runs are in the tooltip). The tooltip also shows the host's Defense Score with its counts, so a poorly tested host that defended well can be told apart from one that did not. Untested hosts need the endpoints:agents:read permission; without it the card shows tested hosts only and says so.
  • The Defense Score alert uses the dashboard's score. The alert threshold was compared to a different number than the one on the dashboard: every stage result of the last 7 days, each stage counted on its own. It is now the dashboard's rule, the latest conclusive result of each test on each host (a multi-stage test is protected if any stage is blocked or detected, risk-accepted results left out), over a fixed last 30 days. A test that starts failing lowers the alerted score on its next run; the check runs when a result arrives and once more about 35 seconds after the last result of a burst. When no test has a conclusive result in that window, the check is skipped instead of reading as 0%. Slack and email alerts print the basis next to the number. Expect the alerted score to change after upgrading, and review your threshold. backend-serverless has no alerting and is unchanged.
  • API calls without scoringMode now use the any-stage rule. The dashboard scores a multi-stage test on a host once, protected if any stage is blocked or detected (any-stage). An analytics API call that left scoringMode out was scored per stage instead (all-stages), so the API and CLI could show a different "Defense Score" than the console. The default is now any-stage: an unparameterised /defense-score (and its trend and by-test, by-severity, by-category and by-hostname breakdowns) counts a multi-stage test once per host instead of once per stage; pass scoringMode=all-stages to keep the per-stage numbers. /defense-score/by-technique keeps its per-stage default, so a technique is never credited for a sibling stage. An unknown scoringMode now returns 400 Invalid scoringMode instead of silently meaning per-stage. No console screen changes. backend-serverless is unchanged.
  • The local Elasticsearch seed has its own image (deploy/es-seed/, docker-compose.yml): its Python client is installed when the image is built, not by pip on the first up. docker-compose.server.yml is unchanged.

Security

  • User management, API keys and CLI sign-in approval need a signed-in browser session. An admin's CLI token or an admin API key could call the routes that create API keys, invite or promote users, and approve another CLI sign-in code, so a leaked token could mint credentials that outlived its own revocation. Those routes now refuse every caller that is not a Clerk browser session: all of /api/api-keys/*, every change under /api/users/*, and POST /api/cli/auth/verify. A CLI session can still list users and invitations. (#800)
  • A CLI sign-in link can no longer sign someone else's terminal in. The link carried the code, and opening it while signed in approved it, so a link sent by an attacker gave the attacker's CLI the victim's session. The link now has no code, the page ignores query parameters, and approval needs the code typed in and an explicit confirm. (#804)
  • A CLI token works only on the deployment that issued it. Tokens were signed with an audience that verification never checked, so two deployments sharing a CLI_AUTH_SECRET accepted each other's tokens. Signing and verification now use the same issuer and audience. Reported privately. (#812)
  • A CLI session ends when the user leaves the organization. The first token and every refresh now check the user's current membership of the organization the session was issued for. A removed member gets 401 and the session's tokens are revoked; if Clerk can't be reached the answer is 503 and nothing is issued. (#802)
  • CLI chat no longer runs changes the model chose without your approval. The 24 tools that change or delete something (commands on agents, uninstall, keys, certificates, deletions) ran as soon as the model called them. Each now waits for a confirmation typed in the terminal, tied to the exact action on screen and valid once; without an interactive terminal the chat offers only the 42 read tools. (#803)
  • The CLI no longer prints the stored AI key, trusts a server's file name, or writes unquoted deploy values. config list, get and set show (set, hidden) for secrets. builds download accepts only a plain file name from the server (anything else is saved as <uuid>.bin in the current folder), so a compromised or impersonated server can't overwrite other files. achilles deploy quotes the values it writes to deploy.config.env, which the deploy scripts source, so a value with $(...), a backtick, ; or a space can't run as a command. (#807)
  • Task responses no longer include the credentials queued for the agent. Task list, grouped list, detail, cancel, retry and note responses returned the task's environment variables, which can hold an Azure client secret or a certificate key, to any user who can read tasks. The whole map is now removed from those responses in both backends; the agent still receives it. (#801)
  • An enrolled agent can download only the tests it was given, and its per-control results must name the dispatched test. Any enrolled agent could download any built test binary; it now needs an assigned, downloading or executing task for that test, and otherwise gets the same 404 as a missing build. Per-control results were filed under the bundle_id the endpoint sent; when it is not the dispatched test they are now ignored, a warning is logged, and the run is recorded as one result. Both backends. (#808)
  • A task or schedule can write results only to a results index. target_index was any string, used with the backend's own Elasticsearch credentials. Only achilles-results-... names are accepted now, for Run Now and schedules; rows saved earlier are not touched. Both backends. (#808)
  • Risk acceptances follow organization isolation. With REQUIRE_ORG_ISOLATION=true, a caller without an organization could still create an install-wide acceptance, which changes every organization's score. The five routes now answer 403 to such a caller. Both backends. (#808)
  • Test builds can't read the backend's secrets from the environment. go build, go mod and a test's build_all.sh ran with the backend's whole environment, so code in the test library could read the Clerk secret key, ENCRYPTION_SECRET, Elasticsearch credentials and GITHUB_TOKEN. Builds now get an allowlisted environment, extended per install with BUILD_ENV_PASSTHROUGH. This is not a sandbox: build scripts still run as the backend user. (#805)
  • Symlinks in a test library can't expose backend files. A symlinked file or test folder in the library passed the path checks and was read as the backend user, so a library commit could show any file the backend can read in the test browser. The indexer now skips symlinked files and test folders, and file reads open without following links and check that the opened file is the one that was validated. A symlinked library root still works. (#798)
  • The test browser takes a test's id from the folder on disk. Each route checked the id's format, but the indexer trusted whatever it was given, so one new route without the check would have allowed a path outside the library. The indexer now refuses an id that is not a UUID and builds paths only from names found in the directory listing. Not exploitable before; it also clears a class of code-scanning alert that kept returning. (#811, #815)
  • Release workflows. The agent release signs macOS binaries with the runner's own codesign instead of a downloaded third-party tool, and verifies both before the checksums are written. The appliance publish job fails unless the zip's version equals the tag that started the run, so one release can't replace another's files. (#797, #809)
  • Dependencies. node-forge 1.4.3 in both backends, 25 minor and patch updates, pinned GitHub Actions and the nginx base image refreshed, and the unused @vercel/node dev dependency removed from backend-serverless (about 180 packages).
  • Removing a user or changing their role now ends their achilles CLI sessions. A CLI session is a 1-hour token the backend signs plus a refresh token, and neither was tied to the user's account afterwards: a user deleted in Settings → Users (or in Clerk), or demoted from admin, kept working from the CLI with the old role for as long as the session kept refreshing. Now deleting a user or setting or removing their role ends their CLI sessions at once (issued tokens are refused, refresh tokens deleted), and every refresh re-checks the user in Clerk: a deleted or banned user is refused, and the new token carries the role the user has now, so changes made in the Clerk Dashboard apply within the hour. If Clerk can't be reached the refresh answers 503 and the CLI can retry. A sign-in still in progress is covered too: a code the user approved in the browser but the CLI had not collected is deleted with the sessions, and the first token is issued for the user as Clerk has them at that moment, not as they were when they approved the code. A user whose role changes signs the CLI in again (achilles login).
  • A CLI sign-in code is used once. The CLI collects its first token by polling with a device code, and the backend confirms the user in Clerk before issuing it. Two polls of the same approved code that arrived together could both pass that check and each receive a session, and a user removed while the check was running still received one. The code is now taken and the session stored in one step after the check, and only the request that took the code gets tokens; the other is answered as an unknown code (404).
  • CLI refresh tokens and device codes expire on time. Their expiry was compared with SQLite's datetime('now'), whose format differs from the stored ISO timestamp, so a 1-hour refresh token (and a 10-minute device code at the verify step) was accepted until the end of the UTC day.

Fixed

  • Test library sync works again when GITHUB_TOKEN is expired or not needed. Since the token moved out of the clone URL into a request header, it was sent on every request, and GitHub rejects a bad token even for a public repository. An install with a stale token and a public test library got "Sync failed" and an empty Tests page. The sync now tries without the token first and uses it only when that fails, as git itself does. On a private repository the file download after a fetch also uses the token now.
  • The SB export schema accepts detectedTechniques. The export has written this field on every row since v2.8.0, but docs/sb-export.schema.json did not list it and rejects unknown row fields, so a current export failed the published schema, and a consumer built from the schema would drop the field. It is now listed as an optional array of ATT&CK technique ids (the offline converter does not write it).
  • An SB export too large to send whole is refused, not cut. A date range that matches more than 10,000 bundle-control results (an unfiltered export over weeks of cyber-hygiene runs) kept only the newest 10,000, while the file's meta.window still claimed the whole range and nothing said it was partial; one install's 90-day export dropped 58,013 rows, another's one-year export dropped 493 attack-test stages. The export now fails with a message giving the match count and asking for the bundle filter or a shorter range. Exports under the limit, including every one-bundle bulletin export, are unchanged. The old server-log warning never fired either, because Elasticsearch stops counting matches at 10,000 unless asked for the exact count.
  • "How deep attack chains get" no longer hides chains blocked before a later stage error. A chain that keeps running after a block can fail a later stage (exit 999 or 260). The card treated any such error as making the whole run inconclusive, so a chain blocked at stage 1 whose stage 3 errored was left out of the rows and noted as a stage error, while the Outcome breakdown on the same page counted it as protected. An error on a stage after the first block no longer hides the block; an error before it, or a stage without a stage number, still does. On production data this moved 8 chains from the footer to Stage 1.
  • Testing cadence counts test runs, not stage results. The bars counted every stage of a multi-stage test, including the stages a chain ran after it was blocked, so a day where 11 of 13 runs were blocked at stage 2 drew 12 green and 40 red, while Threat actor readiness said 92%. A run now counts once (protected when any stage was blocked or an EDR detected it, as the campaign matrix counts protection; a cyber-hygiene run only when every control passed), and the card says "runs / day". The "last run" chip, and the "Nd ago" on each Threat actor readiness row, count UTC calendar days, like the bars: a run on Nov 5 is "6d ago" on Nov 11 at any hour.
  • The error rate no longer counts skipped stages as errors. When a multi-stage test is stopped at one stage, its later stages are recorded as skipped (exit 0), and the error rate counted each of them as a test error, so the better the defenses, the higher the error rate. On production data 90 of 144 "errors" in 30 days were skipped stages (19.8% instead of about 8.5%). It affects the Trend Overview's error-rate line and the error-rate alert threshold (error_rate_max). Exit 0 on a standalone test still counts.
  • Analytics counts tests and runs the way All Executions does. The panel's Tests counted each stage of a multi-stage test as its own test (94 instead of 10 on one install); Test activity listed stage results with a check only when the stage was blocked, and its "N tests" was the number of stage results; and Test Breadth by Host drew one cell per stage name. A multi-stage test now counts once, Test activity lists runs with the same result label as All Executions, and the treemap shows one cell per test and host, sized by runs. A result the agent sent twice counts as one run in the treemap too, as it is one row in All Executions.
  • The panel's Inconclusive line is the share of pairs with no conclusive result. It showed the error rate over stage results, which counted errors on stages of runs that were blocked and left out tests blocked before they ran (exit 260), the only results with no verdict. It is now the Outcome breakdown's "No conclusive result yet" count as a share of all test × endpoint pairs, the unit of the panel's PAIRS figure (/defense-score?withNoConclusive=true returns noConclusiveCount).
  • Filter values that contain a comma work. List filters (bundle, test, threat actor, host, tag, ...) travel as one comma-separated value, so picking a bundle such as "The Gentlemen: GPO-Driven, Living-off-the-Land Intrusion" searched for two names that don't exist and every card and All Executions came up empty; links to such a test from the test page broke the same way. A comma inside a value is now escaped (\,) in the API query and the page URL; plain lists (a,b) and existing links read as before (services/analytics/filterList.ts, frontend/src/lib/filterList.ts). Blank values (cyber-hygiene results store an empty threat actor) are no longer offered as a filter choice.
  • All Executions' CSV and JSON exports hold every matching result, with the table's verdicts. They exported only the page on screen (25 runs), and the CSV's Result column read the exit code alone: a stage the table shows as Detected or Prevented was "Unprotected", and a skipped stage "Inconclusive". The export now fetches every result matching the filters, sort and verdict (newest first, up to 10,000, and says so when there are more), the Result column is the table's label (Protected, Prevented, Detected, Unprotected, Skipped, Inconclusive), and a new Bundle column names the multi-stage test a stage belongs to.
  • A multi-stage run with no verdict reads Inconclusive, not Unprotected. All Executions, Test activity and the run detail labelled a run "Unprotected" whenever no stage was blocked or flagged by an EDR, including runs where every stage errored or was skipped (e.g. stage 1 failed with 999 and the rest never ran), which the Tasks page, campaigns and the Outcome breakdown report as having no verdict. Such a run is now Inconclusive.
  • A standalone test an EDR alerted on reads Detected in All Executions. The table, the execution report and their verdict filter looked only for a stage's own alert flag, which single-binary tests don't carry, so an executed standalone test with an alert showed Unprotected while the Defense Score and the campaign matrix counted it as Detected. A standalone test's test-level alert now counts as its own; on a stage of a multi-stage test it still doesn't (it only means an alert named the bundle).
  • EDR tabs: a stage is no longer credited with a sibling stage's prevention. Technique coverage (the Detection tile and the Technique Coverage table on the Defender, CrowdStrike, SentinelOne and Sophos tabs) counted a stage as prevented, and detected, whenever the run's test-level <vendor>_prevented flag was set, which an alert on any stage of the run sets on every stage. A stage of a multi-stage test now needs its own evidence (<vendor>_stage_prevented, or on older results its own alert plus a confirmed action), as in All Executions; a standalone test's test-level flag still counts. On production data this moved a few stages per vendor from prevented to detected or missed (e.g. 63 to 61 prevented for one vendor over 30 days).
  • The "N with alerts" badges count the techniques on the card. On the ATT&CK technique distribution card they counted every technique ever tested that appeared on any of the vendor's alerts, ignoring the card's date range and filters, so a card listing 7 techniques could say "14 with Defender alerts". They now count the card's own techniques that appear on the vendor's alerts.
  • SB-PC-2026-001 export: a skipped stage is NOT_RUN. A stage the test never ran (exit 0 after an earlier stage stopped the chain) was reported as MISSED, or EXPOSED on an exfiltration or impact stage. It is now NOT_RUN, the schema's outcome for a skipped control (its evidence reference says "not run: skipped stage"), unless the stage's own EDR prevention makes it PREVENTED. Cyber-hygiene controls are unchanged, and the LockBit bulletin bundle had no skipped stages on the data checked. The bundle/test scope filters also keep names with commas whole.
  • Advance digest for a schedule created after 09:00 (services/notices/digest.service.ts): when the 09:00 pass had already recorded the day as empty (another schedule was active, but nothing ran tomorrow), a schedule created, resumed or edited later that day for tomorrow got no digest. An empty day is now re-checked once after each change to an active schedule of that org, and the digest goes out on the next tick. A day whose digest was already sent still gets no second email.
  • The backend image's Go toolchain matches its architecture. It always installed the amd64 toolchain, so on Apple Silicon every test and agent build ran under emulation.