auth.log
The Linux log file that records logins, SSH sessions, sudo use and other authentication events.
In more detail
On Debian and Ubuntu it is /var/log/auth.log; on Red Hat systems it is /var/log/secure. The SSH daemon writes lines such as "Failed password for jsmith from 198.51.100.23". Its classic syslog timestamps carry no year and no time zone, so convert them carefully.
Examples
Sep 27 09:13:05 web01 sshd[4133]: Accepted publickey for alice from 203.0.113.7 port 51022 ssh2Sep 27 09:15:10 web01 sudo: bob : user NOT in sudoers ; TTY=pts/1 ; PWD=/home/bob ; USER=root ; COMMAND=/usr/bin/cat /etc/shadowRelated terms
- sshd — The OpenSSH server program that accepts SSH connections and logs every login attempt.
- sudo — A command that runs another command with administrator (root) rights after checking you are allowed to.
- IAAA — The four steps of every access decision: identification, authentication, authorisation and accountability.
- syslog — The standard way that programs on Unix-like systems send log messages, and the service that collects, stores and forwards them.
- syslog facility — The part of a syslog priority that says which kind of program sent the message, such as kern for the kernel or auth for logins.
- /var/log — The directory on Linux where system services write their log files.
Taught in
- CIA Triad, Non-Repudiation & Parkerian Hexad — Cybersecurity Fundamentals, GRC & Cryptography
- Defense-in-Depth & Security Control Categories — Cybersecurity Fundamentals, GRC & Cryptography
- SIEM Architecture: Ingestion Pipelines & Indexing — Security Operations & Threat Hunting (SOC)
- Event Correlation Rules, Thresholds & Anomaly Pipelines — Security Operations & Threat Hunting (SOC)
- Log Parsing, Schema Normalization (OCSF/ECS) & Extraction — Security Operations & Threat Hunting (SOC)
- Adversary Tactics, Techniques & Procedures (TTP) Mapping — Security Operations & Threat Hunting (SOC)
- Incident Triage, Severity Scoping & Communication — Security Operations & Threat Hunting (SOC)
- Post-Incident Review & Root Cause Analysis — Security Operations & Threat Hunting (SOC)