During an incident response, a technician needs to preserve volatile evidence from a compromised Linux server before shutting it down. Which of the following should the technician capture first?
Trap 1: Contents of /var/log/auth.log
While /var/log/auth.log contains authentication events and can be useful, it is stored on disk and is not as volatile as memory-resident data. It should be collected, but not before more volatile artifacts like running processes and network connections, which would be lost on shutdown.
Trap 2: Output of the ps aux command
The ps aux command lists running processes and is valuable, but it is only one piece of volatile data. Before capturing process lists, the technician should first capture network connections, as they can change rapidly and are more ephemeral. Process lists are less volatile than network state.
Trap 3: A memory dump using LiME
A memory dump is extremely valuable and captures all volatile data, but it requires loading a kernel module and can take time. In a live response, the order of volatility dictates capturing the most ephemeral data first, such as network connections, before initiating a full memory dump, which may alter system state.
- A
Output of the netstat -antp command
Network connections are highly volatile and can disappear quickly if the attacker closes them or the system is shut down. Capturing netstat -antp output provides a snapshot of active connections and associated processes, which is critical for understanding command-and-control channels and lateral movement before any other action.
- B
Contents of /var/log/auth.log
Why it fails: While /var/log/auth.log contains authentication events and can be useful, it is stored on disk and is not as volatile as memory-resident data. It should be collected, but not before more volatile artifacts like running processes and network connections, which would be lost on shutdown.
- C
Output of the ps aux command
Why it fails: The ps aux command lists running processes and is valuable, but it is only one piece of volatile data. Before capturing process lists, the technician should first capture network connections, as they can change rapidly and are more ephemeral. Process lists are less volatile than network state.
- D
A memory dump using LiME
Why it fails: A memory dump is extremely valuable and captures all volatile data, but it requires loading a kernel module and can take time. In a live response, the order of volatility dictates capturing the most ephemeral data first, such as network connections, before initiating a full memory dump, which may alter system state.