Notes
Step 1 · Inventory
Step one is the inventory. A list of everything the company owns: servers, cloud accounts, domains and subdomains, code repositories, laptops, the SaaS tools staff use, and every place data is stored, with an owner for each. It sounds dull and it is the foundation of everything. In the last episode the attacker got in through a staging site nobody remembered. The forgotten system is the one that gets breached.
- servers, cloud accounts, domains and subdomains
- code repositories
- laptops and phones
- SaaS tools and who can log in data stores: what is in them, who owns them
- the forgotten system is the one that gets breached
Step 2 · Find gaps
Step two is finding gaps, and the cheapest place to find them is before anything is built. In a design review the security engineer reads the plan for a new feature. In a threat model the team asks, in a structured way, what could go wrong here and what stops it. A flaw caught on a whiteboard costs an hour to fix. The same flaw found after launch can cost a quarter of work, or a breach.
While code is written, people and tools read it. Security engineers review the risky changes: logins, payments, file uploads. Static analysis scans the source for dangerous patterns. Software composition analysis checks the open-source libraries you depend on for known flaws. Secret scanning catches keys committed to git. Infrastructure scanning reads Terraform and flags a port or bucket that would be opened to the world. All of it runs inside the pipeline, on every change.
Once systems are live, the team attacks, scans and audits them. Vulnerability scanners look for missing patches and weak settings. Penetration testers and red teams attack the way a real enemy would. A bug bounty invites outside hackers to report flaws for a reward. Cloud posture tools read every setting in the cloud accounts and flag risky roles and public storage. And audits compare the whole company against a standard, control by control.
- design review: read the plan for a new feature or system
- threat model: what could go wrong, and what stops it?
- security requirements: login, data, logging rules up front
- a design flaw found here costs an hour, not a quarter
- code review for risky changes
- SAST: scans your source code
- SCA: scans the libraries you depend on secret scanning: keys in git
- IaC scanning: Terraform that would open a port or bucket
- all run inside the pipeline
- vulnerability scans: missing patches, weak settings
- penetration tests and red team
- bug bounty: outside hackers report flaws for a reward
- cloud posture checks: risky roles, public storage
- audits against a standard
Step 3 · Rank
Step three is ranking, because scanners produce thousands of findings and a team has time for a few. Four questions sort them. How severe is the flaw? Is it being exploited in the wild right now? Can an attacker actually reach it, or is it buried on an internal system? And what does it protect: test data, or card numbers? A medium flaw on the public login page often beats a critical one on an isolated test box. Each rank gets a deadline.
- how bad is it? (severity)
- is it being exploited in the wild right now?
- can an attacker reach it? internet-facing or internal
- what does it protect? test data or card numbers
- fix dates set by rank
Step 4 · Fix
Step four is the fix, and there are three levels. A patch fixes this one bug. A pattern fixes the whole class of bug: one safe database helper that every developer uses, so injection cannot happen anywhere. A guardrail makes the mistake impossible: a cloud policy that simply refuses to create a public bucket. Senior engineers aim for the third level, because a guardrail keeps working when everyone is busy and nobody is looking.
- patch: fix this one bug
- pattern: fix the whole class, such as one safe query helper everyone uses
- guardrail: make the mistake impossible, such as a policy that blocks public buckets
- aim for the third
Step 5 · Verify
Step five is verification. A ticket marked done is a claim, not proof. So you run the same attack again and confirm it now fails. You add an automated test, so the bug cannot quietly come back in six months. You rescan, in every environment and not just one. And you look for the same flaw in sibling services, because a mistake one team made is usually a mistake three teams made.
- run the attack again: it must now fail
- add a test so the bug cannot quietly return
- rescan, and check every environment, not just one look for the same flaw in sibling services
Steps 6 to 8
Prevention is never perfect, so the loop continues. Detect: collect logs and write alerts for real attack steps, like a login from a new country followed by a large download. Respond: contain the problem, remove the attacker, recover. Learn: hold a blameless review that asks what allowed this, not who to blame. The lesson becomes a new guardrail or a new alert, and that closes the loop back to step one.
- detect: collect logs, write alerts for real attack steps
- respond: contain it, remove the attacker, recover
- learn: a blameless review, what let this happen?
- the lesson becomes a new guardrail or alert
Working with teams
One last thing decides whether the loop works: how security treats other teams. Security that only says no gets bypassed. So good teams build guardrails instead of gates, and paved roads, where the easy way to do something is also the secure way. They explain the risk rather than quote the rule. They automate every repeated check. And they answer quickly with yes, and here is how to do it safely. Teams then invite security in early, which is where it is cheapest.
- guardrails, not gates
- paved roads: the easy way is the secure way
- explain the risk, not the rule
- automate every repeated check
- be easy to reach, quick to answer
- say yes, and here is how
Common mistakes
Mistakes. Working without an inventory. Scanning endlessly while nothing gets fixed. Sorting by severity alone, ignoring what is reachable and exploited. Patching one example and leaving the class of bug alive. Closing tickets without proving the fix. Blaming people after incidents, which teaches everyone to hide problems. And becoming the team of no, which guarantees that risky work happens anyway, just without you in the room.
- no inventory
- scanning without fixing
- sorting by severity alone
- patching one bug, not the class
- closing tickets unverified
- blame after incidents
- being the team of "no"
Say it like this
In the interview: I start with an inventory, because you cannot secure what you do not know about. I find gaps early with design reviews and threat models, in the pipeline with scanners, and on live systems with testing and posture checks. I rank findings by real, reachable risk, fix the whole class with patterns and guardrails rather than one bug, verify the fix, and keep detection and response ready for whatever still gets through.
- "First an inventory. Then find
- gaps early with design reviews
- and threat models, in the pipeline with scanners, and on live systems with tests. Rank
- by reachable risk, fix the class with guardrails, verify, and keep detecting."