Allan Ramos
← Blog

Security boundaries for copilots and agents

A chat box with read-only docs is one risk class. An agent with tickets, email, and production APIs is another. Architecture must assume hostile content in the context window—including your own documents. Helpfulness is not a security control.

The industry is learning, quickly, that classical appsec still applies and that new failure modes sit on top of it.

Least privilege by default

Scope tools narrowly. Prefer propose-then-confirm for side effects. Isolate tenants and secrets from model context. Log every tool invocation with actor and reason.

Do not paste production credentials into prompts to “make the demo work.” That demo becomes the permanent pattern. Use brokered access with short-lived tokens and clear audience restrictions.

Separate identities for user-initiated agent actions versus batch automation. Attribution matters for audit and for incident response.

Treat untrusted text as untrusted

Retrieved documents and user paste can instruct the model to ignore policy. Build allow-lists and output filters for actions, not only for language tone. A polite exfiltration is still an exfiltration.

Be careful with “browse and act” patterns. Content from the open web is an instruction channel. If an agent can fetch a page and then call internal tools, you have created a confused deputy unless you constrain both sides hard.

Data boundaries

Define which corpora an assistant may see. Segment by role, region, and product. A support agent for retail customers should not retrieve wholesale credit files because the vector index happened to be global.

Watch for indirect exposure: summaries that include secrets, tool responses echoed back to a channel with different clearance, or logs that persist prompts forever. DLP and redaction belong in the path, not only in policy PDFs.

Agent loop hazards

Unbounded tool loops burn money and can amplify a single injected instruction into many privileged calls. Hard caps, human approval thresholds, and circuit breakers are part of secure design.

Evaluate adversarial prompts as part of release gates—especially for agents that can change state. Red team the workflow, not only the base model’s chat manners.

Secure paved roads

Platform security and architecture should offer a default agent stack that is safer than shadow DIY: approved tools, centralized authz, logging, and patterns for confirmation. If the secure path is slower than the dangerous path by weeks, people will choose danger.

Ship the guardrails as product features for developers. Security that only says no will lose to an IDE plugin that says yes.

How this plays out in delivery

In practice, the difference between a slide and an operable change is whether teams can point to owners, controls, and evidence under pressure. That pressure arrives as an incident, an audit question, a vendor outage, or a steering committee that wants to scale a demo. If those answers are improvisations, the feature was never production-ready—regardless of how polished the interface looked in a pilot.

Delivery leaders should therefore reserve explicit capacity for the boring work: contracts, runbooks, evaluation packs, fallback paths, and decision records. Boring work is what makes ambitious AI and platform change survivable. Skipping it to protect a velocity chart is how organizations repurchase the same programme every three years under a new name.

Questions worth asking in design review

Who owns the outcome after launch? What fails first when the dependency is slow or wrong? Which data classes are in motion, and under which policy? What would make us pause or roll back within an hour? What evidence will we examine weekly to know quality is holding?

If a proposal cannot answer those questions without hand-waving, keep the scope in a controlled experiment. Experiments are useful. Unowned production traffic is not an experiment—it is a risk acceptance you forgot to record.

Working habits that keep quality compounding

Write short decision records when you cross a boundary. Keep a living list of invariants for each critical capability. Review with a checklist that targets blast radius rather than style. Instrument silent failure modes, not only HTTP errors. Revisit model, prompt, and vendor changes with the same seriousness as database migrations.

None of these habits require a new framework brand. They require leadership attention and a refusal to confuse demos with operable systems. Teams that practice them can adopt assistants, agents, and new platforms without losing the enterprise plot.

A note on language and accountability

Replace slogans with operational nouns: capability, owner, control, fallback, evidence, exit. Language shapes governance. Teams that speak only in broad transformation slogans struggle to assign accountability. Teams that speak in capabilities can fund, staff, measure, and stop work when the evidence says stop.

Hold that vocabulary in architecture forums and programme boards. Over time it becomes the shared spine that lets software development absorb AI tools without fragmenting into disconnected experiments.

Closing

The through-line is simple: treat AI-related change as architecture and operations work, not as magic. Make ownership explicit, put uncertainty where blast radius is acceptable, measure what can silently fail, and refuse to scale what you cannot run. That discipline is how software organizations get durable value from new techniques instead of a temporary theatre of progress.

How this plays out in delivery

In practice, the difference between a slide and an operable change is whether teams can point to owners, controls, and evidence under pressure. That pressure arrives as an incident, an audit question, a vendor outage, or a steering committee that wants to scale a demo. If those answers are improvisations, the feature was never production-ready—regardless of how polished the interface looked in a pilot.

Delivery leaders should therefore reserve explicit capacity for the boring work: contracts, runbooks, evaluation packs, fallback paths, and decision records. Boring work is what makes ambitious AI and platform change survivable. Skipping it to protect a velocity chart is how organizations repurchase the same programme every three years under a new name.

Questions worth asking in design review

Who owns the outcome after launch? What fails first when the dependency is slow or wrong? Which data classes are in motion, and under which policy? What would make us pause or roll back within an hour? What evidence will we examine weekly to know quality is holding?

If a proposal cannot answer those questions without hand-waving, keep the scope in a controlled experiment. Experiments are useful. Unowned production traffic is not an experiment—it is a risk acceptance you forgot to record.

Working habits that keep quality compounding

Write short decision records when you cross a boundary. Keep a living list of invariants for each critical capability. Review with a checklist that targets blast radius rather than style. Instrument silent failure modes, not only HTTP errors. Revisit model, prompt, and vendor changes with the same seriousness as database migrations.

None of these habits require a new framework brand. They require leadership attention and a refusal to confuse demos with operable systems. Teams that practice them can adopt assistants, agents, and new platforms without losing the enterprise plot.

A note on language and accountability

Replace slogans with operational nouns: capability, owner, control, fallback, evidence, exit. Language shapes governance. Teams that speak only in broad transformation slogans struggle to assign accountability. Teams that speak in capabilities can fund, staff, measure, and stop work when the evidence says stop.

Hold that vocabulary in architecture forums and programme boards. Over time it becomes the shared spine that lets software development absorb AI tools without fragmenting into disconnected experiments.

Closing

The through-line is simple: treat AI-related change as architecture and operations work, not as magic. Make ownership explicit, put uncertainty where blast radius is acceptable, measure what can silently fail, and refuse to scale what you cannot run. That discipline is how software organizations get durable value from new techniques instead of a temporary theatre of progress.

Threat scenarios to design against

A user pastes text that instructs the agent to email internal files externally. A retrieved document contains hidden instructions to exfiltrate API keys. A compromised plugin tool turns a summarizer into a lateral movement helper. A curious employee asks the staff copilot for data outside their role and the retrieval layer complies.

Walk these scenarios in design review. For each, name the control that stops it: authz on tools, confirmations, allow-lists, DLP, segmentation, monitoring. If the only control is “the model should refuse,” you do not have a control.

Secure SDLC additions

Add prompt injection tests to CI for agent workflows. Include tool-permission unit tests. Run periodic red-team exercises on high-privilege agents. Review new tools the way you review new production dependencies.

Treat model provider callbacks, webhooks, and MCP-style tool hosts as part of your trust boundary diagram. New protocol popularity is not an excuse to skip threat modelling.

Incident response

Update incident playbooks for AI-specific events: suspected prompt injection, runaway tool loops, data leakage via logs, poisoned retrieval corpora. Know how to revoke tokens, disable tools, rotate keys, and invalidate cached contexts quickly.

After incidents, feed findings into the paved road. Security learning that stays in a ticket graveyard will meet you again in production.

Putting it into the operating rhythm

None of this sticks if it appears only in a one-off workshop. Put the checkpoints into existing forums: design authority, risk intake, sprint reviews, and operations reviews. Assign named owners. Review the same metrics until the behaviour becomes muscle memory. Tools change. Operating rhythm is how architecture survives tool change.

When you expand scope—new channel, new market, new model provider—re-run the same questions rather than assuming last quarter’s controls still fit. Scope expansion is where quiet regressions hide. A short re-certification beats a long incident report.

What good looks like after six months

You can name owners for each AI-touched capability. You can show evaluation trends and cost trends. You can pause a feature without heroics. Engineers can explain the boundaries without opening a chat history. Sponsors hear outcome language and evidence, not only model brand names. That is the standard. Aim for it deliberately.

Field notes from programmes that stuck

The programmes that keep their gains share a few unglamorous traits. They name a single accountable owner for each capability touched by AI or platform change. They keep a thin evidence pack current: what the feature does, which data it uses, how quality is measured, and how to pause it. They review cost and quality on a fixed weekly or biweekly cadence instead of waiting for a quarterly surprise.

They also refuse to expand scope while basic controls are missing. That refusal feels slow in the week it happens and fast in the year it saves. Sponsors accept it more readily when you offer a dated path: we can widen to segment B when override rates stay under threshold and fallback drills pass. Conditional speed is still speed—just adult speed.

Common failure modes to watch for

Eternal pilots that serve real customers without on-call. Prompt edits in production with no version history. Retrieval corpora that mix clearance levels. Success metrics that count messages sent instead of outcomes achieved. Architecture reviews that only admire diagrams after contracts are signed. Cleanup work that is always scheduled after this critical launch.

Each failure mode is preventable with a small control. The danger is not that teams cannot invent controls. The danger is that delivery pressure makes skipping them look rational until the incident report is written.

A ninety-day improvement plan

Days 1 to 30: inventory AI-touched journeys, owners, and gaps in logging, evaluation, and fallback. Publish the list without blame. Days 31 to 60: close the top three blast-radius gaps; stand up a short design-authority slot for new use cases; put cost alerts in place. Days 61 to 90: run one controlled promotion from pilot to production using a written exit report; kill or contain at least one unmanaged experiment.

At day ninety, present evidence trends rather than tool logos. Leaders can fund what they can see. Visibility is a prerequisite for sustained investment in quality.

How this article should change Monday morning

Pick one capability you touch. Write the owner, the invariant that must not break, the fallback if the AI dependency fails, and the metric you will check next week. Share it with the people who can correct you. Then make one concrete backlog item that turns a gap into a control.

Long articles do not improve estates. Changed operating habits do. Use this piece as a mirror, not as literature. If nothing in your plan of record moves after reading it, the reading did not count.