Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Using Microsoft Graph and Powershell - Risk Detection Commands, (Thu, Aug 20th)

0
Low
News
Published: 08/20/2026 (08/20/2026, 13:09:50 UTC)
Source: SANS ISC Handlers Diary

Description

Building on the last diary on Using MS Graph and Powershell, let's look at "Risky" logins.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/20/2026, 13:22:46 UTC

Technical Analysis

The content describes how to use Microsoft Graph API and PowerShell to detect risky login events in Microsoft Entra (Azure AD) environments. Risky logins are defined by parameters such as impossible geography (unexpected IP, subnet, ASN, or country) or unfamiliar devices. The report focuses on the Get-MgRiskDetection command, which is accessible with a basic Entra license, and demonstrates how to connect to Microsoft Graph with appropriate scopes, retrieve risky login data, filter out remediated or dismissed events, and extract key risk reasons from JSON-formatted additional info fields. It also shows how to enrich reports with location data included in the response. The commands and techniques enable security analysts to identify and investigate suspicious login activity effectively.

Potential Impact

The information enables security teams to detect and investigate potentially compromised user accounts by identifying risky login attempts based on geographic anomalies and device unfamiliarity. This can improve incident detection and response capabilities but does not describe a vulnerability or exploit itself. There is no direct impact or exploitation described; rather, it is a method for enhancing security monitoring.

Defensive Guidance

This content does not describe a vulnerability requiring a patch or fix. Instead, it provides guidance on using existing Microsoft Graph API commands to detect risky login events. Organizations should ensure they have at least a basic Entra license to use Get-MgRiskDetection and apply the demonstrated PowerShell queries to monitor for suspicious login activity. No additional remediation or patching is necessary.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Classification
{"confidence":0.3,"severitySource":"default","classifier":"rss-v2"}
Article Source
{"url":"https://isc.sans.edu/diary/rss/33266","fetched":true,"fetchedAt":"2026-08-20T13:22:33.259Z","wordCount":858}

Threat ID: 6a86ff99acd9273b49a96bdf

Added to database: 08/20/2026, 13:22:33 UTC

Last enriched: 08/20/2026, 13:22:46 UTC

Last updated: 08/20/2026, 19:29:49 UTC

Views: 7

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses