Cloud Software Requirement Engineering and Security Policy Implementation
Before building cloud software, write down what it must protect. Identify the data, the people who use it and what could go wrong. These written needs are security requirements.
A security policy sets the organisation's rules. To make the rules work, turn them into access settings, checks and records. For example, a rule about private marks needs settings that stop students from changing marks.
Requirement engineering is deciding what the school needs ("students must be safe during lunch"). The policy is the written school rule ("no outsiders enter during school hours"). Implementation is what actually makes it happen – a guard at the gate, ID cards and a visitor register.
Approaches to cloud software requirement engineering
1. The resource perspective (cloud-specific)
Here, cloud software is seen as something that uses and provides resources – computing power, storage, network, identities, data and services. For every resource, we ask:
- Who owns it, who may access it, and how?
- Where is it located (which region / country's laws)?
- How is it kept separate from other customers (tenants)?
- How is it created, scaled and released?
- How is its use measured and audited?
In the cloud, requirement engineering must cover not only functions but resources and their whole life: creation (provisioning), sharing (multi-tenancy), growing and shrinking (elasticity), location, and removal (secure deletion).
2. Goal-oriented requirement engineering (KAOS, i*)
Start with a goal, such as “keep each customer's data private.” Break it into smaller rules that can be tested. Also list anti-goals: what an attacker wants to achieve.
flowchart TB
G[Goal: Protect customer data] --> G1[Data encrypted at rest]
G --> G2[Only owner tenant can access]
G --> G3[All access is audited]
G2 --> R1[Requirement: tenant_id checked<br/>on every query]
G2 --> R2[Requirement: per-tenant KMS key]
AG[Anti-goal: Attacker reads<br/>another tenant's data] -.counters.-> G2
3. Use cases and misuse/abuse cases
A use case describes an allowed action. A misuse case describes a harmful action. For each harmful action, write a rule that helps stop it and a test that checks the rule.
4. SQUARE – Security Quality Requirements Engineering
A nine-step method from Carnegie Mellon University's Software Engineering Institute (SEI (Service Endpoint Interface)):
| Step | Activity |
|---|---|
| 1 | Agree on definitions – everyone uses words the same way |
| 2 | Identify security goals |
| 3 | Prepare material – architecture diagrams, use/misuse cases |
| 4 | Do a risk assessment |
| 5 | Choose how to collect requirements (interviews, workshops…) |
| 6 | Collect (elicit) the security requirements |
| 7 | Group (categorise) them |
| 8 | Put them in order of importance (prioritise) |
| 9 | Review (inspect) them |
5. Risk-based / threat-driven approach
List assets worth protecting, threats, vulnerabilities (weak points) and possible damage. Estimate risk = likelihood × impact: how likely a problem is and how much harm it could cause. Write rules to reduce the risk. ISO/IEC (International Electrotechnical Commission) 27005 and NIST (National Institute of Standards and Technology) SP 800-30 describe risk-assessment methods.
6. Policy- and compliance-driven approach
Requirements can come from laws, contracts and standards. Examples include ISO/IEC 27001/27017/27018, the CSA (Cloud Security Alliance) Cloud Controls Matrix, PCI-DSS (Payment Card Industry Data Security Standard) and the DPDP (Digital Personal Data Protection) Act. Check which requirements apply to the organisation and service.
7. Agile security requirements
Teams can include security in each small piece of planned work. Write a security user story and list the checks needed before it is complete. Include possible attacks as abuse stories.
“As a tenant administrator, I want to require MFA (Multi-Factor Authentication) for all my users, so that stolen passwords alone cannot access our data.”
Comparison
| Approach | Strength | Best when |
|---|---|---|
| Resource perspective | Covers cloud-specific points | Designing any cloud-native system |
| Goal-oriented | Clear link from goals to requirements | Complex systems with many stakeholders |
| Misuse cases | Easy to explain, easy to test | Application features |
| SQUARE | Thorough and structured | Large or regulated projects |
| Risk-based | Spends effort on the biggest risks | Limited budget |
| Compliance-driven | Ready for audits | Regulated industries (banking, health) |
Cloud security policy
A security policy is an organisation's written set of protection rules. It says what to protect, who is responsible and what actions are allowed. Standards, guidelines and procedures explain how to follow it.
flowchart TB
P[Policy – WHAT and WHY<br/>“All confidential data must be encrypted.”] --> S[Standards – mandatory specifics<br/>“Use AES-256 with KMS-managed keys.”]
S --> G[Guidelines – recommendations<br/>“Prefer customer-managed keys for regulated data.”]
S --> PR[Procedures – step-by-step HOW<br/>“Enable default encryption on each new bucket…”]
| Document | Meaning | Is it compulsory? |
|---|---|---|
| Policy | What and why – the high-level rule | Yes |
| Standard | The exact, required specifics | Yes |
| Guideline | Helpful advice / best practice | No (recommended) |
| Procedure | Step-by-step instructions – how | Yes (when doing that task) |
Types of security policies
| Type | Scope | Cloud example |
|---|---|---|
| Organisational (program) policy | The whole security programme, roles and responsibilities | “The CISO (Chief Information Security Officer) owns cloud security; all teams follow the shared responsibility model.” |
| Issue-specific policy | One particular topic | Cloud acceptable-use policy, data classification, BYOD (bring your own device), encryption, password/MFA policy |
| System-specific policy | One particular system or service | Rules for the production AWS (Amazon Web Services) account: who may deploy, which regions are allowed |
What a cloud security policy contains
- Purpose and scope (which clouds, accounts and data it covers).
- Roles and responsibilities (provider vs customer; owners, admins, users).
- Data classification and handling (public, internal, confidential, restricted).
- Identity and access management (MFA, least privilege, regular access reviews).
- Encryption and key management.
- Network security (segmentation, allowed ports, private endpoints).
- Approved services and regions; where data must be stored (data residency).
- Logging, monitoring and incident response.
- Backup, business continuity and disaster recovery.
- Managing vendors, and an exit plan if you leave a provider.
- Compliance and audit; how the policy is enforced and how exceptions are approved.
Implementing cloud security policy
A policy needs working controls. Use access rules and automated checks to enforce it. Keep records so you can check whether people and systems followed the policy.
flowchart LR
W[Written policy] --> T[Translate into<br/>technical controls] --> E[Enforce<br/>preventive guardrails] --> D[Detect<br/>continuous monitoring] --> R[Respond & remediate] --> A[Audit & review] --> W
write the policy → turn it into technical settings → block what is not allowed → watch continuously → fix problems → audit and improve the policy → repeat.
Implementation mechanisms
| Mechanism | Example |
|---|---|
| IAM (Identity and Access Management) policies & roles | JSON (JavaScript Object Notation) policies giving least privilege; groups by job role |
| Organisation-wide guardrails | AWS Organizations Service Control Policies (SCPs), Azure Policy, Google Organization Policy – for example block any resource outside ap-south-1 |
| Policy as code | Open Policy Agent (OPA), HashiCorp Sentinel, Azure Policy definitions stored in Git |
| Secure baselines / landing zones | Ready-made accounts with logging, encryption and network rules already on (AWS Control Tower, Azure Landing Zones) |
| Encryption by default | Account-level default encryption for disks and buckets |
| Continuous compliance (CSPM (Cloud Security Posture Management)) | AWS Config rules, Security Hub, Microsoft Defender for Cloud flag anything breaking the rules |
| Automatic fixing (remediation) | A rule that instantly blocks public access on any new bucket |
| Logging & monitoring | A CloudTrail trail for the whole organisation, a central SIEM (Security Information and Event Management) |
| Training & awareness | People must know the policy |
| Regular audits and access reviews | Review admin users every quarter |
Example: from policy statement to IAM policy
Policy: "Reporting staff may only read the monthly reports bucket."
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ReadReportsOnly",
"Effect": "Allow",
"Action": ["s3:ListBucket", "s3:GetObject"],
"Resource": ["arn:aws:s3:::vlp-reports", "arn:aws:s3:::vlp-reports/*"]
}
]
}
This policy allows listing the vlp-reports bucket and reading its files. It grants no permission to delete files or use other buckets.
Example: an organisation guardrail (deny other regions)
{
"Version": "2012-10-17",
"Statement": [{
"Sid": "DenyOutsideIndia",
"Effect": "Deny",
"NotAction": ["iam:*", "organizations:*", "support:*"],
"Resource": "*",
"Condition": { "StringNotEquals": { "aws:RequestedRegion": ["ap-south-1", "ap-south-2"] } }
}]
}
This policy denies requests outside Mumbai and Hyderabad, except for the listed global services. Region restrictions are one control; also review where each service stores and copies data.
By default everything is denied. An explicit Allow gives access, but an explicit Deny anywhere (identity policy, SCP, bucket policy) always wins. This is the fail-safe defaults principle built into software.
Virtual lab · Amazon Web Services · 30 min
Implement a least-privilege security policy with AWS IAM
Turn a written security policy into IAM controls: groups by job function, users without admin rights, a custom JSON policy scoped to one bucket and programmatic access keys.
Summary
- Cloud requirement engineering approaches: resource perspective, goal-oriented, use/misuse cases, SQUARE, risk-based, compliance-driven and agile security stories.
- Policies state management's intent; standards, guidelines and procedures support them.
- Policy types: organisational, issue-specific and system-specific.
- Implementation: IAM, organisation guardrails (SCP / Azure Policy), policy as code, secure baselines, default encryption, CSPM, automatic remediation, logging, training and audits.
- In IAM: default deny + explicit allow, with explicit deny overriding everything.
Practice questions
- Explain the approaches to cloud software requirement engineering.
- What is the resource perspective in cloud requirement engineering?
- Explain the SQUARE methodology.
- What is a security policy? Differentiate policy, standard, guideline and procedure.
- Explain the types of security policies with cloud examples.
- How is a cloud security policy implemented? Give examples of technical controls.
- Write an IAM policy that allows read-only access to a single S3 (Simple Storage Service) bucket.
Practise this topic
Hands-on virtual lab
Apply what you just read in a realistic, guided simulation. Free with a verified account.
Create a free account to track your progress and unlock virtual labs.