Skip to main content

Analytics Commands

The analytics command (alias: an) queries security metrics from Elasticsearch. These commands give you visibility into your defense posture, test coverage, and execution history.

achilles analytics <subcommand> [flags]
info

Analytics commands require a configured Elasticsearch connection on the backend. If ES is not set up, these commands will return errors.

Shared Filter Flags​

Most analytics subcommands accept these common filters:

FlagTypeDescription
--orgstringFilter by organization. If your account belongs to an organization, you only ever get that organization's results, whatever you pass
--fromstringStart date (ISO 8601, e.g. 2026-11-01, or relative, e.g. now-30d)
--tostringEnd date (same formats)

Subcommands​

SubcommandDescription
scoreCurrent defense score
trendDefense score over time
by-testScore breakdown by individual test
by-techniqueScore breakdown by MITRE technique
by-hostnameScore breakdown by hostname
by-orgScore breakdown by organization
executionsRecent test executions
coverageTest coverage matrix
heatmapHost x test execution matrix
techniquesMITRE technique distribution
errorsError rate breakdown
hostnamesCount of unique hostnames
testsCount of unique tests executed

analytics score​

Get the current defense score -- the primary security metric.

achilles analytics score [flags]

The defense score is a percentage (0-100%) representing how well your defenses blocked simulated attacks. Higher is better.

CLI numbers vs the dashboard

The CLI requests the API's default executions basis, which counts every conclusive execution in the window. It also uses the API's default scoring mode, any-stage: a multi-stage test run counts once, as protected when any of its stages was. The Dashboard and Analytics headline use the latest-result score instead, which counts each test × endpoint pair once, by its most recent result (see Defense Score). The two can differ for the same range. In analytics trend, a day with no results in its window prints as —, not 0.0%.

Example:

achilles analytics score
Defense Score: 73.2% ████████████████████░░░░░░░░

protected: 42
unprotected: 16
total_executions: 58
# Score for a specific date range
achilles analytics score --from 2026-03-01 --to 2026-03-15

# JSON output
achilles analytics score --json

analytics trend​

View how the defense score changes over time.

achilles analytics trend [flags]

Additional flags:

FlagTypeDefaultDescription
--intervalstring1dTime bucket interval (1h, 1d, 1w)
--daysnumber30Rolling window in days (1 to 90). Each point is the score over the --days days that end at that point

--days does not set the date range. The range comes from --from and --to; without --from the trend covers the last 7 days.

Example:

# Last 7 days, one point per day, each a 30-day rolling score (default)
achilles analytics trend

# Last 30 days, one point per day, 7-day rolling score
achilles analytics trend --from now-30d --days 7

# Last 90 days, one point per week, 30-day rolling score
achilles analytics trend --from now-90d --interval 1w

Example output:

Date Score Protected Total
──────────── ──────── ────────── ────────
11/14/2026 73.2% 42 58
11/13/2026 71.8% 38 53
11/12/2026 — 0 0
11/11/2026 75.0% 30 40

analytics by-test​

Get the defense score broken down by individual test.

achilles analytics by-test [flags]

Additional flags:

FlagTypeDefaultDescription
--limitnumber20Max results

Example:

achilles analytics by-test --limit 10
Test Score Protected Total
────────────────────────────── ──────── ────────── ────────
T1059.001-PowerShell-Exec 100.0% 12 12
T1486-Data-Encrypted 83.3% 10 12
T1547-Boot-Logon-Autostart 66.7% 8 12
T1003-Credential-Dumping 50.0% 6 12

analytics by-technique​

Get defense scores grouped by MITRE ATT&CK technique ID.

achilles analytics by-technique [flags]

Example:

achilles analytics by-technique
Technique Score Protected Total
────────────── ──────── ────────── ────────
T1059 92.0% 23 25
T1486 78.6% 11 14
T1547 66.7% 8 12
T1003 41.7% 5 12

analytics by-hostname​

Get defense scores broken down by endpoint hostname.

achilles analytics by-hostname [flags]

Additional flags:

FlagTypeDefaultDescription
--limitnumber20Max results

Example:

achilles analytics by-hostname
Hostname Score Protected Unprotected Total
──────────────────── ──────── ────────── ──────────── ────────
prod-web-01 85.7% 6 1 7
prod-web-02 71.4% 5 2 7
dev-db-03 57.1% 4 3 7

analytics by-org​

Get defense scores broken down by organization.

achilles analytics by-org [flags]

Only accepts --from and --to filters (not --org, since the breakdown is across orgs). A user who belongs to an organization gets one row, their own.

analytics executions​

View recent test executions with protection outcomes.

achilles analytics executions [flags]

Additional flags:

FlagTypeDefaultDescription
--pagenumber1Page number
--sizenumber20Page size
--groupedbooleanfalseGroup results by batch

The Outcome column is PROTECTED, UNPROTECTED, or ERROR for a result with no conclusive outcome.

Flat mode example:

achilles analytics executions
Time Test Host Outcome
──────────────────── ──────────────────────── ──────────────── ──────────────
2026-03-19 14:00:00 T1059-PowerShell-Exec prod-web-01 PROTECTED
2026-03-19 13:55:00 T1486-Data-Encrypted prod-web-01 UNPROTECTED
2026-03-19 13:50:00 T1547-Boot-Logon-Auto dev-db-03 PROTECTED

Grouped mode example:

achilles analytics executions --grouped
Test Host Protected Unprotected Total Last Run
──────────────────────── ──────────────── ────────── ──────────── ──────── ──────────
CyberHygiene-Bundle prod-web-01 8 2 10 2026-03-19
T1059-PowerShell-Exec prod-web-01 3 0 3 2026-03-19

analytics coverage​

View the test coverage matrix -- which tests have been executed and their protection outcomes.

achilles analytics coverage [flags]
Test Protected Unprotected
────────────────────────────── ────────── ────────────
T1059.001-PowerShell-Exec 12 0
T1486-Data-Encrypted 10 2
T1547-Boot-Logon-Autostart 8 4

analytics heatmap​

View the host-by-test execution matrix.

achilles analytics heatmap [flags]
Host Test Count
──────────────────── ──────────────────────── ────────
prod-web-01 T1059-PowerShell-Exec 5
prod-web-01 T1486-Data-Encrypted 3
dev-db-03 T1059-PowerShell-Exec 4

analytics techniques​

View MITRE ATT&CK technique distribution across all executions.

achilles analytics techniques [flags]
Technique Protected Unprotected
────────────── ────────── ────────────
T1059 23 2
T1486 11 3
T1547 8 4

analytics errors​

Get the test error rate breakdown.

achilles analytics errors [flags]

Returns errorRate, errorCount, conclusiveCount and totalTestActivity, helping identify flaky tests or infrastructure issues.

analytics hostnames​

Get a count of unique hostnames that have reported test results.

achilles analytics hostnames [--org <org>]

analytics tests​

Get a count of unique tests that have been executed.

achilles analytics tests [--org <org>]