identity security

Identity Security

Identity Security

ENGINEERING GUIDE · IDENTITY SECURITY

Identity is no longer simply a login mechanism. It is a continuous security signal used to authenticate users and services, determine what they are allowed to access, evaluate risk, enforce least privilege and trigger a security response when behaviour changes.

Modern applications rarely operate inside a single network boundary. Users access cloud services from unmanaged or managed devices, applications communicate through APIs, workloads call other workloads, administrators operate across multiple platforms, and automated services use identities that may never have a human sitting behind them.

This changes the security problem. A network address can describe where a connection originates, but it does not reliably describe who or what is making the request, whether the device is trusted, whether the session is behaving normally, or whether the requested action is appropriate for that identity.

Identity Is Now a Security Control Plane

Traditional access control often begins with a simple question: Can this user log in?

Modern identity security has to go much further. A successful authentication event does not automatically mean that access should be granted. The security decision may depend on the user's role, authentication strength, device posture, application sensitivity, location, session behaviour, privilege level and current risk.

The resulting model is continuous rather than binary. Identity establishes who is making the request, authentication establishes confidence in that identity, context adds surrounding security information, risk evaluation determines how much trust should be granted, and policy decides what the identity is permitted to do.

Traditional Password
Modern Authentication
Context Identity + Device
Decision Risk + Policy

From Authentication to Continuous Trust

Authentication is the starting point, not the final security decision. A user may successfully authenticate and still represent a high-risk request. A stolen session token may appear valid. A privileged account may suddenly access systems it has never used before. A service identity may begin making API calls at an unusual rate. A healthy device may become non-compliant after authentication.

Identity security therefore combines authentication with context, authorization, behavioural signals and continuous monitoring. This creates the foundation for a Zero Trust approach in which access is evaluated according to the request and its associated evidence rather than being permanently trusted because a user is inside a particular network.

Identity Security Engineering Model
WHO → AUTHENTICATE → CONTEXT → RISK → POLICY → ENFORCE → MONITOR → RESPOND

The Identity Security Problem Has Changed

Attackers increasingly target identities because identities provide legitimate access to legitimate systems. Credential theft, password spraying, phishing, MFA fatigue, session hijacking, stolen OAuth tokens, privilege escalation and malicious application integrations can allow an attacker to operate using credentials that appear valid.

This makes identity security fundamentally different from simply protecting passwords. The security architecture must protect the identity itself, the credentials and authenticators used to establish trust, the sessions created after authentication, the privileges assigned to the identity and the applications and workloads that accept that identity.

01 · Authentication
Prove the Identity

Strong authentication establishes confidence that a user, administrator, service or workload is genuinely the identity presented to the system.

02 · Authorization
Limit the Identity

Authorization determines which resources, applications, APIs and actions the identity is permitted to access. Least privilege keeps that permission as narrow as practical.

03 · Governance
Control the Lifecycle

Identity governance manages how identities are created, changed, reviewed, privileged, disabled and ultimately removed from the environment.

04 · Detection
Detect Identity Abuse

Identity telemetry and behavioural analysis help identify suspicious sessions, privilege escalation, token abuse, unusual access patterns and compromised accounts.

What Identity Security Actually Protects

Identity security applies far beyond human users. Modern environments contain administrators, customers, contractors, applications, APIs, virtual machines, containers, service accounts, cloud workload identities and automated processes.

Each identity can become a pathway into sensitive resources. Protecting the identity therefore means controlling authentication, authorization, privilege, session behaviour and the relationships between identities and the resources they are allowed to use.

In a cloud environment, this may involve IAM roles, service accounts, workload identities, OAuth grants and temporary credentials. In a data center, it may involve Active Directory, LDAP, privileged access management and identity-aware network controls. In an application environment, it may involve JWTs, API authentication, service-to-service identity and policy enforcement at the application layer.

Identity as the New Security Perimeter

The traditional security perimeter was largely defined by network boundaries. Firewalls, VLANs, VPNs and security zones determined where users and systems could connect. These controls remain important, but they are no longer sufficient to establish trust.

A modern identity security architecture treats identity as a primary security control while continuing to use network, endpoint, application and cloud controls as additional enforcement layers.

The result is not the removal of the network perimeter. Instead, security decisions become distributed across identity providers, applications, APIs, endpoints, cloud platforms, network controls and security operations systems.

Engineering Question
If a previously trusted administrator suddenly authenticates from an unfamiliar device, requests privileged access and begins accessing systems outside their normal role, should authentication alone still be enough to allow the request?

The Engineering Approach

The remainder of this guide follows the complete identity security lifecycle: establish strong identity, authenticate it, understand its context, evaluate risk, apply authorization and policy, enforce the decision, monitor activity and respond when trust changes.

The objective is to move from static access control toward an adaptive security model in which identity becomes an active source of security intelligence.

Identity Security Foundations

SECTION 01 · FOUNDATIONS

Identity Security Foundations

Start with the identity itself: authentication, strong authentication, MFA, FIDO2, device posture and service identities. The objective is to understand what an identity actually represents before access decisions are made.
01
IDENTITY who exists?
AUTHENTICATE prove identity
MFA increase assurance
DEVICE assess posture
WORKLOAD service identity
SIGNAL generate evidence
Engineering Question
How do we establish enough confidence that an identity is genuine before allowing it to enter the access-control process?
You Will Learn
Authentication is only the starting point. Identity, device, authentication strength and workload identity all become security signals.
EXPLORE IDENTITY TRUST PIPELINE →
SECTION 01 · IDENTITY SECURITY FOUNDATIONS
Identity Security Foundations

Establishing trustworthy identities, strong authentication, device context and workload identity before making an access decision.

Engineering Principle
Authentication establishes confidence in an identity. Identity security determines what happens with that identity after authentication.

What Identity Security Actually Protects

Identity security begins with establishing confidence in the identities that interact with systems, applications and data. That identity may belong to a human user, administrator, customer, application, API, virtual machine, container or automated service.

The first engineering mistake is to treat authentication as the complete identity security problem. Authentication answers an important question — who or what is making the request? — but it does not determine whether that identity should be trusted with a particular resource or action.

A modern identity architecture therefore combines strong authentication with authorization, device context, behavioural signals, privilege management and continuous monitoring.

01 · HUMAN
User Identity
Employees, administrators, customers and contractors accessing applications and services.
02 · PRIVILEGED
Administrative Identity
Identities with elevated permissions that can modify systems, policy or sensitive data.
03 · APPLICATION
Application Identity
Software components authenticating to APIs, databases and other application services.
04 · SERVICE
Service Identity
Automated processes and background services operating without direct human interaction.
05 · WORKLOAD
Workload Identity
Virtual machines, containers and cloud workloads requiring controlled service-to-service access.
06 · MACHINE
Machine Identity
Devices and infrastructure systems participating in secure application and network operations.

Authentication Is Only the Beginning

Traditional security architectures often treated successful authentication as the point at which trust was established. A user entered a password, completed authentication and was then allowed to operate within a trusted environment.

Modern environments make that model increasingly difficult to defend. A valid identity may be compromised. A session token may have been stolen. A previously trusted device may become non-compliant. A privileged account may suddenly access an unfamiliar application. A service identity may begin making API requests at an abnormal rate.

The authentication event may still be technically valid while the activity itself is suspicious.

Security Shift

The question is no longer simply “Did this identity authenticate?” It becomes “Does this identity still represent an acceptable level of trust for this request?”

Strong Authentication

Strong authentication reduces the probability that an attacker can successfully impersonate an identity.

Passwords remain widely used, but passwords alone provide limited protection against phishing, credential theft, password reuse, password spraying and brute-force attacks.

Modern authentication architectures increasingly combine multiple forms of evidence, including knowledge factors, possession factors, biometric factors, cryptographic authenticators and contextual information about the device and request.

The objective is not simply to make login more complicated. The objective is to increase confidence that the identity presented to the system is genuinely controlled by the legitimate user or service.

Multi-Factor Authentication

Multi-factor authentication adds additional evidence to the authentication process. A password combined with a second factor is significantly stronger than a password alone, but MFA should not be treated as an automatic guarantee of trust.

Attackers increasingly use phishing, adversary-in-the-middle techniques, stolen session tokens and MFA fatigue attacks to manipulate or bypass authentication controls.

This means the security architecture must consider both authentication strength and the circumstances surrounding the authentication.

Authentication
Establish Identity Confidence

Use strong authentication mechanisms to establish confidence that the identity presented to the system is legitimate.

Context
Understand the Request

Consider device posture, application sensitivity, location, session characteristics and other relevant context.

Authorization
Limit What Identity Can Do

Apply least privilege so successful authentication does not automatically result in broad access.

Monitoring
Detect Changes in Trust

Monitor identity activity so unusual behaviour can trigger additional verification or security response.

FIDO2 and WebAuthn

FIDO2 provides a modern foundation for phishing-resistant authentication using public-key cryptography.

WebAuthn allows web applications to use authenticators such as platform credentials, security keys and passkeys. Instead of sending a reusable password to the application, the authentication process uses cryptographic credentials associated with the legitimate authenticator.

This changes the attack surface. A stolen password can potentially be replayed against another system, while properly implemented phishing-resistant authentication is designed to bind the authentication process to the legitimate origin and cryptographic credential.

Device Identity and Posture

Identity cannot always be evaluated independently from the device being used.

A valid administrator accessing a sensitive management application from a managed and healthy corporate device presents a different risk profile from the same identity accessing the application from an unknown or non-compliant device.

Device posture can include operating system version, security patch level, endpoint protection status, device management state, encryption status, secure boot state, browser characteristics and compliance status.

These signals can become part of the access decision. For example, a privileged administrator may be permitted to access a management application only when using a managed device with current security controls.

Service and Workload Identity

Modern applications introduce another major identity challenge: not every request originates from a human.

Applications communicate with APIs. Containers communicate with services. Cloud workloads access databases and storage. Automation systems perform administrative operations. CI/CD pipelines deploy infrastructure.

These processes require identities of their own.

Long-lived static credentials create significant risk because they can be copied, leaked or accidentally exposed. Modern architectures increasingly use short-lived credentials, service accounts and workload identity mechanisms to reduce that exposure.

Workload Identity Questions

For every important service identity, engineers should be able to answer: Who is the workload? What may it access? How long should that permission exist? Where should the identity be accepted? and what should happen if its behaviour changes?

Identity Telemetry

Identity security depends on visibility. Authentication events, MFA challenges, device posture, privilege changes, OAuth grants, API calls, session activity and administrative actions can all provide useful security signals.

These signals become significantly more valuable when correlated with endpoint, network, application and cloud telemetry.

A single failed login may not indicate a serious threat. A sequence of failed logins followed by a successful authentication, a new device registration, privilege escalation and access to sensitive systems creates a very different security picture.

Identity Security as a Foundation for Zero Trust

Zero Trust does not mean that every user is permanently blocked or that traditional network security becomes irrelevant.

It means that trust should not be granted simply because an identity, device or workload happens to exist inside a particular network boundary.

Identity becomes one of the primary signals used to establish trust, while device, application, network and workload controls provide additional enforcement layers.

A Zero Trust identity architecture therefore asks: who is requesting access, how strongly has that identity been authenticated, what device or workload is making the request, what resource is being accessed, what is the current risk and what permissions are actually required?

Engineering Question
A privileged administrator successfully authenticates, but the request comes from an unfamiliar device and is followed by unusual access to sensitive systems. Should authentication alone still be enough to allow the request?

Section 1 Summary

Identity security starts with strong authentication but cannot end there. Human users, administrators, applications, services and workloads all require controlled identities. Device posture and contextual signals can strengthen access decisions, while identity telemetry provides the evidence required to detect changes in trust.

The next engineering step is to determine what an authenticated identity is actually allowed to do. That moves the architecture from authentication into authorization, context, least privilege and adaptive access policy.

IDENTITY TRUST LAB · ADAPTIVE DECISION ENGINE

From Identity Signal to Access Decision

Change identity, authentication, device, context and behaviour signals and watch the policy engine recalculate the access decision in real time.

READY
LAB MODE
Identity
Authentication
Device
Context
Application
Behaviour Risk
Trust Evaluation Pipeline
LAB POLICY MODEL
01
ID
Identity
User
02
AU
Authenticate
MFA Verified
03
DV
Device
Managed
04
CX
Context
Expected
05
RK
Risk
Low
06
PL
Policy
Evaluating
07
→
Decision
Pending
Decision Engine
REAL-TIME
ALLOW
Trust Score 100 / 100
Policy Explanation
Identity is authenticated with strong MFA, the device is healthy, context is expected and current behaviour risk is low.
Identity Standard User
Application Standard
Context Expected
Risk Low
Evaluation Timeline
0 / 7 STAGES
01
Identity asserted
Determine which identity is requesting access.
WAIT
02
Authentication evaluated
Verify the strength and validity of authentication.
WAIT
03
Device posture checked
Evaluate whether the endpoint can be trusted.
WAIT
04
Context assessed
Location and environmental context are evaluated.
WAIT
05
Behaviour risk calculated
Current behaviour is compared against the policy model.
WAIT
06
Policy evaluated
Signals are combined to determine the required access level.
WAIT
07
Access decision returned
The policy engine produces an enforceable result.
WAIT
Engineering Telemetry
WHY IT MATTERS
Engineering Takeaway

Authentication is only the beginning.

A successful login does not automatically create trust. Identity, device, context and behaviour must continue to influence the decision.

LAB POLICY: Strong authentication + healthy device + expected context + low risk normally produces ALLOW.

Authorization, Context and Zero Trust

SECTION 02 · AUTHORIZATION, CONTEXT & ZERO TRUST

Authorization, Context and Zero Trust

Move beyond authentication by evaluating identity, context and risk before deciding what access should actually be permitted.

02
01 IDENTITY
02 AUTHENTICATE
03 CONTEXT
04 RISK
05 POLICY
06 DECISION
Engineering Question

When a valid identity becomes risky, should access remain allowed?

You Will Learn

How RBAC, ABAC, least privilege, conditional access, risk signals and just-in-time privilege turn identity into a Zero Trust decision.

SECTION 02 · AUTHORIZATION, CONTEXT & ZERO TRUST
Authorization, Context and Zero Trust

Turning an authenticated identity into a controlled, context-aware and continuously evaluated access decision.

Engineering Principle
Authentication establishes who the identity is. Authorization determines what that identity is allowed to do, while context and risk determine whether that permission should be granted under the current conditions.

Authentication vs Authorization

Authentication and authorization are related but fundamentally different security functions.

Authentication establishes confidence in an identity. Authorization determines which resources and actions that identity is permitted to access.

A successfully authenticated administrator might be permitted to manage a particular application but not access a production database directly. A developer may be permitted to read source code but not modify production infrastructure. A service identity may be permitted to call one API but not another.

This separation is essential because a valid identity should not automatically receive unrestricted access.

01
IDENTITY
02
AUTHENTICATE
03
CONTEXT
04
RISK
05
POLICY
06
DECISION

Least Privilege

Least privilege is one of the central principles of identity security. An identity should receive only the permissions required to perform its legitimate function.

The objective is not to create an environment where every request requires manual approval. Instead, access should be deliberately scoped so that a compromised identity has as little unnecessary capability as possible.

Least privilege applies to human users, administrators, applications, service accounts and workloads.

RBAC
Role-Based Access Control

Permissions are associated with defined roles and identities receive those roles according to their responsibilities. RBAC provides a practical way to standardise access across groups of users and services.

ABAC
Attribute-Based Access Control

Access decisions can use attributes associated with the identity, resource, device, request or environment. This allows policies to respond to more detailed context than role alone.

JIT
Just-in-Time Privilege

Elevated permissions can be granted for a limited period or specific task instead of remaining permanently assigned to the identity.

CONTEXT
Context-Aware Access

Access can consider device posture, application sensitivity, authentication strength, location, session behaviour and current risk.

Role-Based and Attribute-Based Access

RBAC provides a useful foundation because permissions can be associated with defined responsibilities rather than individual users.

However, roles alone may not provide enough context for modern access decisions.

ABAC extends the decision model by considering attributes such as user role, device state, resource classification, request type, application sensitivity and environmental conditions.

In practice, many mature architectures use a combination of role-based permissions and contextual policy rather than relying exclusively on one model.

Conditional Access

Conditional access introduces context into the authorization decision.

Instead of defining a single permanent rule such as “this user can access this application,” the policy can evaluate the circumstances surrounding each request.

Relevant signals may include authentication strength, device compliance, operating system, application sensitivity, user risk, session characteristics and other security context available to the policy engine.

A low-risk request from a trusted device may proceed normally, while the same identity from a high-risk context may require additional verification or be restricted.

Risk-Based Authentication

Risk-based authentication evaluates evidence surrounding an authentication or access request and adjusts the required security response accordingly.

Risk signals can include unusual login behaviour, unfamiliar devices, impossible or unexpected travel patterns, abnormal authentication frequency, suspicious session characteristics or other indicators of potential compromise.

The important engineering principle is that risk does not have to produce only two outcomes: allow or deny.

ALLOW
Normal context and acceptable risk.
STEP-UP
Require stronger or additional verification.
RESTRICT
Limit sensitive actions or resources.
DENY
Block access when risk exceeds policy.

Step-Up Authentication

Step-up authentication provides a middle ground between unrestricted access and complete denial.

A user may successfully authenticate to a normal application but require stronger verification before accessing a highly sensitive system or performing a privileged operation.

This allows security controls to increase authentication assurance when the sensitivity of the action or the risk of the request changes.

Example

A developer signs in normally and accesses development resources. When the same identity attempts to access production infrastructure, policy can require stronger authentication, verify device posture and apply additional authorization controls before allowing the privileged action.

Just-in-Time Privilege

Permanent administrative privileges increase the impact of compromised identities.

Just-in-time privilege reduces that exposure by providing elevated permissions only when they are required and for as long as they are required.

A typical workflow may involve a user requesting temporary elevation, satisfying an authentication or approval requirement, receiving the required privilege for a defined period and then automatically losing that elevated access when the period ends.

This creates a smaller standing privilege footprint and provides better auditability around sensitive operations.

Continuous Trust Evaluation

Zero Trust requires more than a strong initial authentication event. The security decision should be capable of changing when the evidence changes.

A device can become non-compliant. A user can begin behaving abnormally. A session can access resources outside its normal pattern. A previously safe workload can become compromised.

Continuous evaluation allows those changes to influence subsequent access decisions.

This does not necessarily mean re-authenticating every user for every request. Instead, security systems can use available telemetry and policy signals to determine when additional verification, restriction or denial is appropriate.

Identity as the New Security Perimeter

The traditional network perimeter assumed that location provided useful evidence of trust. A user inside the corporate network was often treated differently from a user outside it.

Cloud services, remote work, SaaS platforms, APIs and distributed applications have weakened that assumption.

Identity therefore becomes a primary security boundary, but it should not be viewed in isolation. Network segmentation, endpoint security, application controls, encryption and cloud security mechanisms continue to provide important enforcement layers.

Zero Trust Principle

Network location can provide context, but it should not be treated as sufficient proof of trust. The security decision should be based on identity, authentication strength, context, resource sensitivity and current risk.

Policy Must Become Enforceable

An identity policy has little value if it exists only as a written rule. The decision must eventually reach an enforcement point.

Depending on the architecture, enforcement may occur at an identity provider, application, API gateway, proxy, cloud platform, network control, endpoint or privileged access system.

This creates an important architectural separation: the system evaluating identity and risk does not necessarily have to be the same system enforcing the final decision.

A policy engine may determine that a request should be restricted, while an application, API gateway or network control performs the actual enforcement.

Engineering Question
If a valid administrator identity requests access to a sensitive production API from a non-compliant device, should the policy engine allow the request simply because authentication succeeded?

Section 2 Summary

Authorization transforms identity into controlled permission. RBAC, ABAC and least privilege establish the baseline, while conditional access, risk-based authentication, step-up authentication and just-in-time privilege add context and adaptability.

Zero Trust extends this model by treating trust as something that must be continually evaluated rather than permanently granted. The next engineering challenge is to apply those identity decisions across real applications, APIs, cloud platforms and infrastructure.

SECTION 02 · ADAPTIVE ACCESS DECISION LAB

Investigate an Identity Access Decision

Inject identity and security events, inspect the evidence they create, then determine whether the correct response is to allow, step-up, restrict or deny access.

MONITORING
SCENARIO RUN
Normal employee access
A standard user is accessing a normal business application from an expected location using a managed device.
EVENT 01 / 06
Identity Event Injection
SELECT AN EVENT
Policy Decision
CAUSE → EVIDENCE → ACTION
ALLOW
Current identity state is within the normal policy boundary.
Why did the policy engine decide this?
Authentication is valid and the current identity, device and context signals are consistent with normal access.
Choose the security response
Evidence Signals
CURRENT IDENTITY CONTEXT
Identity
Standard User
VALID
Auth
MFA Verified
STRONG
Device
Managed / Healthy
TRUSTED
Context
Expected Location
NORMAL
Behaviour
Normal Activity
LOW RISK
Privilege
Standard Access
NORMAL
Investigation Console
1 EVENT
00:01
Identity session established from expected context.
INFO
Engineering Telemetry
DECISION GUIDANCE
Investigation Result

Normal access should remain low-friction.

Adaptive access should not challenge every request. The objective is to increase control when evidence indicates that trust has changed.

92
Illustrative
trust index

Identity Threat Detection & Response

SECTION 03 · IDENTITY ENFORCEMENT

Identity Enforcement Across Applications & Cloud

Turn identity and risk decisions into enforceable controls across applications, APIs, cloud platforms and infrastructure.

03
01 IDENTITY
02 TOKEN
03 POLICY
04 ENFORCE
05 APPLICATION
06 AUDIT
Engineering Question

Where does the identity decision actually become an enforceable security control?

You Will Learn

How tokens, APIs, identity-aware proxies, cloud IAM, service perimeters and network controls turn identity decisions into enforcement.

SECTION 03 · IDENTITY ENFORCEMENT
Identity Enforcement Across Applications & Cloud

Turning identity and risk decisions into enforceable controls across applications, APIs, cloud platforms and infrastructure.

Engineering Principle
An identity decision has little security value until it reaches an enforcement point capable of allowing, restricting or denying the requested action.

From Identity Decision to Enforcement

Section 2 established how identity, context and risk can be used to make an authorization decision. Section 3 moves that decision into the systems that actually control access.

Modern identity enforcement is distributed. An identity provider may authenticate the user, a policy engine may evaluate risk, an API gateway may enforce authorization, an application may enforce business permissions and a cloud platform may control access to infrastructure resources.

These components do not have to be implemented by the same product. The engineering objective is to make sure that the identity context and security decision can travel reliably to the point where access is actually enforced.

01
IDENTITY
02
AUTHENTICATE
03
TOKEN / CONTEXT
04
POLICY
05
ENFORCE
06
AUDIT

Identity-Aware Applications

Applications increasingly participate directly in identity enforcement. Instead of relying entirely on network location, applications can receive identity information and use it when making authorization decisions.

A web application may authenticate through an external identity provider and then receive a signed identity token containing claims associated with the authenticated identity.

The application can then evaluate those claims against its own authorization policy.

This creates an important separation between authentication and application authorization. The identity provider can establish who the user is, while the application determines what that user can actually do within the application.

JWT and API Authentication

JSON Web Tokens are commonly used to carry signed claims between identity systems, applications and APIs.

A typical API request may contain an access token in an Authorization header. The receiving service validates the token according to its configured trust model, including signature, issuer, audience and expiration requirements where applicable.

Successful token validation establishes that the request contains an acceptable credential. It does not automatically mean that the identity has permission to perform every operation exposed by the API.

401
Authentication is missing or cannot be accepted.
403
Identity is known but is not authorized for the action.
ALLOW
Authentication and authorization requirements are satisfied.
STEP-UP
Additional verification or security context is required.

Identity-Based Application Authorization

Application authorization should be designed around the actions that an identity needs to perform rather than simply around the existence of the identity.

For example, a user may be permitted to view an account but not modify it. An administrator may be permitted to restart a service but not retrieve stored secrets. A service identity may be permitted to read a database record but not execute administrative operations.

This provides a second layer of control after authentication and prevents a valid identity from becoming a universal application credential.

Identity-Aware Proxy

An identity-aware proxy can place authentication and contextual access controls in front of applications without requiring every application to independently implement the complete authentication experience.

Google Cloud Identity-Aware Proxy is an example of this model. It can use authenticated identity and contextual information to control access to supported applications and services.

This can be particularly useful when applications are exposed across cloud or hybrid environments and network location alone is not a sufficient access boundary.

Important Distinction

An identity-aware proxy does not eliminate application authorization. The proxy can control whether a request reaches the application, while the application still needs to enforce permissions for actions and resources inside the application.

Google Cloud IAM

Google Cloud IAM provides authorization controls for Google Cloud resources through identities, roles and permissions.

IAM supports predefined roles as well as custom roles, allowing organizations to align permissions with operational responsibilities.

The engineering challenge is to avoid treating IAM roles as a substitute for every other security control. IAM governs access to supported cloud resources, while applications, APIs, endpoints and network controls may require their own authorization and enforcement mechanisms.

Audit logging is also important because an authorization model needs evidence showing which identities performed sensitive operations and when those operations occurred.

VPC Service Controls

VPC Service Controls provide a different security function from Google Cloud IAM.

Service perimeters can help reduce the risk of data exfiltration from supported Google Cloud services by establishing boundaries around protected resources and controlling access paths across those boundaries.

This is particularly relevant when valid credentials have been compromised. IAM may determine that an identity has permission to perform an operation, while a service perimeter can provide an additional boundary around where protected service data may be accessed.

VPC Service Controls should therefore be understood as a complementary control rather than a replacement for IAM, application authorization or network firewalling.

Vault and Secrets-Based Identity

Secrets management becomes another part of identity security when applications and infrastructure require credentials to access protected services.

HashiCorp Vault provides authentication methods, policy-based authorization and secret-management capabilities that can be used to control how applications and users obtain access to sensitive credentials.

A strong design avoids embedding long-lived secrets directly into application source code or configuration wherever practical. Instead, applications authenticate to the secrets platform and receive only the credentials or secrets required for their permitted operation.

Cisco ISE and Identity-Based Network Enforcement

Identity security can also influence network access decisions. Cisco Identity Services Engine provides identity-based access control capabilities that can incorporate authentication, authorization, device profiling and other contextual information.

This allows network access policy to be associated with identity and device context rather than relying solely on an IP address or switch port.

For example, a corporate device belonging to an authorized user may receive a different access policy from an unknown device even when both devices connect through the same physical network.

Identity-Driven Traffic Decisions

Identity-aware security can extend beyond simple allow or deny decisions.

An identity can influence which application endpoint receives a request, which API functions are exposed, which network segment is accessible or which security controls are applied.

A useful example is an application that receives a validated identity containing a role claim. The application can route an administrator to privileged functionality while routing a standard user to a restricted service.

The important distinction is that the decision is based on authenticated identity and authorization context rather than simply on source IP address, VLAN or physical network location.

APPLICATION
Application Policy

Controls actions, resources and business functions available to an authenticated identity.

API
API Authorization

Validates credentials and applies permissions to individual APIs, operations and protected resources.

CLOUD
Cloud Authorization

Controls access to cloud resources through identity, roles, permissions and additional security boundaries.

NETWORK
Network Enforcement

Applies identity and device context to network access where supported by the architecture and enforcement platform.

Authentication, Authorization and Enforcement Are Different Layers

One of the most important engineering principles is to avoid treating authentication, authorization and enforcement as the same function.

Authentication answers: Who are you?

Authorization answers: What are you allowed to do?

Enforcement answers: Where and how is that decision applied?

A mature architecture can therefore use an identity provider for authentication, a policy engine for authorization decisions and multiple enforcement points across applications, APIs, cloud platforms and network infrastructure.

Engineering Question
A user presents a valid identity token to an API. The token is authentic, but the user does not have permission to perform the requested administrative operation. Where should that decision be enforced, and what should the API return?

Section 3 Summary

Identity security becomes operational when identity and policy decisions reach real enforcement points. Applications can enforce permissions, APIs can validate identity tokens, cloud IAM can control resource access, service perimeters can provide additional data protection boundaries, secrets platforms can control access to credentials and network platforms can incorporate identity and device context into access policy.

The architecture is therefore distributed. No single identity system has to perform every security function. The important requirement is that authentication, authorization, context and enforcement remain aligned.

The final section moves from enforcement to the question that becomes critical when prevention fails: How do we detect that an identity has been compromised, investigate what it has done and respond before the compromise spreads?

SECTION 03 · IDENTITY ENFORCEMENT LAB

Identity-Aware Application Lab

Follow an authenticated identity from the identity provider through token validation, policy evaluation and application enforcement. The objective is to understand exactly where authentication ends and authorization begins.
READY · AWAITING REQUEST
Current Request
Valid User Token
A normal authenticated user requests a protected API resource.
Engineering Principle
Identity decisions must reach an enforcement point.
Authentication proves identity. Authorization determines permission. The application or policy enforcement point must enforce the result.
Identity Enforcement Path
STAGE 01 / 06
C
CLIENT
request
→
ID
IDENTITY
PROVIDER
identity
→
TK
TOKEN
claims
→
P
POLICY
ENGINE
decision
→
API
API
enforcement
→
DB
BACKEND
resource
Live Request Context
Identity
alex.user
Application
payments-api
Resource
/v1/payments
Method
GET
Policy Decision
LIVE
Current Result
ALLOW
Identity authenticated and required role is present.
HTTP 200 · ALLOWED
Token Claims
INSPECT
SUB
alex.user
ROLE
payments-reader
ISS
identity.example
STATE
VALID
Evidence
SIGNALS
Identity
VERIFIED
Signature
VALID
Role
PRESENT
Risk
NORMAL
Request Scenarios
SELECT A CASE
Enforcement Event Console
LIVE TRACE
Engineering Telemetry
RUNTIME
Stage
01 / 06
AuthN
VERIFIED
AuthZ
ALLOW
Enforcement
API
Response
200

Identity Threat Detection & Response

SECTION 04 · IDENTITY THREAT DETECTION & RESPONSE

Identity Threat Detection & Response

Detect compromised identities, correlate behavioural evidence and respond before stolen access becomes privilege escalation, lateral movement or persistent compromise.

04
01 OBSERVE
02 CORRELATE
03 INVESTIGATE
04 CONTAIN
05 REVOKE
06 RECOVER
Engineering Question

What evidence is strong enough to treat an identity as compromised?

You Will Learn

How identity telemetry, behavioural analysis, token activity and lateral-movement evidence drive investigation and response.

SECTION 04 · IDENTITY THREAT DETECTION & RESPONSE
Identity Threat Detection & Response

Detecting compromised identities, correlating behaviour and responding before stolen access becomes lateral movement, privilege escalation or persistent compromise.

Engineering Principle
Identity security cannot depend entirely on prevention. Assume that credentials, sessions or tokens can eventually be compromised, then design the architecture to detect abnormal identity behaviour and respond quickly.

Identity Security Does Not End at Authentication

Strong authentication reduces the probability of unauthorized access, but it cannot guarantee that an identity will never be compromised.

Credentials can be stolen. Sessions can be hijacked. Access tokens can be exposed. Users can approve malicious requests. Privileged identities can be abused by legitimate users or attackers operating through compromised systems.

This changes the engineering objective. Identity security must detect not only failed authentication but also suspicious behaviour occurring after authentication succeeds.

01
OBSERVE
02
CORRELATE
03
ASSESS RISK
04
INVESTIGATE
05
CONTAIN
06
REVOKE
07
RECOVER
08
VERIFY

Identity Threats

Modern identity attacks extend far beyond password guessing. Attackers increasingly target the authentication process, tokens, sessions, authorization relationships and trusted integrations.

CREDENTIAL
Credential Theft

Stolen usernames, passwords or credentials can allow attackers to authenticate as legitimate users.

AUTHENTICATION
MFA Fatigue

Repeated authentication prompts can be abused to pressure a user into approving an unexpected request.

TOKEN
Token Theft

A stolen access token or session credential can potentially allow access without repeating the original login process.

PRIVILEGE
Privilege Escalation

Attackers may attempt to obtain additional permissions after compromising an initial identity.

OAUTH
Malicious Integrations

Excessive or malicious application permissions can create an alternative route into protected data and services.

SESSION
Session Abuse

A compromised session may behave differently from the normal activity associated with the legitimate identity.

Identity Behaviour Analytics

Detecting identity compromise requires more than counting failed logins. Security teams need to understand what identities normally do and identify meaningful deviations from that behaviour.

Useful signals can include authentication patterns, device changes, resource access, privileged operations, application usage, token activity, API calls and unusual geographic or environmental context.

A single unusual event may not indicate compromise. Several related signals occurring together can provide much stronger evidence.

Identity Telemetry

Identity security therefore depends on collecting telemetry from multiple layers of the environment.

AUTHENTICATION
Login and MFA Events

Successful and failed authentication, MFA challenges, authentication method and session establishment.

DEVICE
Device and Posture

Device identity, compliance state, operating system and other available endpoint security context.

APPLICATION
Application Activity

Resource access, administrative actions, sensitive operations and application-level authorization events.

API
API and Token Activity

API calls, token use, authorization failures and unusual access patterns across protected services.

CLOUD
Cloud Audit Events

Administrative changes, resource access and identity activity recorded by cloud platforms.

NETWORK
Network Context

Connection patterns, destination changes and network activity that can provide additional evidence during investigation.

Detecting a Compromised Identity

Consider an administrator identity that normally authenticates during business hours from a managed workstation and accesses a small set of infrastructure systems.

The identity suddenly authenticates from an unfamiliar device, generates repeated MFA activity, accesses a new cloud application, attempts a privileged operation and then begins accessing systems that are outside its normal administrative scope.

No single event necessarily proves compromise. Together, however, the signals form a much stronger risk pattern.

Investigation Principle

Security analytics should correlate identity, device, application, cloud and network evidence rather than treating every security event as an isolated alert.

Identity-Based Lateral Movement

Once an attacker obtains a valid identity, the next objective may be to use legitimate access to reach additional systems.

This is why identity security and network segmentation should work together. Identity policy can restrict what the user or service is authorized to access, while network and workload controls can reduce the available paths between systems.

A compromised developer identity should not automatically provide unrestricted access to production systems. Likewise, a compromised service identity should not automatically be able to communicate with every workload in the environment.

Privileged Identity Monitoring

Privileged identities require particular attention because the consequences of compromise can be significantly greater.

Monitoring should focus on privileged authentication, elevation events, administrative changes, sensitive resource access and unusual behaviour associated with administrative sessions.

Just-in-time access, strong authentication, session monitoring and detailed audit trails can reduce both the likelihood and impact of privileged identity abuse.

Identity Threat Detection and Response

Identity Threat Detection and Response, often abbreviated as ITDR, describes the security practices and technologies used to identify and respond to threats involving identities and identity systems.

ITDR should not be treated as a replacement for SIEM, SOAR, EDR or network security. Instead, it complements those capabilities by providing identity-specific evidence and response actions.

A mature architecture can correlate identity events with endpoint, application, cloud and network telemetry to build a broader view of an incident.

SIEM, SOAR and XDR Integration

Identity telemetry can feed security operations platforms where it can be correlated with other security events.

A SIEM can centralize and correlate security logs. SOAR can orchestrate defined response workflows. XDR platforms can combine signals from multiple security domains.

The important architectural principle is correlation. An unusual identity event becomes more valuable when it can be associated with a suspicious endpoint event, an abnormal API request or unexpected access to a sensitive resource.

Responding to Identity Compromise

Response should be proportional to the evidence and the potential impact of the activity.

MONITOR
Continue observation when evidence is weak or ambiguous.
RE-AUTHENTICATE
Require stronger identity verification.
REVOKE TOKEN
Invalidate exposed or suspicious session credentials.
DISABLE IDENTITY
Prevent further authentication when compromise is sufficiently established.
ISOLATE
Restrict affected endpoints or workloads to contain impact.

Automated Response

Some identity responses can be automated when the evidence and response conditions are well understood.

Examples include revoking a session, requiring re-authentication, removing temporary privilege, disabling an account or triggering endpoint isolation.

Automation should be carefully designed because an incorrect security decision can disrupt legitimate users or critical services.

High-impact actions should therefore have clear conditions, appropriate confidence thresholds, auditability and recovery procedures.

Recovering a Compromised Identity

Containment is not the end of an identity incident. Recovery must establish confidence that the attacker no longer has usable access.

Recovery may include credential reset, token and session revocation, removal of unauthorized applications or permissions, review of privileged access, endpoint remediation and investigation of resources accessed during the compromise.

The organization should also determine how the compromise occurred and whether the same weakness exists elsewhere.

Identity Security and Resilience

Identity security should ultimately be part of the organization's resilience strategy.

Critical identities, authentication systems, privileged access paths and recovery mechanisms must remain available during an incident.

Backup authentication mechanisms, emergency access procedures, recovery accounts and documented incident workflows should therefore be tested rather than simply documented.

Putting the Identity Security Model Together

The four sections of this guide form a continuous engineering model.

First, the organization establishes trustworthy identities and strong authentication. Next, authorization and context determine what those identities should be allowed to access. Enforcement points apply those decisions across applications, APIs, cloud and infrastructure.

Finally, telemetry and behavioural analysis determine whether the identity continues to behave consistently with the expected security model.

Identity Security Engineering Model
IDENTIFY → AUTHENTICATE → CONTEXTUALISE → ASSESS RISK → AUTHORISE → ENFORCE → MONITOR → RESPOND
Final Engineering Question
If an identity was trusted yesterday but its behaviour changes today, should the security system continue trusting the identity simply because the original authentication was valid?

Section 4 Summary

Identity security must assume that prevention can eventually fail. Compromised credentials, tokens and sessions require continuous monitoring, behavioural analysis and coordinated response.

The strongest architecture connects identity telemetry with endpoint, application, cloud and network evidence. This allows security teams to detect abnormal behaviour, investigate the identity's activity, contain the compromise and restore trust.

The result is a security model in which identity is not simply a login mechanism. It becomes a continuously evaluated control signal that influences access, enforcement, detection and response.

SECTION 04 · IDENTITY INCIDENT LAB

Compromised Identity Investigation

Investigate a suspicious identity by correlating authentication, device, privilege, token, application and lateral-movement evidence. Build the incident picture before selecting the containment response.
INVESTIGATION OPEN · EVIDENCE COLLECTION
Incident
Suspicious administrative identity
Identity admin.ops normally operates from a known corporate environment. A sequence of unusual authentication, privilege and application events has been detected.
Current Risk
ELEVATED
2 correlated indicators
Investigation Timeline
01 / 06
01
Unusual Login
Administrative identity authenticates from an unfamiliar location and device.
PENDING
02
MFA Anomaly
Multiple authentication challenges are generated in a short period.
PENDING
03
Privilege Escalation
The identity requests or receives access beyond its normal operating pattern.
PENDING
04
OAuth / Token Activity
An unfamiliar application or token begins using the identity.
PENDING
05
Unexpected Application Access
The identity reaches applications outside its normal behavioural profile.
PENDING
06
Lateral Movement
Identity activity begins touching additional systems or privileged resources.
PENDING
Evidence Inspector
SELECTED EVENT
Identity
admin.ops
Source
unfamiliar-device
Signal
anomalous authentication
Severity
HIGH
Correlation
identity + device
Investigation Score
LAB SIGNAL
Compromise Confidence
58
Illustrative investigation score — not a production risk formula
Identity Investigation Console
CORRELATED EVENTS
Select Response
CONTAINMENT DECISION
INVESTIGATION COMPLETE
Response validated.
```
☕
Support Network Insight
Help support independent engineering guides, interactive networking tools, and future learning labs.
Support Network Insight ```