CyberKit

/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.

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

Sources