Repository navigation
[New Rules] Microsoft Entra Agent ID detections (blueprints, agent identities, agent-aware alerting) - #7242
Draft
terrancedejesus wants to merge 2 commits into
Draft
[New Rules] Microsoft Entra Agent ID detections (blueprints, agent identities, agent-aware alerting)#7242terrancedejesus wants to merge 2 commits into
terrancedejesus wants to merge 2 commits into
Conversation
…nt-aware alerting) 11 new rules covering Microsoft Entra Agent ID blueprints and agent identities: blueprint credential abuse, agent identity creation, client-secret auth, unusual ASN/geo sign-ins, mass agent creation, takeover-grade permission grants, and a higher-order rule correlating multiple agentic alerts. Related: elastic/ia-trade-team#850
Adds a 12th Entra Agent ID rule: persistence_entra_id_agent_identity_blueprint_credential_modification.toml. Reproduced the Zscaler/Red Canary autonomous-agent scenario (agent identity with AgentIdentityBlueprint.AddRemoveCreds.All adding a credential to a blueprint it is not a child of) in the test tenant, confirmed via emulation-run (gaps -> verified) that no existing rule (including the pre-existing generic persistence_entra_id_application_credential_modification.toml) distinguishes an agent/blueprint-principal actor on this audit event, and added the initiated_by.app.agentType field to non-ecs-schema.json to support it. Also includes toml-lint formatting cleanup for the other 11 Entra Agent ID rules (whitespace/wrapping only, no semantic changes).
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
12 new rules for Microsoft Entra Agent ID (blueprints, blueprint principals, and agent identities). These are new attack surface introduced by Agent ID, reproduced and validated end-to-end against live telemetry.
Related: elastic/ia-trade-team#850
Rules
AgentIdentityBlueprint.AddRemoveCreds.All,AgentIdentityBlueprint.ReadWrite.All, or anyUserAuthMethod-*write/delete permission being granted to an app. Holding either lets you take over every agent tied to a blueprint, or rewrite any user's auth methods..alerts-security.*. 3+ alerts converging on the same agent/blueprint app ID in an hour is a stronger signal than any one of them alone.Validation
min_stack_versionneeded - none of the ES|QL queries use a version-gated function (MV_CONTAINS,FIELD_EXTRACT,JSON_EXTRACT,FIRST/LAST), and multi-fieldnew_termsdoesn't require one in this repo.azure.signinlogs.properties.service_principal_idplus a few moretarget_resources.0.modified_properties.Nindex slots that already exist in the live index mapping but weren't declared yet.I'll add a comment on each rule below with the threat model, scenario, emulation steps, and how the detection logic catches it.