Alert grouping needs an explicit key and time window. Repeated detections for the same asset and rule can belong to one investigation case, but two assets or rules should not be merged merely because their messages look alike. Preserve every raw event ID under its group and count both raw alerts and grouped cases. A model may propose relationships between groups; the system must check shared identities, timestamps, and the evidence for each proposed link. Keep grouping reversible so an analyst can split a case when later evidence shows two unrelated activities.
Security alert prompts: group repeated signals without erasing events
Operational case
Orion has 47 raw alerts that the approved key groups into eight cases. Thirteen of those records relate to H-47: 12 failed sign-ins and one later success. The other 34 records occupy seven groups. A summary saying '47 incidents' would overstate case count; a summary saying 'eight alerts' would hide the raw volume. H-47's sequence remains one review case with 13 child records, while a similar login message on H-71 remains separate because the asset key differs.
Raw alert records: 47
Grouped investigation cases: 8
H-47 case: 12 failures + 1 success = 13 child records
Other seven cases: 34 child records
H-71: separate asset, separate casePerformance and review cost
A hash-based pass groups N records in O(N) expected time and O(N) space for stored references; time-window ordering may add O(N log N). The grouping rule should be versioned because changing it can alter historical case counts. Deduplication reduces analyst noise but must not delete repeated attempts that establish sequence, volume, or persistence.
Common Mistakes
- Do not label each raw alert a separate incident.
- Do not delete child records when a case is grouped.
- Do not merge similar text from different assets without a shared identity.
Connected lessons
- Prompt engineering applications
- Prompt Engineering
- Aggregation prompts: pin the denominator and recompute the rate
- Retrieved context: select sufficient evidence before writing the answer
- Security alert prompts: preserve event provenance and time
- Security alert prompts: test benign explanations before escalation
- Security alert prompts: apply scoped severity and escalation rules
- Security alert prompts: quarantine instructions embedded in logs
- Security alert prompts: gate containment and verify receipts
- Project: triage Orion authentication alerts
- Security-alert triage decisions
