← Back to Agent

Agent Security Settings

Configure agent-specific security defenses — prompt injection, SQL injection, output filtering, and audit logging, with global/custom override control.

Contents

Overview

For Everyone

Every agent inherits your organization's security settings by default. But some agents need tighter security (e.g., customer-facing agents handling sensitive data) or looser settings (e.g., internal development agents). This tab lets you override security settings for a specific agent without changing the organization-wide defaults.

For Developers

Two endpoints are loaded on mount:

Saving: PUT /agents/:id/security with { securityOverrides: { … } }. Only sections toggled to "Custom" are included in overrides. Sections using global settings have their key deleted from overrides.

Each section has a useGlobal state tracking whether it inherits from org defaults or uses a custom override. Toggling to custom pre-populates with the current global values as a starting point.

How It Works

  1. Load — Global security config and agent overrides are fetched in parallel.
  2. Inspect — Each section shows a GLOBAL badge when using org defaults, or "Custom settings" when overridden.
  3. Override — Toggle the switch on a section to switch from global to custom. The global values are copied as a starting point.
  4. Configure — Modify the custom settings as needed.
  5. Save — Click "Save Changes" to persist only the overridden sections.
  6. Revert — Toggle a section back to global to remove the override.

Key Concepts

Global vs. Custom Settings

The core design principle: every section can either use the organization's global settings or be customized per-agent.

Tip: Only override settings for agents that truly need different security levels. For most agents, the global defaults are sufficient and easier to maintain.

Prompt Injection Defense

Detects and prevents prompt injection attacks — where malicious input tries to override the agent's instructions.

SQL Injection Prevention

Scans tool arguments and API requests for SQL injection patterns.

Output Filtering

Scans agent responses for leaked secrets and personally identifiable information (PII).

Security Audit Log

Controls what security events are logged for this agent.

Best Practices

Troubleshooting

Agent blocking legitimate requests

The sensitivity level may be too high or the mode too strict. Switch from "Block" to "Sanitize" or lower the sensitivity. Check the audit log for false positive detections.

Override not taking effect

Ensure you've toggled the section from "Global" to "Custom" (the switch should be on). Then save changes. If the agent is running, it may take a few minutes to pick up the new config.

Save button disabled

The save button only enables when changes exist (dirty state). Make a change to any section to enable it. If you've toggled sections but not modified values, the dirty state may not trigger — try changing a value.

Global settings changed but agent didn't update

If a section is using "Custom" override, global changes don't apply to it. Toggle back to "Global" to re-inherit org-wide settings.

Organization Context

When an agent belongs to a client organization, security settings integrate with org-level compliance requirements:

Can I disable security features that the org requires?

No. Organization-level security policies set a minimum baseline. You can make agent-specific settings stricter but not more permissive than the org requires.

AgenticMail Enterprise Documentation Report an issue