Course contentsShow
← Security
Lesson 2125 of 3,05242. Penetration Testing and Red TeamingFree lesson

Data Discovery and Staging

Locating sensitive data, shares, databases, and credentials; staging data for exfiltration while avoiding detection.

Data Discovery and Staging

What you'll learn: How attackers locate and prepare sensitive data for theft without triggering alerts during post-exploitation operations.

The Core Concept

Once an attacker has gained access to a system (using techniques you've already learned like credential dumping or Kerberoasting), the next objective is often data exfiltration. But you can't steal what you can't find. Data discovery and staging is the methodical process of locating valuable information—credentials, customer databases, intellectual property, financial records—and preparing it for removal while staying under the radar.

Think of it like a burglar casing a mansion: they don't just grab random items. They identify the jewelry, cash, and valuables, then quietly move everything to the back door before loading the getaway car. Moving too fast or making noise triggers the alarm.

How It Works

Discovery involves systematically searching for:

  • File shares (looking for names like "finance," "passwords," "confidential")
  • Databases (SQL servers, MongoDB instances, cloud storage buckets)
  • Local files (searching for .xlsx, .pdf, .doc, .key, .pem extensions)
  • Credentials stored in config files, scripts, or environment variables
  • Email archives and document repositories

Staging means organizing discovered data:

  • Compressing files to reduce size and transfer time
  • Moving data to a central, less-monitored location on the network
  • Encrypting or obfuscating the staged data to avoid detection by DLP (Data Loss Prevention) systems
  • Splitting large datasets into smaller chunks
  • Timing operations during high-activity periods when anomalies blend in

The key challenge is avoiding detection—limiting search queries, avoiding high-privilege actions that trigger logs, and minimizing network traffic spikes.

Key Takeaway: Data discovery and staging is about methodically locating sensitive information and preparing it for exfiltration while maintaining operational security and evading monitoring systems.