02Virtual networks
A virtual private cloud (VPC) is an isolated, software-defined network inside the provider's data centers. You choose its address range, carve it into subnets, write its route tables, and decide which pieces can reach the internet. Nothing is connected unless you connect it.
Connecting VPCs (peering, transit gateways) or linking them to an office (site-to-site VPN, dedicated circuits) recreates the same segmentation questions from earlier weeks. A flat mesh of peered VPCs lets one compromise travel everywhere.
03Security groups and network ACLs
Cloud filtering happens in the virtualization layer, so rules can wrap every single instance rather than only the network edge. Two kinds of control usually coexist:
| Security group (instance firewall) | Network ACL (subnet filter) | |
|---|---|---|
| Attached to | Each network interface | A whole subnet |
| State | Stateful: replies allowed automatically | Stateless: both directions need rules |
| Rules | Allow only; default deny | Ordered allow and deny |
| Can reference | Other security groups, not just IPs | IP ranges only |
| Best for | Microsegmentation by role | Coarse guardrails, explicit blocks |
04Keeping traffic private
By default, calls from a VM to the provider's own services (object storage, databases, queues) may travel over public endpoints. Private endpoints put those services inside your VPC's address space, so data never needs a public route and you can block internet egress entirely.
Private endpoints
Reach managed services over private IPs. Combine with endpoint policies that allow only your own buckets or accounts.
Egress control
Restrict outbound traffic to known destinations. Malware and data theft both need a way out.
Encryption everywhere
TLS in transit even inside the VPC, and provider-managed keys (KMS) for data at rest, with key access logged and limited.
Edge protection
Put public apps behind the provider's DDoS protection, CDN, and web application firewall, and hide origin addresses.
05Identity is the new perimeter
In the cloud, the most powerful network is the provider's API. Anyone holding valid credentials can create, change, or delete infrastructure from anywhere on the internet.
Every VM, function, and container runs with an identity (a role or service account) that grants API permissions. If an attacker can make a workload reveal its credentials, network controls around it no longer matter.
Least-privilege roles
Grant each workload only the specific actions and resources it needs; review unused permissions regularly.
Harden metadata access
Require session-token metadata requests (such as IMDSv2) and block the metadata address where it is not needed.
No long-lived keys
Use short-lived, automatically rotated credentials and workload identity federation instead of static access keys in code.
Protect humans
Phishing-resistant MFA on every console and admin account; separate break-glass accounts.
- AWS — configuring the instance metadata service (IMDSv2)
- NIST SP 800-210 — General Access Control Guidance for Cloud Systems
- MITRE ATT&CK — Cloud matrix
- Khan, S. et al. (2022). A systematic analysis of the Capital One data breach: critical lessons learned. ACM Transactions on Privacy and Security, 26(1).
06Misconfiguration: the dominant cloud risk
Cloud platforms rarely get "hacked" in the traditional sense. Far more often, a customer leaves something open: a public storage bucket, a database with no password on a public IP, an administrator port open to the world, or a role that can do everything. Attackers scan the entire internet for these continuously.
exposure Public storage
Buckets readable or writable by anyone have leaked millions of records and been used to plant malicious code.
exposure Open services
Databases, dashboards, and container APIs reachable from the internet, often with default or no authentication.
privilege Over-broad IAM
Wildcard permissions turn any small compromise into full-account control.
secrets Leaked credentials
Access keys committed to public code repositories are found by automated scanners within minutes.
Cloud security posture management (CSPM) tools continuously compare live configuration against benchmarks and alert on drift.
- CIS Benchmarks — hardening baselines for AWS, Azure, Google Cloud, and Kubernetes
- Prowler — open-source cloud security assessment
- flaws.cloud — hands-on challenges built around common AWS mistakes
- Continella, A. et al. (2018). There's a hole in that bucket! A large-scale analysis of misconfigured S3 buckets. ACSAC.
07Containers, Kubernetes, and service mesh
Containerized applications add another network inside the network. By default, every pod in a Kubernetes cluster can talk to every other pod, so a single compromised container can probe the whole cluster.
- Kubernetes — Network Policies
- Istio security concepts — mesh-wide mTLS and authorization
- NIST SP 800-204 — Security Strategies for Microservices-based Application Systems
- Shamim, M. S. I., Bhuiyan, F. A. & Rahman, A. (2020). XI commandments of Kubernetes security: a systematization of knowledge related to Kubernetes security practices. IEEE SecDev.
08Multi-tenancy and isolation
Your workloads share physical servers, networks, and storage with strangers. Providers isolate tenants with hypervisors, lightweight micro-VMs, and network virtualization, but isolation is a property to be verified, not assumed.
Early research showed an attacker could deliberately place a VM on the same physical host as a target and extract information through shared hardware side channels. Later CPU flaws (Spectre, Meltdown) raised the same concern at a deeper level. Providers responded with hardened hypervisors, dedicated-host options, and confidential computing that encrypts memory even from the host.
- Ristenpart, T., Tromer, E., Shacham, H. & Savage, S. (2009). Hey, you, get off of my cloud: exploring information leakage in third-party compute clouds. ACM CCS.
- Agache, A. et al. (2020). Firecracker: lightweight virtualization for serverless applications. USENIX NSDI.
- Confidential Computing Consortium
09Visibility and detection
You cannot plug a network tap into someone else's data center, but the cloud offers telemetry that is often richer than on premises, if you turn it on and keep it.
| Source | Shows | Example question |
|---|---|---|
| API audit logs | Every control-plane action and who made it | Who opened port 22 to the world at 2 a.m.? |
| Flow logs | Connection metadata per interface | Which instance sent 40 GB to an unknown address? |
| DNS logs | Names resolved by workloads | Is anything resolving known C2 domains? |
| Managed threat detection | Provider analytics over the above | Are credentials being used from an unusual country? |
Send logs to a separate, locked-down account so an attacker who compromises production cannot erase the evidence.
- AWS VPC Flow Logs · Google Cloud VPC Flow Logs
- AWS CloudTrail — API audit logging
10Infrastructure and policy as code
Because cloud networks are defined by API calls, they can be defined in code: reviewed, version-controlled, tested, and scanned before deployment. Mistakes become pull requests that a reviewer or an automated check can reject.
- Checkov — static analysis for infrastructure-as-code
- Open Policy Agent — policy as code for clouds and Kubernetes
- Rahman, A., Parnin, C. & Williams, L. (2019). The seven sins: security smells in infrastructure as code scripts. IEEE/ACM ICSE.
11Common misconceptions
—References
Peer-reviewed
- Agache, A. et al. (2020). Firecracker: lightweight virtualization for serverless applications. USENIX NSDI. usenix.org
- Armbrust, M. et al. (2010). A view of cloud computing. CACM, 53(4). doi:10.1145/1721654.1721672
- Continella, A. et al. (2018). There's a hole in that bucket! ACSAC. doi:10.1145/3274694.3274736
- Khan, S. et al. (2022). A systematic analysis of the Capital One data breach. ACM TOPS, 26(1). doi:10.1145/3546068
- Rahman, A., Parnin, C. & Williams, L. (2019). The seven sins. IEEE/ACM ICSE. doi:10.1109/ICSE.2019.00033
- Ristenpart, T. et al. (2009). Hey, you, get off of my cloud. ACM CCS. doi:10.1145/1653662.1653687
- Shamim, M. S. I., Bhuiyan, F. A. & Rahman, A. (2020). XI commandments of Kubernetes security. IEEE SecDev. doi:10.1109/SecDev45635.2020.00025