如何通过API检索易受风险的用户和应用程序的信息?

问题描述 投票:0回答:1

我们目前正在将 Microsoft Security Insights 集成到我们的应用程序中,以增强安全监控功能。对于警报列表报告,找到此 API https://learn.microsoft.com/en-us/rest/api/securityinsights/incidents/list-alerts?view=rest-securityinsights-2024-03-01&tabs=HTTP

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/alerts?api-version=2024-03-01

我们的重点是扩展此功能,以包括有关易受安全风险影响的用户和应用程序的详细报告。有人可以帮助我们了解 Microsoft Security Insights 或任何其他可以生成此类报告的可用 API 或方法吗?

PFB:

GUI_with_info

azure-sentinel azure-security azure-alerts azure-information-protection
1个回答
0
投票

您可以利用 Microsoft Graph Beta API 检索有关易受风险的用户和应用程序的信息。请注意,您需要拥有“Microsoft Entra ID P2”许可证才能使用riskyUsers API。

我的 Microsoft Entra ID 租户中有以下易受风险的用户列表:

enter image description here

为了获取此有风险的用户信息,我通过使用具有 “Global Reader” 角色的用户登录,在 Graph Explorer 中运行以下 API 请求:

GET https://graph.microsoft.com/beta/identityProtection/riskyUsers?$filter=riskLevel eq microsoft.graph.riskLevel'medium'

回复:

enter image description here

同样,我的以下应用程序容易受到风险影响,可以在“风险工作负载身份”选项卡中找到:

enter image description here 要获取有关有风险的应用程序的信息,请使用以下 API 调用:

GET https://graph.microsoft.com/beta/identityProtection/riskyServicePrincipals

回复:

enter image description here

参考资料:

列出有风险的用户 - Microsoft Graph beta

列出有风险的ServicePrincipals - Microsoft Graph beta

© www.soinside.com 2019 - 2024. All rights reserved.