Skip to content
NZSNextZen SecuritySecure AI engineering

Insights

Forward deployed AI engineering: what it is and what it delivers

An engineer embedded with your team who builds the AI feature and its security controls together, in your environment, against your constraints.

By Shantanuu Roy

What it is

Forward deployed AI engineering places an engineer within the delivery team to build an AI capability and its security controls together. Work happens in the organization’s repositories, deployment pipeline, and operating environment. The purpose is not to bypass architecture review. It is to resolve security decisions while the implementation can still change, with accountable owners for the feature and the risks it introduces.

Start with a bounded use case rather than an open assistant. Specify intended users, permitted tasks, prohibited actions, and the conditions under which the system should decline a request. An internal document search assistant and an agent that updates customer records require different permissions and approval paths. The design should make those differences explicit before selecting a model or connecting a tool.

Map the system before adding controls

Draw the path from user input through retrieval, model inference, tool execution, and output handling. Include external inference services, document ingestion, embedding storage, caches, and telemetry. Mark where identity is established and where data crosses a trust boundary. Record which components retain prompts or responses, who can access them, and how deletion requests propagate to derived stores.

Use STRIDE to examine conventional threats such as spoofed identities, modified records, and excessive privileges. Add AI-specific scenarios from the OWASP Top 10 for LLM Applications 2025, including prompt injection, improper output handling, and excessive agency. These references organize questions; they do not establish that every listed risk applies or that an unlisted risk can be ignored.

Build enforceable boundaries

Authorization belongs in application services, not in instructions sent to the model. Retrieval should enforce document permissions for the authenticated user before content enters the context window. Tool handlers should validate arguments, enforce tenant boundaries, and check permissions independently of model output. A model request to perform an action is untrusted input, even when it appears in a structured response.

Separate read access from write access. Use narrowly scoped service identities and require meaningful approval for consequential changes. Approval should show the proposed action, target, and material parameters rather than a generic confirmation message. For repeatable operations, add idempotency controls so retries cannot duplicate transactions. Set execution limits and provide a way to stop pending work without depending on model cooperation.

Make evaluations part of delivery

Define acceptance criteria alongside the feature requirements. A retrieval assistant might need to preserve tenant isolation, cite accessible sources, and abstain when evidence is missing. Build test cases for these behaviors using synthetic or approved data. Include malicious instructions in retrieved documents, revoked permissions, ambiguous requests, empty search results, and tool responses that contain unexpected markup or executable content.

Run evaluations when prompts, models, retrieval settings, or tool definitions change. Record the configuration and test dataset version so a reviewer can reproduce the result. Distinguish deterministic checks, such as an authorization denial, from judgments about answer quality. Human review remains useful for ambiguous outcomes, but release criteria should not depend entirely on an informal reading of a few successful conversations.

Operate and hand over the capability

Production monitoring should connect user requests to retrieval decisions and tool invocations without collecting unnecessary sensitive content. Prefer identifiers, policy outcomes, and redacted error details where they answer the operational question. Limit access to diagnostic traces and define retention. A log that preserves full confidential documents may create another disclosure path rather than useful evidence of control.

Prepare runbooks for model service failure, unexpected data disclosure, and unauthorized tool activity. Identify who can disable writes, switch to a read-only mode, or suspend the feature. Test those controls outside a live incident. Handover should include architecture decisions, known limitations, evaluation instructions, and ownership of dependencies, credentials, and alerts. Working software alone is not a complete operational handover.

Deployment controls should also account for change outside the application repository. A provider may retire a model version, a document connector may change its permission semantics, or a tool API may add optional behavior. Pin dependencies where practical, monitor relevant notices, and define which changes require reevaluation before broader use. Keep a rollback path for prompts and configurations as well as application code.

Document the release decision in terms that security and product owners can both inspect: which tests passed, which limitations remain, what restrictions apply, and who accepted the remaining exposure. This makes later changes easier to evaluate against the original operating assumptions.

Review the design when the feature gains new users, data sources, or actions. A narrowly scoped assistant can become a different risk proposition through incremental changes, even if its interface and project name stay the same. Assign responsibility for detecting that scope drift.

When another approach fits better

An assessment is more appropriate when an existing deployment needs independent examination. A discovery exercise is more useful when nobody can define the business task or acceptable failure conditions. Embedded engineering fits a defined delivery need with access to the people who can approve design choices. It should not become a substitute for independent challenge, risk acceptance, or ongoing product ownership.

← All insights

Tell us what changed.

Thirty minutes, no obligation. Written scope and fixed-fee proposal within one business day of your call.