Scrivio Interview library
LeadershipPrincipal7 min read · updated 12 November 2026

After Log4Shell and several supply chain attacks, the board asks how the company governs open-source libraries. What governance model do you put in place?

I would put in place a risk-based governance model built on knowing exactly what we run. Every deployable artefact has a software bill of materials, stored centrally and queryable, so we can find any vulnerable library across the fleet within hours and patch it within days, a capability we prove in regular drills. Libraries enter only through approved repository proxies with signature and policy checks, we support the critical open source projects we depend on, and every policy has a clear owner and is based on risk rather than blanket bans.

Background to this question

When Log4Shell (CVE-2021-44228) was published in December 2021, many companies spent days or weeks just answering one question: where do we run log4j-core? The fix itself was a version bump, but finding every copy, including those inside vendor products, shaded jars and forgotten services, was the hard part. Supply chain attacks, where attackers compromise a package or build system to reach its users, showed a second weakness: we often trust whatever the public repositories serve. When a board asks how the company governs open source, it is asking whether that would happen again. In this answer, we will build the governance model piece by piece: inventory, response capability, controlled intake, support for critical projects and the policy style that makes it work.

1What Log4Shell Taught About Visibility

Log4Shell was a remote code execution flaw: log4j-core 2.x, through its message lookup feature, would fetch and run code from an attacker-controlled server if a logged string contained a JNDI lookup such as a ${jndi:ldap://...} pattern. Because applications log user input all the time, almost any internet-facing Java service using it was exposed.

For most companies, the technical fix was simple and the organisational response was slow. They had no complete list of which services used log4j-core, which versions, or where it was bundled inside other jars. Teams searched repositories by hand, and vendors were asked one by one. The lesson for governance is that response speed depends on an inventory prepared before the incident, and that the inventory must cover what is deployed, not what the build files say.

2An SBOM for Every Deployable Artefact

A software bill of materials, an SBOM, is a machine-readable list of every component inside an artefact: each library with its name, version, licence and a hash, including transitive dependencies. The two common formats are CycloneDX and SPDX. We generate one in the build of every artefact, from the same resolution the build used, and for container images we also scan the final image, because the image contains the JDK and operating system packages too.

XML
<!-- Maven: generate a CycloneDX SBOM for every build -->
<plugin>
<groupId>org.cyclonedx</groupId>
<artifactId>cyclonedx-maven-plugin</artifactId>
<executions>
<execution><phase>package</phase><goals><goal>makeAggregateBom</goal></goals></execution>
</executions>
</plugin>
<!-- target/bom.json: every component, e.g. pkg:maven/org.apache.logging.log4j/log4j-core@2.24.3 -->

The SBOMs are uploaded to a central store, such as OWASP Dependency-Track, linked to the deployment records. Then the Log4Shell question becomes a query: which artefacts running in production today contain log4j-core below 2.17.1, the version that closed the follow-up issues? The answer takes minutes, and it includes shaded copies when the SBOM tool records them. Recent Spring Boot versions can also include and expose the SBOM through an actuator endpoint; check your version.

3Finding and Patching Within Days, Measured in Drills

An inventory tells us where the problem is; fixing it quickly needs a practised routine. The target should be explicit, for example: every affected internet-facing service patched within 72 hours of a critical vulnerability, the rest within two weeks. To meet it, services must be on a platform BOM where one patch release reaches everyone, with automated pull requests and a deployment pipeline that can release hundreds of services in a day.

We prove the capability with drills. Once or twice a year, the security team announces a simulated critical vulnerability in a commonly used library and measures the time to identify every affected artefact, the time to the first patched release and the time until the last one is deployed. The first drill usually reveals gaps: services that cannot build, unowned repositories, vendor products without SBOMs. Each drill's results go to the board as the honest answer to whether we could handle the next Log4Shell.

Step throughResponse to a critical library vulnerability
  1. Advisory publishede.g. a remote code execution in a common library
  2. Query the SBOM storeaffected artefacts in production, minutes
  3. Internet-facing affected?
    Yes72-hour target, mitigations firstNoTwo-week target
  4. Platform BOM patch releaseautomated PRs to every service
  5. Deploy and verify by new SBOMsdashboard of remaining exposure

5 steps in order. Play them, or step through them one at a time.

The time for each step is what the drills measure.

4Controlling What Comes In

The second half of governance is intake. Builds should fetch libraries only through the company's repository proxy, such as Nexus or Artifactory, never directly from the internet. The proxy is a choke point where we can apply policy: block components with known critical vulnerabilities, block licences outside policy, quarantine packages published in the last few days, which defends against some malicious package attacks, and keep a copy of everything we have used so a package removed upstream cannot break our builds.

Integrity checks protect against tampering. Maven Central requires signatures on published artefacts, and newer approaches such as Sigstore make signing and verification easier; we verify where tools support it, and we sign our own artefacts and container images and check signatures at deployment. Adding a new direct dependency goes through a lightweight policy, such as the checklist of need, health, licence and transitive dependencies, so most additions are quick and risky ones get a review.

5Supporting the Projects We Depend On

Log4j was maintained by a handful of volunteers who worked through the holidays to fix a problem that affected many of the world's largest companies. Governance that only consumes is fragile. We identify the open source projects that are most critical to us from the SBOM data, and we support them: sponsorship through their foundations or funding programmes, paid time for engineers to contribute fixes and reviews, and responsible, private reporting of the vulnerabilities our own scanning finds. This is a modest cost next to one serious incident, and it gives us people who know those projects from the inside.

6Risk-Based Policies With Clear Owners

The last part is the style of the policies. Blanket bans, such as no library without security approval, create queues and push teams to copy code or hide dependencies. A risk-based model sets stricter rules where the risk is higher: internet-facing services, components that parse untrusted input, cryptography, and tier-1 systems, with lighter rules elsewhere. Exceptions are allowed but recorded, with an expiry date and a named person who accepts the risk.

Every element of the model has an owner: the platform team owns the BOM and the pipeline, security owns the SBOM store, the policies and the drills, each service team owns patching its services, and an executive sponsor reports to the board. The board then receives a short, recurring report: coverage of SBOMs, results of the latest drill, open critical vulnerabilities past their target, and the support given to critical projects.

Step throughOpen source governance model
  1. Board and executive sponsorquarterly report: coverage, drills, overdue risks
  2. Policies by risk tierowners, exceptions with expiry
  3. Response capabilitypatch targets, platform BOM, drills
  4. Intake controlsrepository proxy, signatures, new-dependency policy
  5. InventorySBOM per artefact, central queryable store
  6. Upstream supportfunding, contributions, responsible disclosure

6 layers, from the top down. Step through them one at a time.

Each layer depends on the one below; without the inventory, nothing above it works.

7Follow-up questions

Does an SBOM cover libraries shaded into other jars?

Only if the tool can detect them. Build-time SBOMs from Maven or Gradle list declared dependencies; a shaded copy inside a third-party jar may be invisible to them. Scanning the final artefact or image with a tool that inspects jar contents, including embedded pom.properties files and class hashes, closes much of that gap, which is why we do both.

How do you handle vendor software that does not provide an SBOM?

Make an SBOM a contractual requirement for new purchases and renewals, and scan the installed product ourselves in the meantime. For critical vendor systems without either, the risk is recorded with an owner, and network controls limit their exposure.

Why not ban all libraries that have ever had a critical vulnerability?

Because almost every widely used library has had one, and banning them would push teams to less-reviewed alternatives or home-grown code, which is usually riskier. What matters is how quickly a project fixes issues and how quickly we can apply the fix.

8Conclusion

In this answer, we built a governance model for open source after Log4Shell. It starts with an SBOM for every deployable artefact in a central, queryable store, adds a measured ability to find and patch any vulnerable library across the fleet within days, controls intake through repository proxies, signature checks and a new-dependency policy, supports the critical projects we depend on, and keeps policies risk-based with clear owners and a regular report to the board.

What to say in the interviewAbout 80 seconds aloud

Open with

After Log4Shell, the main lesson was that most companies could not quickly answer where they ran log4j-core, so my model starts with inventory. Every deployable artefact gets a software bill of materials, CycloneDX or SPDX, generated in the build and complemented by scanning the final container image, and stored centrally in something like Dependency-Track, linked to what is deployed.

Then, if they want more

Then the question becomes a query that takes minutes. Second, response capability: explicit targets, for example internet-facing services patched within 72 hours of a critical vulnerability, made achievable by a platform BOM, automated pull requests and fast pipelines, and proven with drills once or twice a year whose results go to the board.

Third, intake: builds fetch only through our repository proxy, which blocks known critical vulnerabilities and disallowed licences, can quarantine brand-new packages, and keeps copies; we verify signatures where possible and sign our own artefacts. New direct dependencies follow a lightweight policy. Fourth, we support the critical projects we depend on with funding, contribution time and responsible disclosure.

And fifth, policies are risk-based rather than blanket bans: stricter for internet-facing and tier-1 systems, with recorded, expiring exceptions, and every part of the model has a named owner.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "After Log4Shell and several supply chain attacks, the board asks how the company governs...": https://scrivio-interview-library.netlify.app/java/utility-libraries/5beb49ff34/