Adversarial Attacks and Defense in Agentic Workflows

Master the techniques for securing autonomous agents against prompt injection, data poisoning, and unauthorized tool execution in complex multi-step environments.

Sample Questions

  1. What is the primary characteristic of an indirect prompt injection attack in an agentic workflow?

    • The user directly provides a malicious command to the LLM.
    • Malicious instructions are embedded in external data retrieved by the agent.
    • The attacker modifies the model's weights during inference.
    • The attacker intercepts the API key of the agent.
  2. Which defense mechanism follows the 'least privilege' principle for agentic tools?

    • Giving the agent full administrative access to all databases.
    • Restricting tool access to only the specific functions and data needed for a task.
    • Allowing the agent to execute any shell command.
    • Disabling all logs to prevent data leakage.
  3. What is a major risk when an agent has access to a 'Python Interpreter' tool without sandboxing?

    • The agent might run out of memory.
    • The agent could execute arbitrary code to delete files or exfiltrate environment variables.
    • The agent's responses might become too technical.
    • The agent might use a different version of Python.