Goal. You can explain how users and programs prove who they are (Active Directory, Kerberos, single sign-on, OAuth, MFA) and how a cloud control plane works.
Why it matters#
Attackers often do not break in; they sign in. A stolen password, token or key lets them look like a legitimate user, and in the cloud one over-powerful identity can mean the whole environment.
What you will learn#
Authentication and authorisation#
Authentication answers "who are you?". Authorisation answers "what may you do?". A third idea, accounting or audit, records what you did. Many incidents are an authorisation problem: the right person (or a thief using their account) could do far more than their job needed.
Identities are not only people. Service accounts, application identities and access keys let software sign in. They often have broad rights, rarely have MFA and are seldom reviewed.
Active Directory#
Active Directory (AD) is Microsoft's directory for managing users, computers and groups in an organisation's own network.
- A domain is a managed set of accounts and machines. A forest is one or more domains that share a design.
- A domain controller is a server that holds the directory and checks sign-ins. Whoever controls one controls the domain.
- Groups grant rights. Membership of groups such as Domain Admins is highly sensitive.
- Group Policy pushes settings to machines and users.
- LDAP is the protocol used to query the directory. Any ordinary user can read much of it, which is why attackers explore it early.
Kerberos and NTLM#
Kerberos is AD's main sign-in protocol. It uses tickets so a password is not sent to every server:
- You prove who you are to the Key Distribution Centre (on a domain controller) and receive a ticket-granting ticket (TGT).
- When you need a service, you present the TGT and receive a service ticket for that service.
- You present the service ticket to the server.
Domain controllers log these requests (events 4768 and 4769, with 4771 for failed pre-authentication). Attacks on Kerberos steal or forge tickets, or take a service ticket away to guess the service account's password offline (Kerberoasting). NTLM is an older challenge-and-response protocol still present in many networks; a stolen password hash can sometimes be replayed with it.
Multi-factor authentication#
MFA asks for two kinds of proof: something you know (password), have (phone, security key) or are (fingerprint). It stops most password-only attacks, but not all forms are equal:
| Method | Weakness |
|---|---|
| SMS code | Can be intercepted, or the phone number taken over |
| App code or push | Can be phished through a fake page; push can be approved by a tired user |
| Passkeys and FIDO2 security keys | Bound to the real site, so resistant to phishing |
After sign-in the user holds a session token or cookie. Anyone who steals it may not be asked for MFA again, so token theft is a real problem.
Single sign-on and federation#
Single sign-on (SSO) lets one sign-in work for many applications. An identity provider confirms who you are, and each application trusts what it says. SAML and OpenID Connect are the common standards. It is convenient and easier to secure in one place, and it makes the identity provider a very valuable target.
OAuth and consent#
OAuth 2.0 lets an application act for you without your password. You see a consent screen, approve a set of scopes (permissions) and the application receives an access token, sometimes with a longer-lived refresh token. OpenID Connect adds identity on top of OAuth.
The abuse to understand: a malicious application asks for access to mail or files, and a user clicks Accept. No password is stolen and changing it may not remove the access. Defenders watch for new consents and applications with broad permissions.
Cloud in one page#
Cloud providers rent computing. Three broad service models change who looks after what:
| Model | You manage | Example |
|---|---|---|
| IaaS (infrastructure) | The operating system upwards | A virtual machine |
| PaaS (platform) | Your code and data | A managed database or app service |
| SaaS (software) | Your users, settings and data | Hosted email |
Under the shared responsibility model the provider secures the underlying service and you secure what you put in it and who can reach it. Identity and data stay your job in every model.
The control plane is the set of management APIs that create, change and delete resources. The data plane is the use of those resources: reading a file in storage, connecting to a machine. Anyone with the right identity can call the control plane from anywhere, so a leaked key can be enough.
| Idea | AWS | Azure and Entra ID | Google Cloud |
|---|---|---|---|
| Directory or identity service | IAM, IAM Identity Center | Microsoft Entra ID | Cloud Identity, IAM |
| Top-level container | Account | Subscription (inside a tenant) | Project |
| Control plane log | CloudTrail | Azure Activity Log | Cloud Audit Logs |
Common problems are ordinary: public storage, secrets committed to code, keys that never expire, roles with far too many rights and logging that was never switched on. Some data-plane logs are off by default or cost extra, so check before you assume you have them.
Signals a defender watches#
Many failed sign-ins across many accounts (password spraying); sign-ins from unusual places or impossible travel (treat with care: VPNs cause false alarms); new MFA methods; new admin role members; new access keys; new application consents; logging being turned off.
Do this#
- Review your own sign-ins (45 minutes). In a personal account (email or code hosting), look at recent activity, active sessions and connected applications. Remove what you no longer use, and turn on MFA.
- Draw Kerberos (45 minutes). Sketch the three exchanges and mark which events a domain controller would record.
- Read a consent screen (30 minutes). Find an application that uses "Sign in with ..." and list the scopes it asks for. Decide whether each is needed.
- Explore a cloud audit log (1–2 hours, optional). If you create a free cloud account, set a budget alert and MFA first, create and delete one harmless resource, and find both events in the control plane log. Free tiers change and can lead to charges, so read the terms.
Resources#
Free first
- Active Directory Domain Services overview - Microsoft's introduction.
- Kerberos authentication overview - how Windows uses it.
- OAuth 2.0 - the standard, with plain pointers to each part.
- How passkeys work - the FIDO Alliance's explanation.
- AWS shared responsibility model - the clearest one-page statement of the split.
- Microsoft Learn: security, compliance and identity fundamentals - free self-paced material covering Entra ID basics.
Paid or needs an account
- Cloud provider free tiers (free account, usually needs a payment card) - the way to see your own real audit logs.
Checkpoint#
You are ready to move on when you can:
Go deeper (optional)#
- Read the Credential Access techniques on the ATT&CK matrix with Kerberos in mind.
- Compare how two cloud providers express permissions (policies and roles).
- See what attacks on identity and cloud look like in the logs in Threat Hunting stage 6.