Join our Newsletter — 33% off our NHI Course
Home› Glossary› Cyber Security› Core Dump
Cyber Security

Core Dump

← Back to Glossary
By NHI Mgmt Group Updated October 18, 2026 Domain: Cyber Security

Core Dump is a snapshot of a process memory state written when a program crashes. It can help diagnose faults, but it may also contain secrets such as tokens, keys, passwords, or personal data. Defenders should control who can read core files, limit collection, and treat them as sensitive artefacts.

What Core Dumps Are Used For

A core dump captures the state of a process at the moment it crashes, which makes it valuable for debugging memory corruption, logic faults, and unexpected termination. It is a forensic artefact as much as an engineering aid, because it preserves whatever was resident in memory at that instant.

The main value of a core dump is post-incident diagnosis. Engineers can inspect stack traces, loaded modules, variables, and runtime state to understand why a program failed. That same usefulness is also what makes core dumps sensitive: they may contain raw process memory, including authentication material, session data, API keys, or user content.

Why Core Dumps Create Security Exposure

Core dumps often preserve more than the immediate crash context. If a process handled secrets, decrypted data, or privileged session material before it failed, that information can be written to disk and exposed to anyone who can read the file or the directory where it is stored.

In practice, the risk is less about the crash itself and more about uncontrolled persistence. A core file can outlive the process, be copied to diagnostic systems, or remain accessible on shared hosts long after the original incident. On Linux systems, hardening the host can help reduce that exposure, and Linux Server Hardening Guide is useful background for the broader platform controls that influence file handling and system visibility.

Because the contents are process-specific, the security impact depends on what the crashed workload was doing. A simple utility may leak little, while a service that handled tokens, passwords, certificates, or personal data may create a high-value disclosure event.

How Organisations Should Treat Core Dumps

Core dumps should be treated as sensitive operational artefacts, not ordinary log files. The right handling model is to limit who can create them, who can read them, where they are stored, and how long they remain available for analysis.

That usually means keeping collection intentional, using restrictive permissions, and placing strong controls around the directories or transfer paths used for debugging. If crash data must be retained, it should be collected only for a defined purpose and removed when that purpose ends.

From a governance perspective, teams should know which applications may emit core files, which environments allow them, and whether those files are centralised on hosts or shipped elsewhere for analysis. The key point is that crash artefacts are part of the data-handling surface, not a separate technical afterthought.

Debugging Value Versus Data Protection

Core dumps exist because engineers need a faithful snapshot of failure state. Removing them entirely can make some classes of defects much harder to diagnose, especially memory-safety issues and intermittent crashes that do not reproduce cleanly.

The trade-off is that the same fidelity that helps debugging can expose whatever happened to be in memory at the moment of failure. For that reason, organisations should decide in advance which systems are allowed to produce dumps, who is authorised to inspect them, and whether sanitisation or redaction is required before broader sharing.

When a dump contains secrets, the sensitivity is often higher than teams expect because those secrets may reflect live access paths rather than static configuration. A crash can therefore turn an ordinary application error into a disclosure event if the artefact is handled casually.

What To Do After A Dump Is Collected

After a core dump is created, the immediate question is whether the crashed process may have exposed credentials, session material, or personal data. If yes, the dump should be treated as part of the incident evidence set, and access to it should be narrowed until the investigation is complete.

Practitioners should also review the crash context to determine whether the failure could have been triggered by corruption, exploitation, or malformed input. In some cases the dump is only a debugging aid; in others it is evidence that sensitive in-memory state may already have been compromised.

Where the process handled secrets, the safer assumption is that anything present in memory at crash time may need review for rotation or invalidation. That is especially important when the application used long-lived tokens, cached credentials, or decrypted material that would still be valid after the crash.

Standards & Framework Alignment

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

NIST SP 800-53 Rev 5 sets the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.

FrameworkControl / ReferenceRelevance
ISO/IEC 27001:2022A.8.12 — Data leakage preventionCore dumps may expose sensitive data at rest and during transfer.
A.8.13 — Information backupCrash dumps are stored artefacts that need controlled retention and recovery handling.
Recommendation — Restrict, protect, and monitor crash artefacts so sensitive data does not leak from memory snapshots. Apply retention and access rules to crash artefacts so they are stored only as long as needed.
NIST SP 800-53 Rev 5AU-9 — Protection of Audit InformationCore dumps can contain sensitive evidence that requires integrity and access protection.
MP-4 — Media StorageCore dumps are sensitive stored media that need controlled handling and location.
SC-28 — Protection of Information at RestCore dumps persist sensitive memory content on disk and require at-rest protection.
Recommendation — Protect crash artefacts against unauthorized access, modification, and destruction. Store core dumps in controlled locations with restricted access and disposal rules. Encrypt or otherwise protect stored crash dumps that may contain secrets or personal data.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 18, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org