Security Functional Requirements
Security requirements state what a system must do to be secure. Typical functional requirements, in the style of the Common Criteria, are: identification and authentication, access control, audit and logging, cryptographic support, data protection, communication security, availability and fault tolerance, privacy, and security management such as roles and policies. Requirements should be clear, testable and traceable to risks.
Security Architecture
Security architecture is the design that places controls in a system so that they work together. Key principles are:
- Defence in depth: several layers of control, so one failure does not give access.
- Least privilege: give only the access that is needed.
- Separation of duties: no one person controls a whole critical process.
- Fail-safe defaults: deny unless allowed explicitly.
- Economy of mechanism: keep the design simple.
- Complete mediation: check every access.
- Open design: security must not depend on keeping the design secret (Kerckhoffs' principle).
- Zero trust: never trust by location; verify every request.
Layers usually include physical, network, host, application, data and user layers.
Scope of Computer Security
The scope includes information security (data), network security, application and software security, operating-system security, database security, cryptography, physical security, cloud and mobile security, and legal, ethical and human aspects such as awareness training.
Trends and Strategies
Trends: ransomware, supply-chain attacks, phishing with AI-generated content, attacks on cloud and mobile systems, IoT botnets, and growth of regulation. Strategies to meet them: prevent (controls and training), detect (monitoring, IDS, logs), respond (incident-response plan) and recover (backups and continuity plans); a layered, risk-based approach; regular patching; multi-factor authentication; security by design; and continuous improvement through audits and testing.
Definition: Defence in depth. A strategy of placing several independent layers of security controls so that if one layer fails, others still protect the asset.
Table 1.3: Security principles
| Principle | Meaning | Example |
|---|---|---|
| Least privilege | Minimum access needed | A clerk cannot change payroll rules |
| Fail-safe defaults | Deny unless allowed | Firewall blocks all by default |
| Separation of duties | Split critical tasks | One person requests, another approves |
| Complete mediation | Check every access | Permission checked on each file open |
Example 1.3: Benefit of layered defence
Problem: Each of three independent layers (firewall, antivirus, user training) stops 80 percent of the attacks that reach it. Find the percentage of attacks that get through all three, and the percentage stopped, and compare with a single layer.
Solution:
- Each layer lets through 20 percent, so 0.20.
- All three fail: 0.20 × 0.20 × 0.20 = 0.008 = 0.8 percent.
- Stopped = 100 − 0.8 = 99.2 percent.
- One layer stops only 80 percent and lets 20 percent through.
Result: Three layers stop 99.2 percent against 80 percent for one layer. (This assumes the layers fail independently, which is only approximately true.)
stop = 0.80
for layers in (1, 2, 3):
passed = (1 - stop) ** layers
print(layers, "layer(s): pass", round(100 * passed, 1), "%",
"| stopped", round(100 * (1 - passed), 1), "%")
Output
1 layer(s): pass 20.0 % | stopped 80.0 %
2 layer(s): pass 4.0 % | stopped 96.0 %
3 layer(s): pass 0.8 % | stopped 99.2 %
Common mistakes
- Relying on a single strong control such as the firewall.
- Giving users more privilege than their job needs.
- Keeping the design secret as the only protection.
- Writing requirements that cannot be tested.
Key takeaways
- Requirements: authentication, access control, audit, cryptography, availability.
- Principles: defence in depth, least privilege, fail-safe defaults, separation of duties.
- Zero trust: verify every request.
- Strategy: prevent, detect, respond, recover.
Practice questions
- What is defence in depth?
- State the principle of least privilege.
- Name the four parts of a security strategy.
Answers to the practice questions
- Using several layers of controls so that one failure does not expose the asset.
- Give each user only the access needed for the job.
- Prevent, detect, respond and recover.
Sources
- Official BCA syllabus Computer Security, course code 25BCA406DS02, Unit I
