Linux Forensics Logs
Investigating Linux logs can help you to find the threat and incident response as well therefore Here are the main logs for Linux
1. System Logs
/var/log/syslog (Debian-based systems): Logs system messages and information about startup services.
/var/log/messages (Red Hat-based systems): General-purpose system log containing kernel and application messages.
/var/log/dmesg: Kernel ring buffer messages, useful for identifying hardware and driver issues.2. Authentication and Access Logs
/var/log/auth.log (Debian-based systems): Logs all authentication activities such as logins, SSH, sudo, and PAM events.
/var/log/secure (Red Hat-based systems): Equivalent to auth.log, logs authentication and security events.
/var/log/faillog: Records failed login attempts.
/var/log/lastlog: Tracks the last login of each user.
/var/log/wtmp and /var/log/btmp: Binary files tracking login sessions (wtmp) and failed logins (btmp). Use last and lastb commands to read them3. Process and Task Monitoring
/var/log/cron: Logs cron job execution.
/var/log/atop: Advanced system and process resource monitoring logs.
/proc/: Dynamic runtime system information, including process details (e.g., /proc/<PID>).4. Network Logs
5. Application and Service Logs
6. User Activity Monitoring
7. File Integrity and Change Monitoring
8. System and Package Updates
9. Boot and Initialization Logs
10. Miscellaneous Logs
11. Cron Jobs and Task Scheduling
12. Mail and Communication
13. Cloud and Remote Management Logs
14. User credentials
15. Security Policies and Controls
16. Investigate Time Adjustments
17. Database Logs - tracks database activities, errors, and slow querie
Last updated