Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
World desk6 min

How to Secure AI Agents Before They Take Action

AI agent security depends on controlling what agents can do: use distinct identities, narrow permissions, action-time policy checks, exact approvals, isolated memory, and ongoing adversarial tests.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Secure an AI agent by treating it as an actor with its own identity and tightly limited authority—not simply as a chatbot whose answers need filtering. Check authorization outside the model before every tool call, treat incoming and retrieved content as untrusted, require approval for consequential actions, isolate memory and agent handoffs, and limit execution, retries, and spend. Then test and monitor those controls throughout the agent’s lifecycle.

Why AI agents need action-level security

A conventional chatbot primarily produces text. An agent can also plan, call tools, access data, retain state, and carry out a sequence of actions. That means an unsafe instruction can do more than produce a bad answer: it can influence an action with real effects, such as changing a record or sending information elsewhere.

As an Amazon Associate I earn from qualifying purchases.

One important risk is indirect prompt injection: malicious instructions embedded in a webpage, email, document, or other content the agent reads. NIST describes agent hijacking as a failure to distinguish trusted instructions from untrusted data. If an agent can act on its interpretation of that content, the consequences depend partly on what tools and permissions it has. NIST CAISI explains the risk and its evaluation; OWASP’s security guidance also covers tool misuse, excessive agency, memory poisoning, cascading failures, and unbounded costs.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The practical implication is that filtering model output is not enough. The system that executes an action must independently decide whether that action is allowed.

#1 Best Overall
Yubico - Security Key C NFC - Basic Compatibility - Multi-Factor authentication (MFA) Security Key and passkey, Connect via USB-C or NFC, FIDO Certified
  • POWERFUL SECURITY KEY: The Security Key C NFC is the essential physical passkey for protecting your digital life from phishing attacks. It ensures only you can access your accounts.
  • WORKS WITH 1000+ ACCOUNTS: Compatible with Google, Microsoft, and Apple. A single Security Key C NFC secures 100 of your favorite accounts, including email, password managers, and more.
  • FAST & CONVENIENT LOGIN: Plug in your Security Key C NFC via USB-C and tap it, or tap it against your phone (NFC) to authenticate. No batteries, no internet connection, and no extra fees required.
  • TRUSTED PASSKEY TECHNOLOGY: Uses the latest passkey standards (FIDO2/WebAuthn & FIDO U2F) but does not support One-Time Passwords. For complex needs, check out the YubiKey 5 Series.
  • BUILT TO LAST: Made from tough, waterproof, and crush-resistant materials. Manufactured in Sweden and programmed in the USA with the highest security standards.

Build the authorization boundary around every tool call

Give each agent a distinct, accountable identity

Identify the agent separately from the person who initiated a task and from the tools it uses. Keep an owner and lifecycle for each agent, and preserve the initiating user’s authorization where appropriate. Avoid a shared, powerful identity that lets an agent act beyond the user’s rights. Microsoft’s guidance discusses agent identity as a security control, alongside the need to make agent behavior observable and bounded. Microsoft’s agent identity overview.

Grant the minimum authority needed

Limit each agent to the tools and resources required for its job. Separate read and write capabilities, scope access to particular resources and operations, and use short-lived credentials where practical. Recheck the specific target and operation when an action is proposed; a tool’s presence in the agent’s available-tool list is not permission to use it. Microsoft’s shared-responsibility guidance and OWASP’s agent security cheat sheet both emphasize constrained permissions.

Enforce policy outside the model

Put a deterministic authorization check between the agent and the system that performs the action. The policy gate should verify the actor, tenant or customer, agent identity, tool, operation, target resource, applicable scope, and whether approval is required. Deny unknown tools. Fail closed if policy lookup, approval validation, or required audit logging is unavailable. Do not rely on a model’s own judgment to grant its request.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Evaluate authorization at action time, not only when a session starts: an agent may make multiple tool calls in quick succession, with changing targets or consequences. Microsoft’s August 2026 secure-agent guidance recommends evaluating inputs, tool calls, and accessed data at call time.

Rank #2
Yubico - YubiKey 5 NFC - Multi-Factor authentication (MFA) Security Key and passkey, Connect via USB-A or NFC, FIDO Certified - Protect Your Online Accounts
  • POWERFUL SECURITY KEY: The YubiKey 5 NFC is the most versatile physical passkey, protecting your digital life from phishing attacks. It ensures only you can access your accounts
  • WORKS WITH 1000+ ACCOUNTS: Compatible with popular accounts like Google, Microsoft, and Apple. A single YubiKey 5 NFC secures 100+ of your favorite accounts, including email, password managers, and more
  • FAST & CONVENIENT LOGIN: Plug in your YubiKey 5 NFC via USB and tap it, or tap it against your phone (NFC), to authenticate. No batteries, no internet connection, and no extra fees required
  • MOST SECURE PASSKEY: Supports FIDO2/WebAuthn, FIDO U2F, Yubico OTP, OATH-TOTP/HOTP, Smart card (PIV), and OpenPGP. That means it’s versatile, working almost anywhere you need it
  • PRIMARY & SPARE KEYS: Just like having a spare house key, we recommend buying two YubiKeys - one for daily use and one as a spare. That way you’ll never get locked out of your accounts

Keep untrusted content from becoming authority

Treat user input, retrieved documents, webpages, email, API responses, stored memories, and messages from other agents as untrusted data. Their contents may inform an answer, but they must not silently become instructions with authority to invoke tools.

  • Keep trusted system and policy instructions distinct from content supplied or retrieved during a task.
  • Validate and sanitize content before using it, and track where stored information came from.
  • Do not let the model’s classification of content—such as deciding that a request is safe—replace the execution-layer authorization check.
  • Test whether hostile instructions embedded in otherwise relevant content can change a proposed action.

Prompt filtering can contribute to defense, but it cannot guarantee that all malicious or misleading content will be detected. The authoritative control belongs at the action boundary. NIST’s description of agent hijacking centers on this distinction between internal instructions and external data.

Require approval for consequential actions

For destructive, financial, administrative, or externally visible operations, require an independent policy or execution layer to validate the proposed action. Approval should be specific to the action—not a general “user confirmed” flag.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Bind an approval to the actor, tool, target, normalized parameters, time, and expiry. Prevent replay, and require fresh approval if the target or parameters change. Consider step-up authentication for actions such as payments, privilege changes, bulk deletion, account recovery, or production deployment. These controls reduce the chance that an approval for one action can be reused to authorize a different one. OWASP’s guidance and Microsoft’s shared-responsibility guidance address approval and agent action controls.

Rank #3
Yubico - YubiKey 5C NFC - Multi-Factor authentication (MFA) Security Key and passkey, Connect via USB-C or NFC, FIDO Certified - Protect Your Online Accounts
  • POWERFUL SECURITY KEY: The YubiKey 5C NFC is the most versatile physical passkey, protecting your digital life from phishing attacks. It ensures only you can access your accounts
  • WORKS WITH 1000+ ACCOUNTS: Compatible with popular accounts like Google, Microsoft, and Apple. A single YubiKey 5C NFC secures 100+ of your favorite accounts, including email, password managers, and more
  • FAST & CONVENIENT LOGIN: Plug in your YubiKey 5C NFC via USB and tap it, or tap it against your phone (NFC), to authenticate. No batteries, no internet connection, and no extra fees required
  • MOST SECURE PASSKEY: Supports FIDO2/WebAuthn, FIDO U2F, Yubico OTP, OATH-TOTP/HOTP, Smart card (PIV), and OpenPGP. That means it’s versatile, working almost anywhere you need it
  • PRIMARY & SPARE KEYS: Just like having a spare house key, we recommend buying two YubiKeys - one for daily use and one as a spare. That way you’ll never get locked out of your accounts

Isolate memory, execution, and agent handoffs

Protect memory and sensitive information

Validate information’s provenance before storing it, separate memory between users and sessions, and set retention and size limits. Treat memory and retrieved context as possible injection sources. Keep credentials, personal data, and confidential content out of persistent memory and logs unless there is a justified need and appropriate protection. OWASP’s agent security guidance addresses memory, context, and sensitive-information risks.

Constrain code and tool execution

Run agent-generated or agent-selected code in a sandbox with narrowly scoped filesystem and network access. Give each capability only the access it needs. For high-impact operations, design for duplicate execution: make actions idempotent where possible, or explicitly detect and handle repeats.

Set limits on chains, retries, and spend

Bound maximum steps, retries, recursion depth, tool-chain length, tokens, runtime, and spend. Add loop detection and circuit breakers so repeated failures or cycles stop rather than continuing indefinitely. These limits contain both operational failures and runaway costs. OWASP identifies unbounded loops and denial-of-wallet risk among the agent security concerns in its security cheat sheet.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Recheck authorization across agent boundaries

When agents communicate, authenticate them where needed and validate each request at the receiving end. Do not inherit trust or permissions just because an upstream agent made the request. Apply authorization again, check for replay, and prevent delegated work from escalating privileges. This is especially important when one compromised or misdirected agent could pass instructions or sensitive data to others. OWASP’s agentic-applications risk taxonomy includes insecure inter-agent communication and cascading failures.

Rank #4
Yubico - Security Key NFC - Basic Compatibility - Multi-Factor Authentication (MFA) Key, Connect via USB-A or NFC, FIDO Certified
  • POWERFUL SECURITY KEY: The Security Key NFC is the essential physical passkey for protecting your digital life from phishing attacks. It ensures only you can access your accounts.
  • WORKS WITH 1000+ ACCOUNTS: Compatible with Google, Microsoft, and Apple. A single Security Key NFC secures 100 of your favorite accounts, including email, password managers, and more.
  • FAST & CONVENIENT LOGIN: Plug in your Security Key NFC via USB-A and tap it, or tap it against your phone (NFC) to authenticate. No batteries, no internet connection, and no extra fees required.
  • TRUSTED PASSKEY TECHNOLOGY: Uses the latest passkey standards (FIDO2/WebAuthn & FIDO U2F) but does not support One-Time Passwords. For complex needs, check out the YubiKey 5 Series.
  • BUILT TO LAST: Made from tough, waterproof, and crush-resistant materials. Manufactured in Sweden and programmed in the USA with the highest security standards.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Log decisions and test attacks continuously

Keep structured records that connect the initiating request to the agent, policy decision, tool call, resource touched, approval, and outcome. Redact secrets and sensitive data; logging should support investigation without creating another store of exposed credentials or confidential information.

Before production and after material changes, run repeatable tests for:

  • Prompt overrides and malicious instructions embedded in retrieved content.
  • Unauthorized tool use, access to out-of-scope resources, and privilege escalation.
  • Memory poisoning, sensitive-data exfiltration, and approval bypass or replay.
  • Runaway loops, excessive retries, and unsafe inter-agent chaining.

Record whether the authorization gate blocked the attempted action, whether approval was correctly enforced, and whether the event was logged safely. Refresh the test cases as tools, policies, models, and threats change. OWASP’s agentic-applications taxonomy is useful for organizing risk coverage, not for assuming every deployment has the same likelihood or severity of each risk.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Interpret agent-hijacking test results in context

In a 2025 AgentDojo evaluation, NIST CAISI reported that its strongest baseline attack achieved an 11% attack-success rate, while its strongest newly developed attack achieved 81% on a held-out set of user tasks. Those figures describe attacks in that model- and evaluation-specific setup; they are not general failure rates for AI agents. Their practical value is to show why systems need testing against indirect prompt injection rather than assuming a single filter or model behavior will prevent it. NIST’s account of the evaluation.

Know which controls your deployment requires you to operate

Responsibility depends partly on whether an agent is delivered as SaaS, runs on a managed platform, or is self-hosted. Microsoft’s model is illustrative guidance from a vendor, not an independent comparison or a legal determination. Use it as a prompt to establish who actually operates each control in your deployment. Microsoft’s shared-responsibility overview.

Deployment model Responsibility to clarify
SaaS agent Confirm which runtime and model controls the provider operates, and which agent identity, tool permissions, data access, memory, logging, and response settings your organization must configure.
Managed-platform or PaaS agent Clarify the division between platform-managed infrastructure and the controls you configure for orchestration, tools, permissions, identity, memory, and monitoring.
Self-hosted or IaaS agent Plan to operate more of the runtime and orchestration security yourself, in addition to tool access, identity, memory isolation, monitoring, and incident response.

Before launch, document the owner for each control, how you will verify it works, and what happens when it fails. Treat provider features as inputs to that assessment, not as a substitute for checking the behavior of the deployed system.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.