Linux Forensics
Linux Forensics
OS and account information:
in windows every thing is saved in requesters here in Linux ever thing is save on file .
- OS info: can be found at ****
/etc/os-release - User accounts: can be found at ****
/etc/passwdpassword is saved at/etc/shadow - Group Information: can be found at ****
/etc/group - Sudoers List: can be found at ****
/etc/sudoers - Login information: can be found at ****
/var/log/btmp or wtmpbtmp for failed logins, wtmp keeps historical data of logins. uselastcommand - Authentication logs: can be found at ****
/var/log/auth.logyou can usetail ,head ,more
System Configuration:
- Hostname: found at ****
/etc/hostname - Timezone: found at ****
/etc/timezone - Network Configuration: found at ****
/etc/network/interfacesmight need to usip - Active network connections: use the
netstatcommand - Running processes: use the
pscommand - DNS information: found at ****
/etc/hostsand/etc/resolv.conffor the Linux host
Persistence mechanisms:
ways a program can survive after a system reboot. This helps malware authors retain their access to a system even if the system is rebooted.
- Cron jobs: found at ****
/etc/crontab - Service startup: os startup services found at
/etc/init.d - .Bashrc: When a bash shell is spawned, it runs the commands stored in the
.bashrcfile. - System-wide settings: stored in
/etc/bash.bashrcand/etc/profile
Evidence of Execution:
is to know if a program did run on this computer or not
- Sudo execution history: All the commands that ran using
sudoare stored in/var/log/auth.log - Bash history: any non sudo commands is stored away form the user home folder , in**
.bash_history** - Files accessed using vim: found in ****
.viminfo
Log files:
maintain a history of activity performed on the host and the amount of logging depends on the logging level defined on the system. found at/var/log
- Syslog: messages that are recorded by the host about system activity. found at
/var/log/syslog - Auth logs: information about users and authentication-related logs. found at
/var/log/auth.log - Third-party logs: logs for apps like webserver, database, or file share server logs.found at
/var/log