Templates / Detect and triage risky OAuth apps with Anthropic Claude and Slack

Detect and triage risky OAuth apps with Anthropic Claude and Slack

Needs changes

by Oneclick AI Squad ✓ · 3 views · created 2026-08-17 · SecOps, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What to replace before upgrading

Removed in 3.0Replace with
AI Agent v1 (old agent modes)
Claude - OAuth Risk Scoring (v1.6)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (11)

AI AgentAnthropic Chat ModelSlack

What it does

Quick overview This workflow runs every 30 minutes to detect new or changed OAuth-authorized apps, enriches them with publisher reputation data, scores risk with Anthropic Claude, and then auto-revokes high-risk grants or posts Slack alerts for review while updating a baseline whitelist store. How it works 1. Runs every 30 minutes on a schedule. 2. Fetches the current list of authorized OAuth apps from an identity provider API and the current baseline whitelist from a baseline store API. 3. Compares the live app list to the baseline and stops the run if no new apps or scope changes are detected. 4. Sends the flagged apps to an app reputation API to add publisher/domain reputation signals. 5. Uses Anthropic Claude to assign each flagged app a High/Medium/Low risk tier with a short justification, defaulting to Medium if the model output cannot be parsed. 6. Automatically revokes High-risk OAuth grants via the identity provider API and posts a critical Slack alert, posts Medium-risk apps to a Slack review channel, and silently logs Low-risk apps. 7. Merges all outcomes and upserts the processed app records back into the baseline store so future runs only evaluate new or changed grants. Setup 1. Add HTTP header authentication credentials for your identity provider API endpoints used to fetch authorized apps and revoke grants. 2. Add HTTP header authentication credentials for your baseline store API endpoints used to fetch and upsert the whitelist/baseline. 3. Add HTTP header authentication credentials for the app reputation lookup API. 4. Add an Anthropic credential and confirm the Claude model selection in the Anthropic chat model configuration. 5. Add a Slack credential and ensure the target channel IDs (for critical alerts and review alerts) match channels in your Slack workspace.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.