Join our Newsletter — 33% off our NHI Course
Home› Glossary› Cyber Security› Executable and Linkable Format (ELF)
Cyber Security

Executable and Linkable Format (ELF)

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

Executable and Linkable Format is the standard binary file format used by Unix-like systems to store programs, shared libraries, and core dumps. It structures code, data, and linking information so the loader and linker can map, load, and run software efficiently while supporting symbols, sections, and dynamic dependencies.

What ELF Contains and Why That Structure Matters

ELF is more than a container for executable code. It organises text, data, symbols, relocation entries, and dynamic linking metadata so a loader can map the right parts of a binary into memory and resolve dependencies at run time.

That structure is why ELF remains central to Unix-like operating systems. It supports not only standalone programs, but also shared libraries and crash dumps, which makes it a core part of how software is started, linked, inspected, and recovered.

How the Loader and Linker Use ELF

At build time, a linker uses ELF metadata to combine object files, record symbol information, and describe how references should be fixed up. At run time, the loader reads program headers to determine what to map, where to map it, and what shared objects must be brought in.

This separation is important because ELF lets the same binary format serve both compile-time and execution-time needs. It also explains why ELF bugs or tampering can affect launch behaviour, library resolution, and memory layout rather than just file parsing.

ELF Sections, Segments, and Symbols

ELF distinguishes between sections, which are mainly useful to linkers and toolchains, and segments, which are what the operating system loader actually uses. That distinction lets a single file carry rich build metadata without forcing the runtime to consume everything in the same way.

Symbols and relocation records are the glue that makes dynamic linking work. They tell the system which names exist, where code or data lives, and how references should be adjusted when libraries are loaded at different addresses.

Security Implications of ELF Files

ELF files are security-relevant because they influence what code runs, which libraries are loaded, and how execution is transferred. A corrupted, replaced, or malicious ELF binary can become an entry point for code execution, persistence, or library hijacking if trusted paths and integrity checks are weak.

Security teams also care about ELF because defenders often inspect binaries during incident response, malware analysis, and crash investigation. Core dumps and stripped binaries can still reveal sensitive state, so they should be treated as controlled artifacts rather than routine files.

Risk and Threat Considerations

ELF format risk usually arises when attackers can substitute a binary, influence library search paths, or abuse loader behaviour to execute untrusted code. The same format that enables modular software loading can also expose an organisation to binary replacement, dependency confusion inside local execution contexts, and analysis gaps if build provenance is not checked.

Failure mechanism: A hostile or altered ELF file is accepted as legitimate, then the loader resolves its dependencies and starts attacker-controlled code or attacker-chosen libraries.

Impact: The result can be arbitrary code execution, stealthy persistence, or silent compromise of the host process and any secrets it can reach.

Standards & Framework Alignment

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

MITRE ATT&CK addresses the attack surface, NIST SP 800-53 Rev 5 sets the technical controls, and ISO/IEC 27001:2022 defines the regulatory obligations.

FrameworkControl / ReferenceRelevance
ISO/IEC 27001:2022A.8.24 — Use of CryptographyProtects binary integrity and trusted execution state for software artifacts.
Recommendation — Verify ELF integrity with signed or controlled software distribution and runtime validation.
NIST SP 800-53 Rev 5SI-7 — Software, Firmware, and Information IntegrityCovers integrity checks that help prevent malicious ELF replacement or tampering.
CM-5 — Access Restrictions for ChangeRestricts who can modify executable binaries, shared objects, and loader-relevant paths.
Recommendation — Apply integrity verification to executable files before deployment and execution. Limit write access to executable and library locations to authorised administrators only.
MITRE ATT&CKT1055 — Process InjectionELF-based binaries can be used in execution chains that support code injection and abuse of process trust.
T1574 — Hijack Execution FlowELF loader and library resolution issues can enable execution-flow hijacking via trusted paths.
Recommendation — Map suspicious ELF execution paths to process-abuse techniques and hunt for injection indicators. Investigate library-path and binary-path manipulation as potential execution-flow hijacking.

Practitioner Guidance

Why practitioners should care: Treat ELF integrity as part of software trust, not just file handling. In practice, the question is whether the binary you are about to execute is the binary you intended to run, and whether its dependency chain is equally trustworthy. ISO/IEC 27001:2022 Information Security Management is a useful governance reference when you need to connect software integrity, access control, and operational accountability.

What to watch for: Unexpected shared-object loading, unusual interpreter paths, modified permissions, or binaries appearing in writable locations are all signals that ELF execution may have been manipulated. When a compromise is suspected, preserve the file, inspect its headers and imported libraries, and review adjacent process activity before the evidence is overwritten.

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 24, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org