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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- "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."