What Is Computer Security

Computer security is the protection of computer systems, networks and the information they hold from unauthorised access, change, disruption or destruction. Its scope covers hardware, software, data, networks and people.

A Short History

  • 1960s: time-sharing computers made it necessary to separate users, so passwords and access control appeared.
  • 1970s: the Anderson report (1972) and the Bell-LaPadula model (1973) gave formal ideas about confidentiality; DES was published as a standard in 1977; public-key cryptography appeared (Diffie-Hellman 1976, RSA 1977).
  • 1988: the Morris worm spread across the early internet and slowed thousands of machines, which led to the first computer emergency response team.
  • 1990s to 2000s: the web and e-mail brought macro viruses and mass-mailing worms such as Melissa (1999) and ILOVEYOU (2000), and fast network worms such as Code Red and Slammer.
  • 2010s onwards: targeted attacks such as Stuxnet (2010), large data breaches, and ransomware such as WannaCry (2017); attacks became organised crime and state-backed activity.

Common Threats

A threat is a potential cause of harm. Main categories are:

  1. Malware: viruses, worms, trojans, ransomware, spyware.
  2. Social engineering and phishing: tricking people into giving secrets.
  3. Network attacks: eavesdropping, spoofing, man-in-the-middle, denial of service.
  4. Password attacks: guessing, brute force and credential theft.
  5. Insider threats: misuse by employees or contractors.
  6. Physical threats: theft, fire and power failure.
  7. Software exploits: abuse of bugs such as buffer overflows and injection.

Vulnerabilities

A vulnerability is a weakness that a threat can exploit: unpatched software, weak or default passwords, misconfiguration, design flaws, unvalidated input, lack of encryption and untrained users. An exploit is the method that uses a vulnerability, and an attack is the act of exploiting it. Risk arises where a threat meets a vulnerability and an asset of value. A zero-day vulnerability is one unknown to the vendor, so no patch exists.

Definition: Vulnerability. A weakness in a system, its procedures or its people that a threat can exploit to cause harm.

Table 1.1: Threat, vulnerability and attack

Term Meaning Example
Threat Possible cause of harm A malicious e-mail sender
Vulnerability Weakness A server missing a security patch
Exploit Method that uses a weakness Code that abuses the missing patch
Attack Act of exploiting The server is taken over

Example 1.1: The window of exposure

Problem: A flaw is disclosed on day 0, a working exploit is published on day 7, and the organisation applies the patch on day 21. There are 50 affected servers. Find the exposure window and the total server-days of exposure.

Solution:

  1. The danger begins when the exploit exists: day 7.
  2. Exposure window = 21 − 7 = 14 days.
  3. Server-days = 50 × 14 = 700.
  4. The total time from disclosure to patch is 21 days.

Result: The servers are exposed to a known exploit for 14 days (700 server-days); faster patching shortens the window directly.

disclosed, exploit, patched = 0, 7, 21
servers = 50
window = patched - exploit
print("Exposure window (days):", window)
print("Server-days exposed:", servers * window)
print("Days from disclosure to patch:", patched - disclosed)

Output

Exposure window (days): 14
Server-days exposed: 700
Days from disclosure to patch: 21

Common mistakes

  • Using the words threat, vulnerability and risk as if they meant the same thing.
  • Believing that only outsiders attack; insiders are a major source of harm.
  • Delaying patches after an exploit is public.
  • Thinking security is only a technical problem and not a people problem.

Key takeaways

  • Threat: possible harm; vulnerability: weakness; exploit: method; attack: act.
  • Malware, phishing, network attacks, insiders, physical, software exploits.
  • Zero-day: no patch exists yet.
  • Shorten the window between exploit and patch.

Practice questions

  1. Define a vulnerability.
  2. What was the Morris worm?
  3. What is a zero-day vulnerability?

Answers to the practice questions

  1. A weakness that a threat can exploit to cause harm.
  2. A 1988 worm that spread across the early internet and slowed thousands of machines.
  3. A flaw unknown to the vendor, so no patch exists.

Sources

  • Official BCA syllabus Computer Security, course code 25BCA406DS02, Unit I