Skip to content
SEC-04 Draft

Hunt for a threat-intel IP across all tenants

When you get an indicator IP, check every client tenant's sign-ins for it, users and service principals both.

Draft. The fix is known and correct, but we're still writing up the full step-by-step.

Query sign-ins

Graph sign-in logs for each tenant:

GET https://graph.microsoft.com/v1.0/auditLogs/signIns?$filter=ipAddress eq '203.0.113.10'

Also check service principal sign-ins. They’re a separate sign-in type, and attackers abusing app credentials show up there.

Visibility gaps

Reading sign-in logs through the API requires Entra ID P1 or P2 in the tenant. Tenants without it (Business Basic or Standard only) have limited visibility. Note those tenants in your results instead of reporting “clean.”

On a hit

  • Treat it as an incident for that user or app (SEC-01, SEC-02).
  • Add the IP to a named location and block it in Conditional Access.

A multi-tenant version of this script is being built.

Seeing this in your environment?

We can check for this, and everything around it, as part of an audit.

Ask us about SEC-04

Find out what's really going on in your tenant.

Tell us what you run and what's worrying you. We'll recommend the right audit, and tell you honestly if you don't need one.