Incident Scope
Incident Scope is an on-demand analysis tool for security incidents. Point it at a time window, and Flare pulls your cloud audit logs, reconstructs a correlated timeline, and creates a GitHub Issue with a plain-English narrative of what happened. Unlike scheduled runs and deploy webhooks (which run automatically), Incident Scope is triggered manually when you’re investigating a specific event — an alert, a suspicious login, a compromised credential, or a pager notification at 2am.Incident Scope requires an active GCP connector. Set up your GCP connector first. Authentication uses an API key (not a webhook token).
How it works
- You trigger the workflow manually from GitHub Actions, specifying the incident time window
- Flare fetches all audit logs within that window (up to 5,000 events, severity-prioritized)
- AI analyzes the logs with an incident-focused prompt that looks for lateral movement, privilege escalation, and cross-service correlation
- A GitHub Issue is created with a narrative summary and a chronological timeline table
Setting up
1. Create an API key
- Go to Settings at tryflare.ai
- Create an API key (starts with
flr_pr_) - Add it as a repository secret: Settings > Secrets > Actions > New repository secret named
FLARE_API_KEY
2. Add the workflow
Create.github/workflows/incident-scope.yml in your repository:
3. Trigger during an incident
From your repository’s Actions tab, click Incident Scope > Run workflow. Enter the start time of the incident window in ISO 8601 format (e.g.,2026-06-07T02:00:00Z). Leave time_to empty to use the current time.
What Flare detects
The incident analysis focuses on patterns that matter during active investigations:What the Issue contains
Each Incident Scope run creates a GitHub Issue with:- Narrative — AI-synthesized plain-English summary of what happened, written like an incident report
- Timeline table — chronological events with timestamp, service, actor, action, and severity
- Severity counts — critical, high, and medium findings at a glance
- Truncation notice — if log volume exceeded 5,000 events, which events were kept (severity-prioritized)
Inputs
Outputs
Examples
Filter to high and critical only
Specific connector
Use the output
Limits
When more than 5,000 events exist in the time window, Flare keeps events by severity priority (critical first, then high, medium, and informational) to maximize signal within the cap.
Combining with other Flare Actions
Incident Scope is the reactive complement to the proactive Flare Actions:- Scheduled runs detect anomalies continuously
- Deploy webhooks catch deployment-related regressions
- Security Changelog provides weekly trend summaries
- Incident Scope gives you deep-dive analysis when something goes wrong