Lesson 8.3

Graph layers

Build an Arcsentry graph in layers: each layer from an AQL query or a plain-English question, with groups, entity types, filters for malicious, suspicious and shared nodes, indicator matches and node timelines.

25 minEveryone
At a glance for experienced analysts
  • Graph (key 6): Layers and Entities on the left, the canvas on the right.
  • New layer: pick the host and event type, write AQL, SQL or plain English, preview the entities, name it and Add layer.
  • Legend filters: Suspicious, Malicious, Indicators, Orphan, Connected, Cross-layer. Layouts: Force, Tree, Ring, Grouped.
Shortcut 6
The Graph view with two layers shown12345678
Two of four layers shown: the web shell traffic from 203.0.113.77 and the commands it ran as uid 33.
  1. Layers and Entities tabs.
  2. New layer and New group.
  3. Layer cards: the eye shows or hides a layer, the count is its entities, the arrow opens its query.
  4. Layouts: Force, Tree (down or across), Ring and Grouped. Re-layout and undo beside them.
  5. Show full detail.
  6. Legend filters: Suspicious, Malicious and Indicators; Orphan, Connected and Cross-layer.
  7. Entities: each type with its count; the eye shows or hides a type.
  8. A node. Click it for its records, verdict and timeline.

Add a layer

New layer dialog with a plain-English question
A layer from plain English: "commands run by user id 33 or 1000 between 02:45 and 04:00 UTC". The amber note says the time window was not applied.
  1. New layer. Pick the host and the event type.
  2. Write the query in AQL, SQL or NQL. The preview draws the entities it would add and counts them: “8 entities, 7 connections from 9 records”.
  3. Read any notes. Here the question named a time window, but a layer follows the workbench Time range, so the note says the window was not applied.
  4. Name the layer and Add layer.

Work with layers

  • Show and hide layers to compare them. Drag a card to reorder; put related layers in a group.
  • Edit query on a card to change what it draws.
  • Expand a type from a node to draw its neighbours of that type, and undo the last expansion if it is too much.
  • Search entities to find a node by name.

Read the graph

  • Malicious and Suspicious show only nodes with that verdict. Set a node’s verdict from its menu.
  • Indicators highlights nodes that match an indicator in the case.
  • Cross-layer shows only nodes shared by several layers: the places where two lines of evidence meet.
  • Orphan and Connected separate nodes with no links from the rest.
  • A node’s timeline shows when its records occur, and the time slider narrows the graph to a period.

Check yourself

1. What is a layer?
2. Two layers share the node 203.0.113.77. Which filter shows only such nodes?

Try it

On web01, add a layer from the plain-English question "commands run by user id 33" on the auditd event type. Then add a second layer in AQL: filter event_type == "logs_nginx" && url ~= "(?i)wp-content/plugins/.*[.]php". Which programs did user 33 run, and which address stands apart from the rest in the second layer?

Show the answer

User 33 (www-data) ran /usr/bin/id, uname, cat, curl, bash, python3.12 and su. In the second layer, 203.0.113.77 connects to the many thumb_cache.php URLs, while 203.0.113.45 connects to a single URL: the upload to connector.minimal.php. One address planted the web shell, the other used it.

Progress is saved in this browser only.