Before you start
- Verify your account is on an Auth0 Enterprise plan with the Attack Protection enabled. To learn more, read Manage your Auth0 Subscription Plan.
- Ensure your organization has an active Slack workspace.
- If your organization enforces a Slack application approval policy, coordinate with your Slack administrator before starting. Approval can take several days.
- Create a dedicated Slack channel for security alerts before you begin (for example,
#auth0-security-alerts). Restrict access to this channel to your security team, as alert cards contain tenant-specific data including IP addresses and rate metrics.
Create the Slack application
You need to access Auth0 Dashboard for the Slack application manifest to provide during Slack configuration.
- Log in to api.slack.com/apps.
- Select Create New App.
- Select From a manifest.
- Choose your Slack workspace.
- Paste in the manifest JSON provided in Auth0 Dashboard.
If you recieve an error message about URL verification, select the provided link to verify your Auth0 tenant URL. For example:
https://{YOUR_AUTH0_DOMAIN.auth0.com/icg/webhooks/slack} - Review the configuration and select Create.
Collect application credentials
After you create the application, you need to collect three values from the Slack application settings page for configuring Security Agent in Auth0 Dashboard.- Navigate to Basic Information and copy the App ID and Signing Secret.
- Navigate to Install App and copy the Bot User OAuth Token.
Install the application in your workspace
- In the Slack application settings, navigate to Install App.
- Select Install to Workspace.
- Review the permission scopes and select Allow.
Configure your Slack channel
- Invite the bot to your dedicated security channel using
/invite @[bot-name]. - Collect the Channel ID: select the channel name, then select Settings > About, and scroll to the bottom to find the Channel ID (format:
C01234ABCDE). - Provide the Channel ID to your Auth0 administrator along with the credentials from the Collect application credentials step.
Configure Security Agent in the Auth0 Dashboard
The Auth0 administrator completes the remaining steps.- Navigate to Auth0 Dashboard > Security > Attack Protection > Security Agent.
- Toggle on Enable Security Agent. Once you enable the Security Agent, it begins monitoring your tenant’s traffic.
- Enter the four values collected by the Slack administrator:
- Slack App ID
- Slack Signing Secret
- Slack Bot Token
- Channel ID
- You have the option to create the required machine-to-machine application.
Create the machine-to-machine application
Security Agent requires a machine-to-machine (M2M) application to access your tenant configuration with read-only permissions. The Security Agent configuration page prompts you to create one if none exists. Select Create M2M App on the configuration page. This application gives Security Agent read-only access to your Attack Protection settings, Tenant ACL rules, and the data used to generate recommendations.If the M2M application is deleted from your tenant after setup, the configuration page will show an error. Return to the configuration page to recreate it.
Verify setup
In your designated Slack channel, type@[bot-name] to mention the bot. If the bot responds with a help message, setup is complete.
If the bot does not respond, verify the following in Auth0 Dashboard > Security > Attack Protection > Security Agent:
- The App ID, Signing Secret, Bot User OAuth Token, and Channel ID are entered and saved correctly. A copy-paste error such as a trailing space is the most common cause.
- The Enable Security Agent toggle is on.
- The M2M application is active.