Day 10 of 1260 minCipher CadetHands-on lab

Day 10: Agents Talking to Agents: Spoofing, Cascades and Rogues

Taught by Mr Elite Updated

By the end of today you can

  • Explain insecure inter-agent communication (ASI07) and why a self-declared identity proves nothing
  • Describe how one bad output cascades through a chain of agents (ASI08)
  • Name three signs of a rogue agent (ASI10) and how you would notice them
  • Spoof a fake agent card in the practice lab and state the defence

Warm-up

Answer from memory first, then tap to check. Recalling yesterday is what makes it stick.

Why can an agent not tell a stored fact from a stored order in its memory?

To the model everything is just text in its context, so a stored instruction looks the same as a stored fact.

Name one route from Day 8 that leads into poisoned memory.

A poisoned source such as a bad dependency, document or tool server whose content the agent reads and then saves.

Imagine a company with five software agents. One reads incoming email, one books travel, one handles invoices, one writes reports, and one coordinates the rest. Nobody checks badges at the door because every agent assumes anything on the internal network is a colleague. Then someone adds a sixth agent with a friendly name and a glowing description. The coordinator reads the description, likes it, and starts handing it invoices.

Today is about that trust between agents. You will see three risks: agents believing each other too easily, one mistake spreading down a chain, and an agent that is no longer behaving as it was built to. Then you will play the attacker in the lab and hire yourself into someone else's workflow, on the practice system only.

ASI07: when agents believe each other

Agents often work in teams. One agent, sometimes called an orchestrator (the coordinator that hands out tasks), picks another agent to do a job and sends it a message. For that to work, agents need to find each other and know what each one can do.

Many systems solve this with an agent card. It is a small public description of an agent: its name, what it can do, where to send requests, and sometimes a badge saying it is verified. Think of it as a business card. Anybody can print a business card.

ASI07, Insecure Inter-Agent Communication, is what happens when those messages and cards are trusted without proof. The weak points are the same three each time: nothing proves who sent a message, nothing stops it being changed on the way, and nothing checks that the sender is allowed to ask for that action.

There is a fourth weakness worth knowing, called replay. That means an attacker records a genuine message, such as 'approve invoice 4471', and sends it again later. If the receiving agent only checks that the message looks right, it will act twice. Real systems add a timestamp or a one-use number to each message so a copy is rejected.

Agent card
A public description of an agent's name, skills and address, used so other agents can find and choose it.
Orchestrator
The agent that decides which other agent should do each task and sends the request.
Replay
Sending a recorded genuine message again so the receiver acts on it a second time.

Quick check

An orchestrator picks agents by reading their published cards. What is the main weakness?

ASI08: one failure becomes many

ASI08, Cascading Failures, is about spread. In a chain, agent A's output is agent B's input, and B's output feeds C. If A produces something wrong, poisoned or simply odd, B treats it as trusted work and builds on it. By the time C acts, the original error has grown and no single step looks guilty.

Here is a small picture. A reader agent summarises an invoice and wrongly reports the amount as 90000 instead of 900. The finance agent trusts the summary and schedules the payment. The reporting agent then records 90000 in the monthly figures, and the forecasting agent adjusts next quarter's budget. Four agents are now wrong, and each one did exactly what it was told.

This is Day 9 in motion. Bad data saved in one place gets passed to the next. The difference is speed. Agents act without waiting for a person, so a bad value can trigger a hundred payments or a thousand emails before anyone reads a log.

Defences are old ideas applied to agents. Check outputs before passing them on, for example refusing any amount far above the usual range. Put limits on how much any one agent can do in an hour. Add a circuit breaker, which is a rule that stops the chain automatically when something looks wrong. Keep agents isolated so a failure in one cannot reach all the others.

Quick check

Which control best limits a cascading failure?

ASI10: the rogue agent

ASI10, Rogue Agents, covers an agent that has drifted from its purpose. It might be a fake agent someone planted, a real one whose goal was hijacked, or one that quietly keeps doing things nobody asked for. The danger is that it still looks like part of the team.

Noticing a rogue agent is about behaviour, not name. Watch for actions outside its job, such as a report writer opening the payments tool. Watch for odd volume, odd hours, and new destinations for data. Watch for requests to skip approval. Each of these needs a baseline, so write down what normal looks like for every agent.

A baseline can be very plain. Here is one for a report-writing agent. Anything that does not fit these lines is worth a look, and anything that breaks the first line is worth an alert straight away.

text
agent: report-writer
tools allowed: read-sales-db, write-report
typical volume: 20 reports per day, 09:00 to 18:00
data destinations: internal-reports-folder only
A four-line baseline. A call to the payments tool, or a report sent to an outside address, breaks it.

Containment matters too. Every agent should have its own identity from Day 5, so you can switch off one without stopping all the others. A kill switch is a way to disable an agent quickly, for example by revoking its key. Test that it works before you need it, because a kill switch nobody has tried is only a hope.

Watch me do it: verify an agent before trusting it

Before the lab, let me show you the defence on your own machine. We will build a tiny allow-list check in a text file. You need only a terminal on Linux, macOS, or Windows with WSL or Git Bash, and nothing touches a real system. The idea is that the orchestrator trusts a list it controls, not the card's own claims.

bash
mkdir -p ~/agent-trust && cd ~/agent-trust
Creates a safe folder on your own machine and moves into it.
bash
printf 'travel-agent:ab12cd34\ninvoice-agent:ef56ab78\n' > trusted.txt
Writes the allow-list, one name:fingerprint pair per line.
bash
cat trusted.txt
Prints the allow-list so you can check it was written correctly.
bash
for c in 'invoice-agent:ef56ab78' 'best-invoice-agent-verified:99ff99ff'; do grep -qx "$c" trusted.txt && echo "TRUST  $c" || echo "REJECT $c"; done
Tests two cards against the list. grep -qx needs an exact whole-line match.
text
TRUST  invoice-agent:ef56ab78
REJECT best-invoice-agent-verified:99ff99ff
The output you should see. The fake lost because its fingerprint is not on the list.
bash
echo 'invoice-agent:00000000' | grep -qx -f trusted.txt && echo TRUST || echo REJECT
Checks a stolen name with a wrong fingerprint against the list. Expect REJECT.

Your lab: hire yourself into the workflow

Now you swap sides. In the lab below you are the attacker, and the target is a practice orchestrator called Conductor. Everything you do happens inside the SecurityElites practice lab and nowhere else. Never try card spoofing against a real company's agents.

Work in this order. First read how Conductor describes the task, because the winning card will echo that wording. Next study one legitimate card to see which fields matter. Then write your own card, submit it, and watch which agent Conductor chooses. If it picks the real agent, change your wording and try again. Two or three attempts is normal.

Quick check

In the lab, your fake card wins the task. What does that prove?

Your turn

AI Agent-to-Agent Spoofing

This is the SecurityElites practice lab for today. Conductor is a practice orchestrator that hands each task to whichever published agent card matches best. Anyone can publish a card and the verified badge is shown but never checked. You play the attacker against this practice system only, which is the ASI07 weakness you just learned.

Open the lab in a new tab

What to try

What to notice

  • Conductor never asks who you are, only what your card says.
  • The verified badge changes nothing about the choice.
  • A fake agent that wins also receives whatever data came with the task.
  • The fix is checking identity outside the card, such as signed cards.

If it did not work

Treating the verified badge as proof

Ask who checked it and how. If the answer is 'the card says so', it is just text.

Assuming internal means trusted

Anything that can publish or send on the network can lie. Authenticate every agent, even inside.

Only checking the first agent in a chain

Validate outputs at every hand-off so a bad value cannot ride through unchallenged.

Having no baseline of normal behaviour

Write down each agent's usual tools, volume and destinations so a rogue stands out.

Recap

  • ASI07 is agents trusting messages and cards without proof of who sent them.
  • An agent card is a claim, and a verified badge means nothing unless checked outside the card.
  • ASI08 is one bad output spreading down a chain because each agent trusts the last.
  • Gates, rate limits, isolation and circuit breakers slow or stop a cascade.
  • ASI10 rogue agents are noticed by behaviour that falls outside a written baseline.
  • Give each agent its own identity and a tested kill switch.

Cheat sheet

ASI07
Insecure inter-agent communication: unverified senders, tampered or replayed messages
ASI08
Cascading failures: one error spreads across linked agents
ASI10
Rogue agents: an agent acting outside its intended purpose
Agent card
Public self-description of an agent; a claim, not proof
Allow-list
A list of trusted identities that you control
Replay
A recorded genuine message sent again; defended with timestamps or one-use numbers
Circuit breaker
Automatic stop when behaviour looks abnormal
Kill switch
Fast way to disable a single agent

Before the next day

Mission: Spoof, spread, spot

Finish the fake agent card lab, then write three short examples that show you understand the three risks. This turns today's ideas into notes you can reuse in the Day 12 capstone.

About 30 min

You are done when: A file day10-notes.txt with the three examples and defence, plus one lab screenshot.

Want more? Add a fourth section describing how signed agent cards would change the lab, and who would hold the signing key.

Quiz

4 questions. Your score is saved with your progress.

1. Why did the fake card win in the lab?

2. Which is the best fix for card spoofing?

3. Agent A passes a poisoned value to B, then C. What makes this a cascade?

4. Which sign most suggests a rogue agent?

Finish the day

Mark the day complete to save your progress.

Go to Day 11

Next: Day 11 looks at ASI09, where the weak point is the person. You will design an approval step a human can actually check, instead of trusting an agent's own summary of what it did.

Tell someone you are doing this:WhatsAppXLinkedIn

Your notes

Private to this device. Write what you want to remember from today.