> ## Documentation Index
> Fetch the complete documentation index at: https://auth0.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Auth0 Security Agent

> Learn how Security Agent monitors your Auth0 tenant for identity attacks, generates triage reports, and sends remediation recommendations to Slack.

> [!WARNING]
>
> **The Security Agent feature is in [Early Access](https://auth0.com/docs/troubleshoot/product-lifecycle/product-release-stages.md).**
>
> To participate, contact your account team.
>
> By using this feature, you agree to the applicable Free Trial terms in Okta's [Master Subscription Agreement](https://www.okta.com/legal).

Security Agent requires an Auth0 Enterprise plan with the Attack Protection add-on. You must use the Amazon Web Services (AWS) [public](https://auth0.com/docs/deploy-monitor/deployment-options) or [private cloud](https://auth0.com/docs/deploy-monitor/deploy-private-cloud/private-cloud-on-aws.md) to use Security Agent.

Security Agent monitors your Auth0 tenant for identity-based attacks, analyzes anomalous activity, and sends remediation recommendations. When the agent detects an attack, your team can investigate, review recommendations, and apply configuration changes in Slack.

All changes the agent applies are logged in your tenant logs. No configuration changes are made to your tenant without explicit approval from an authenticated Auth0 administrator. To learn more, review the [Auth0 Security Agent Model Card](https://www.okta.com/content/dam/okta-www/en_us/legal/trustandcompliance/auth0-security-agent-model-card.pdf).

## How it works

Security Agent is powered by Auth0 [Attack Protection](https://auth0.com/docs/secure/attack-protection.md) and runs a continuous detection and response cycle.

```mermaid actions={false} theme={null}
sequenceDiagram
  autonumber
  participant tenant as Auth0 tenant
  participant agent as Security Agent
  participant slack as Slack channel
  participant team as Security team

  tenant ->> slack: Alert sent to Slack after a sustained anomaly
  team ->> agent: Select Investigate
  agent ->> tenant: Analyze tenant traffic data,<br>including historical data
  agent ->> slack: Triage report and prompt<br>to view recommendations
  agent ->> agent: Cross-reference report<br>with tenant configuration 
  team ->> slack: Review recommendations and selects<br>recommendations to apply
  agent ->> tenant: Apply remediation actions
  note over agent,tenant: Requires authentication by an<br>Auth0 tenant administrator
  team ->> agent: Rerun triage after a<br>one hour wait time
```

1. Auth0 monitors your tenant activity for rate limit spikes and sustained failed-login patterns, even when that traffic stays below rate limit thresholds. The agent evaluates sustained traffic anomalies over short time windows to trigger alerts.
2. Your security team investigated with Security Agent.
3. Security Agent analyzes your tenant data, including historical data, for more information on the anomaly.
4. The agent generates a triage report with additional context on the incident, alongside a prompt to view recommendations.
5. The agent cross-references the triage report against your current tenant configuration and provides remediation recommendations.
6. Your tenant administrator reviews the recommendations and selects remediation actions to apply.
7. After an Auth0 tenant administrator authenticates, the agent applies the remediation actions to your Auth0 tenant.
8. Your security team reruns triage after a one hour wait time.

Security Agent reviews only the data listed in the [Data access](#data-access) section, such as tenant logs and traffic signals.

## Security Agent recommendations

When the agent identifies a threat, it can recommend the following configuration changes based on your current Attack Protection and Tenant Access Control List (ACL) setup. Recommendations could include:

* [Bot Detection](https://auth0.com/docs/secure/attack-protection/bot-detection.md): Enable and adjust challenge policy and sensitivity.
* [Breached Password Detection](https://auth0.com/docs/secure/attack-protection/breached-password-detection.md): Enable and set block responses.
* [Suspicious IP Throttling](https://auth0.com/docs/secure/attack-protection/suspicious-ip-throttling.md): Enable and set shields to block.
* [Brute Force Protection](https://auth0.com/docs/secure/attack-protection/brute-force-protection.md): Enable and set shields to block.
* [Tenant ACL](https://auth0.com/docs/secure/tenant-access-control-list): Create custom rules to block specific IP addresses or JA4 fingerprints identified as attack sources.

> [!WARNING]
>
> If you use Tenant ACL rules to block traffic based on location, legitimate users could also be blocked. We recommend you check your user locations before applying geolocation rules.

### Tenant ACL rules and reverse proxies

Blocking an IP address or fingerprint with a Tenant ACL rule carries reverse proxy risk. If your Auth0 traffic routes through a reverse proxy that does not preserve the original client IP address, blocking the proxy's IP address or fingerprint stops all login traffic for your tenant, not just attack traffic.

The check does not cover every proxy configuration, so confirm that your proxy configuration preserves the original client IP address before you apply Tenant ACL recommendations.

## Data access

Security Agent accesses the following data from your Auth0 tenant. Data access is scoped to your own tenant only.

| **Data type** | **Purpose** |
| - | - |
| Authentication event logs | Baseline comparison and anomaly detection against recent traffic and activity |
| Traffic signals | Attack classification and scope analysis of IP data, JA4 fingerprints, geographic data, and user agent data |
| Tenant configuration | Context-aware recommendations based on your Attack Protection settings and Tenant ACL rules |
| Rate limit data | Anomaly detection of `HTTP 429` error counts and rates |

## Roles and permissions

| **Capability** | **Anyone in the channel** | **Authenticated Auth0 administrator** |
| - | - | - |
| View alert cards | Yes | Yes |
| View investigation threads | Yes | Yes |
| View triage reports | Yes | Yes |
| Request a recommendation | Yes | Yes |
| Trigger an investigation | Yes | Yes |
| Apply recommendations | No | Yes |

Any team member with access to the Slack channel can follow an active incident in real time, including investigate with the agent and view recommendations. Only authenticated Auth0 administrators can apply configuration changes.

## Limitations

* Recommendations are high-level: enabling or disabling features, adjusting sensitivity, and creating Tenant ACL rules based on observed attack traffic.
* The agent is only available for tenants running on AWS public and private cloud.
* Security Agent supports one Slack application per Auth0 tenant.
* Security Agent is available in Slack only.
* Only users with the Auth0 Tenant Administrator role can authenticate in Slack and apply recommendations through the agent.

## Learn more

* [Configure Security Agent](https://auth0.com/docs/secure/security-agent/configure-security-agent.md)
* [Attack Protection](https://auth0.com/docs/secure/attack-protection.md)
* [Tenant Access Control List](https://auth0.com/docs/secure/tenant-access-control-list)
