Last

Show a listing of last logins and logouts.

LinuxLive responseParser: system_last11 fieldsCollected by priority triage

What Last is

Show a listing of last logins and logouts. It is one of 137 live response artifacts Arcsentry reads. Live-response artifacts are the output of commands run on a live system at collection time: processes, connections, mounts, containers, hardware and system state.

Forensic value

Live response artifacts help answer questions like these:

  • What was running and connected at collection time?
  • Are there hidden processes or unusual mounts?

Where it is stored

Arcsentry looks for Last at these locations inside a collection, disk image or mounted volume:

triage/volatile/system/last.txt
triage/volatile/system/last_*.txt
triage/volatile/system/zcat_last.txt
triage/volatile/system/zcat_last_-a_-F.txt

What Arcsentry records

Each Last record is written to Arcsentry's common schema with these fields, alongside the host, timestamp and provenance every record carries:

FieldTypeMeaning
user_namelogin_user
termterminal
source_domainlogin_source_host
source_iplogin_source_ip
event_timestamplogin_time
event_timestamplogin_time
event_timestamplogin_time
logout_timelogout_time
logout_timelogout_state
session_durationsession_duration
messageunparsed_last_line

Time

Login time. Arcsentry keeps each record's own time and labels its time zone when the source does not state one. A record with no time of its own stays untimed; Arcsentry never substitutes the collection time.

Collecting Last with Arcsentry Collector

Arcsentry Collector gathers Last in these triage profiles: linux::profile::triage::priority, linux::profile::triage::live, linux::profile::triage::full, linux::profile::triage::server. It is captured live, by running commands on the host at collection time.

The collection targets that pick it up: linux::live::system::last, linux::live::system::lastb, linux::live::system::utmpdump.

sudo ./arcsentry-collect collect --local -t linux::profile::triage::priority \
  -o /mnt/ir -f host.arcx --password-file /mnt/ir/pw.txt

Every file lands in one AES-256 archive with a SHA-256 recorded for it, and the collection log notes which target collected it. See everything each profile collects.

Already collected with something else? Arcsentry also reads KAPE, Velociraptor and UAC collections, so Last can come from the tools you already use.

Analysing Last in Arcsentry

Ask in plain English, for example "show Last records from the incident window, newest first", and Arcsentry shows the query before it runs.

Mark a record malicious or suspicious and it joins the timeline in its kill-chain lane. Add its values as indicators and Arcsentry matches them across every host. When the AI investigator works the case, it reads Last records with the same tools and cites them by event ID.

Frequently asked

Does Arcsentry parse Last?

Yes. Arcsentry's Last parser (system_last) reads it from Linux evidence and records 11 fields per record, with provenance back to the source file.

How do I collect Last?

Arcsentry Collector gathers it with the priority triage profile (linux::profile::triage::priority), live or from a disk image, sealed in an AES-256 archive with a SHA-256 for every file.

Parse Last on your own evidence.

Tell us what you want to investigate. A person replies within one business day with the download and a trial licence.

Request a trial