Lesson 10.1

Arrows and the Quiver

Arcsentry's detection rules: what an arrow is, the TOML it is stored as, how the Quiver files arrows by tactic, and case versus global arrows.

12 minEveryone
At a glance for experienced analysts
  • An arrow is a detection rule: a query plus what to do with each match (verdict, summary, ATT&CK technique, kill-chain stage, tags).
  • Stored as TOML with three tables: [meta], [query] and an optional [action]. Arcsentry adds [source] when it saves.
  • The Quiver (key 7) files arrows by tactic and shows All, Global or Case arrows. Global arrows are available in every case.
Shortcut 7

Hunt answers a question once. An arrow answers it every time you run it.

An arrow, line by line

[meta]
id = "webshell-thumb-cache"
name = "Commands sent to a PHP web shell"
description = "GET requests that pass a command to a PHP file in the c parameter."
enabled = true
tags = ["persistence", "web-shell"]

[query]
type = "aql"
event_type = ["logs_nginx"]
body = "filter url ~= \"(?i)[.]php[?]c=\""

[action]
verdict = "malicious"
summary = "Command sent to a PHP web shell"
mitre_techniques = ["T1505.003"]
ukc_stages = ["persistence"]
Table Holds
[meta] The id (also the file name), name, description, whether it is enabled, severity and tags
[query] The language (aql or sql), the event types it reads, and the query body
[action] What to record on every match: verdict, summary, ATT&CK techniques, kill-chain stages, evidence tags, notes, indicator fields. It may be empty, for an arrow that only finds
[source] Added by Arcsentry on save: who wrote it, when, and its version

The query must return one row per record, so group and aggregate are not allowed in an arrow body. Every field it names must exist in every event type it declares; the save says which field is wrong and suggests the closest.

The Quiver

The Quiver view1234567
The Quiver of the practice case, with one arrow.
  1. All, Global, Case: which arrows to list.
  2. New arrow.
  3. Tactics: arrows filed by their tactic tag, with counts. Uncategorized holds arrows with no tactic tag.
  4. Evidence scope for runs.
  5. Run all, Run selected and Select all.
  6. The arrow card: scope (case or global), language, enabled, severity and tags.
  7. Actions: show matches, enable or disable, promote, edit and delete.

Case and global arrows

  • A case arrow lives with the case and travels with its archive.
  • A global arrow lives in your Arcsentry data folder and is available in every case. The home screen’s Global quiver manages them.

The next lesson writes, checks and runs one.

Check yourself

1. Which table of an arrow holds the verdict it sets?
2. What makes an arrow appear under Persistence in the Quiver's list?
Progress is saved in this browser only.