Skip to main content
DigiTransact AI Learning Centre

Module 4 of 4

Security and permissions

The attacks this protocol invites, and the controls that reduce them.

Lesson 1

Prompt injection through tools

Anything a tool returns can carry instructions. A web page, an email or a database field can tell the model to do something else.

Treat tool output as untrusted input and keep instructions and data separate in the client.

  • Never let retrieved text change system rules.
  • Mark external content as data.
  • Require approval for consequential tools.

Check yourself. Why is a returned document a security boundary?

Lesson 2

Least privilege and approval

Give each server the narrowest scope that works: read-only where possible, one table rather than a database, one calendar rather than an account.

Write actions should require explicit human approval, not just a tool description.

  • Separate read and write tools.
  • Scope tokens per server.
  • Log who approved what.

Check yourself. How do you limit a compromised server's blast radius?

Lesson 3

Authentication for remote servers

Remote servers need transport security, client authentication and authorisation scopes. OAuth is common; static keys are not enough.

Tokens should be short lived and bound to a user and a scope.

  • TLS everywhere.
  • Short-lived tokens.
  • Revocation must work.

Check yourself. What must accompany a remote server token?

Lesson 4

Audit and monitoring

Log tool calls, arguments, results and approvals, with sensitive fields redacted. Alert on unusual volume or new tools.

A tool list that changes without a deploy is a signal worth investigating.

  • Log the call and the approver.
  • Redact secrets and personal data.
  • Alert on new or changed tools.

Check yourself. Which change should trigger an alert?