Machine Learning pathway increased my salary by 40%
Multi-Agent Security, Risk Management and Trust Architecture
When one agent delegates to another, identity blurs and permissions multiply. The security question stops being whether an agent is trustworthy and becomes whether the chain of delegation can be reconstructed after something goes wrong.
This chapter covers the security properties unique to multi-agent systems: non-human identity, delegation with attenuation, trust boundaries between agents, tool-call integrity, the confused-deputy and goal-drift failure modes, and the incident response that a chain of agents makes harder. It then builds a risk register an audit committee will accept, with the specific risks that recur in HR deployments rather than a generic AI list.
What this covers
- Who this is for
- Security architects, AI platform engineers, risk and audit partners and HR technology leads accountable for a governed agent estate.
- What it assumes
- Chapter 29 for data classification, Chapter 12 for platform controls, Chapter 7 for orchestration and Chapter 25 for allocation systems.
- What you will be able to do
- Design delegated identity with attenuation, define trust boundaries and tool-call integrity, model the multi-agent failure modes, and run incident response across a chain of agents.
- Reading time
- About 25 minutes, including the knowledge check and question bank.
Delegation must attenuate, never amplify
In a chain — supervisor delegates to a research agent, which calls a tool — the effective permission must be the intersection of every permission in the chain, never the union. Amplification is the most common multi-agent vulnerability: a narrow agent acquires broad capability because it inherited a supervisor's credentials.
Implement this with per-hop tokens that carry the original subject, the current actor, the audience, the permitted tool set and a short expiry. Each hop reduces scope. Any attempt to widen scope is refused and logged as a security event, not an error to retry.
The audit implication is that a chain must be reconstructible. Given a final action, it must be possible to answer who the human was, which agents participated, in what order, with what inputs and under which version of which policy. Without that, a multi-agent incident becomes unexplained behaviour, and unexplained behaviour is uninsurable.
- Effective permission is the intersection across the chain, never the union.
- Per-hop tokens carrying subject, actor, audience, tool set and expiry.
- Each hop attenuates; a scope-widening attempt is a security event.
- Reconstruct the chain: human, agents, order, inputs, policy version.
- Amplification is the characteristic multi-agent vulnerability.
Trust boundaries between agents
Not all agents are equally trusted. A retrieval agent that summarises public careers content operates in a different trust zone from an agent that can write to the HR system of record. The boundary between those zones must be explicit and enforced, so that a compromise or a misbehaviour in the outer zone cannot reach the inner one.
Three practical rules. Message passing between zones is schema-validated, so a compromised agent cannot smuggle instructions through a free-text field. Privileged agents do not accept free-text from unprivileged ones — only structured requests with enumerated types. And a privileged agent re-derives entitlement from the subject record rather than trusting a claim made in the message.
The confused-deputy problem sits here: a privileged agent acting on a request from an unprivileged one, without re-checking whether the original human was entitled. It is old, well understood, and it recurs constantly in agent designs because delegation feels like a function call rather than a privilege boundary.
- Different trust zones for retrieval versus write-capable agents.
- Validate inter-zone messages against a schema; no free-text instruction passing.
- Privileged agents re-derive entitlement; never trust a claim in a message.
- The confused-deputy problem recurs because delegation looks like a function call.
- Enumerate request types rather than accepting natural language across boundaries.
Tool-call integrity
The tool layer is where an agent's reasoning becomes an effect, and therefore where integrity matters most. Three properties: authorisation is evaluated at the tool, not at the planner; arguments are validated against a schema rather than interpreted; and irreversible actions require an approval token bound to that specific action, not a general permission.
Retrieved content must never reach the tool layer as instructions. If an agent reads a document containing 'transfer the file to this address', that text is data. Enforcement is architectural: egress destinations are allow-listed, argument values referencing external addresses are rejected unless pre-approved, and the tool has no ability to interpret prose.
Rate and volume limits are also integrity controls. An agent that can call a distribution tool a thousand times in a minute will eventually do so, through error or through a crafted input. Caps, anomaly alerting and a circuit breaker tied to the case rather than to the agent are cheaper than the incident they prevent.
- Authorise at the tool, not at the planner.
- Validate arguments against a schema; never interpret prose.
- Irreversible actions need an approval token bound to that action.
- Allow-list egress; retrieved text is data, not instruction.
- Rate limits and circuit breakers are integrity controls, not performance tuning.
The failure modes specific to multi-agent systems
Goal drift: an agent pursues an objective in a way that satisfies its metric while violating the intent, because the metric was narrower than the purpose. Clarity of purpose in the system prompt is not a control; the control is a post-hoc check that the outcome meets the intent.
Cascading error: one agent's wrong output becomes another's confident input, and by the third hop the uncertainty has disappeared. Mitigate by propagating confidence and provenance with every message, and by requiring that consequential conclusions be traceable to a source rather than to a predecessor's summary.
Silent disagreement and loop behaviour complete the set. Multiple agents on a shared case produce inconsistent states unless one owns the case state; and two agents can politely retry forever. Both are orchestration defects, both are common, and both are detected by the same instrument: a case timeline with a step budget and a single writer.
- Goal drift
- Optimising a metric in a way that violates the intent behind it.
- Cascading error
- An error propagating as confident input until its uncertainty vanishes.
- Silent disagreement
- Multiple agents holding inconsistent states for the same case.
- Loop behaviour
- Reciprocal retries with no progress and no escalation.
Incident response across an agent chain
The first question in any incident is what the agent actually did. Answering it requires the chain record, the tool-call log and the version history — which means these must survive an incident rather than be rotated out within days. Retention of security-relevant agent logs should be measured in months, not hours.
The second question is containment. A chain needs a kill switch that stops execution and revokes credentials at any hop, not only at the orchestrator. Rehearse it: an untested kill switch is a hope. Practise the scenario where an agent has already written to a downstream system and the correction requires a compensating action.
Third, notification and remedy. Where the incident affected an individual — a wrong decision, a data exposure — statutory notification clocks may apply and the affected person needs an explanation and a remedy. An incident runbook that stops at technical containment is incomplete for HR, because the consequence is a person.
- Retain chain records and tool logs long enough to investigate.
- Kill switch at every hop, with rehearsed credential revocation.
- Practise compensating actions for writes already committed downstream.
- Statutory notification clocks may run; involve privacy and legal early.
- Affected individuals need explanation and remedy, not just containment.
The risk register for an HR agent estate
A useful register is specific and short. Recurring HR agent risks: an agent acting beyond delegated authority; sensitive data reaching an unapproved model; an automated outcome that cannot be explained to its subject; a vendor sub-processor change unnoticed; key-person dependency on one engineer's prompt engineering; and model provider deprecation breaking a live process.
Each risk needs likelihood, impact, existing controls, residual rating, owner and a date. The register should distinguish risks to individuals from risks to the organisation, because they require different responses: the first may require suspending capability, the second may accept a control gap temporarily.
Review quarterly with the controls evidenced, not asserted. The failure pattern in agent estates is a register written once, professionally, and never updated as the estate changed underneath it — which is exactly the situation in which an audit finds an agent nobody knew was running.
- Keep the register specific: delegated authority, data egress, unexplainable outcomes, vendor change, key-person dependency, model deprecation.
- Separate risks to individuals from risks to the organisation.
- Owner, date and residual rating per risk, with evidenced controls.
- Review quarterly; estates change faster than registers.
- An unregistered agent is the finding that matters most.
Key takeaways
Attenuate on every hop, enforce trust boundaries with schema-validated messages and re-derived entitlement, authorise at the tool with bound approval tokens, watch for drift and cascade, and keep chain records long enough to investigate. Then run a short, specific register that is reviewed against evidence.
Next: human-in-the-loop governance — the controls that determine what may happen without a person, and the design that makes human review meaningful rather than ceremonial.
- Intersection, not union, across delegation hops.
- Schema-validated inter-zone messages; re-derive entitlement.
- Tool-layer authorisation with action-bound approval tokens.
- Detect drift, cascade, disagreement and loops.
- Retain chain records; rehearse the kill switch.
- Next: human-in-the-loop governance.
Red teaming an HR agent estate
Red teaming finds the failures that evaluation suites do not, because a suite tests what you thought of and an attacker tests what you did not. For an HR estate, the realistic attacks are narrow and worth rehearsing twice a year.
Four scenarios cover most of the exposure. Entitlement bypass: a low-entitlement user attempts to obtain another employee's data through a reprompt, an indirect route or a tool argument. Injection: a document or email contains instructions the agent may follow. Exfiltration: retrieved text or a crafted argument causes data to be sent to an external destination. Cross-case leakage: a summary from one case appears in another.
Run the exercises against a staging copy with production-like data, use people who did not build the system, and record the attempt, the control that held and the control that failed. The value is in the failures, and a team that reports none has tested too gently.
Feed findings into the release gates rather than into a report. Each successful attack becomes a regression case in the safety suite, so that it can never pass silently again. That loop — attack, fix, encode, re-run — is what makes a release process improve over time rather than merely repeat.
- Rehearse entitlement bypass, injection, exfiltration and cross-case leakage.
- Use staging data and testers who did not build the system.
- Record attempt, control held, control failed.
- Convert every successful attack into a regression case.
- A red team that finds nothing tested too gently.
Model and tool supply chain
An HR agent estate depends on components nobody on the team wrote: model providers, embedding services, vector databases, document parsers, connector libraries. Each is a supply-chain dependency with its own availability, security and versioning risk.
Inventory them. For each component: what it does, which data it receives, whether it is hosted or on-premise, the vendor's security attestations, the contract terms on data use, the notification commitment for changes, and the fallback if it becomes unavailable.
Two risks deserve explicit treatment. Silent change, where a provider updates a model and behaviour shifts without a release on your side — mitigated by version pinning where offered, by continuous evaluation, and by alerts on output distribution shifts. And deprecation, which is a scheduled outage unless you have tested the replacement against your suites in advance.
Prefer components that fail visibly. A parser that returns an error can be handled; one that silently returns partial text produces a confident answer from incomplete evidence. Where you cannot avoid an opaque component, evaluate it continuously against a labelled sample rather than trusting it after acceptance.
- Inventory models, embeddings, indexes, parsers and connectors.
- Record data received, attestations, terms and fallbacks.
- Silent provider change is mitigated by pinning and continuous evaluation.
- Deprecation is a scheduled outage without a tested replacement.
- Prefer components that fail visibly over ones that fail quietly.
Secrets and credential hygiene
Most agent compromises do not involve clever prompt manipulation; they involve a credential in a place it should not be. Keys committed to a repository, pasted into a chat, logged in a trace, embedded in a prompt or shared in a spreadsheet are the recurring findings of every security review.
Apply the ordinary discipline rigorously because agent systems create new places for secrets to leak: prompts, tool descriptions, traces, evaluation fixtures and vendor configuration portals. None of these existed in the previous generation of systems and none is covered by the access controls built for application code.
Rotate on a schedule and immediately on any suspected exposure, with rotation being a routine operation rather than an incident. A key that takes three days and a change board to rotate will not be rotated when it should be, and the decision will be deferred until it is unavoidable.
Give each agent its own credentials, scoped and expiring, and never a shared key across agents or environments. Shared credentials make revocation all-or-nothing, which in practice means it is deferred, which in practice means it is not a control.
- Secrets leak through prompts, traces, fixtures and portals.
- Scan repositories and agent configuration, not only code.
- Make rotation routine and fast.
- One credential per agent, scoped and expiring.
- Shared credentials make revocation all-or-nothing.
Detection and the signals that matter
Prevention is incomplete, so detection must be real. Agent systems produce a great deal of telemetry and very little of it is signal, which is why detection design starts with the behaviours that would indicate compromise or failure rather than with the logs available.
Six signals cover most of it: a spike in refusals or policy blocks, tool calls to unusual destinations, access to protected fields, an unusual volume for one subject, a rise in escalations with the same cause, and a change in the distribution of outputs after a deployment. Each is computable from records the system should already keep.
Set thresholds from observed baselines rather than from intuition, and review the alerts that fired in the last period for false positives. An alert that fires daily and is always benign is training the team to ignore the one that matters.
Decide in advance who receives each alert and what they are expected to do. Detection without a response path produces a ticket queue, and a ticket queue for security events is a control that exists only in the framework document.
- Design detection from behaviours, not from available logs.
- Six signals: refusals, destinations, protected fields, volume, escalations, distribution shift.
- Set thresholds from baselines and review false positives.
- Name a recipient and an action per alert.
- A ticket queue is not a response.
The agent inventory
Every control in this chapter assumes you know what agents exist. In practice, agents proliferate: built by a business unit, connected by an integration, left running after a project, deployed through a no-code tool by someone who did not consider themselves a developer.
Maintain an inventory with the minimum fields that make it governable: name, owner, purpose, business process, tools and permissions, data classes touched, model and prompt versions, oversight mode, evaluation status and lifecycle state. Ten fields, maintained at creation rather than reconstructed at audit.
Make registration the path of least resistance. A template, a pull request, automatic validation of schema and permissions, and approval in days. If registration takes a fortnight and bypassing it takes an afternoon, the inventory will be incomplete and everyone involved will know it.
Reconcile against technical reality quarterly by comparing the inventory to actual credential usage and tool-call logs. The delta — agents with credentials and no inventory entry — is the finding that matters, and it is the one an auditor will discover if you do not.
- Every other control depends on knowing what exists.
- Ten fields covering owner, purpose, tools, data, versions, oversight.
- Make registration faster than bypassing it.
- Reconcile inventory against credential and tool-call records.
- Unregistered agents with live credentials are the finding.
Defending against injection through documents
An HR agent ingests curricula vitae, emails, policies, tickets and uploaded files. Any of those can contain text addressed to the model rather than to the reader, and the model has no reliable way to distinguish an instruction from content.
Defence is architectural rather than instructional. Keep the instruction hierarchy in code: the system prompt is fixed, retrieved text is passed as data with explicit delimiters, and tool permissions are held outside the context entirely. An agent that can only call allow-listed tools with schema-validated arguments cannot be talked into an arbitrary action.
Detect what you can. Anomalous phrasing in ingested documents, attempts to reference system instructions, encoded text, unexpected outbound destinations. None of these detects everything, and together they raise the cost of a successful attack and produce the signal that a campaign is underway.
Test continuously. Maintain a set of injection attempts in the safety suite — a CV containing an instruction to advance the candidate, an email requesting a redirect of funds, a policy document claiming new entitlements — and confirm on every release that none of them changes behaviour. Injection resistance that is not tested decays as prompts and tools change.
- Ingested documents are untrusted input.
- Keep instructions in code and retrieved text in data delimiters.
- Hold tool permissions outside the context.
- Detect anomalous phrasing and unexpected destinations.
- Keep injection attempts in the safety suite and re-run them.
Limiting the blast radius
Every agentic failure is bounded by design choices made before it happens. A supervisor that can act on one case at a time, a tool that writes to a staging queue before production, and a volume cap on outbound actions each convert a potential mass error into a single case.
Three limits are worth building. Subject scope: an agent acts only on cases explicitly assigned to it, never on a query result set. Volume scope: a maximum number of actions per hour and per day, with automatic suspension beyond it. And effect scope: writes go through a reconciliation step that a human or a scheduled job verifies before downstream consequences occur.
Design the failure to be visible. An agent that fails loudly on the first anomaly is safer than one that retries and succeeds incorrectly. Circuit breakers tied to anomaly counts rather than to error rates catch the case where every call succeeds and every result is wrong, which is the failure mode that error monitoring never sees.
Test the limits deliberately by running a scenario at the boundary: a hundred cases, a duplicated request, a retried tool call. Teams discover in these tests that the cap was implemented at the wrong layer, that the duplicate was not idempotent, and that the reconciliation was manual, which is exactly what the exercise is for.
- Bound failure by subject, volume and effect scope.
- Never act on an unbounded query result set.
- Cap actions per hour and suspend automatically.
- Circuit-break on anomalies, not only on errors.
- Rehearse at the boundary with duplicated and retried calls.
5 questions to test the model
How should permissions compose across a delegation chain?
What is the confused-deputy problem in this context?
Where should authorisation be evaluated?
What is cascading error?
Why must security-relevant agent logs be retained for months?
Questions this page answers
Do agents need their own identities?
How do we stop an agent reading a malicious document and acting on it?
What is the most common cause of an agent doing something unexpected?
How many agents should a workflow have?
Should agents share memory?
How do we test a kill switch?
What retention applies to tool-call logs?
How do we handle a model provider deprecating a version?
Is red teaming worth it for an HR estate?
How do we avoid one engineer becoming a single point of failure?
What should the risk register's first entry be?
What does Goal drift mean in Multi-Agent Security, Risk Management and Trust Architecture (The failure modes specific to multi-agent systems)?
What does Cascading error mean in Multi-Agent Security, Risk Management and Trust Architecture (The failure modes specific to multi-agent systems)?
What does Silent disagreement mean in Multi-Agent Security, Risk Management and Trust Architecture (The failure modes specific to multi-agent systems)?
What does Loop behaviour mean in Multi-Agent Security, Risk Management and Trust Architecture (The failure modes specific to multi-agent systems)?
What does Delegation must attenuate, never amplify explain about Multi-Agent Security, Risk Management and Trust Architecture?
What does Trust boundaries between agents explain about Multi-Agent Security, Risk Management and Trust Architecture?
What does Tool-call integrity explain about Multi-Agent Security, Risk Management and Trust Architecture?
What does The failure modes specific to multi-agent systems explain about Multi-Agent Security, Risk Management and Trust Architecture?
What does Incident response across an agent chain explain about Multi-Agent Security, Risk Management and Trust Architecture?
What does The risk register for an HR agent estate explain about Multi-Agent Security, Risk Management and Trust Architecture?
What does Key takeaways explain about Multi-Agent Security, Risk Management and Trust Architecture?
What does Red teaming an HR agent estate explain about Multi-Agent Security, Risk Management and Trust Architecture?
What does Model and tool supply chain explain about Multi-Agent Security, Risk Management and Trust Architecture?
What does Secrets and credential hygiene explain about Multi-Agent Security, Risk Management and Trust Architecture?
What does Detection and the signals that matter explain about Multi-Agent Security, Risk Management and Trust Architecture?
What does The agent inventory explain about Multi-Agent Security, Risk Management and Trust Architecture?
What does Defending against injection through documents explain about Multi-Agent Security, Risk Management and Trust Architecture?
What does Limiting the blast radius explain about Multi-Agent Security, Risk Management and Trust Architecture?
Which risks or limitations apply to The risk register for an HR agent estate in Multi-Agent Security, Risk Management and Trust Architecture?
Which risks or limitations apply to Red teaming an HR agent estate in Multi-Agent Security, Risk Management and Trust Architecture?
Which risks or limitations apply to Model and tool supply chain in Multi-Agent Security, Risk Management and Trust Architecture?
Which risks or limitations apply to Limiting the blast radius in Multi-Agent Security, Risk Management and Trust Architecture?
How is performance assessed for Trust boundaries between agents in Multi-Agent Security, Risk Management and Trust Architecture?
How is performance assessed for Model and tool supply chain in Multi-Agent Security, Risk Management and Trust Architecture?
How is performance assessed for Secrets and credential hygiene in Multi-Agent Security, Risk Management and Trust Architecture?
How is performance assessed for The agent inventory in Multi-Agent Security, Risk Management and Trust Architecture?
How is performance assessed for Defending against injection through documents in Multi-Agent Security, Risk Management and Trust Architecture?
What implementation considerations apply to Delegation must attenuate, never amplify in Multi-Agent Security, Risk Management and Trust Architecture?
What implementation considerations apply to Detection and the signals that matter in Multi-Agent Security, Risk Management and Trust Architecture?
Sources and standards
- OWASP Top 10 for LLM Applications
Prompt injection, excessive agency and supply chain risks.
- NIST AI 600-1 — Generative AI Profile
Incident response and monitoring guidance for generative systems.
- NIST SP 800-207 — Zero Trust Architecture
Per-request authorisation principles applicable to agent identity.
- ISO/IEC 27001:2022 — information security controls
Access control, logging and supplier control families.
- EU AI Act — Article 15, accuracy, robustness and cybersecurity
Robustness and security expectations for high-risk systems.
- MITRE ATLAS — adversarial threat landscape for AI
Tactics and techniques for structuring adversarial testing.
Continue through the chapters
Next: human-in-the-loop governance — making oversight real rather than ceremonial.
Continue this lesson with a subscription
Multi-Agentic AI HR Tech Automations is part of the paid catalogue. You have read the free preview. A subscription opens the rest of this lesson, the classroom slides and the assessment questions.
- The full lesson for this topic and every other catalogue topic
- Every classroom slide deck and worked example
- All assessments, with a verifiable certificate on completion
The Free-To-Learn library stays open to everyone and is not affected by this.
