Knowledge / Information Technology / Cloud security

Cloud security

Information Technology (B.E./B.Tech) · Information security · free study notes for exams, placements and interviews

In short

Cloud security is the set of controls, architectures and practices that protect data, workloads, identities and configurations running on shared, on-demand computing infrastructure such as AWS, Microsoft Azure, Google Cloud and India's MeghRaj/NIC cloud. It differs from traditional security because the perimeter is an API, the infrastructure is multi-tenant and virtualised, and responsibility is split between the cloud service provider (CSP) and the customer. In India it is governed by the Digital Personal Data Protection Act, 2023, CERT-In's 2022 cyber-security directions, MeitY's empanelment of cloud providers for government workloads, and sectoral rules from RBI, SEBI and IRDAI. University syllabi examine deployment and service models, virtualisation threats, the shared responsibility model and cloud cryptography; placement rounds at TCS, Infosys, Wipro, Accenture, Deloitte, PwC, Amazon and Microsoft test IAM policies, S3/storage misconfiguration, encryption key management and container security.

Explained

Cloud models and what each means for security

Shared responsibility model

Virtualisation, container and serverless security

Identity, data protection and network controls in the cloud

Threats, misconfiguration and cloud-native defences

Indian law, standards and compliance practice

Key points

Formulas and examples

Availability of a service A = Uptime / (Uptime + Downtime) = MTBF / (MTBF + MTTR) — expressed as a percentage; MTBF = mean time between failures (hours), MTTR = mean time to repair (hours)
Allowed downtime per period = (1 − A) × period; a month is taken as 30 days = 43,200 minutes
Components in series (both must work): A_total = A₁ × A₂; redundant components in parallel: A_total = 1 − (1 − A₁)(1 − A₂)
SLA service credit = credit rate (%) × monthly charge for the affected service
Annualised Loss Expectancy ALE = SLE × ARO, where SLE = single loss expectancy (₹ per incident) = asset value × exposure factor, ARO = annual rate of occurrence (events/year)
Risk-control decision: adopt a control if (ALE_before − ALE_after) > annual cost of control
Residual risk = inherent risk − effect of implemented controls
Keys needed for pairwise symmetric keys among n tenants = n(n − 1)/2 (why cloud KMS uses per-resource keys and envelope encryption instead)

Example 1 — SLA downtime and service credit. A CSP promises 99.9% monthly uptime for a VM and gives a 10% credit if uptime falls below 99.9% and 25% below 99.0%. Monthly charge is ₹48,000.

Example 2 — Architecture availability (single AZ vs multi-AZ). An application needs a web tier and a database tier; each instance is 99.5% available.

Example 3 — Cost-justifying a cloud control (ALE). A fintech stores 2,00,000 customer records in cloud object storage. A public-bucket exposure is estimated to cost ₹1,500 per record in notification, remediation and penalty, but only 20% of records would realistically be exposed (exposure factor 0.2 on an asset value of ₹30 crore). Historical rate: once every 4 years.

Example 4 — Reading an over-permissive IAM policy.

{ "Version": "2012-10-17",
  "Statement": [
    { "Effect": "Allow", "Action": "s3:*", "Resource": "*" },
    { "Effect": "Allow", "Action": "iam:PassRole", "Resource": "*" }
  ] }

Example 5 — Envelope encryption key count. A SaaS platform encrypts 50,000 objects. With envelope encryption each object gets its own data encryption key (DEK), wrapped by one customer master key (CMK).

AspectOn-premisesIaaSPaaSSaaS
Physical and hypervisorCustomerCSPCSPCSP
Guest OS and patchingCustomerCustomerCSPCSP
Application codeCustomerCustomerCustomerCSP
Data and classificationCustomerCustomerCustomerCustomer
IAM and configurationCustomerCustomerCustomerCustomer
Typical top riskPhysical/insiderMisconfigured network, unpatched VMInsecure code, over-privileged roleWeak identity, over-sharing, shadow IT
ControlVirtual machinesContainers
Isolation boundarySeparate guest kernel via hypervisorShared host kernel, namespaces + cgroups
Attack to worry aboutVM escape, snapshot theftContainer breakout, privileged mode, image poisoning
Patching unitGuest OSRebuild and redeploy the image (immutable)
Typical scan targetOS packages, AMIBase image layers, SBOM, registry
Runtime guardHost IDS, trusted bootseccomp, AppArmor/SELinux, admission policy

Where it is used

Interview questions

Common mistakes

Related topics

Identity and access management · Network security: firewalls, VPN and IDS · IT governance, risk and compliance · Web application security (OWASP Top 10) · Cryptography basics · Security operations: SOC and SIEM

Open in the Knowledge reader →Find jobs →