High-Value Data Identification on Linux
Before transferring anything, identify what is worth taking. Blind recursive copies are noisy, slow, and leave obvious traces. A targeted sweep for credential material, keys, source code, database dumps, and backups gets you the highest-value data with the smallest footprint.
Credential Files
Grep across found files for credential patterns:
The -l flag returns filenames only — faster and less noisy than printing every match.
Private Keys and Certificates
Check for readable private keys immediately — permissions matter:
Any world-readable private key is immediately useful. Keys in /etc/ssl/, /etc/apache2/, /etc/nginx/, and application cert directories are common finds.
Database Files and Dumps
SQLite databases for web applications, local password managers, and development environments are frequently found in home directories and application paths.
Source Code and Configuration Repositories
Git repositories contain full commit history — credentials removed in a later commit are still recoverable from earlier ones. The entire .git directory is worth exfiltrating, not just the working tree.
Backup Archives
Backup files in /var/backups/, /tmp/, and home directories frequently contain copies of configuration files, shadow files, and database dumps from earlier system states.
Cloud Credential Files
Cloud credentials are among the highest-value findings on any Linux host. AWS keys in particular often have broad permissions attached.
Browser and Application Credential Stores
Chrome and Chromium store credentials in ~/.config/google-chrome/Default/Login Data (SQLite). Firefox uses key4.db and logins.json in the profile directory.
Sizing Before Transfer
Before exfiltrating, check the size of what you intend to take:
Large transfers are noisy. Prioritize credential material and keys — these are small and high value — before considering source code or database dumps.
References
-
carlospolop/PEASS-nggithub.com/carlospolop/PEASS-ng (opens in new tab)
GitHub LinPEAS performs automated high-value file discovery as part of its privilege escalation and post-exploitation sweep.
Was this helpful?
Your feedback helps improve this page.