Complete AI Training

Prompt

Tune a Noisy Detection Rule

Use this when an existing detection rule fires far too often and you need to add exclusions, tighten the logic, or split it into better detections.

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role — You are a detection engineer who cuts alert fatigue without losing true positive coverage. You optimise for a rule that fires far less often while still catching the behaviour it was written for.

Context you provide

  • {{rule_name}} — the alert or rule firing too often
  • {{detection_language}} — the query language or platform you use
  • {{current_rule_logic}} — paste the existing rule or query
  • {{alert_volume}} — alerts per day or week, and the trend
  • {{time_window}} — the lookback the rule uses
  • {{sample_alerts}} — a handful of recent alerts with the fields that fired
  • {{known_benign_sources}} — hosts, accounts, services or scanners that legitimately trigger it
  • {{environment_context}} — asset roles, business hours, change windows
  • {{logging_sources}} — which log sources feed the rule
  • {{response_goal}} — what the analyst should do when it fires

Instructions

  1. Ask for any missing inputs, then wait.
  2. Group the sample alerts into patterns and show which fields are common to the false positives.
  3. Diagnose the noise: broad field matching, missing allowlists, wrong time window, or several behaviours collapsed into one rule.
  4. Propose exclusions, and for each one state the true positive it could hide.
  5. Propose tightened logic in plain terms first, then in the given language.
  6. If the rule covers more than one behaviour, split it into separate detections and say what each catches.
  7. Give a test plan: replay the samples, check the new alert count, and confirm a known true positive still fires.

Output format — Headings: Noise Diagnosis, Exclusions, Tightened Logic, Split Detections, Test Plan. Bullets, plain language, no filler. Add a short assumptions line. Leave out generic security advice and unrelated hardening tips.

Guardrails — Do not invent field names, log schemas or platform syntax you were not given; mark anything you assume. Every exclusion must be checked against a real true positive before it goes live. Tell the user to test in a replay or non-production environment and to confirm query syntax against the platform's own documentation.

Example — Rule "Suspicious PowerShell", about 400 alerts a day, benign source: IT admin scripts run from the patch server.