QA Interview Hub · Knowledge base · Quizzes · Українська

Penetration Testing › Pentest in 2026: AI, LLM, continuous

Continuous security in practice: from a CVE to a fix in days (Log4Shell)

Continuous security is not a pentest every day but checks tied to events in development. These are a passive scan on each PR, dependencies and SBOM on each merge, a library search when a new CVE appears, a manual test after a big change. Log4Shell showed the value of an SBOM: teams that had one found the vulnerable places in hours. Automation finds only the known, so continuous complements the annual pentest.

Pentest · Continuous

A critical CVE came out on Friday. Do you know which of your services contain that library?

On 10 December 2021 (per the CISA advisory) Log4Shell (CVE-2021-44228) was disclosed in Apache Log4j 2: the vulnerable versions are 2.0-beta9 to 2.14.1 and the consequence is remote code execution. The first fix, 2.15.0, turned out to be incomplete, so the version CISA recommended kept changing: 2.17.0 for Java 8 and later came out on 17 December, and 2.12.3 for Java 7 on 21 December. Teams had to find every place with Log4j within days, often deep in dependencies. Those with an SBOM and a dependency scanner found them in hours. The rest searched by hand. An annual pentest does not solve such a situation: a continuous process is needed.

Log4Shell by dates (per the CISA advisory)

10 Dec 2021CVE-2021-44228 published17 Dec 2021Log4j 2.17.0 (Java 8 and later)21 Dec 2021Log4j 2.12.3 (for Java 7)between the dates: find and contain the risk
Figure 1. While the recommended version kept changing, a dependency inventory showed where to upgrade.

Mechanism: checks with different rhythms. Continuous does not mean "a pentest every day". It is a set of checks tied to events in development:

WhenWhatTool
every PRpassive scan, secretsZAP baseline
every mergedependencies, SBOMSCA
new CVE in KEVwhere is this library?SBOM, search
big changemanual test of the newpentester
once a yearfull test, regulatorpentest

Example: a passive scan in CI. A pipeline step runs ZAP baseline against staging (it only observes, attacks nothing). The step in YAML:

- name: ZAP baseline
  run: |
    docker run --rm -v "$PWD:/zap/wrk:rw" \
      ghcr.io/zaproxy/zaproxy:stable \
      zap-baseline.py -t https://staging.example.com \
      -r zap.html

The script returns a non-zero code if it found problems, so the step can stop the build. First it is put in warning mode and the noise is cleaned up, and only then made blocking.

Priority by CVE. When a new vulnerability appears, not every "Critical" is equally urgent. Look at three things: is it in the CISA KEV catalogue (exploitation confirmed), is your copy reachable from the internet, is there a fix. Log4Shell is an example of when acting within days matters: the vulnerable library sat in almost every Java stack.

Limits. Continuous automatic checks find the known. Logic flaws, chains and new attack classes are found by a manual test, so "continuous" complements the annual pentest and does not replace it. Regulators may also require a test specifically: PCI DSS 4.0.1 (requirement 11.4) — at least every 12 months and after significant changes.

Common mistakes:

  • having no dependency inventory: on CVE day the time goes into searching;
  • switching on blocking checks without tuning: the team bypasses or disables them;
  • treating "the scanner is green" as proof that the logic is safe;
  • fixing only one copy of the library: direct and transitive dependencies may contain several.

Check yourself

You have an SBOM with a thousand components and a new CVE appears in KEV. Which two questions do you ask first?

Answer

Is the vulnerable version in the SBOM (directly or transitively) and is it reachable from the internet. After that check whether a fix exists and which temporary measures are available.

In an interview. Junior: Continuous means regular automatic checks in CI tied to changes, while the annual pentest stays for depth. Middle/Senior: Log4Shell showed the value of an SBOM: when a critical CVE appears you need to know within hours where the library is. I tie the rhythm of checks to events: PR, merge, a new CVE, a big change.

More articles in this chapter