LIVE · cybersecurity feed
Live wire
security

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

A recent report discussed methods for leveraging Microsoft Graph and PowerShell to identify "risky" logins within an environment. This follows previous discussions on general usage of Microsoft Graph and PowerShell, focusing specifically on the detection of potentially compromised user accounts or suspicious authentication attempts.

ZeroDay News ·

Source: SANS ISC

A recent report discussed methods for leveraging Microsoft Graph and PowerShell to identify "risky" logins within an environment. This follows previous discussions on general usage of Microsoft Graph and PowerShell, focusing specifically on the detection of potentially compromised user accounts or suspicious authentication attempts.

The core mechanism involves querying Microsoft Graph, a RESTful web API that allows access to data and intelligence from Microsoft 365 services, using PowerShell cmdlets. Specifically, the focus is on retrieving risk detection information, which Microsoft 365 services generate based on various signals. These signals can include unusual login locations, impossible travel scenarios, leaked credentials, or sign-ins from infected devices.

Microsoft Graph exposes a rich set of APIs for security and identity management, including endpoints related to identity protection and risk detections. PowerShell provides the scripting capabilities to authenticate to Microsoft Graph, construct appropriate queries, and parse the returned JSON data. This allows administrators to programmatically fetch data points indicating user risk levels and specific risky events.

For instance, an administrator might use PowerShell to query the "identityProtection/riskDetections" endpoint of Microsoft Graph. The returned data would contain details about detected risks, such as the user involved, the type of risk, the detection time, and associated IP addresses or locations. This information is crucial for security teams to investigate potential compromises and take remedial actions.

Products like Azure Active Directory Identity Protection, which is part of Microsoft Entra, are designed to automate the detection and remediation of identity-based risks. The reported method essentially provides a programmatic way for organizations to access and integrate these risk signals into their existing security operations and incident response workflows, rather than relying solely on the portal interface.

Mitigation for risky logins typically involves multi-factor authentication (MFA), conditional access policies that block or challenge suspicious sign-ins, and regular review of identity protection reports. When a risky login is detected, common responses include forcing a password reset, revoking sessions, or temporarily blocking the user account until the risk can be investigated and mitigated.

The ability to programmatically access and analyze risk detection data from Microsoft Graph using PowerShell represents a powerful tool for security professionals. It allows for greater automation in threat hunting, incident response, and continuous monitoring, enabling organizations to proactively identify and respond to evolving identity-based threats within their Microsoft 365 ecosystems.

ShareXLinkedInWhatsAppFacebook

More News

view all →
security

Canadian cybersecurity executive arrested in federal extortion case

A Canadian cybersecurity executive was arrested in Pennsylvania on Thursday, facing federal charges of conspiracy to commit extortion. Edward Dubrovsky, 54, a co-founder and former Chief Operating Officer of CYPFER, a firm specializing in ransomware negotiation, is charged with conspiring to threaten the confidentiality of information for extortion and conspiring to commit Hobbs Act extortion,…

breach

Criminal IP Introduces AITEM as the Next Evolution of Attack Surface Management

AI SPERA, the company behind the cyber threat intelligence platform Criminal IP, has announced AITEM (AI-Powered Threat Exposure Management), an expansion of its Attack Surface Management (ASM) offerings. AITEM aims to move beyond traditional asset discovery to provide a more comprehensive approach to understanding, prioritizing, and responding to security exposures. The platform is scheduled…

ai

AI Is Getting Really Good at Messing With Cybercriminals

Anti-cybercrime initiatives are increasingly deploying artificial intelligence to disrupt scammers by engaging them with lifelike bots, which the criminals mistake for genuine victims. This strategy aims to waste scammers' time and resources while gathering intelligence on their operations.

ransomware

FBI Arrests Ransomware Negotiation Firm Co-Founder in ShinyHunters Probe

The Federal Bureau of Investigation (FBI) has reportedly arrested Edward Dubrovsky, a co-founder of the ransomware negotiation firm Cypfer and currently associated with CyberSteward. The arrest is said to be part of the ongoing ShinyHunters investigation, specifically in connection with an incident involving FBI job applicant data.

ai

The Third-Party Agent Problem: Why Security Built for AI You Chose Misses the Agents You Didn't

A new report highlights a significant blind spot in enterprise security architectures concerning the proliferation of third-party AI agents. The forthcoming 2026 State of Agent Security Report indicates that current security models, often designed to protect AI systems directly chosen and deployed by an organization, frequently fail to account for AI capabilities embedded within third-party…

security

Insider Cyber Extortion Plot Against Industrial Firm Lands Engineer in Prison

A former core infrastructure engineer has been sentenced to prison for an attempted cyber extortion plot against an industrial firm. The engineer reportedly deleted administrative accounts and reset hundreds of user passwords, subsequently demanding a ransom of 20 Bitcoin to prevent further disruption to the company's servers.