Module 10 - Incident Response with Linux - LFCP
Module 10 - Incident Response with Linux - LFCP
Module 10
1
3/3/2024
User accounts:
Directory: /etc/passwd
Command to be used:
The below command uses ‘cat’ to go into the /etc/passwd and exports
the results to a ‘users.txt’ file.
cat /etc/passwd
Modifications to passwords
• Directory: /etc/shadow
• Command used:
• cat /etc/shadow
• Command used:
• cat /etc/group
2
3/3/2024
• Command used:
• cat /etc/sudoers
• ps aux
• ps -u username
3
3/3/2024
• pstree
• ps -p PID
4
3/3/2024
General Logs:
• Directory:/var/log/messages
• Command used :
• cat /var/log/messages
Authentication logs
• Directory:/var/log/auth.log
• Command used:
• cat /var/log/auth.log
5
3/3/2024
Kernel logs
• Directory: /var/log/kern.log
• Command used :
• cat /var/log/kern.log
• Command used :
• cat /var/log/cron.log
• Command used:
• cat /var/log/apache2/access.log
• cat /var/log/apache2/error.log
• cat /var/log/apache2/other_vhosts_access.log
6
3/3/2024
• Command used:
• cat /var/log/boot.log
Syslog
• Directory: /var/log/syslog
• Command used:
• cat /var/log/syslog
7
3/3/2024
8
3/3/2024
Login information:
9
3/3/2024
• history
• last -awx
• logname
10
3/3/2024
List of services
• service --status-all
11
3/3/2024
Network Artifacts:
• lsof –i
• arp –a
12
3/3/2024
13
3/3/2024
• iptables --list-rules
14
3/3/2024
15
3/3/2024
CRON Jobs :
• crontab -l
• Command used:
• crontab -l -u root
16
3/3/2024
• Command used:
• cat /etc/crontab
• Command used:
• cat /proc/mounts
• Check for any config changes or new config files have been added in
this directory.
• cat /etc/ssh/sshconfig
• cat /etc/ssh/sshconfig.d
17