APT History

Parses APT transaction history from var/log/apt/history.log and its rotations.

LinuxApplicationsParser: packages_apt_history19 fieldsCollected by priority triage

What APT History is

Parses APT transaction history from var/log/apt/history.log and its rotations. It is one of 116 applications artifacts Arcsentry reads. Application artifacts record the activity of specific programs: remote-access tools, file managers, messaging, cloud sync, FTP clients and more. They often hold evidence nothing else keeps.

Forensic value

Applications artifacts help answer questions like these:

  • Which applications were used during the incident?
  • Did an application move or sync data?

Where it is stored

Arcsentry looks for APT History at this location inside a collection, disk image or mounted volume:

**/var/log/apt/history.log*

What Arcsentry records

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

FieldTypeMeaning
event_timestampTIMESTAMPEvent timestamp normalized to the parser event time
event_local_timeVARCHAREvent wall-clock time in host-local time, retained as text without inferring an offset
event_actionVARCHAREvent action
software_package_nameVARCHARInstalled software package or application name
architectureVARCHARcpu_architecture
package_versionVARCHARPackage version
previous_versionVARCHARPackage version replaced by this operation
automatically_installedBOOLEANPackage was pulled in as a dependency rather than explicitly requested
managerVARCHARLinux package manager
command_lineVARCHARCommand line (processes)
user_nameVARCHARUser name
user_idVARCHARUser identifier
end_timeTIMESTAMPEnd of a SRUM application timeline or VFU activity window (EndTime, a FILETIME)
error_messageVARCHARThumbcache error message
log_fileVARCHARSource log file path
log_line_numberBIGINTLine number within the source log file
unparsed_lineVARCHARRaw source line that matched no parser pattern, retained as an observability marker so coverage gaps surface instead of being silently dropped
messageVARCHARHuman-readable message
artifact_read_statusVARCHARSource read failure: unreadable (the source could not be read), corrupt (its bytes failed format or stream integrity checks), unrecognized (the content does not identify a supported format), or unsupported (the format version or a required format extension is not supported); records read before a failure may still be present

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 APT History with Arcsentry Collector

Arcsentry Collector gathers APT History in these triage profiles: linux::profile::triage::priority, linux::profile::triage::offline, linux::profile::triage::full, linux::profile::triage::server. It is read straight from the file system, on a live host or inside a disk image, without mounting.

The collection targets that pick it up: linux::execution::docker_ondisk, linux::filesystem::bodyfile, linux::logs::var_log, linux::software_inventory::apt.

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 APT History can come from the tools you already use.

Analysing APT History in Arcsentry

Ask in plain English, for example "show APT History records from the incident window, newest first", and Arcsentry shows the query before it runs. Or write it in AQL:

filter event_type == "packages_apt_history"
sort {-timestamp}
take 100

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 APT History records with the same tools and cites them by event ID.

Frequently asked

Does Arcsentry parse APT History?

Yes. Arcsentry's APT History parser (packages_apt_history) reads it from Linux evidence and records 19 fields per record, with provenance back to the source file.

How do I collect APT History?

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 APT History 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