Join our Newsletter — 33% off our NHI Course

Scavenging

Scavenging is the unauthorized search for useful data, secrets, or access left behind in systems, logs, memory, storage, or network traffic. In identity and security work, it targets exposed credentials, tokens, certificates, cached sessions, and configuration details that can enable account takeover, lateral movement, or unauthorized tool access.

What Scavenging Means in Security Operations

Scavenging is the practice of looking through residual system material for anything useful an organisation forgot to remove. In security terms, it often means searching logs, memory, caches, disk images, packet captures, temp files, crash dumps, and old backups for credentials, tokens, certificates, session material, or configuration data.

What makes scavenging dangerous is that the target data is often ordinary operational residue, not an obvious secret store. A single exposed API key, bearer token, SSH private key, or session cookie can create an immediate path from passive observation to active misuse.

Where Scavenging Finds Value

Scavenging succeeds when sensitive material is left in places that were meant to be transient, diagnostic, or internal. Common targets include verbose application logs, browser or agent caches, memory dumps, exported traces, shared storage, and network captures that reveal plaintext secrets or reusable access artifacts.

The practice is especially effective when systems mix debugging convenience with weak retention hygiene. A token that should have expired, a certificate chain copied into a ticket, or a service credential written to a log can survive long enough for an attacker or insider to recover it and use it later.

Why Scavenging Matters for Identity and Access

Scavenged material often maps directly to identity and access control, because the thing being recovered is not just data, but authority. Credentials, signed sessions, API keys, and certificates can authenticate a user or workload, while configuration details can expose where to go next, how to bypass controls, or how to reach privileged systems.

That is why scavenging is closely associated with account takeover, lateral movement, and unauthorized tool access. Once an attacker finds reusable authentication material, the environment may treat the reuse as legitimate unless the organisation has strong binding, rotation, revocation, and monitoring around those secrets.

How Organisations Reduce Scavenging Exposure

Reduce the amount of recoverable residue by limiting what gets written to logs, dumps, caches, and traces, and by controlling how long sensitive operational data is retained. Treat secret handling as part of secure engineering, not just vault management, because scavenging usually exploits the gaps between applications, infrastructure, and support workflows.

Use least privilege for who can read telemetry, storage snapshots, and diagnostic exports, and review whether backup sets, support bundles, and observability tooling expose more than they need to. The same logic applies to machines and services: if an artefact can be used to authenticate later, it should be rotated, invalidated, or removed as soon as it is no longer required.

For broader control alignment, see NIST SP 800-53 Rev 5 Security and Privacy Controls for logging, access control, audit, and configuration management, and NIST Cybersecurity Framework 2.0 for governance, protection, detection, and recovery practices that help limit residual exposure.

Risk and Threat Considerations

Scavenging is risky because the material left behind is often enough to bypass normal authentication or operational safeguards. Attackers do not need to break a password vault if a token, cookie, or certificate is still recoverable in a log file, memory dump, or support archive.

Failure mechanism: Sensitive artefacts persist beyond their intended lifetime or are exposed in places with broader read access than the original system, allowing discovery and reuse.

Impact: The result can be unauthorized access, privilege escalation, session replay, lateral movement, or silent access to internal tools and APIs.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST SP 800-53 Rev 5 sets the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
NIST SP 800-53 Rev 5 AU-9 — Protection of Audit Information Scavenging often targets logs and telemetry that can expose secrets or access paths.
IA-5 — Authenticator Management Recovered credentials, tokens, and keys are authenticators that must be controlled and rotated.
AC-6 — Least Privilege Scavenged artefacts become more dangerous when broad read access exposes logs, dumps, or archives.
Recommendation — Protect audit records from unauthorized access and strip sensitive material from logging outputs. Manage authenticator lifecycle tightly and revoke any secret that may have been exposed. Restrict access to diagnostics, backups, and telemetry to the minimum required set.
OWASP Non-Human Identity Top 10 NHI-02 — Secret Leakage Scavenging directly exploits leaked secrets left in logs, caches, dumps, or storage.
NHI-07 — Long-Lived Secrets Residual artefacts become exploitable when credentials and tokens remain valid too long.
Recommendation — Remove secret material from operational artefacts and treat exposure as compromise. Shorten secret lifetimes and rotate any credential that could be recovered from residue.
MITRE ATT&CK T1552 — Unsecured Credentials Scavenging is a common way attackers find credentials stored or exposed insecurely.
T1003 — OS Credential Dumping Memory dumps and similar artefacts are frequent scavenging targets for reusable credentials.
Recommendation — Search for exposed credentials in logs, memory, backups, and shared storage. Hunt for dumping activity and protect memory-derived artefacts that may contain credentials.

Practitioner Guidance

What to watch for: Repeated secret-like strings in logs, unusually rich debug output, support bundles that include auth material, and storage locations that collect dumps or traces without strict access controls. These are common indicators that scavenging opportunities exist.

Practitioner note: The hardest part is often not detection, but cleanup, because reused secrets can survive in backups, replicas, and long-retention telemetry. When scavenging is suspected or confirmed, treat the recovered material as compromised and review whether related sessions, keys, tokens, and service credentials need rotation or revocation.

Reference controls and threat models that are especially relevant include OWASP Non-Human Identity Top 10 for secret leakage, overprivilege, and long-lived secrets, and MITRE ATT&CK Enterprise Matrix for credential access and lateral movement patterns that commonly follow successful scavenging.