Cloud Control Plane Threat Detection: CloudTrail and Azure
Skip to content

Cloud Control Plane Threat Detection

Attackers can change permissions, create credentials, and expose cloud resources without deploying malware. Cloud control plane threat detection examines the administrative activity behind those actions.

This guide explains which events matter, how to connect them into an investigation, and how to respond across AWS, Azure, and Entra ID.

What the Control Plane Records

The control plane provides the APIs used to manage cloud resources and access. Creating a virtual machine, assigning a role, changing a storage policy, or disabling logging are all administrative operations that can leave audit records.

Those records help answer four questions: who acted, what they targeted, where the request came from, and whether it succeeded.

SourceUseful evidence
AWS CloudTrailRecorded API activity, calling identities, source addresses, request details, and results.
Azure Activity logResource management operations, including changes to permissions, infrastructure, and diagnostic settings.
Entra audit logsDirectory changes affecting users, groups, roles, applications, and credentials.
Entra sign-in logsAuthentication activity and available details about devices, sessions, and access conditions.
Google Cloud Audit LogsAdministrative changes and other audit activity according to the service and logging configuration.

Audit coverage is not universal. Management logs do not provide a complete record of activity inside a virtual machine or every read from a storage service. Those questions require additional workload, resource, or data-access evidence.

Why Attacks Look Like Administration

Attackers use the same interfaces as administrators and deployment tools. A stolen key can list resources. A compromised account can grant access. An unauthorized script can launch compute through an approved API.

The operation name alone rarely settles whether the activity is malicious.

Useful detections combine three types of evidence:

Impact

Does the action change access, exposure, resources, or security visibility?

Context

Is it expected for this identity, environment, and business process?

Sequence

What happened before and after it?

A new key may be routine. A new key followed by unfamiliar network activity, broader permissions, and disabled logging needs a different level of attention.

An Access Key Attack

Here is an illustrative sequence involving a compromised administrator account. The account already has permission to create credentials and grant access.

TimeObserved activityWhy it matters
09:12An administrator signs in from an unfamiliar network.A change from the account’s normal access pattern.
09:16The administrator creates an access key for a service account.A new credential has been introduced.
09:21The key is used from a second, unfamiliar network.Its use does not match the expected service environment.
09:22The key performs a burst of resource discovery calls.The caller appears to be exploring the account.
09:28The administrator grants broader permissions to the service account.The new credential now has greater reach.
09:31The key is used to stop logging on a regional trail.The activity targets security visibility.
09:37Compute instances are launched in a previously unused region.Possible unauthorized resource use.

An investigator should check the successful operations, effective permissions, credential relationships, and approved changes behind this sequence.

The key point is the connection between the events. A rule looking only for key creation would miss much of the story.

Administrator sessionSign-in from an unfamiliar network
creates key
Service accountNew access key createdBroader permissions granted
issued
New access keyUsed from a second networkBurst of discovery calls
stops logging
Logging changeRegional trail stopped
launches
Compute resourcesInstances in an unused region

AWS Events Worth Detecting

Start with operations that can materially change an attacker’s access or the organization’s ability to see it.

ObjectiveExample CloudTrail eventsInvestigation context
Suspicious accessConsoleLogin, AssumeRoleIdentity, authentication context, source, target role, and previous activity.
Persistent accessCreateAccessKey, CreateLoginProfile, CreateUser, UpdateAssumeRolePolicyWho created access, for whom, and how it was subsequently used.
Permission changesAttachUserPolicy, PutUserPolicy, AttachRolePolicy, CreatePolicyVersionEffective permissions, policy contents, scope, and whether the change took effect.
Logging interferenceStopLogging, DeleteTrail, UpdateTrail, PutEventSelectorsWhether collection stopped or its coverage was reduced.
Public or external exposurePutBucketPolicy, PutBucketAcl, ModifySnapshotAttribute, AuthorizeSecurityGroupIngressResulting access, external principals, network scope, and compensating controls.
Secret accessGetSecretValue, GetParameterWhich secret or parameter was requested, whether access succeeded, and whether it was expected.
Resource abuseRunInstancesRegion, instance type, volume, caller, and the account’s normal deployment patterns.

Interpret request details and results rather than treating every listed operation as an incident. A policy update may reduce access, and a failed request did not necessarily change the environment.

Role assumptions also deserve attention. Follow the source principal, target role, session identifiers, and available source identity to trace activity across accounts.

Azure and Entra Signals

Azure resource activity and Entra directory activity describe different parts of the environment. Investigations often need both.

SignalEvidence sourceWhat to investigate
New Azure role assignmentAzure Activity logPrincipal, role, scope, and whether the access was approved.
Elevated Azure accessRelevant Azure and Entra audit recordsWhy a Global Administrator elevated access and what followed.
Diagnostic settings changed or deletedAzure Activity logWhich logs stopped exporting and whether another collection path remains.
VM command executionAzure Activity log and workload evidenceCaller, target VM, execution details, and resulting process activity.
Storage account keys listedAzure Activity logWhether key retrieval was expected and how storage was subsequently accessed.
Application consentEntra audit logsApplication identity, permissions, consent type, and subsequent activity.
Application credentials addedEntra audit logsThe affected application or service principal, credential owner, and later use.

Elevating Azure access gives a Global Administrator the ability to manage access at root scope. It should be investigated as a significant permission change, with the resulting assignments and activity examined.

Key Vault secret reads require separate attention. They are data-plane operations, so configure the relevant resource logging rather than expecting the Azure Activity log to provide the full record.

Apply the Same Method in Google Cloud

The event names differ, but the investigation questions remain familiar.

Prioritize IAM policy changes, service account key creation, unexpected resource deployments, and changes to log routing. Examine the calling principal, affected resource, request outcome, and subsequent use of any access granted.

Confirm which Data Access audit logs are enabled for the services being monitored. Administrative logs alone do not answer every question about access to stored data.

Baseline Identities and Workloads

A useful baseline describes expected behavior for a particular identity and function. Comparing every account against the same pattern creates unnecessary alerts.

Separate human administrators, service accounts, deployment pipelines, and provider-managed activity.

Useful baseline attributes include:

  • Normal source networks and access paths.
  • Expected roles and cross-account relationships.
  • Services, resources, and regions used.
  • Typical operations and deployment schedules.
  • Credential creation and rotation patterns.
  • Approved administrative tools and automation.

Use enough history to capture normal operational variation, but do not make a fixed history window a prerequisite for detecting a dangerous change.

An unfamiliar network is a lead, not a verdict. VPNs, hosted runners, new deployments, and provider services can all change the apparent source of legitimate activity.

Follow the Credentials

Cloud credentials can be stolen from endpoints, repositories, pipelines, or identity sessions. Investigating their origin often requires evidence outside the cloud provider’s management logs.

Identity Evidence

Connect federated access with the relevant sign-in, session, device, and authentication records.

Endpoint Evidence

Examine the workstation or server expected to use the credential for suspicious processes, credential access, or unauthorized scripts.

Repository and Pipeline Evidence

Review exposed secrets, workflow changes, job activity, and the identity used by the build or deployment process.

Network Evidence

Look for relevant connections from monitored systems, while accounting for proxies, remote access, and incomplete sensor coverage.

Missing activity on one workstation does not prove that a cloud session was stolen. Use it as one part of the assessment, with collection coverage and alternative access paths stated.

Check Your Logging Coverage

A detection can only use records that are generated, delivered, and retained. Validate those stages separately.

Evidence neededWhat to verify
AWS management activityRelevant accounts, regions, global service events, and ongoing delivery.
AWS data accessEvent selectors cover the required services and resources.
Azure resource changesRequired subscriptions and scopes are included in collection.
Azure data-plane activityResource logs are enabled and routed to the intended destination.
Entra activityPermissions, licensing, event types, and export arrangements meet the investigation need.
Google Cloud activityRequired projects, log categories, sinks, and access permissions are covered.

CloudTrail Event history provides 90 days of recorded management events on a regional basis. Ongoing centralized collection and longer retention require additional configuration.

Organization trails can simplify AWS account coverage, including newly added member accounts. Still verify region settings, event selection, delivery permissions, and destination health.

Account for collection delays. Correlate on event timestamps while retaining arrival times, and allow investigations to incorporate records that arrive later.

A quiet source may be healthy and inactive. A missing source may be broken or tampered with. Health monitoring should help distinguish the two.

Respond to the Access Path

Containment must address the access an attacker actually holds. Disabling one credential may leave another session or persistence mechanism available.

Restrict Compromised Credentials

Deactivate exposed long-term keys where appropriate and identify other credentials created or accessed during the incident.

Address Temporary Sessions

Check for assumed roles, federation, and other temporary credentials. Use the provider’s supported mechanisms to restrict their permissions or revoke applicable sessions.

Remove Unauthorized Access

Reverse malicious role assignments, trust changes, policy grants, and application permissions after recording the relevant state.

Restore Visibility

Re-enable affected logging and verify that records are arriving again. Preserve evidence of the logging change and any resulting gap.

Contain Affected Resources

Assess suspicious compute, storage, and workloads. Preserve relevant evidence where practical, but do not delay urgent containment solely to complete a snapshot.

Validate the Result

Check action outcomes, search for related access paths, and continue monitoring for reuse or re-entry.

Record approvals and execution results in the case. Actions affecting production need the checks and authority agreed for that environment.

Test the Whole Detection

A rule matching a sample event is only part of the test. Validate the path from cloud activity to investigation and response.

Use a controlled account or test environment to exercise representative scenarios:

1
Change loggingConfirm that the event is collected and reduced coverage is identified.
2
Create and use credentialsCheck whether creation and subsequent use can be linked.
3
Grant permissionsVerify that the rule examines the resulting access and affected principal.
4
Expose a resourceConfirm that the detection distinguishes attempted changes from successful exposure.
5
Launch unexpected resourcesTest region, workload, and deployment context.
6
Prepare responseVerify targets, permissions, approval requirements, and outcome recording.

Include legitimate administration in the test set. A useful detection should identify concerning activity without turning every deployment into an incident.

Measure evidence completeness and analyst effort alongside detection time. Retest when account structure, logging, identities, or collection methods change.

Cloud Detection With ThreatDefence

ThreatDefence brings cloud audit activity into the AI SOC platform alongside identity, endpoint, email, and network evidence.

Detections identify suspicious changes and activity. AI agents gather the surrounding context, connect related events, and prepare findings with supporting records and recommended actions. Analysts can inspect the evidence and direct further investigation from the same case.

Response follows your configured permissions and approval rules. ThreatDefence’s 24x7 SOC can investigate and coordinate action alongside your team.

ThreatDefenceFAIR 62↓7.0Search pages…secops › acmeacme30d61
AWS CloudTrail
Failed calls412
Write actions18,906
Console sign-ins
Principals
AWS accounts3
CloudTrail risk scorelast 24h
68elevated
Trail tampering1
Keys used from a new network1
Policy made public1
Console sign-ins without MFA0
Root account activity1
By accountscore
acme-prod68
acme-dev41
acme-data22
Write actions over time30 days
30 Sep10 Oct20 Oct29 Oct
Top API callsevents
DescribeInstances
41,240
AssumeRole
18,862
GetObject
12,106
PutObject
6,418
UpdateFunctionCode
1,912
CreateAccessKey
6
Risky actions watchlistsorted by time
TimePrincipalActionAccountWhy it is here
02:13:44svc-deployCreateAccessKeyacme-prodnew ASN
02:21:37svc-deployPutBucketPolicyacme-prodpublic read
02:22:02svc-deployStopLoggingacme-prodtrail tampering
03:40:18ops-adminAttachUserPolicyacme-devAdministratorAccess
04:02:51build-runnerRunInstancesacme-devunused region
05:16:09rootConsoleLoginacme-dataMFA used

See It in Action

    I'm an MSP, MSSP, or reseller

    By submitting this form, you accept the terms in our privacy policy.

    Frequently Asked Questions

    What is the cloud control plane?

    It is the set of interfaces used to manage cloud resources, permissions, and configuration. Recorded activity helps investigators understand administrative changes and potential misuse.

    Which CloudTrail events should we prioritize?

    Start with changes to logging, privileged access, credentials, trust policies, and public exposure. Investigate the caller, request details, outcome, and surrounding activity.

    Does CloudTrail record S3 object access automatically?

    Not in default management-event coverage. Object-level activity requires the relevant data-event logging to be configured.

    How long does CloudTrail keep events?

    Event history provides 90 days of management events in each region. Longer retention and centralized investigation depend on the configured collection and storage arrangements.

    Is a console sign-in without MFA proof of compromise?

    No. Authentication context depends on the access method, including federation. Examine the identity provider records, session details, and subsequent activity before reaching a conclusion.

    What is the difference between Azure Activity and Entra audit logs?

    Azure Activity describes resource management operations. Entra audit logs describe directory changes. Sign-in logs add authentication evidence, and resource logs provide additional service-specific activity.

    Are Key Vault secret reads in the Activity log?

    They are data-plane operations covered by Key Vault resource logging. Enable and collect the appropriate records for that visibility.

    Does disabling an access key end all attacker access?

    No. Temporary credentials, separate sessions, additional keys, or changed permissions may remain usable. Containment needs to address each relevant access path.

    How do we reduce false positives?

    Use identity-specific context, approved changes, effective permissions, and related events. Test detections against legitimate automation as well as attack scenarios.

    Can cloud response be automated?

    Specific actions can run within approved conditions and limits. Production impact, credential dependencies, evidence preservation, and approval requirements should be addressed before enabling execution.