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

Delegate

← Back to Glossary
By NHI Mgmt Group Updated November 4, 2026 Domain: Cyber Security

An external helper or command that an image-processing engine invokes to handle a format or transformation it does not process directly. Delegates are useful for compatibility, but they are also a common command-injection boundary. If they are reachable from public uploads, they must be tightly restricted or disabled.

What a delegate is in an image-processing pipeline

A delegate is an external helper or command that an image-processing engine calls when it cannot natively handle a format, transform, or codec. That design improves compatibility and extensibility, but it also moves execution outside the core parser, which makes the boundary operationally important and security-sensitive.

In practice, delegates are often used for file conversion, resizing, vector-to-raster rendering, or format translation. Because the engine is handing data to another executable or subsystem, the delegate becomes part of the trust boundary rather than a mere implementation detail.

Why delegates are useful

Delegates let a single engine support many file types without bundling every decoder or transformer into the main process. That keeps the core application smaller and makes it easier to add or replace capabilities as formats evolve.

They are especially valuable when a pipeline must process legacy, uncommon, or compound formats. The trade-off is that compatibility now depends on the correctness, availability, and configuration of the external command or helper that performs the delegated work.

Where delegate boundaries can fail

The delegate boundary is dangerous because the engine often passes attacker-controlled content, file names, or transformation parameters into an external command. If the boundary is not tightly constrained, a crafted upload can shift from harmless media content to command execution or unsafe subprocess behaviour.

Failure mechanism: the engine trusts a delegate to interpret input safely, but the delegate invocation includes shell metacharacters, unsafe arguments, permissive environment variables, or unexpected file paths. That can turn a format conversion path into command injection, arbitrary file access, or execution of a tool with higher privilege than intended.

Impact: public upload workflows can become remote code execution paths, data exposure points, or denial-of-service vectors. A compromised delegate can also be used to reach other files, invoke unexpected binaries, or persist changes that survive the original upload operation.

How to manage delegate use safely

Delegate use should be treated as a privileged integration point, not just a convenience feature. The safest default is to minimise the number of supported delegates, disable unused converters, and ensure the engine never expands untrusted input into a shell command.

When delegates must remain enabled, keep them isolated from sensitive files and credentials, apply strict allowlists for formats and parameters, and run the helper with the least privilege needed for the task. If the helper is reachable from public uploads, the configuration should assume hostile input and constrain what the delegate can touch, invoke, or inherit from the environment.

Where possible, prefer explicit argument passing over shell invocation, and validate that the delegate path, working directory, and temporary file handling are deterministic. A delegate is only as safe as the boundary that calls it.

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 and risk surface, while CIS Controls v8, NIST SP 800-53 Rev 5 and OWASP ASVS set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
CIS Controls v8CIS-2 — Inventory and Control of Software AssetsDelegates are external executables that must be known and governed.
CIS-10 — Malware DefensesUnsafe delegates can execute hostile payloads delivered through uploads.
Recommendation — Inventory delegate binaries and disable any unused conversion helpers. Scan and restrict file-driven delegate execution paths used by upload handling.
NIST SP 800-53 Rev 5SI-10 — Information Input ValidationDelegate calls depend on safely handling untrusted input before execution.
AC-6 — Least PrivilegeDelegates should run with the minimum privilege required for conversion.
Recommendation — Validate and constrain all data passed into delegate commands. Run delegate helpers with the least privilege needed to process uploads.
OWASP ASVSV13 — ConfigurationSafe delegate use depends on secure configuration of external command execution.
V15 — Secure Coding and ArchitectureDelegate boundaries are an application architecture concern with security implications.
Recommendation — Harden delegate configuration so untrusted input cannot alter command behaviour. Design delegate invocation to avoid shell expansion and unsafe parameter passing.
MITRE ATT&CKT1202 — Indirect Command ExecutionDelegates can become a command-execution boundary abused through crafted input.
Recommendation — Hunt for indirect command execution in image-processing and conversion workflows.

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