auth.log / secure
Also called /var/log/auth.log, /var/log/secure.
Linux authentication log recording logins, sudo use, SSH activity, and PAM events.
What it is
The system log that captures authentication and authorization events on Linux: successful and failed logins, su/sudo invocations, SSH session start and key acceptance, and PAM module messages. Debian-family systems write /var/log/auth.log; RHEL-family systems use /var/log/secure.
Where it lives
/var/log/auth.log (Debian/Ubuntu) or /var/log/secure (RHEL/CentOS), which requires rsyslog; absent on journald-only systems (e.g. Fedora, Debian 12+ minimal)
Why it matters
It is the first place to scope account compromise: brute-force bursts, anomalous source IPs, off-hours sudo, and new SSH key acceptances all surface here. Correlating it with wtmp/btmp and the systemd journal builds an authoritative login timeline.
In practice
Repeated 'Failed password' lines from one IP, then a single 'Accepted publickey', pinpointed the moment a weak SSH account fell over.
What to look for
- Accepted and failed SSH logins with source IPs.
- sudo commands, especially to shells or editors.
- New users or groups added through useradd or usermod.
Common mistake
Reading it on the compromised host only. Ship it off the box so an intruder cannot edit the only copy.
Use it in CyberKit
In the field
Well-known tools where this shows up on the job. They are listed to show the landscape, not as a recommendation.
-
osquery Open source
Exposes Linux and macOS system state as SQL tables you can query.
-
Velociraptor Open source
Collects Linux artifacts such as logs, cron and shell history at scale. Our notes.
-
Falco Open source
Watches system calls at runtime and alerts on suspicious behavior.
-
Wazuh Open source
Collects Linux logs and checks file integrity on each host.
Read next
- wtmp / btmp / lastlog: Binary Unix login-accounting databases behind the last, lastb, and lastlog commands.
- systemd Journal: Structured, indexed binary log managed by systemd-journald on modern Linux.
- sudoers Configuration: Policy file granting privileged command execution; a prime privilege-escalation target.