APT History
Parses APT transaction history from var/log/apt/history.log and its rotations.
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:
| Field | Type | Meaning |
|---|---|---|
event_timestamp | TIMESTAMP | Event timestamp normalized to the parser event time |
event_local_time | VARCHAR | Event wall-clock time in host-local time, retained as text without inferring an offset |
event_action | VARCHAR | Event action |
software_package_name | VARCHAR | Installed software package or application name |
architecture | VARCHAR | cpu_architecture |
package_version | VARCHAR | Package version |
previous_version | VARCHAR | Package version replaced by this operation |
automatically_installed | BOOLEAN | Package was pulled in as a dependency rather than explicitly requested |
manager | VARCHAR | Linux package manager |
command_line | VARCHAR | Command line (processes) |
user_name | VARCHAR | User name |
user_id | VARCHAR | User identifier |
end_time | TIMESTAMP | End of a SRUM application timeline or VFU activity window (EndTime, a FILETIME) |
error_message | VARCHAR | Thumbcache error message |
log_file | VARCHAR | Source log file path |
log_line_number | BIGINT | Line number within the source log file |
unparsed_line | VARCHAR | Raw source line that matched no parser pattern, retained as an observability marker so coverage gaps surface instead of being silently dropped |
message | VARCHAR | Human-readable message |
artifact_read_status | VARCHAR | Source 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