OverviewsSecurity
Security overview
Contents
- Threat models start at trust boundaries
- Weakness, vulnerability and exploit are three different things
- Severity and likelihood are separate scores
- Vulnerability scanning sees only what it can reach
- Static analysis follows tainted data
- Dynamic analysis tests the running system
- Fuzzing finds the inputs nobody wrote
- The supply chain is part of the attack surface
- ATT&CK describes what attackers do
- Detect behaviour, not indicators
- Incident response runs across the whole program
- Sources
Software security is the work of finding the ways a system can be made to do something its owner didn’t intend, fixing the ones that matter, and noticing when someone tries the rest. The field splits into two halves that use different tools. One half finds weaknesses before an attacker does: threat modeling, scanning, static and dynamic analysis, fuzzing. The other half assumes something will get through and watches for it: ATT&CK, detection, incident response.
This page covers the eleven things I watch when I dig into a system’s security. Each section says what the concept is, what to measure, and why it is worth tracking. The prompting guide for this topic turns the same ideas into named terms and prompt lines.
Threat models start at trust boundaries
A threat model is a written answer to Adam Shostack’s four questions. What are we working on? What can go wrong? What are we going to do about it? Did we do a good job? The OWASP Threat Modeling Cheat Sheet uses those four questions as its phases and starts from a data flow diagram of processes, data stores, external entities and the flows between them.
The part to track is the trust boundary, the line where data passes between parts with different privilege. The OWASP cheat sheet calls trust boundaries, data flows, stores and processes the likely attack points. STRIDE gives a checklist for each crossing. Spoofing breaks authentication, tampering breaks integrity, repudiation breaks non-repudiation, information disclosure breaks confidentiality, denial of service breaks availability, and elevation of privilege breaks authorization.
This matters because every later tool needs a target. A scanner or a fuzzer pointed at the wrong component produces a clean report and a false sense of safety. The threat model tells you which inputs cross a boundary, and those are the ones to test.
Weakness, vulnerability and exploit are three different things
Three names come up in every finding. CWE, MITRE’s Common Weakness Enumeration, names a kind of mistake, such as CWE-89 for SQL injection. A CVE ID names one vulnerability in one product, assigned by one of more than 400 CVE Numbering Authorities. An exploit is code that uses that vulnerability.
Keep the three apart in your head and in your tracker. A CWE count tells you what your developers keep getting wrong, so it drives training and lint rules. A CVE list tells you what to patch. An exploit, or evidence of one, tells you how fast. MITRE’s 2025 CWE Top 25 starts with CWE-79 cross-site scripting, CWE-89 SQL injection and CWE-352 cross-site request forgery, so web input handling still produces most of the damage.
Severity and likelihood are separate scores
CVSS, the Common Vulnerability Scoring System from FIRST, scores how bad exploitation would be on a 0 to 10 scale. In version 4.0, 7.0 to 8.9 is High and 9.0 to 10.0 is Critical. CVSS doesn’t say whether anyone will exploit the bug. EPSS, also from FIRST, estimates the probability that a CVE is exploited in the wild in the next 30 days. CISA’s Known Exploited Vulnerabilities catalog, KEV, lists CVEs with reliable evidence that exploitation has already happened.
Track all three side by side. A scanner that sorts only by CVSS gives you hundreds of criticals and no order among them. CISA’s SSVC decision tree uses exploitation status, technical impact, automatability, mission prevalence and public well-being impact to sort CVEs into Track, Track*, Attend and Act. It is a good model even outside government.
This matters because patching capacity is the scarce resource. Mandiant’s M-Trends 2026 report found exploits were the most common initial infection vector for the sixth year running, at 32% of intrusions. The bugs that get exploited are a small slice of the bugs that get scored.
Vulnerability scanning sees only what it can reach
A vulnerability scanner compares what it finds against a database of known vulnerabilities. What it finds depends on where it stands. Tenable’s documentation describes a non-credentialed scan as the attacker’s view from outside: open ports and the services behind them. A credentialed scan logs in and reads the exact software and patch level on each host.
The same split applies to code. Software composition analysis reads your lockfile and reports dependencies with known CVEs. Container scanners like Trivy and Grype read an image’s operating system packages and language libraries. An SBOM, a software bill of materials in CycloneDX or SPDX format, records every component of a build so you can answer “are we affected?” the day a new CVE lands.
Track scan coverage as a number, not a feeling. Count the hosts and images in your inventory, count the ones the last scan reached with credentials, and chase the difference. A host that drops out of the scan doesn’t show up as a finding. It disappears quietly.
Static analysis follows tainted data
Static application security testing, or SAST, reads source code without running it. OWASP’s page on source code analysis tools lists its strengths as scale, repeatability and pointing at the exact file and line. It lists its weaknesses as high false positive rates and blindness to configuration, which isn’t in the code.
The useful mode is taint analysis. You name sources where untrusted data enters, sinks where it does harm, and sanitizers that make it safe. Semgrep’s taint mode and CodeQL’s path queries both work this way and print the full path from source to sink. Track the rule set, the false positive rate per rule, and whether CI reports only new findings against a baseline. A scanner that reports 400 old issues on every pull request gets switched off.
Dynamic analysis tests the running system
Dynamic application security testing, or DAST, sends requests to a running application and judges the responses. The OWASP Developer Guide describes it as black-box testing that finds problems by performing attacks through the front end. It catches runtime and configuration problems that SAST can’t see. It also can’t cover all the code, so its coverage of the attack surface needs checking.
ZAP, OWASP’s open source scanner, makes the two modes explicit. Passive rules only read traffic and are safe to run anywhere. Active rules send attacks, and ZAP’s docs say not to run them against applications you don’t own. Its baseline scan spiders for 1 minute by default and reports passive findings only, which suits CI. The full scan adds active attacks and belongs on staging.
Track two things. First, whether the scanner is authenticated. ZAP needs a context, a login method, users and a logged-in indicator before it can reach anything behind a login. Second, which endpoints it reached. An API scan from an OpenAPI definition covers every route, where a crawler finds only the linked ones. Runtime checkers belong in this section too. AddressSanitizer catches out-of-bounds access and use-after-free while your tests run, at a typical 2x slowdown according to the Clang docs.
Fuzzing finds the inputs nobody wrote
A fuzzer generates inputs, runs them through a target, and watches for crashes and hangs. Coverage-guided fuzzers like libFuzzer and AFL++ keep any input that reaches new code and mutate it further, so they work their way deep into a parser without a grammar.
The fuzzer finds a crash only if the bug crashes, so pair it with a sanitizer. A heap overflow that doesn’t segfault still trips AddressSanitizer. Track executions per second, code coverage over time, the size of the corpus, and the number of unique crashes after deduplication. When coverage stops growing, the harness needs a dictionary, a better seed corpus or a structure-aware mutator.
Fuzzing pays off at scale. The OSS-Fuzz README says that as of May 2025 it had helped find and fix more than 13,000 vulnerabilities and 50,000 bugs across 1,000 projects. In November 2024 Google reported that AI-written fuzz targets found 26 new vulnerabilities, including OpenSSL’s CVE-2024-9143. The hard part was writing harnesses, and that part is now cheap to try.
The supply chain is part of the attack surface
Your build ships code you didn’t write, built by systems you didn’t secure. Each step from source to deploy is a place someone can change what you ship: a compromised dependency, a tampered build runner, a swapped artifact in the registry.
SLSA, Supply-chain Levels for Software Artifacts, gives levels for build integrity. At Build L1 provenance exists. At L2 a hosted platform signs it. At L3 the build runs isolated and signing secrets stay away from build steps. Sigstore’s keyless signing ties a signature to an OIDC identity through a short-lived certificate and records it in the Rekor transparency log. OWASP moved software supply chain failures to A03 in its 2025 Top 10.
Track which artifacts have provenance, which are signed, whether deploy verifies both, and how many dependencies are pinned by hash. These numbers answer the question you’ll be asked after the next public package compromise. Did we pull it, and did it reach production?
ATT&CK describes what attackers do
MITRE ATT&CK is a knowledge base of real adversary behaviour, built from public incident reporting. It organises behaviour as tactics, the attacker’s goal at each stage, and techniques, how they reach it. Each has an ID. T1566 is Phishing under Initial Access. T1059.001 is PowerShell, a sub-technique of Command and Scripting Interpreter under Execution.
ATT&CK version 20.1, from October 2026, has 15 Enterprise tactics, 227 techniques and 479 sub-techniques. Version 19 split the old Defense Evasion tactic into Stealth and Defense Impairment, so older mappings need updating. Since version 18 each technique carries detection strategies and analytics instead of a free-text detection note.
Track your mapping against it. Tag every detection rule, red team finding and incident step with a technique ID, and colour the matrix in ATT&CK Navigator. The gaps show you which behaviours of the groups that target your sector you can’t see. The shared IDs also let your threat intel, detection and red team people talk about the same thing.
Detect behaviour, not indicators
David Bianco’s Pyramid of Pain ranks indicators by how much it costs an attacker when you detect them. From the bottom: hash values, IP addresses, domain names, network and host artifacts, tools, and TTPs, the tactics, techniques and procedures at the top.
A rule that matches a file hash breaks when the attacker recompiles. A rule that matches the behaviour, such as an Office process starting an encoded PowerShell command, survives new tools and new infrastructure. Write rules as code in a format like Sigma, which converts to most SIEM query languages, tag each with its ATT&CK technique, and test each with an atomic test that performs the technique.
Track detection coverage by technique, the false positive rate per rule, and time from alert to triage. Alerts that fire 50 times a day on normal activity train analysts to ignore them, and then the real one gets ignored too.
Incident response runs across the whole program
NIST SP 800-61 Rev. 3, published in April 2025, recasts incident response as a profile of the NIST Cybersecurity Framework 2.0. CSF 2.0 has six functions: Govern, Identify, Protect, Detect, Respond and Recover. The revision treats all six as part of incident response, not only the reaction after an alert.
Track the numbers that show whether the program works. Dwell time is the gap from intrusion to detection, and M-Trends 2026 puts the global median at 14 days. Time to contain, time to recover, and how many postmortem action items closed by their due date tell you whether the last incident made the next one less likely. Run a tabletop exercise before the real incident, so the first time the team uses the plan isn’t the night it matters.
Sources
- The Four Question Framework, Adam Shostack
- Threat Modeling: What, Why, and How?, Adam Shostack, for STRIDE and the property each category violates
- Threat Modeling Cheat Sheet, OWASP
- CVE 25 Years anniversary report, CVE Program
- 2025 CWE Top 25, MITRE
- CVSS v4.0 specification, FIRST
- Exploit Prediction Scoring System, FIRST
- Known Exploited Vulnerabilities Catalog and SSVC, CISA
- M-Trends 2026, Mandiant
- Non-credentialed network scans, Tenable
- Trivy and Grype READMEs
- Source Code Analysis Tools, OWASP
- Taint mode overview, Semgrep, and Creating path queries, CodeQL
- DAST, OWASP Developer Guide
- ZAP docs: baseline scan, active scan and authentication
- AddressSanitizer, Clang docs
- libFuzzer, LLVM, and Fuzzing in depth, AFL++
- OSS-Fuzz README, Google
- Leveling up fuzzing, Google Security Blog
- SLSA build track basics, SLSA v1.2
- Sigstore overview
- OWASP Top 10:2025
- MITRE ATT&CK: versions, Enterprise tactics, updates, April 2026 updates and October 2025 updates
- The Pyramid of Pain, David J. Bianco
- Sigma, SigmaHQ
- NIST revises SP 800-61 and NIST Cybersecurity Framework 2.0, NIST