Skip to content

bartbruninx/xdr-on-edge

Repository files navigation

πŸ›‘οΈ XDR on Edge

A cross-browser extension that brings Microsoft Security capabilities to your browser for incident monitoring, IOC management, and threat hunting.

Browser Support Manifest TypeScript Svelte

πŸš€ Features

  • πŸ” OAuth2 Authentication - Secure PKCE flow with Microsoft Entra ID
  • πŸ“Š Incident Dashboard - Real-time security incident monitoring
  • πŸ” IOC Management - Website scanning and manual IOC collection
  • 🎯 Threat Hunting - KQL template-based hunting with Microsoft Security
  • πŸ”” Smart Notifications - Background monitoring with severity-based alerts

οΏ½ Core Modules

πŸ“Š Dashboard

  • Live incident monitoring with auto-refresh
  • Severity-based filtering and alerts
  • Assignment tracking and status updates

πŸ” IOC Management

  • Website Scanning: Extract IOCs (domains, IPs, URLs, hashes, emails) from web pages
  • Manual Entry: Add IOCs with automatic type detection
  • Smart Storage: Persistent IOC collection with export capabilities
  • Defanged Support: Handles defanged indicators (hxxp, [.], etc.)

🎯 Threat Hunting

  • KQL Templates: Pre-configured queries for different IOC types
  • Multi-Query Union: Automatic query combination with proper syntax
  • Direct Launch: One-click hunting in Microsoft Security portal
  • Template Management: Customizable KQL templates in settings

πŸ› οΈ Technology Stack

πŸ“‹ Prerequisites

  • Node.js 18+ and npm 9+
  • Microsoft Entra ID application registration
  • Chrome 88+, Firefox 109+, or Edge 88+

πŸš€ Quick Start

Option A: Download Release (Recommended)

  1. Visit GitHub Releases
  2. Download the appropriate browser package:
    • xdr-on-edge-chrome-vX.X.X.zip for Chrome
    • xdr-on-edge-firefox-vX.X.X.zip for Firefox
    • xdr-on-edge-edge-vX.X.X.zip for Edge
  3. Extract the zip file
  4. Skip to Install in Browser section below

Option B: Build from Source

git clone <repository-url>
cd xdr-on-edge
npm install
# Build for All browsers
npm run build:all
# OR Build for individual target
npm run build:chrome
npm run build:firefox  
npm run build:edge

2. Microsoft Entra ID Configuration

Create App Registration

  1. Go to Azure Portal β†’ Entra ID β†’ App registrations β†’ New registration
  2. Set name: XDR on Edge or choose your own
  3. Choose Single Tenant account type

Add API Permissions

Go to API permissions β†’ Add permission β†’ Microsoft Graph β†’ Delegated:

  • offline_access - Maintain access to data you have given it access to
  • openid - Sign users in
  • profile - View users' basic profile
  • User.Read - Sign in and read user profile
  • SecurityIncident.Read.All - Read incidents (requires admin consent)

Configure Authentication

  1. Authentication β†’ Add platform β†’ Single-page application
  2. Add redirect URIs (get the actual URI from the extension's Options page > Extension info > OAUTH > Redirect URI).

Get Client ID and Tenant ID

Copy the Application (client) ID and Directory (tenant) ID from the Overview page.

3. Build & Install

Install in Browser

  • Chrome: chrome://extensions/ β†’ Enable Developer mode β†’ Load unpacked β†’ Select dist-chrome/ (or extracted release folder)
  • Firefox: about:debugging β†’ This Firefox β†’ Load Temporary Add-on β†’ Select dist-firefox/manifest.json (or extracted release folder)
  • Edge: edge://extensions/ β†’ Enable Developer mode β†’ Load unpacked β†’ Select dist-edge/ (or extracted release folder)

4. Configure Extension

  1. Click extension icon in browser toolbar
  2. Go to Settings (gear icon)
  3. Enter your Client ID and Tenant ID
  4. Save and return to dashboard
  5. Click Sign In to authenticate

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

  • Microsoft Graph Security API for the security data
  • Svelte Team for the amazing reactive framework
  • Mozilla & Chrome Teams for WebExtension APIs

About

Non-Official Browser Extension for Defender XDR

Topics

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors