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

Delegate

← Back to Glossary
By NHI Mgmt Group Updated August 26, 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.

Expanded Definition

In image-processing and content-handling environments, a delegate is an external command or helper process that the primary engine calls when it needs to open, transform, or render a format it does not handle natively. The concept is operational rather than purely architectural: the engine passes work to a separate executable, which expands compatibility but also expands attack surface.

For security teams, the key issue is that a delegate can become a trust boundary. If the calling application accepts untrusted files, a malformed input may steer execution into a shell, a script, or another helper with broader system rights than the original process intended. Guidance varies across vendors, but the security principle is consistent: treat delegates as execution pathways, not just format handlers. The NIST Cybersecurity Framework 2.0 is useful here because it frames the need to manage secure configuration, access, and resilience around exposed processing paths.

The most common misapplication is leaving delegates enabled in public upload workflows, which occurs when teams assume a file conversion helper is harmless because it is “just” a backend utility.

Examples and Use Cases

Implementing delegates rigorously often introduces compatibility and operational overhead, requiring organisations to weigh broader file support against tighter execution controls.

  • A document service invokes a delegate to rasterize a legacy image format before indexing it, but the helper must run with a restricted account and no shell expansion.
  • An upload pipeline forwards unsupported formats to an external converter, and the team disables that delegate for anonymous users after reviewing command-injection exposure.
  • A media platform uses delegates for thumbnail generation and sanitisation, while logging every invocation path to support NIST Cybersecurity Framework 2.0 style monitoring and response.
  • A high-trust internal workflow permits delegates only on vetted repositories, because the same helper would be unsafe on public or partner-facing upload endpoints.

In practice, delegates are often reviewed alongside application allowlisting, file-type restrictions, and container or sandbox controls. They are especially sensitive when the invoked helper can read local files, make network requests, or interpret arguments embedded in attacker-controlled content. In many environments, the safest choice is to replace a general-purpose helper with a narrowly scoped conversion service rather than expose a broad command bridge. That aligns closely with the CISA Secure by Design principle of reducing inherent risk at the design stage.

Why It Matters for Security Teams

Delegates matter because they can convert a simple parsing feature into remote code execution when input handling, quoting, or privilege separation is weak. Security teams should view them as part of the application execution chain, not as benign compatibility glue. If the delegate inherits environment variables, file-system access, or network reach from the calling service, an attacker may be able to pivot from a crafted upload into command execution, data exposure, or lateral movement.

This is particularly important in modern cloud and container deployments, where the boundary between the application and the helper may be easy to overlook. A delegate invoked by an image service can also become relevant to NHI governance if it runs under a service account, uses API keys, or accesses secrets needed for downstream processing. Those credentials should be scoped narrowly and monitored with the same discipline used for other machine identities. Operational reviews should ask whether the delegate is necessary, whether it can be replaced with a safer library call, and whether it can be isolated from untrusted content.

Organisations typically encounter delegate risk only after a file upload, conversion failure, or command-injection incident, at which point the helper becomes operationally unavoidable to investigate and disable.

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 address the attack surface, NIST CSF 2.0, NIST SP 800-53 Rev 5 and NIST Zero Trust (SP 800-207) set the technical controls, and ISO/IEC 27001:2022 define the regulatory obligations.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0PR.AC-4Access control guidance supports limiting who and what can invoke delegates.
NIST SP 800-53 Rev 5SI-10Input validation controls are central when delegates process attacker-controlled content.
OWASP Non-Human Identity Top 10Delegate-triggered helpers often run as machine identities with secrets and scoped access.
NIST Zero Trust (SP 800-207)SC-7Zero Trust boundary enforcement helps contain delegate execution paths and egress.
ISO/IEC 27001:2022A.8.28Secure coding practice applies to externally invoked helpers and command boundaries.

Treat helper processes as NHIs and isolate their credentials, permissions, and audit trails.

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