IT Forensics · Linux
Forensic analysis of /etc/passwd and /etc/shadow – Examining central account databases in detail
The /etc/passwd file contains basic account information such as username, UID, GID, home directory and default shell, whilst /etc/shadow stores the actual hashed password information, as well as expiry and change dates, separately and with stronger protection.
For forensic analysis, it is particularly important to determine whether and when entries have been altered retrospectively, for example by adding an account with UID 0 or by changing a password hash without any apparent valid reason.
Why LanCologne?
Since its foundation, LanCologne has specialised in professional IT forensics. Our staff have decades of experience in the field of information technology and assist companies, solicitors, private individuals and, on a regular basis, the courts in the technical investigation of complex digital matters.
The examination is, as a matter of principle, carried out exclusively on a forensic copy, a forensic image or a data source captured in a technically equivalent manner that preserves the integrity of the evidence. The original evidence remains unchanged and is stored in a manner that preserves its integrity.
Our services
We systematically analyse /etc/passwd and /etc/shadow for unusual accounts, particularly those with UID 0 or unexpected shell assignments, and evaluate any available timestamp information relating to the change history.
Typical areas of application
This is how an analysis of /etc/passwd and /etc/shadow is carried out
Once backed up, both files are analysed systematically and checked for accounts with UID 0, unexpected shell assignments or atypical home directories. Available timestamps and file system metadata are used to narrow down the times at which individual entries were modified.
Why is this analysis relevant from a forensic perspective?
An additional account with UID 0 has the same privileges as the standard root user and therefore represents one of the most critical potential persistence mechanisms in the event of a system compromise.
As these files contain key security information, they are always analysed with particular care and cross-referenced against other log sources.
Frequently Asked Questions
LanCologne – Linux Forensics Cologne
Do you require a professional forensic investigation into „forensic analysis of /etc/passwd and /etc/shadow"? LanCologne can assist you with the legally admissible preservation of digital evidence and the transparent analysis of relevant Linux artefacts.
Related to this topic
- Forensic analysis of sudo logs – understanding privilege escalation in detail
- Forensic analysis of SSH authentication protocols – reconstructing remote access sessions in a traceable manner
- Forensic analysis of SSH known hosts and keys – reconstructing trust relationships between systems
- Forensic analysis of the Bash history – the command-line history as a key forensic source