/etc/passwd and /etc/shadow
Also called shadow file, account database.
Unix account and password-hash files; a focus for backdoor accounts and cracking.
What it is
/etc/passwd lists user accounts with UID, GID, home directory, and login shell, while /etc/shadow stores the hashed passwords and aging fields, readable only by root. Together they define who can log in and how credentials are verified.
Where it lives
/etc/passwd and /etc/shadow
Why it matters
Investigators inspect them for backdoor accounts (especially extra UID 0 entries), service accounts given an interactive shell, or recently changed hashes. The shadow hashes are also what an attacker targets for offline cracking once they obtain a copy.
In practice
A second account with UID 0 and a recently modified shadow entry revealed a root-equivalent backdoor hidden among legitimate service users.
What to look for
- New accounts with UID 0.
- Accounts with shells that should have nologin.
- Password hashes changed outside normal admin activity.
Common mistake
Only looking for new names. A second UID 0 account or a changed shell can hide in plain sight.
Practice it nearby
CyberKit has no tool for this term itself. These are the closest places to practice it.
- Linux Persistence Reader
Read a crontab line, a systemd unit or an auditd record, and see what runs, when, and as whom.
- Linux Case
A server making outbound connections nobody can explain: read its audit log, journal and scheduled jobs, and say who did what.
In the field
Well-known tools where this shows up on the job. They are listed to show the landscape, not as a recommendation.
-
osquery Open source
Exposes Linux and macOS system state as SQL tables you can query.
-
Velociraptor Open source
Collects Linux artifacts such as logs, cron and shell history at scale. Our notes.
-
Falco Open source
Watches system calls at runtime and alerts on suspicious behavior.
-
Wazuh Open source
Collects Linux logs and checks file integrity on each host.
Read next
- sudoers Configuration: Policy file granting privileged command execution; a prime privilege-escalation target.
- SUID / SGID Binaries: Executables that run with the file owner's or group's privileges regardless of caller.
- Credential Store / Keychain: OS-managed encrypted vaults holding passwords, keys, and certificates.