CompTIA CySA+ (CS0-002) — Question 274

An organization is experiencing security incidents in which a systems administrator is creating unauthorized user accounts. A security analyst has created a script to snapshot the system configuration each day. Following is one of the scripts: cat /etc/passwd > daily_$(date +"%m_%d_%Y")
This script has been running successfully every day. Which of the following commands would provide the analyst with additional useful information relevant to the above script?

Answer options

Correct answer: B

Explanation

Option B is correct because it captures the currently running processes related to the 'admin' user, providing real-time insights into unauthorized activities. The other options either compare past snapshots (A), display the contents of the passwd file with a timestamp (C), or list applications in a directory (D), which do not directly relate to monitoring unauthorized account creation.