LESSON 4

Vulnerability Analysis

Understand common vulnerability classes, use shared vocabularies such as OWASP and CWE, assess severity and real exposure with CVSS, EPSS, and reachability, build a findings register, and prioritize what to fix first.

Introduction

Scanners, reviews, advisories, and customers will soon give the team a large pile of findings. Some are serious, many are noise, and a few are serious but look like noise. A team that treats every finding as urgent burns out; a team that ignores the pile gets breached by something it was told about.

This lesson teaches how to understand a vulnerability, describe it precisely, judge its real severity in your context, and decide what to fix first.

Learning Objectives

  • Describe the main classes of application vulnerabilities and how they arise.
  • Use common vocabularies (OWASP Top 10, CWE, CVE) to communicate precisely.
  • Assess severity with CVSS and adjust it for exposure, exploitability, and context.
  • Judge whether a vulnerability is reachable and exploitable in your system.
  • Write a clear finding and maintain a findings register.
  • Prioritize findings by risk and set remediation targets.
  • Use AI to explain and triage findings while verifying its claims.

1. Anatomy of a Vulnerability

Most vulnerabilities follow a pattern: untrusted data reaches a sensitive operation without adequate checking, or a required check is missing or can be bypassed. Understanding the pattern lets you find the class, not just the instance.

Class Pattern Typical prevention
Broken access control A check on who may do what is missing or wrong Central deny-by-default authorization; ownership checks
Injection Untrusted input is interpreted as code or commands (database queries, shell commands, templates) Parameterized queries, safe APIs, input validation, least privilege
Cross-site scripting Untrusted data is rendered in a page as active content Context-aware output encoding, content security policy
Cryptographic failures Weak or missing protection of data in transit or at rest Proven libraries, modern algorithms, correct key management
Insecure design The design itself lacks a needed control Threat modeling, secure design patterns
Security misconfiguration Unsafe defaults, open ports, verbose errors, public storage Hardened baselines, policy checks, configuration review
Vulnerable and outdated components A dependency has a known flaw Dependency management (lesson 6)
Authentication failures Weak sign-in, session, or recovery handling Proven identity components, MFA, rate limits
Integrity failures Unverified updates, artifacts, or serialized data Signing, verification, safe parsing
Logging and monitoring failures Attacks leave no trace or go unnoticed Security logging, alerts (operations course)
Server-side request forgery The server is tricked into making requests to internal resources Allow-lists for outbound requests, network controls
Unrestricted resource use No limits on size, rate, or cost Quotas, limits, timeouts

The OWASP Top 10 is a widely used awareness list of the most critical web application risks, updated periodically; consult the current version for its exact names and ranking. OWASP also maintains lists for APIs and for applications that use large language models. They are starting points, not complete checklists.

A short example of the pattern. Building a database query by joining strings that include user input lets the user alter the query. The fix is not to filter bad characters, which is fragile, but to separate code from data:

1
2
3
4
Unsafe:  query = "SELECT * FROM feedback WHERE org_id = " + user_input
Safe:    query = "SELECT * FROM feedback WHERE org_id = ?"  with the
         value passed as a bound parameter, and org_id taken from the
         session, not from the request

The safe form removes the whole class of problem. Prefer fixes that remove a class to fixes that block one known payload.

2. Shared Vocabulary

Findings are easier to share, search, and track when they use common identifiers:

Identifier What it names Example use
CWE (Common Weakness Enumeration) A type of weakness “CWE-89: improper neutralization of input in a database query”
CVE (Common Vulnerabilities and Exposures) A specific publicly known vulnerability in a specific product and version Dependency advisories
CVSS A standard way to score severity Base score from 0 to 10
EPSS A model estimating the probability that a vulnerability will be exploited in the wild Prioritization signal
Known exploited vulnerabilities lists Public catalogs of vulnerabilities seen exploited Strong signal to patch urgently

Use these identifiers in the findings register, and check current numbers against the authoritative databases; do not rely on memory, including a model’s memory, for scores or advisory details.

3. Severity Is Not Risk

A CVSS base score describes the technical severity in general, such as how much damage is possible and how hard the attack is. It does not know your system. To get risk, add context:

Factor Question Effect
Exposure Is the vulnerable component reachable from the internet, from authenticated users only, or only internally? Internet-facing raises priority
Reachability Does our code actually call the vulnerable function or path? Unreachable lowers priority
Exploitability Is there a known exploit? Is it being used? What does EPSS suggest? Active exploitation raises priority sharply
Preconditions What must be true for the attack to work (a specific configuration, an administrator account)? Hard preconditions lower priority
Data and function affected What is at stake: tenant data, credentials, availability? Sensitive assets raise priority
Existing controls Is there a compensating control (network rule, input validation, WAF)? Effective controls lower priority; verify them
Fix cost and risk How hard is the fix, and could it break things? Affects timing, not whether to fix

A “critical” library flaw in a function SignalDesk never calls, in a build tool that never runs in production, may be low priority. A “medium” finding in the authorization layer may be the most important finding of the month. Record both the base severity and the adjusted priority, with a reason.

Be careful in the other direction too: do not dismiss a finding because it seems unlikely. Attackers chain weaknesses and automate scanning of the whole internet, so a weakness on an exposed endpoint is found sooner than teams expect.

4. Verify Before You Rank

A finding is a claim. Confirm it:

  1. Locate it. Which file, line, endpoint, or component?
  2. Understand it. Which untrusted data reaches which sensitive operation? Which check is missing?
  3. Reproduce it, where safe and authorized, in a non-production environment with test data: a failing test or a documented request sequence is better than an argument.
  4. Assess reachability and preconditions.
  5. Classify it: confirmed, likely, unconfirmed, false positive, or not applicable, with a reason.

Close false positives with an explanation so that the same finding is not investigated again. Suppress them in the tool with a recorded reason and a review date, never silently.

5. Write a Good Finding

A finding should be understandable by someone who was not in the room:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
ID: V-017
Title: Export endpoint returns records of any organization
Class / CWE: Broken access control / CWE-639
Location: GET /api/exports/{id} (export service, ownership check absent)
Description: The export endpoint loads the export by identifier and
  does not verify that it belongs to the caller's organization.
Evidence: Test authenticated as organization A retrieves an export
  created by organization B (staging, test data).
Impact: Disclosure of another customer's feedback data.
Exposure: Authenticated users, internet-facing.
Base severity: High   Adjusted priority: Critical (sensitive data,
  trivial to exploit, no compensating control)
Recommendation: Apply the central ownership check; add a regression
  test for cross-tenant access to every export endpoint.
Owner: [name]   Status: Open   Target date: [date]
Found by: Manual review (lesson 7)   Date found: [date]

Good findings avoid blame, avoid vague words (“insecure,” “weak”), include evidence, and state a fix that removes the cause. Do not include working exploit code; describe the issue and how to verify it.

6. The Findings Register

Keep all findings in one place, whatever their source (scans, reviews, tests, customers, researchers). Track at least: ID, title, class and CWE or CVE, location, source, evidence, severity, priority, status, owner, target date, and links to the fix and the verifying test.

Statuses should be few and meaningful: open, in progress, fixed (awaiting verification), verified, accepted (with approval and expiry), false positive. A finding is not done when the fix is merged; it is done when the fix is verified by a test or re-scan.

Deduplicate. Ten scanner results about the same missing check are one finding with ten locations.

7. Prioritize and Set Targets

Combine adjusted priority with effort and decide an order. Many teams set remediation targets by priority, for example (illustrative values):

Priority Meaning Target
Critical Likely exploitable, severe impact, exposed Fix or mitigate within days; consider pausing release
High Serious but with some preconditions Within weeks
Medium Limited impact or hard to exploit Within the next planned releases
Low Minor or hardening Backlog, batch with related work

Targets must be achievable, or they will be ignored; agree on them with the people who do the work. For fast triage, ask four questions: is it exposed, is it exploitable, is it important data, and is there a mitigation? If the answers are “yes, yes, yes, no,” act today.

Also look for patterns. Many findings of one class point to a missing shared control (a central authorization layer, a safe query helper, an output encoder). One structural fix is worth more than fifty instance fixes.

8. Using AI for Vulnerability Analysis

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Act as an application security engineer triaging findings.

Inputs:
- Findings (from scanners, reviews, or reports), with locations:
  [paste, redacted]
- Short description of the architecture and exposure of each
  component: [paste]
- Authorization and data protection design: [paste]
- Findings register format and priority scale: [paste]

Tasks:
1. Group findings that share a root cause.
2. For each group, explain the weakness in plain language: what
   untrusted data reaches what operation, and what check is missing.
3. Propose a classification (CWE) and a likely adjusted priority
   with reasons, using exposure, reachability, and data sensitivity.
4. State what you would verify, and how, before accepting the
   priority.
5. Suggest a fix that removes the cause, not just the symptom.
6. Identify structural fixes that would resolve several findings.
7. List findings that look like false positives and why.

Do not claim that something is exploitable without stating what
would need to be true. Mark uncertainty. Do not write exploit code.

Check the results:

  • Does the model understand your code? If the explanation does not match the code, discard it.
  • Does the cited CWE or CVE exist and say what the model claims? Look it up.
  • Is the priority justified by facts about your system? Models over-rate generic severity.
  • Is a suggested fix correct? Test it; plausible fixes sometimes miss the actual cause.

AI is also useful for explaining an unfamiliar advisory to a developer, drafting the finding text, and writing the customer-facing summary; always check the details.

9. Practical Exercise

For SignalDesk (or your project):

  1. Create the findings register with the fields and statuses above.
  2. Choose three vulnerability classes from the table that fit your system, and find or construct an example of each in your code or design (a hypothetical is fine if none exists).
  3. For each, write a finding in the format above, with base severity and adjusted priority and reasons.
  4. Define your priority scale and remediation targets, and agree them with the team.
  5. Take five findings (from any source, including the threat model) and verify each: confirmed, false positive, or unconfirmed.
  6. Run the AI triage prompt on the set, compare with your own judgment, and resolve differences by checking facts.
  7. Identify at least one structural fix that would address several findings.

Verification

You are ready to continue when:

  • Every finding has a location, evidence, class, base severity, adjusted priority, owner, and status.
  • Priorities are justified by exposure, reachability, exploitability, and data sensitivity, and not by score alone.
  • False positives are closed with explanations, and nothing is suppressed without a reason and a review date.
  • The register defines “done” as verified, not merged.
  • Common root causes have been grouped and structural fixes proposed.

Key Takeaways

  • Most vulnerabilities are untrusted data reaching a sensitive operation, or a missing check.
  • A severity score is a starting point; exposure, reachability, and exploitability decide priority.
  • A finding is a claim: locate, understand, reproduce, and classify it before ranking.
  • One shared control often removes a whole class of findings.
  • AI explains and groups findings quickly; people verify the facts and set priorities.

What’s Next?

We now have a method for judging findings. The next lesson adds the tools that produce them at scale: static and dynamic analysis, secrets and infrastructure scanning, and how to put them in the pipeline without drowning in noise.