SECURITY ENGINEERING · PART 0 · START HERE · BASICS · 1 OF 229

What Is Cybersecurity? Attackers, Defenders and the Job

What cybersecurity really means: the assets a company protects, the CIA triad, the difference between a threat, a vulnerability, an exploit and a risk, how one unpatched server became one of the largest breaches on record, the words every security team uses, the three kinds of control, and what a security engineer does all week.

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 9
  9. 10
  10. 11
  11. 12
  12. 13
  13. 14
  14. 15
  15. 16
  16. 17
  17. 18
  18. 19
  19. 20
  20. 21
  21. 22
  22. 23
  23. 24
  24. 25
  25. 26
  26. 27
  27. 28
  28. 29
  29. 30
  30. 31
  31. 32
  32. 33
  33. 34
  34. 35
  35. 36
  36. 37
  37. 38
  38. 39
  39. 40
  40. 41
  41. 42
  42. 43
  43. 44
  44. 45
  45. 46
  46. 47
  47. 48
  48. 49
  49. 50
  50. 51
  51. 52
  52. 53
  53. 54
  54. 55
  55. 56
  56. 57
  57. 58
  58. 59
  59. 60
  60. 61
  61. 62
  62. 63
  63. 64
  64. 106
  65. 107
  66. 108
  67. 109
  68. 110
  69. 111
  70. 112
  71. 113
  72. 114
  73. 115
  74. 116
  75. 117
  76. 118
  77. 119
  78. 120
  79. 121
  80. 122
  81. 123
  82. 124
  83. 125
  84. 126
  85. 127
  86. 128
  87. 129
  88. 130
  89. 131
  90. 132
  91. 133
  92. 134
  93. 135
  94. 136
  95. 137
  96. 138
  97. 139
  98. 140
  99. 141
  100. 142
  101. 143
  102. 144
1 / 13

Press play to hear the narration, or step through at your own pace.

Key takeaways

  • Assets
  • CIA triad
  • threat, vulnerability, exploit, risk
  • prevent, detect, respond
  • defense in depth

Notes

What you protect

Start with what you protect. Security people call these assets. Customer data: names, emails, card details. Money: payments and refunds. The service itself, because a shop that is offline sells nothing. Secrets, like passwords and API keys. And trust, which takes years to build and one breach to damage. You cannot protect what you have not listed, so every security programme starts with an inventory.

Assets
  • customer data: names, emails, cards, addresses
  • money: payments, refunds
  • the service itself: the site must stay up secrets: passwords, API keys
  • trust: the brand, the customers who believe in it

The CIA triad

Security keeps three promises, called the CIA triad. Confidentiality: only the right people can read the data. Integrity: nobody can change it without permission, so a bank balance or an order total is what it should be. Availability: the system is there when users need it. Every attack you will ever study breaks at least one of the three. A data leak breaks confidentiality, a changed price breaks integrity, and a flood of fake traffic breaks availability.

The CIA triad
  • confidentiality: only the right people can read it
  • integrity: nobody changes it without permission
  • availability: it is there when you need it
  • every attack breaks one of these

Threat, weakness, risk

Four words that people mix up. A threat is who or what could cause harm: a criminal, a careless employee, even a flood. A vulnerability is a weakness that lets them: a bug, a default password, a storage bucket left public. An exploit is the method that uses the weakness. And risk is how likely the harm is, multiplied by how bad it would be. Teams never have time to fix everything, so they fix the highest risk first.

The four words
  • threat: who or what could cause harm
  • vulnerability: a weakness that lets them
  • exploit: the method that uses the weakness
  • risk = how likely x how bad
  • fix the highest risk first

A real breach

Here is how that plays out for real. In 2017 the credit agency Equifax ran a web framework with a known flaw. A fix had been published, but one internet-facing server was not patched. Attackers used the flaw, got in, and moved around inside for weeks without being noticed. They left with personal data of about one hundred and forty seven million people. No genius hacking: a known weakness, a missed patch, and nobody watching.

How it happened
  • a web framework had a known flaw, with a public fix
  • one internet-facing server was not patched
  • attackers got in and stayed for weeks, unnoticed
  • stolen: personal data of about 147 million people

Words you will hear

Some words you will hear every day. A CVE is a public identifier for one known flaw. A zero-day is a flaw with no fix yet. A payload is what the exploit runs once it is in. The attack surface is every place an attacker can reach. Blast radius is how far the damage spreads when one thing is compromised. An indicator of compromise is a clue an attack left behind, and TTPs are the tactics, techniques and procedures that describe how an attacker works.

Key terms
  • CVE: a public id for one flaw
  • zero-day: a flaw with no fix yet
  • payload: what the exploit runs
  • attack surface: every place an attacker can reach
  • blast radius: how far the damage spreads
  • IOC: a clue an attack left
  • TTPs: how an attacker works

Controls

Defenders answer with controls, and there are three kinds. Preventive controls stop an attack: a patch, a firewall rule, a second login factor. Detective controls notice an attack: logs, alerts and monitoring. Corrective controls recover from one: backups, rotating a stolen key, an incident plan. Equifax failed at all three. Good teams assume prevention will sometimes fail, and make sure they would notice within minutes, not weeks.

Three kinds of control
  • preventive: stop it a patch, a firewall, MFA
  • detective: notice it logs, alerts, monitoring
  • corrective: recover from it backups, key rotation, an incident plan

Defense in depth

That leads to the idea of defense in depth. No single wall is trusted. Around one database you put several layers: the network keeps it off the internet, identity gives each person the least access they need, the application checks every input, the data is encrypted, and every read is logged. Each layer assumes the one before it has already failed. An attacker has to beat them all; a defender needs only one to hold or one to raise the alarm.

Layers around one database
  • network: not on the internet
  • identity: least privilege, MFA
  • app: inputs checked
  • data: encrypted, keys rotated
  • monitoring: every read logged
  • one layer fails, the next holds

The job

So what does a security engineer do in a normal week? They review the design of a new feature before it is built, and ask how it could be abused. They sort through scanner findings and fix the two that really matter. They tighten a cloud role that could read every storage bucket. They write an alert for unusual logins, and help handle one small incident. Much of the job is making the secure way the easy way for every other team.

A week, for example
  • review the design of a new feature before it is built
  • triage scanner findings, fix the two that matter
  • tighten a cloud role that could read every bucket
  • write an alert for odd logins
  • help handle one small incident

What it is not

Four myths to drop now. Security is not only hacking. Most of the work is building and fixing. It is not a tool you buy, because tools need people and process around them. It is not the security team's job alone, since every engineer who writes code or opens a port shares it. And it is not about being one hundred percent secure. Nothing is. The goal is to know your risks and keep them at a level the business accepts.

Cybersecurity is not
  • only hacking: most of the work is building and fixing
  • a tool you buy: tools need people and process
  • the security team alone: every engineer shares it
  • being 100% secure: the goal is managed risk

Common mistakes

Mistakes. Having no list of what you own, so forgotten servers stay unpatched. Letting known fixes wait for months. Spending everything on prevention and nothing on detection. Trusting one wall instead of layers. Making everyone an administrator because it is easier. Keeping secrets in code and chat. And adding security at the end of a project, when changing the design is expensive, instead of at the start.

Avoid these
  • no list of what you own
  • patches that wait for months
  • prevention only, no detection
  • one wall instead of layers
  • everyone is an admin
  • secrets in code and chat
  • security added at the end

Say it like this

In the interview: cybersecurity protects the confidentiality, integrity and availability of the things a company values. We work out how those assets could be attacked, reduce the highest risks first with layered preventive controls, detect what still gets through, and respond quickly when it does. It is managed risk, shared by every engineer, not a promise that nothing will ever go wrong.

In the interview
  • "Cybersecurity protects the confidentiality, integrity and availability of what a company
  • values. We find how it could be attacked, reduce the highest
  • risks with layered controls, detect what gets through, and respond fast when it does."

Interview questions

Q1What is cybersecurity?

The practice of protecting the confidentiality, integrity and availability of systems and data: finding how they could be attacked, reducing the highest risks with layered controls, detecting what gets through and responding quickly.

Q2What is the CIA triad?

Confidentiality (only authorised people can read data), integrity (data is not changed without permission) and availability (systems are usable when needed). Every attack breaks at least one of the three.

Q3What is the difference between a threat, a vulnerability and a risk?

A threat is who or what could cause harm, a vulnerability is a weakness that could be used, and risk is the likelihood of that happening multiplied by its impact. An exploit is the method that uses the vulnerability.

Q4What is a zero-day?

A vulnerability that attackers know about before a fix exists, so defenders have had zero days to patch. Until a patch ships, the defense is detection and other layers that limit what the flaw can reach.

Q5What are preventive, detective and corrective controls?

Preventive controls stop an attack (patching, firewalls, MFA), detective controls notice one (logging, alerts, monitoring) and corrective controls recover from one (backups, key rotation, incident response).

Q6What is defense in depth?

Using several independent layers of protection, such as network, identity, application, data and monitoring controls, so that one failure does not expose the asset and each layer assumes the previous one failed.

Q7What do attack surface and blast radius mean?

The attack surface is every point an attacker can reach, such as open ports, APIs, login pages and staff inboxes. Blast radius is how much is affected when one component or account is compromised.

Q8What does a security engineer do day to day?

Reviews designs and code for weaknesses, triages and fixes vulnerabilities, hardens cloud and identity settings, builds detections and automation, helps respond to incidents, and makes secure defaults easy for other teams.