Lesson 10.2

Write, validate and run an arrow

Write an Arcsentry arrow in the form or as TOML, let the editor check the query as you type, run it, and read the results per evidence item.

20 minEveryone
At a glance for experienced analysts
  • Editor tabs: Blueprint (the AI drafts an arrow from a description), Arrow (Form or Raw TOML) and Results.
  • The editor compiles the query as you type ("The query compiles"). Save arrow stores a new version.
  • Run selected marks every match with the arrow's action. The card shows hits and marked events; Results lists them per evidence.
Command line
arcsentry quiver run --case <uuid> --id webshell-thumb-cache

The editor

The arrow editor in Form view12345678
The web shell arrow after its second save: filed under Persistence, version 2.
  1. Blueprint, Arrow, Results.
  2. Form or Raw.
  3. Identity: id, name, description, enabled, severity and tags. A tactic tag files it (“Filed under Persistence”).
  4. Query: AQL or SQL, the event types (all or only these), and the body.
  5. Live check: “The query compiles”, or what is wrong.
  6. Action: verdict, summary, evidence tags, notes, ATT&CK techniques, kill-chain stages and indicator fields.
  7. Save arrow.
  8. Summary: enabled, severity, version, category and scope.

Raw TOML

The arrow as TOML
Raw view: the TOML you can paste, review and share. Below it, what Arcsentry recorded about who wrote it and when.

Raw is the quickest way to bring in an arrow from a colleague or a repository: paste and save. Arcsentry records the [source] itself, so a pasted [source] is replaced.

Blueprint: let the AI draft it

Describe the behaviour in plain English, such as “GET requests that run commands through a PHP file”, and the model you assigned to Arrow Blueprint writes a first draft. Read it in the Arrow tab before you save: it is a draft, not a finding.

Run it

Arrow results per evidence item
After a run: 8 hits on web01 and none on db01, with each matching event listed.

Select the arrow and Run selected, or Run all for every enabled arrow. Each match gets the arrow’s action, recorded as coming from the arrow. The card then shows the hits, how many were marked and a small timeline; the Results tab lists counts per evidence and every matching event.

From the command line:

arcsentry quiver validate --toml-file webshell.toml
arcsentry quiver create --case <uuid> --toml-file webshell.toml
arcsentry quiver matches --case <uuid> --id webshell-thumb-cache
arcsentry quiver run --case <uuid> --id webshell-thumb-cache

Check yourself

1. You want to see what an arrow matches without setting any verdicts. What do you use?
2. An arrow filters on events that do not have a verdict yet. You run it twice. Why does the second run find fewer?

Try it

Create the web shell arrow from lesson 10.1 in your practice case: New arrow, then paste the TOML into Raw, or fill in the form. Save it, check the query compiles, and run it. How many hits are there on each host, and what happens on the dashboard?

Show the answer

8 hits on web01 and 0 on db01, from 02:47:49 to 02:50:58 UTC; the card shows 8 hits, 8 marked. The dashboard's Malicious tile shows 8, ATT&CK shows T1505.003 and the Timeline now has the eight events. The Case Log records the arrow's creation and the run: "8 matches, 8 marked".

Progress is saved in this browser only.