Vulnerability Assessment and Management Questions
Finding, prioritizing, and remediating vulnerabilities across systems. Covers vulnerability assessment methodologies, scanning and automation, interpreting and validating scan results, vulnerability classification and scoring (CVSS), prioritization based on exploitability and business impact, and driving remediation to closure. The operational vulnerability-lifecycle discipline, distinct from adversarial penetration testing.
What causes false negatives in vulnerability assessments (scanning blind spots, evasion, segmented/NAT'd/ephemeral environments), and how would you build a strategy to reduce them?
Sample Answer
Direct answer: A false negative is more dangerous than a false positive because it produces silence: nobody investigates a finding that was never generated in the first place. The causes cluster into two groups: the scanner literally couldn't reach the target, or it reached the target but couldn't see deeply enough to detect the issue.
Structured elaboration
Common causes:
- Segmentation and firewalls block the scanner from reaching the target at all, and the scan simply reports "no route" rather than "vulnerable", which looks identical to "nothing here" on a summary dashboard.
- NAT and proxies hide a target's real identity, so a vulnerable internal host gets scanned as if it were the NAT gateway or load balancer sitting in front of it.
- Ephemeral assets that boot and terminate between scheduled scan windows are never sampled at all.
- Unauthenticated scanning can't see installed package or OS-level versions, so it under-detects anything that requires local, credentialed inspection to identify.
- Evasion or throttling by an IDS/IPS or a rate-limiting middlebox that blackholes or slows scanner traffic mid-scan.
- Stale vulnerability signatures, where the scanner's plugin feed lags behind a newly disclosed CVE.
- Scope drift, where the target list itself is stale and whole subnets or cloud accounts were simply never enrolled in scanning, because the asset inventory feeding the scan never knew they existed.
Strategy to reduce false negatives:
- Drive scan scope directly from a live, automatically-updated asset inventory or CMDB feed, rather than a static target list that rots over time.
- Mix authenticated with unauthenticated scanning wherever credentials can be provisioned, since authenticated scanning sees far more than a network-only probe.
- Deploy scan sources inside each network segment instead of relying on one central scanner reaching across firewalls it may not have a clean path through.
- Increase scan cadence, or move to continuous/agent-based coverage, specifically for short-lived cloud and container workloads.
- Periodically validate real coverage using deliberately seeded, known vulnerabilities and reconcile "assets actually scanned" against "assets that actually exist."
Worked example: If your CMDB records 12,000 owned assets but your last scan's target list only enrolled 9,500 of them, that's a coverage gap of 12,000 - 9,500 = 2,500 assets, or 2,500 / 12,000 ≈ 20.8% of your estate that was never even attempted. No amount of tuning the scanner's detection logic fixes that 20.8%, because those hosts were never in scope to begin with; the fix has to happen at the inventory-and-scope layer, not the scan-engine layer.
Trade-offs & pitfalls: It's tempting to treat "zero critical findings" as good news, but a clean scan report and a scan report from an estate with a 20% coverage gap look identical on a dashboard. Always report coverage (assets scanned versus assets known to exist) alongside findings counts, or the metric that matters most is invisible.
Write a script that reads SAST tool output, filters to high/critical severity, deduplicates by a fingerprint (file path + function), and exports a clean CSV for triage.
Sample Answer
Direct answer: Parse the static application security testing (SAST) tool's output line by line, keep only findings rated high or critical, collapse duplicates that share the same file and function into a single row (many SAST rules fire once per line inside a function, which floods a queue with near-duplicates), and write the survivors to a CSV a human triager can open directly.
Structured elaboration:
- SAST tools commonly export newline-delimited JSON (one finding object per line), which is convenient because you can filter and dedupe in a single streaming pass without loading the whole report into memory first.
- The severity filter should happen before the dedup step: filtering first shrinks the working set, and it avoids a subtle bug where a low-severity duplicate of the same (file, function) pair could otherwise clobber the high-severity one you actually want to see.
- Deduplicating by (file, function) is a design choice, not a universal rule: it's the right key when the goal is "how many distinct spots in the code need a developer's attention," but if two different rule types fire in the same function for genuinely different reasons, you may prefer keying on (file, function, rule_id) instead so both survive.
- The CSV export should have a stable column order and be sorted so the same input always produces byte-identical output. That determinism matters for anyone diffing two triage runs.
Worked example (Python, runnable as shown):
import csv
import io
import json
SEVERITY_ORDER = {"critical": 0, "high": 1, "medium": 2, "low": 3, "info": 4}
def triage_sast_report(raw_json_lines: str) -> str:
seen = {}
for line in raw_json_lines.strip().splitlines():
finding = json.loads(line)
if finding["severity"] not in ("high", "critical"):
continue
key = (finding["file"], finding["function"])
existing = seen.get(key)
if existing is None or SEVERITY_ORDER[finding["severity"]] < SEVERITY_ORDER[existing["severity"]]:
seen[key] = finding
out = io.StringIO()
writer = csv.DictWriter(out, fieldnames=["file", "function", "severity", "rule_id"])
writer.writeheader()
for finding in sorted(seen.values(), key=lambda f: (SEVERITY_ORDER[f["severity"]], f["file"])):
writer.writerow({k: finding[k] for k in ["file", "function", "severity", "rule_id"]})
return out.getvalue()
if __name__ == "__main__":
sample_output = "\n".join(json.dumps(row) for row in [
{"file": "auth/login.py", "function": "verify_password", "severity": "critical", "rule_id": "hardcoded-secret"},
{"file": "auth/login.py", "function": "verify_password", "severity": "high", "rule_id": "timing-unsafe-compare"},
{"file": "api/upload.py", "function": "save_file", "severity": "medium", "rule_id": "path-traversal-low-confidence"},
{"file": "api/upload.py", "function": "handle_request", "severity": "high", "rule_id": "unrestricted-file-type"},
])
print(triage_sast_report(sample_output))
Output:
file,function,severity,rule_id
auth/login.py,verify_password,critical,hardcoded-secret
api/upload.py,handle_request,high,unrestricted-file-type
Four raw findings became two triage rows: the medium-severity path-traversal finding was dropped by the severity filter, and verify_password's two findings (critical and high) collapsed into the single critical row since that function already has an entry in the queue.
Complexity: O(n log n) overall, dominated by the final sort; the filter and dedup pass itself is O(n) time and O(k) space for k distinct (file, function) pairs.
Edge cases and trade-offs: a report with inconsistent severity spelling ("High" vs "high") will silently fail the membership check and drop real findings; normalize case on read. If the tool's JSON schema varies by rule type (some rules omit function for module-level findings), the key needs a sensible default like the module name so those findings don't collide into one bucket or raise a KeyError.
Compare CVSS-only, exploit-first, asset-first, and business-impact-first prioritization strategies. For a mid-size SaaS company, which would you recommend and why?
Sample Answer
Direct answer: for a mid-size software-as-a-service (SaaS) company, a hybrid of exploit-first and asset-first prioritization, with business-impact-first reserved as a tie-breaker rather than the primary axis, is the strongest recommendation. Pure CVSS-only is too blunt on its own, and pure business-impact-first is too slow and subjective to run week to week, so the practical answer usually blends the other approaches rather than picking one in isolation.
Structured elaboration, comparing the four strategies:
| Strategy | What it optimizes for | Strength | Weakness |
|---|---|---|---|
| CVSS-only | Intrinsic technical severity | Simple, requires no extra data, easy to automate | Ignores exposure, exploitation activity, and asset value entirely |
| Exploit-first | Findings under active or likely attack | Directly reduces near-term breach probability | A severe but not-yet-exploited finding can wait too long, then gets exploited the week after you deprioritized it |
| Asset-first | Where the business actually depends on the system | Protects what matters most regardless of a finding's raw score | Needs an accurate, maintained asset-criticality inventory, which many organizations don't have |
| Business-impact-first | Direct financial or regulatory consequence of exploitation | Best aligns security spend with what leadership actually cares about | Hardest to quantify consistently at the pace new findings arrive; tends to become subjective or political |
Worked example: a mid-size SaaS company's core risk is a multi-tenant breach, one exploited vulnerability exposing many customers' data at once, which makes both "is this actively exploitable" and "does this sit on the multi-tenant data path" the two questions that matter most day to day. Recommended approach: use exploit intelligence (a known-exploited-vulnerabilities catalog and Exploit Prediction Scoring System scores) as the first filter to catch anything under active attack regardless of score, and use asset criticality (is this on the shared data plane, the auth service, or the billing path, versus an internal tool) as the second filter to rank everything else. Reserve a full business-impact-first model, the kind of quantitative loss modeling built from annualized loss estimates, for quarterly strategic reviews and major architecture decisions, since it's too slow to run on every new finding.
Trade-offs and pitfalls: the honest failure mode of any hybrid is ambiguity about which factor wins when two rank differently, an actively-exploited finding on a low-criticality asset versus a dormant one on a high-criticality asset. The fix isn't to avoid the ambiguity but to write down the tie-breaking rule explicitly (for example, "active exploitation always escalates to the top SLA tier regardless of asset criticality") so the team isn't debating the same judgment call fresh every time it comes up.
You rely on third-party vendors to remediate vulnerabilities in outsourced infrastructure. How would you validate that vendor remediations are effective and timely, and maintain auditability?
Sample Answer
Direct answer
Do not take a vendor's "fixed" status at face value: define the same evidence bar you would apply internally, an independent rescan or verification rather than just a status update, build it into the vendor contract or SLA (service-level agreement) up front, and maintain your own audit trail, since you remain accountable for the risk even when someone else does the work.
Set the evidence bar before you need it
The time to define what counts as proof of remediation is in the contract or working agreement, not after the vendor claims something is fixed. Specify that closure requires independent verification, your own rescan or a report from a mutually trusted third party, not just the vendor's internal attestation.
Independent verification, not trust-based closure
Where you have the access, rescan the outsourced infrastructure yourself after the vendor claims a fix. Where you do not, for fully managed or SaaS infrastructure, require the vendor to provide evidence: a scan report, a change log entry, or in higher-stakes cases a third-party attestation such as a SOC 2 report (an independent audit of a vendor's security controls) or a penetration-test letter covering the specific issue.
Timeliness
Track vendor remediation against the same kind of SLA you would hold an internal team to, and escalate through the relationship's defined contract path, an account manager and then a formal escalation clause, rather than an informal ask, when a vendor consistently misses it. If the contract has no SLA language for security findings, that is itself a gap worth fixing before the next renewal.
Maintaining auditability
Keep your own record independent of the vendor's system: when the finding was reported to them, what evidence of remediation you received and when, and who on your side reviewed and accepted that evidence. If the vendor's own tracking disappears or changes, you still have proof of the finding's full lifecycle. In most regulatory contexts, using a vendor does not transfer your accountability for the risk, only the work of fixing it.
Worked example
A vendor manages a third-party payment integration and reports a critical finding fixed after a code change. Your validation plan: request the vendor's change reference and a description of the fix, run your own external scan against the specific endpoint if you have the access to reach it, and if you do not, request a signed statement or scan evidence from the vendor's own security team, dated after the fix. Log all of this with dates in your own tracking system regardless of what the vendor's ticketing shows, since that is the record you will need if this finding or its handling is ever questioned by a customer or an auditor.
Trade-offs and pitfalls
Accepting a vendor's "resolved" status with no independent evidence is a common gap; it works fine until the finding turns out not to actually be fixed, at which point you have been carrying unverified risk without knowing it. Requiring your own rescan against every vendor system is not always possible for fully managed services; where it is not, be explicit about the weaker evidence bar you are accepting and why, rather than pretending it is equivalent to independent verification. Relying entirely on the vendor's own tracking for your audit trail means you lose your evidence the moment that relationship or their system changes.
Design a validation harness that automatically re-tests high-priority vulnerabilities after remediation, minimizing risk to production, and integrates with ticketing to close or reopen issues.
Sample Answer
Direct answer
Build the harness around a simple rule: verify high-priority findings automatically wherever it's safe to do so, but keep the riskiest verification techniques (anything resembling active exploitation) out of production entirely, favoring passive, read-only checks there and reserving destructive-style retesting for staging. The harness's job is to produce trustworthy evidence and update the ticket (close or reopen) based on that evidence, never to silently assume success.
Structured elaboration (architecture)
flowchart LR
A[Ticket moves to<br/>Fixed, pending verification] --> B[Trigger]
B --> C[Test-case registry<br/>lookup by finding type]
C --> D{Safety gate:<br/>passive or active check?}
D -->|Passive, safe for prod| E[Execution engine<br/>runs against live asset]
D -->|Active or destructive| F[Execution engine<br/>runs in staging replica only]
E --> G[Evidence captured]
F --> G
G --> H[Decision engine:<br/>match against original finding]
H -->|Confirmed fixed| I[Ticketing API:<br/>close with evidence]
H -->|Still vulnerable| J[Ticketing API:<br/>reopen with evidence]
H -->|Inconclusive/unreachable| K[Flag for manual review,<br/>do not auto-close or auto-reopen]
- Trigger: fires when a ticket transitions to a "fixed, pending verification" state, or on a scheduled poll for anything that's sat in that state too long.
- Test-case registry: for each finding type (mapped by a CVE identifier, a Common Vulnerabilities and Exposures number, a CWE category, Common Weakness Enumeration, or a scanner plugin ID), a pre-approved, non-destructive check: a version or banner check, a safe HTTP probe confirming an expected response change, a read-only configuration assertion via an agent. Production-safe checks favor passive verification (does the version string, response header, or config value now match the patched state) over anything that replays an actual exploit technique.
- Safety gate: routes each check by risk level. Passive, read-only checks can run directly against production. Anything that looks like active exploitation, even a "safe" PoC (proof-of-concept) replay, only ever runs against a staging replica that mirrors the production configuration, never against the live asset.
- Execution engine: a rate-limited job runner with a circuit breaker (halting a batch if error rates spike) and an allow-list of approved check types; no ad hoc or newly-added check type runs without going through the same review the rest of the registry did.
- Decision engine: matches the fresh evidence against the original finding identifier, the same discipline as manual verification (a clean-looking result that doesn't map to the specific original finding isn't proof of anything). Three outcomes: confirmed fixed, still vulnerable, or inconclusive (target unreachable, check timed out, credentials unavailable). Inconclusive results must never auto-close or auto-reopen; they route to a human.
- Ticketing integration: writes the outcome back with the evidence attached, closing with proof or reopening with the reason, always leaving an audit trail rather than a silent status change.
Worked example
A high-priority finding (an outdated TLS library on a public-facing service) moves to "fixed, pending verification." The registry maps this finding type to a passive check: a TLS handshake probe confirming the negotiated protocol version and certificate details reflect the patched configuration. Because this check is read-only and safe for production, the safety gate routes it directly against the live asset. The execution engine runs it, captures the raw handshake evidence, and the decision engine confirms it matches what a successful fix should look like; the ticket closes automatically with that evidence attached. A different, higher-risk finding (an authentication bypass) maps instead to an active check that actually attempts the bypass technique; the safety gate routes that one exclusively to a staging replica, and its result only closes the ticket after a human reviews the staging evidence, since a bypass-style check is never approved to run against production directly regardless of automation.
Trade-offs, failure modes & safety gates
- Flaky checks: a single failed check shouldn't immediately mean "reopen"; use a retry with backoff, and after repeated inconsistent results, mark inconclusive for human review rather than oscillating the ticket open and closed.
- Passive checks can be spoofed or masked: a proxy or load balancer in front of the real service can report a version string that doesn't match what's actually running behind it, so for anything high-stakes, combine more than one type of evidence rather than trusting a single passive signal.
- Full automation for every severity is the wrong target: reserve fully automatic close/reopen for medium and high findings where the evidence is strong and passive, and require a human sign-off step for critical or crown-jewel-asset findings even when the automated check comes back clean, since the cost of a false "fixed" on those is much higher than the cost of a manual review.
- Asset unreachable during a maintenance window should defer the check and retry later, never treated as either "still vulnerable" (fail-closed) or "confirmed fixed" (fail-open) by default.
Unlock Full Question Bank
Get access to all Vulnerability Assessment and Management interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.