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
- Runs every 30 minutes on a schedule.
- Fetches the current list of authorized OAuth apps from an identity provider API and the current baseline whitelist from a baseline store API.
- Compares the live app list to the baseline and stops the run if no new apps or scope changes are detected.
- Sends the flagged apps to an app reputation API to add publisher/domain reputation signals.
- 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.
- 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.
- Merges all outcomes and upserts the processed app records back into the baseline store so future runs only evaluate new or changed grants.
Setup
- Add HTTP header authentication credentials for your identity provider API endpoints used to fetch authorized apps and revoke grants.
- Add HTTP header authentication credentials for your baseline store API endpoints used to fetch and upsert the whitelist/baseline.
- Add HTTP header authentication credentials for the app reputation lookup API.
- Add an Anthropic credential and confirm the Claude model selection in the Anthropic chat model configuration.
- Add a Slack credential and ensure the target channel IDs (for critical alerts and review alerts) match channels in your Slack workspace.