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
Should I invest in bitcoin?
Bali On A Budget: The Ultimate Guide To Saving Money In Bali
Puretalkusa.com/Amac
Miles City Montana Craigslist
7543460065
Rochester Ny Missed Connections
Valentina Gonzalez Leaked Videos And Images - EroThots
Rapv Springfield Ma
Newgate Honda
Blue Beetle Showtimes Near Regal Swamp Fox
Shemal Cartoon
Mens Standard 7 Inch Printed Chappy Swim Trunks, Sardines Peachy
How to Store Boiled Sweets
People Portal Loma Linda
104 Whiley Road Lancaster Ohio
Shannon Dacombe
Panorama Charter Portal
Used Sawmill For Sale - Craigslist Near Tennessee
Vanessawest.tripod.com Bundy
Zoe Mintz Adam Duritz
Jet Ski Rental Conneaut Lake Pa
Pickswise Review 2024: Is Pickswise a Trusted Tipster?
Barber Gym Quantico Hours
Dcf Training Number
The Largest Banks - ​​How to Transfer Money With Only Card Number and CVV (2024)
California Online Traffic School
SOGo Groupware - Rechenzentrum Universität Osnabrück
Black Lion Backpack And Glider Voucher
Gopher Carts Pensacola Beach
Calvin Coolidge: Life in Brief | Miller Center
Die wichtigsten E-Nummern
Sam's Club Near Wisconsin Dells
Rock Salt Font Free by Sideshow » Font Squirrel
Murphy Funeral Home & Florist Inc. Obituaries
Babbychula
Etowah County Sheriff Dept
The TBM 930 Is Another Daher Masterpiece
The Closest Walmart From My Location
Easy Pigs in a Blanket Recipe - Emmandi's Kitchen
Suffix With Pent Crossword Clue
Setx Sports
Parent Portal Pat Med
Fatal Accident In Nashville Tn Today
The Nikki Catsouras death - HERE the incredible photos | Horror Galore
Spreading Unverified Info Crossword Clue
Rise Meadville Reviews
Erica Mena Net Worth Forbes
Uno Grade Scale
Marion City Wide Garage Sale 2023
Renfield Showtimes Near Regal The Loop & Rpx
Bloons Tower Defense 1 Unblocked
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.