Skip to content

Tampermonkey userscript - threat hunting query menu for Microsoft Sentinel & Defender

License

Notifications You must be signed in to change notification settings

LasCC/MicrosoftSentinel-Userscript

Repository files navigation

Microsoft Sentinel & Defender: Threat Hunting Queries

Tampermonkey userscript that adds a threat hunting query menu to Microsoft Sentinel and Microsoft Defender Advanced Hunting pages.

Browse, search, pin, and inject KQL queries directly into the Monaco editor.

Screenshots

Defender (dark mode) Sentinel Sentinel (popup)
Defender Sentinel Popup

Features

  • Inline "Threat Hunting Queries" button in the command bar
  • Tabs: User Rules (bundled), Reprise99, Bert-JanP, FalconFriday (fetched from GitHub)
  • Category filter chips for quick sub-filtering within each repo tab
  • Search across query name, description, category, and KQL content
  • Pin queries for quick access (horizontal pill bar above results)
  • Click any query row to inject it into the editor
  • Works in both Sentinel (reactblade iframe) and Defender (security.microsoft.com)
  • Light/dark theme support via Azure Portal CSS variables

Install

  1. Install Tampermonkey
  2. Click Install Userscript (auto-installs in Tampermonkey)
  3. Navigate to Advanced Hunting in Sentinel or Defender

Public Rule Sources

Repo Queries Format
reprise99/Sentinel-Queries ~460 .kql files
Bert-JanP/Hunting-Queries-Detection-Rules ~445 .md with fenced KQL
FalconForceTeam/FalconFriday ~40 .md with fenced KQL

Rules are fetched lazily on first tab click, cached locally for 12 hours.

Build

npm install
npm run build

Output: dist/sentinel-userscript.user.js

Related

About

Tampermonkey userscript - threat hunting query menu for Microsoft Sentinel & Defender

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors