auditd

The Linux audit daemon writes /var/log/audit/audit.log. When execve rules are loaded, it records every process start with its arguments, user, working directory and parent, split across SYSCALL, EXECVE, CWD, PATH and PROCTITLE records that share an event ID.

LinuxEvent and service logsParser: linux_auditd23 fieldsCollected by priority triage

What Linux auditd is

It is the closest thing Linux has to Windows process-creation logging.

Forensic value

What Linux auditd can tell an investigator:

  • Exactly what ran, with arguments, as which user, and when.
  • The audit user ID (auid), which survives su and sudo and ties actions back to the original login.
  • Commands run by web server accounts through web shells.

What it does not prove

  • Coverage depends entirely on the loaded rules; many distributions do not audit execve by default.
  • Records hold numeric user IDs; resolve them against the host's accounts.
  • auditd times can differ by seconds from other logs; cite each from its own source.

Where it is stored

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

**/var/log/audit/audit.log*

What Arcsentry records

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

FieldTypeMeaning
auidBIGINTAuditd auid
auditd_event_idBIGINTAuditd event id
path_objsVARCHAR[]Auditd path objs
type_setVARCHAR[]Auditd type set
auditd_unmapped_fieldsVARCHAR[]Auditd unmapped fields
config_keyVARCHARConfiguration/property key, policy setting key, or audit-rule key from a key/value or settings artifact
event_outcomeVARCHAREvent outcome
group_idVARCHARGroup identifier
host_nameVARCHARHost name
log_fileVARCHARSource log file path
process_argsVARCHAR[]Process arguments
process_executableVARCHARProcess executable
process_nameVARCHARProcess name
process_parent_pidBIGINTParent process identifier
process_pidBIGINTProcess identifier
process_ttyVARCHARProcess controlling terminal
process_working_directoryVARCHARProcess working directory
source_addressVARCHARSource address
syscallVARCHARAudited syscall
user_idVARCHARUser identifier
user_nameVARCHARUser name
messageVARCHARHuman-readable message
log_line_numberBIGINTLine number within the source log file

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 Linux auditd with Arcsentry Collector

Arcsentry Collector gathers Linux auditd 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.

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

Analysing Linux auditd in Arcsentry

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

filter event_type == "linux_auditd"
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 Linux auditd records with the same tools and cites them by event ID.

Corroborate with

No single artifact settles a question on its own. Check Linux auditd against:

  • Bash history: Parses shell and interactive interpreter command history files (bash, zsh, fish, ash and other shells, Python, Node.js, irb and database shell clients such as psql, MySQL and Redis).
  • Syslog: Parses Linux syslog and auth.log files.
  • sudo log: Parses sudo command execution log entries.
  • systemd journal: Parses systemd journal binary log files.

Frequently asked

Does auditd log commands by default?

Only if execve rules are loaded. Check /etc/audit/rules.d/ on the host.

What is auid in auditd?

The audit user ID: the account that originally logged in. It stays the same after su or sudo.

Does Arcsentry parse Linux auditd?

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

How do I collect Linux auditd?

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 Linux auditd 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