moses

Need-to-know by design: data protection for multi-agent automation

How to keep personal data safe when AI agents automate processes: per-agent data scopes, enforced message paths, encrypted keys, and defenses against prompt injection.

The first question a company’s data protection officer asks about AI agents is rarely “can it do the job?”. It is “who sees what?”. An agent that reads the shared inbox can read everything in it. An agent that can send email can send anything it has read to anyone. Good automation answers that question in the architecture, not in a policy document. This article describes the principles we built into the Moses agent platform.

Least privilege, per agent

On Moses, an agent can only use the abilities you give it. That makes least privilege concrete:

  • No ability, no action. An agent that wasn’t given email can’t send email, whatever it’s told.
  • Allowed contacts. Sending can be limited to known recipients, with daily limits.
  • Allowed sites. The agent’s web browser visits only the sites you list.
  • A sealed sandbox. Code the agent writes runs sealed off, without network access, and is thrown away afterwards.

Need-to-know in agent teams

Splitting a process across several agents is often the best data protection measure there is, as long as the split is enforced. When Moses plans a team, the plan states for every member:

  • the data categories it sees, for example tenant contact details, damage descriptions, case numbers;
  • whether it talks to anyone outside the team;
  • the flows: who sends what to whom, and why.

Once you approve the plan, the platform enforces it, whatever a member’s own instructions say:

  • Inside members stay inside. A member kept inside the team can’t reach anyone outside it.
  • Sensitive data asks first. If a member sees health, financial or credential data, its actions need your approval, and it may not pass that data beyond the plan.
  • Messages follow the plan. Each member can only exchange messages with the teammates the plan names.

A read-only connections map on the dashboard shows which agent may message which, with the messages of the last 24 hours and the data categories each link may carry.

Messages are data, not instructions

Prompt injection is the attack every agent will meet sooner or later: an email or a web page containing “ignore your previous instructions and…”. Moses defends against it in layers:

  1. What people write is presented to the model as data, never as instructions to follow.
  2. Strangers wait. Email, Telegram and Slack inputs accept messages from known contacts by default; anyone new waits until you allow them.
  3. Read-then-act needs a human. If the agent wants to send something after reading a web page, a search result or an API response in the same moment, the action waits for your approval. See how approvals work.
  4. Privacy rules in every prompt. Agents that talk to people get rules that forbid passing one contact’s details to another or revealing the owner’s address or routine.

Keys in a vault, not in prompts

Agents need credentials: mailbox passwords, bot tokens, API keys. On Moses they live in an encrypted vault. The agent can use them, but never sees them: a key never appears in what the agent reads, in its records or in the browser. Once saved, a key is never shown again. Where a service supports OAuth2, such as Microsoft 365, Outlook and Gmail, you sign in at the service instead: Moses never receives a password, the agent sees only what your account may see, and you can withdraw access at the service at any time.

Where it runs, and what is kept

  • Servers in Germany for the platform and the speech APIs.
  • Visible memory. Everything an agent remembers can be read, edited and deleted in the memory inspector.
  • Encrypted exports. An agent’s export file is encrypted and can only be imported into the account it came from.
  • Budgets. Daily token limits per agent and per account stop runaway loops.

Questions to answer with your DPO

  1. Which personal data does each step of the process need, and which agent handles that step?
  2. Which agents talk to people outside the company, and which stay inside?
  3. Which actions can’t be undone, and do they require approval?
  4. Who may write to the agent, and what happens to messages from strangers?
  5. Where are credentials stored, and how is access revoked?
  6. How long are memories, transcripts and traces kept, and who can delete them?

If your platform can’t answer these from its configuration, it can’t answer them in an audit either.

Frequently asked questions

How do AI agents handle personal data under GDPR?

The same principles apply as for any processing: a clear purpose, data minimisation, security and transparency. For agents this means giving each agent only the data its task needs, keeping a visible record of what it did, and hosting in a jurisdiction that fits your obligations. Moses runs on servers in Germany.

What is prompt injection and how do you defend against it?

Prompt injection is text in an email, a web page or a document that tries to give an AI agent new instructions. Defenses are layered: treat content from people and the web as data, not instructions; let unknown senders wait for approval; and require a human OK for any outgoing action that follows content the agent just read.

Can one AI agent see another agent's data?

Not by default. On Moses, agents only exchange messages along the paths you allow, and in a team built from a plan, each member is limited to the data the plan lets it see. A member kept inside the team can't reach anyone outside it.

Does the AI agent see my passwords or API keys?

No. Keys are stored encrypted in a vault, used on the agent's behalf, and never shown again after saving. They never appear in what the agent reads or in its records.

Build an agent that maps your process

Describe the process in your own words: Moses plans the steps, says honestly what it can and can’t do yet, and builds an agent or a small team you can see into.

Join the beta