CLOUD CONCEPT

Threat Modeling

Threat modeling is a structured process for identifying how a system could be attacked and selecting controls and monitoring to reduce the resulting risks.

Cloud Concepts Hub →

What is Threat Modeling

Threat modeling connects a workload’s architecture, valuable assets, trust boundaries, and likely attackers to concrete security requirements. It helps engineers prioritize preventive controls, collect useful telemetry, and design alerts around plausible attack scenarios rather than enabling security features indiscriminately.

Threat modeling asks what needs protection, what could go wrong, how serious the consequences would be, and how the design will prevent or detect those outcomes. Its output is an actionable set of attack scenarios, security requirements, and accepted residual risks. It is not simply a vulnerability scan: a fully patched application can still expose sensitive information through excessive permissions, broken authorization, or an unsafe integration.

Begin by describing the workload and its business purpose. Identify sensitive data, privileged identities, public endpoints, administrative interfaces, external dependencies, and availability requirements. Map data flows and trust boundaries, such as the transition from an internet client to an API, from application code to a database, or from one cloud account to another. Include deployment pipelines and management APIs because attackers do not have to enter through the application’s public interface.

For each boundary and asset, describe plausible abuse. An attacker might steal a workload credential, change a storage policy, exploit an injection flaw, exhaust an endpoint, or access another customer’s records. Frameworks such as STRIDE help structure this analysis, but using a framework does not replace understanding application behavior. Prioritize scenarios using likelihood, business impact, exposure, and existing safeguards rather than treating every hypothetical attack as equally urgent.

Translate each important scenario into monitoring requirements. For stolen credentials, relevant evidence might include identity-provider sign-ins, role assumptions, unusual API activity, permission changes, and sensitive data access. For data exfiltration, combine application authorization logs, storage access events, and network telemetry where appropriate. Cloud audit logs do not automatically capture every data-plane operation; for example, relevant AWS CloudTrail data events must be explicitly configured. Network flow logs describe traffic metadata, not application request bodies or definitive proof of data theft.

Define what each alert means, who receives it, and what action follows. An alert for disabling audit logging should have a different priority and response from an isolated rejected web request. In a multi-account environment, plan account and Region coverage, centralized collection, retention, restricted access, and protection against log modification or deletion. Validate that a controlled test produces the expected evidence and notification. Logging without a detection rule, an accountable responder, or sufficient investigation context is not a complete detection strategy.

At the network edge, choose controls according to the anticipated attack and protocol. HTTP injection attempts and abusive request patterns call for application-layer inspection and appropriate rate-based rules. Volumetric or transport-layer denial-of-service attacks require DDoS protections and a resilient ingress architecture. CDN delivery can reduce origin load, but caching alone does not protect dynamic endpoints or prevent direct access to an exposed origin. Restrict origin access using mechanisms appropriate to the origin type, and retain application authentication and authorization even when edge filtering is present.

Every choice has trade-offs. Detailed logging increases cost and may capture sensitive information; aggressive filtering can block legitimate customers; rate limits can penalize users behind shared addresses. Tune controls against realistic traffic, record assumptions, and test failure modes. Threat modeling is not a guarantee of security or a one-time compliance document. Revisit it when architectures, identities, data sensitivity, dependencies, or attacker behavior change, and use incident findings to improve both controls and monitoring.

Key aspects of Threat Modeling

Threat modeling turns architectural knowledge and plausible attack scenarios into prioritized controls, monitoring requirements, and repeatable validation.

Asset and trust-boundary analysis

Identify valuable data, privileged actions, entry points, and changes in trust across components, accounts, or external integrations. Use architecture and data-flow diagrams to reveal paths that require authorization, validation, or monitoring.

Explicit attack scenarios

Describe who could misuse the system, the access they would need, and the outcome they could cause. Include identity abuse, administrative changes, application attacks, data theft, and availability threats when relevant to the workload.

Risk-based prioritization

Rank scenarios by likelihood and business impact while considering existing safeguards. Assign owners to mitigations and document accepted residual risk instead of assuming that every threat can be eliminated.

Threat-driven monitoring

Map each priority scenario to required logs, metrics, detection logic, alert recipients, and response actions. Verify collection coverage and test that simulated activity creates useful evidence and actionable alerts.

Attack-specific edge defenses

Select defenses based on attack layer, traffic protocol, and origin exposure. Distinguish web request filtering from DDoS protection, and prevent attackers from bypassing the intended inspection path.

Continuous validation

Review assumptions after architecture changes, incidents, and security tests. Measure detection gaps and false positives, then update controls, telemetry, and response procedures.

Cloud services for Threat Modeling

The threat model determines which services and configurations are necessary. CloudTrail records relevant AWS API activity, while CloudWatch collects workload telemetry and supports alarms for defined conditions. GuardDuty adds managed detections from supported telemetry, but application-specific abuse still needs dedicated instrumentation. At the edge, CloudFront provides distributed delivery, AWS WAF inspects web requests, and Shield addresses DDoS threats. These controls work together only when traffic follows the intended inspection path, required events are collected, and findings reach responders with sufficient context. Test representative attack scenarios to verify both preventive behavior and detection coverage.

AWS CloudTrail image AWS CloudTrail

Provides AWS API activity records for investigating scenarios such as unauthorized role use, policy changes, and attempts to disable logging. Configure trails or event data stores for the required coverage, including relevant data events, rather than assuming event history captures every operation.

Open AWS CloudTrail →
Amazon CloudWatch image Amazon CloudWatch

Collects workload logs and metrics and supports alarms derived from threat scenarios. Engineers must configure log ingestion, metric filters or other detection logic, thresholds, and notification actions to turn telemetry into useful monitoring.

Open Amazon CloudWatch →
Amazon GuardDuty image Amazon GuardDuty

Analyzes supported AWS telemetry to produce managed threat-detection findings, including findings associated with credential misuse and suspicious network activity. Use the threat model to evaluate coverage and enable relevant protection plans; managed findings do not replace application-specific authorization monitoring.

Open Amazon GuardDuty →
AWS WAF image AWS WAF

Applies web request inspection and filtering to supported resources, addressing scenarios such as common injection attempts and abusive request rates. Tune rules using observed traffic and logs, and remember that a web application firewall does not replace application authorization or protect every network protocol.

Open AWS WAF →
AWS Shield image AWS Shield

Provides DDoS protection relevant to availability threats at the network edge. Shield Standard supplies baseline protection automatically, while Shield Advanced offers additional capabilities for supported, protected resources and must be evaluated against workload risk and cost.

Open AWS Shield →
Amazon CloudFront image Amazon CloudFront

Provides a distributed HTTP delivery layer that can reduce origin load and integrate with AWS WAF and Shield protections. Design origin access restrictions and cache behavior around the threat model so attackers cannot simply bypass edge controls or receive incorrectly cached sensitive responses.

Open Amazon CloudFront →