Cloud Security Services and Security Design Principles
Security goals describe what you want to protect. Security services are tools that help you do it, such as checking a user's identity or encrypting data.
Security design principles guide how you build the system. For example, give a user only the access needed for their job. Use several checks so that one failed check does not expose everything.
Goals: residents and their belongings stay safe. Services: a guard checks visitors (authentication), flat keys open only your flat (authorisation), a visitor register (auditing), CCTV (monitoring). Principles: give the plumber a key only to the pump room (least privilege), lock the gate and the building and your flat (defence in depth).
Cloud security services
1. Authentication – "Are you really who you say you are?"
It checks the identity of users, services and devices.
- Single-factor – a password only (weak).
- Multi-factor authentication (MFA) – two or more of: something you know (password), something you have (phone, hardware key) and something you are (fingerprint, face).
- Federated identity / Single Sign-On (SSO) – one login for many services, using SAML (Security Assertion Markup Language) 2.0, OAuth 2.0 and OpenID Connect (for example "Sign in with Google", Microsoft Entra ID / Azure AD).
- Machine identity – for programs, not people: API (Application Programming Interface) keys, X.509 certificates, IAM (Identity and Access Management) roles and short-lived (temporary) login details.
2. Authorisation – "What are you allowed to do?"
It decides what a logged-in identity may do.
| Model | Description | Example |
|---|---|---|
| DAC (Discretionary Access Control) – Discretionary | The owner decides who gets access | Sharing a file in Google Drive |
| MAC (Mandatory Access Control) – Mandatory | A central rule based on labels; users cannot change it | Military levels: Secret, Top Secret |
| RBAC (Role-Based Access Control) – Role-based | Permissions belong to roles; people are given roles | Azure RBAC roles "Reader", "Contributor" |
| ABAC (Attribute-Based Access Control) – Attribute-based | Rules check attributes – department, tags, time of day, IP (Internet Protocol) address | AWS (Amazon Web Services) IAM conditions on tags ("only if project = billing") |
3. Auditing and accountability – "Who did what, and when?"
Security events are recorded so every action can be traced back to a person or program: AWS CloudTrail, Azure Activity Log, Google Cloud Audit Logs. Logs should be kept in one central place, be tamper-evident (any change is noticed) and kept for as long as the policy requires.
4. Confidentiality services
Encryption at rest and in transit, key management services (KMS), hardware security modules (HSMs), tokenisation (replacing a card number with a meaningless token) and data masking (showing only XXXX-XXXX-1234).
5. Integrity services
Hashing, digital signatures, signed API requests, versioning and object lock.
6. Availability services
Redundancy (spare copies), load balancing, backups, DDoS protection, health checks and automatic recovery.
7. Monitoring, detection and response
- SIEM (Security Information and Event Management) – collects and analyses logs from everywhere.
- Intrusion detection – Amazon GuardDuty, Microsoft Defender for Cloud spot suspicious activity.
- Vulnerability scanning – finds known weaknesses.
- CSPM (Cloud Security Posture Management) – automatically finds wrong settings, like a public bucket.
- Incident response playbooks – step-by-step plans for what to do when something happens.
8. Network security services
Virtual firewalls (security groups, NSGs), web application firewalls (WAF) that block web attacks, private endpoints, VPNs (Virtual Private Networks), and micro-segmentation (small walled zones inside the network).
"Explain cloud security services." Organise the answer as authentication, authorisation, auditing/accountability, confidentiality, integrity and availability services, giving one cloud example for each.
Relevant cloud security design principles
These principles were written by Saltzer and Schroeder (1975) and are still the foundation of secure design – they apply directly to cloud software.
1. Least privilege
Every user, program and service gets only the minimum permissions it needs, for the shortest time needed.
An app that only reads images from one S3 (Simple Storage Service) bucket gets a policy allowing s3:GetObject on arn:aws:s3:::app-images/* – not AmazonS3FullAccess. If the app is hacked, the attacker still cannot delete buckets or read other data.
2. Separation of duties
No single person should control every step of an important task. Developers can deploy code but cannot approve their own production changes; one admin creates users, another approves extra permissions.
3. Defence in depth (layered security)
Use several independent layers of protection, so if one fails, the others still protect the system – like a gate, a building lock and a flat lock.
flowchart LR
A[Internet] --> B[DDoS protection & WAF] --> C[Network: VPC, subnets,<br/>security groups, NACLs] --> D[Host: hardened OS,<br/>patching, anti-malware] --> E[Application: authN/authZ,<br/>input validation] --> F[(Data: encryption,<br/>backups, access logs)]
4. Fail-safe defaults
Access is based on permission, not exclusion – the default answer is "No" unless something is explicitly allowed. Examples: a new security group allows no incoming traffic; a new S3 bucket blocks public access; an IAM user with no policies can do nothing.
5. Economy of mechanism
Keep designs as simple and small as possible. Simple things are easier to check, test and audit. Prefer well-tested managed services over home-made encryption.
6. Complete mediation
Every access to every resource must be checked – not just the first time. Saved (cached) permissions must be re-checked; every API call is authenticated and authorised (cloud APIs do this with signed requests).
7. Open design
Security must not depend on keeping the design secret (no "security through obscurity"). Use published, well-reviewed algorithms (AES (Advanced Encryption Standard), RSA, TLS (Transport Layer Security)); only the keys must be secret.
8. Least common mechanism
Reduce things that are shared by many users, because shared things can leak information between them. In the cloud: strong separation between customers (tenants), separate VPCs (Virtual Private Clouds), a separate encryption key for each tenant.
9. Psychological acceptability
Security must be easy to use, otherwise people find ways around it. SSO, MFA with a simple "Approve" button on the phone and clear error messages help people follow the rules.
10. Weakest link
A system is only as secure as its weakest part – often people (falling for phishing emails) or a forgotten test server.
11. Leveraging existing components
Reuse proven, secure components and services instead of building new ones – fewer new mistakes.
Additional cloud-era principles
| Principle | Meaning |
|---|---|
| Zero trust | "Never trust, always check" – being inside the company network does not make you trusted; every request is checked. |
| Secure by default | Products come with safe settings already switched on. |
| Automate security | Write security rules as code, check compliance automatically, fix problems automatically. |
| Encrypt everything | At rest and in transit, by default. |
| Assume breach | Design as if attackers will get in – limit the damage (blast radius) and detect them fast. |
| Protect the management plane | MFA on root/admin accounts, tightly limit API keys. |
Summary
- Security services: authentication (MFA, SSO), authorisation (RBAC/ABAC), auditing/accountability, confidentiality (encryption, KMS), integrity, availability, monitoring and network security.
- Design principles: least privilege, separation of duties, defence in depth, fail-safe defaults, economy of mechanism, complete mediation, open design, least common mechanism, psychological acceptability, weakest link, leveraging existing components.
- The modern cloud adds zero trust, secure-by-default, automation and assume-breach thinking.
Practice questions
- Explain the security services provided in cloud computing.
- Differentiate RBAC and ABAC with cloud examples.
- Explain any six cloud security design principles.
- What is defence in depth? Draw a layered diagram for a cloud web application.
- Explain least privilege and fail-safe defaults with IAM examples.
- What is zero-trust architecture?
Create a free account to track your progress and unlock virtual labs.