Query Commands
The Cheiron app provides the Cheiron Open API as 105 query commands. You can run them on the query screen or in scheduled queries, and AI agents use the same commands. For the options and output fields of each command, see the command descriptions in the store.
Common options
- profile - the Cheiron connect profile to use. When omitted, every Cheiron profile is queried in turn and a
profilefield is added to each result row - duration or from, to - the query range of commands that take a period. Use a relative period such as
duration=7d, or give times such asfrom=20261101000000 to=20261130235959. Do not use both together - Options ending in
-idx(task-idx,simulation-idxand so on) take one value, and options ending in-indicestake several values separated by commas
Querying run results
Query attack simulation results with the commands below. All results are flat fields, so you can view them as a table or aggregate them right away.
| Command | One row per | Contents |
|---|---|---|
cheiron-simulation-tasks | Run | Run history. Status, succeeded, failed, skipped, detected, prevented and compromised counts, target hosts |
cheiron-simulation-task-procedures | Procedure | Per-procedure results of one run. Tactic, technique number, result, duration, error |
cheiron-simulation-task-edges | Edge | Scenario graph of one run. Branch conditions and the paths that ran |
cheiron-instruction-result | Instruction | Command line, decoded command, standard output and standard error of one procedure |
cheiron-simulation-task-diff | Run | Result differences from the previous run |
cheiron-inspections | Inspection | Inspection list and the run numbers of each inspection |
cheiron-simulation-tasks duration=7d | fields _time, task_idx, name, status, succeeded, failed, skipped, compromised | sort -_time
cheiron-simulation-task-procedures task-idx=10512 | search result == "succeeded" | stats count by tactic
cheiron-simulation-task-procedures task-idx=10512 | search result == "failed" | fields seq, proc_name, technique_id, status, err, instruction_id
cheiron-instruction-result instruction-id=00000000-0000-0000-0000-0000000000a3
inspection number (
inspection_idx) with cheiron-inspections, then query cheiron-simulation-tasks inspection-idx=<number>.
For the raw response, use cheiron-simulation-task (graph, procedure definitions and results) and
cheiron-simulation-task-resolved (results with values replaced by labels).
Other query commands
| Category | Commands |
|---|---|
| Dashboard | cheiron-about, cheiron-dashboard, cheiron-dashboard-procedures, cheiron-dashboard-templates |
| ATT&CK | cheiron-tactic-techniques, cheiron-tactics, cheiron-techniques |
| Scenario | cheiron-simulations, cheiron-simulation, cheiron-simulation-schedule, cheiron-inspection-schedule |
| Template | cheiron-templates, cheiron-simulation-templates, cheiron-inspection-templates, cheiron-release-templates |
| Procedure | cheiron-procedures, cheiron-procedure, cheiron-procedure-by-id, cheiron-instruction |
| Agent | cheiron-agents |
| Administration | cheiron-accounts, cheiron-tenants, cheiron-envs, cheiron-ip-access-list |
Change commands
Commands whose names start with cheiron-add-, cheiron-set-, cheiron-remove-, cheiron-run-, cheiron-pause-,
cheiron-resume-, cheiron-stop-, cheiron-cleanup-, cheiron-generate- or cheiron-reset- change Cheiron data
or run simulations. In the result rows, result_code is the HTTP status code and result_msg is the response
message. Change commands require the profile option when there are two or more Cheiron connect profiles.
Commands ending in -batch read a target from each row of the preceding query and repeat the same action. For
example, the query below pauses every run in progress.
cheiron-simulation-tasks duration=1d | search status == "In progress" | cheiron-pause-simulation-task-batch profile=cheiron
executes real attack procedures on the target agents. Before running a batch variant, run only the preceding
query first and check the target rows.