Integrating Microsoft Sentinel with GitHub (2024)

Table of Contents
Using Webhooks Using Audit Logs

Microsoft Sentinel is a cloud-native security information and event management (SIEM) service that uses artificial intelligence (AI) to analyze security data from various sources and detect threats. GitHub is a platform for hosting, managing, and collaborating on software development projects using Git. By integrating Microsoft Sentinel with GitHub, you can monitor and protect your GitHub repositories, track user activities, and automate security workflows.

In this article, we will show you how to use Microsoft Sentinel with GitHub in two ways:

  1. Using webhooks, and…

  2. Using audit logs

Webhooks are events that GitHub sends to a specified URL when certain actions occur in your repositories. Audit logs are records of user actions and changes in your GitHub enterprise account.

Requirements:

Both methods require you to have a Microsoft Sentinel workspace and a GitHub enterprise account.

Using Webhooks

To use webhooks with Microsoft Sentinel, you need to create an Azure Function app that receives the webhook events from GitHub and sends them to your Microsoft Sentinel workspace. You also need to configure GitHub to send the webhook events to the Azure Function app URL. The steps are as follows:

  1. Create an Azure Function app in your Azure portal.

  2. Copy the URL of the Azure Function app from the Overview page.

  3. Go to your GitHub enterprise account and select the repository that you want to monitor.

  4. Go to Settings > Webhooks and click on Add webhook.

  5. Paste the Azure Function app URL in the Payload URL field and select application/json as the Content type.

  6. Choose the events that you want to trigger the webhook. You can select individual events or all events.

  7. Click on Add webhook to save the configuration.

Now, whenever the selected events occur in your GitHub repository, GitHub will send a webhook event to the Azure Function app, which will forward it to your Microsoft Sentinel workspace. You can view the webhook data in Microsoft Sentinel by going to:

Data connectors > GitHub (using Webhooks) (using Azure Function) > Logs > GitHub_CL

Using Audit Logs

To use audit logs with Microsoft Sentinel, you need to enable audit logging in your GitHub enterprise account and create a data connector in your Microsoft Sentinel workspace. The steps are as follows:

  1. Go to your GitHub enterprise account and select the organization that you want to monitor.

  2. Go to Settings > Audit log and click on Enable audit logging.

  3. Go to your Microsoft Sentinel workspace and select Data connectors from the navigation menu.

  4. Find the GitHub Enterprise Audit Log connector and click on Open connector page.

  5. Follow the instructions to configure the connector. You will need to provide your GitHub enterprise account name, access token, and API URL.

  6. Click on Apply changes to save the configuration.

Now, Microsoft Sentinel will periodically fetch the audit logs from your GitHub enterprise account and ingest them into your workspace. You can view the audit log data in Microsoft Sentinel by going to:

Data connectors > GitHub Enterprise Audit Log > Logs > GitHubAudit_CL

Microsoft Sentinel and GitHub are powerful tools for security and software development. By integrating them, you can enhance your security posture, gain visibility into your GitHub activities, and automate your security responses. You can use webhooks or audit logs to connect Microsoft Sentinel with GitHub, depending on your needs and preferences.

[Want to discuss this further? Hit me up on Twitter or LinkedIn]

[Subscribe to the RSS feed for this blog]

[Subscribe to the Weekly Microsoft Sentinel Newsletter]

[Subscribe to the Weekly Microsoft Defender Newsletter]

[Subscribe to the Weekly Azure OpenAI Newsletter]

[Learn KQL with the Must Learn KQL series and book]

[Learn AI Security with the Must Learn AI Security series and book]

Rod’s Blog is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.

Integrating Microsoft Sentinel with GitHub (2024)
Top Articles
13 Ways To Save on Shipping Costs
😔 Card blocked after 3 attempts with a wrong PIN code | Spendesk Help Center
Victor Spizzirri Linkedin
Golden Abyss - Chapter 5 - Lunar_Angel
Warren Ohio Craigslist
AllHere, praised for creating LAUSD’s $6M AI chatbot, files for bankruptcy
4-Hour Private ATV Riding Experience in Adirondacks 2024 on Cool Destinations
Merlot Aero Crew Portal
A.e.a.o.n.m.s
Best Restaurants Ventnor
Craigslist Deming
Bcbs Prefix List Phone Numbers
Echat Fr Review Pc Retailer In Qatar Prestige Pc Providers – Alpha Marine Group
Does Breckie Hill Have An Only Fans – Repeat Replay
Sprinkler Lv2
Ruse For Crashing Family Reunions Crossword
Crawlers List Chicago
Melissababy
R. Kelly Net Worth 2024: The King Of R&B's Rise And Fall
Johnnie Walker Double Black Costco
Avatar: The Way Of Water Showtimes Near Maya Pittsburg Cinemas
NV Energy issues outage watch for South Carson City, Genoa and Glenbrook
Turns As A Jetliner Crossword Clue
Toonkor211
Till The End Of The Moon Ep 13 Eng Sub
Elanco Rebates.com 2022
Plasma Donation Racine Wi
R/Orangetheory
Metro By T Mobile Sign In
Teenbeautyfitness
Human Unitec International Inc (HMNU) Stock Price History Chart & Technical Analysis Graph - TipRanks.com
Lehpiht Shop
Bozjan Platinum Coins
Barrage Enhancement Lost Ark
Midsouthshooters Supply
7543460065
National Insider Threat Awareness Month - 2024 DCSA Conference For Insider Threat Virtual Registration Still Available
Weather Underground Bonita Springs
SF bay area cars & trucks "chevrolet 50" - craigslist
Uvalde Topic
Cnp Tx Venmo
Sun Tracker Pontoon Wiring Diagram
Weather Underground Cedar Rapids
Rush Copley Swim Lessons
How Big Is 776 000 Acres On A Map
20 Mr. Miyagi Inspirational Quotes For Wisdom
The Pretty Kitty Tanglewood
Bf273-11K-Cl
Race Deepwoken
Acuity Eye Group - La Quinta Photos
Minecraft Enchantment Calculator - calculattor.com
Mazda 3 Depreciation
Latest Posts
Article information

Author: Kerri Lueilwitz

Last Updated:

Views: 6584

Rating: 4.7 / 5 (67 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Kerri Lueilwitz

Birthday: 1992-10-31

Address: Suite 878 3699 Chantelle Roads, Colebury, NC 68599

Phone: +6111989609516

Job: Chief Farming Manager

Hobby: Mycology, Stone skipping, Dowsing, Whittling, Taxidermy, Sand art, Roller skating

Introduction: My name is Kerri Lueilwitz, I am a courageous, gentle, quaint, thankful, outstanding, brave, vast person who loves writing and wants to share my knowledge and understanding with you.