GRCLibrary.ai

Scenario

When an AI-suggested dependency turns out to be a malicious package

A leadership page from the library's executive layer: it explains the position in plain language, and the corpus documents it cites remain the governing texts.

Read the source on GitHub (opens in a new tab)

Authority disclaimer. This page is an executive narrative. It does not establish requirements; the linked corpus governs. It is provided to support understanding, discussion, and decision-making by the governing body and accountable executive leadership (board, ELT, or senior management, as applicable). It creates no obligation, control, or assurance by itself. Its publication approval is an editorial act only and confers no authority over any corpus document. Where it differs from a corpus document, the corpus document prevails.

§01

Scenario premise

Under delivery pressure, a developer accepts an AI coding assistant's suggestion to add a third-party package and installs it without verifying that the name exists in an approved registry. The suggested name is fabricated, and a malicious package has been published under it. This scenario walks the event through the controls the dev-security corpus sets, to show a governing body where each engages and what evidence a well-run response leaves behind.

§02

How the event unfolds

The package was installed outside the verification and vetting controls, not through them. Genuinely urgent work has a formal exception path in the corpus, approved as a policy waiver rather than skipped silently; the failure here is that the controls were bypassed, not that no path existed. What follows is either the fabricated name caught at a control before it ran, or a malicious package discovered after it was in the codebase.

§03

Where the corpus controls engage

§04

What good looks like

Because the install skipped verification, the package's legitimacy was never established up front, so a well-run response depends on a later control surfacing it, most directly the code-review provenance inspection of the published-by chain, rather than production being the first to reveal it. Where composition analysis produced a finding, the component was flagged and the disposition recorded. Where the build was affected, pipeline separation limited its reach. The control status and any gap were recorded for governance. Each of those is a control the organization can point to and evidence.

§05

Evidence to request

  • The registry-verification record, or its absence, for the added dependency.
  • The code-review record that should have inspected the dependency's provenance.
  • The composition-analysis finding where analysis produced one, or the applicable supply-chain control records (approved-registry sourcing, pinning, lock files, integrity checks), and the disposition for the component.
  • The pipeline and environment-separation configuration for the affected build path.
  • The control-status entry and any recorded gap in the development-security register.
§06

Limitations

This page is a non-normative executive narrative that creates no compliance by itself; the linked corpus documents govern, and where this page and a corpus document differ, the corpus document prevails. It routes to the corpus rather than reproducing its values: the approved-registry and pinning configuration, the provenance-inspection criteria, the pipeline-security controls, the acquisition-evaluation criteria, and the register schema live in the linked documents and are not restated here. This page carries composite claims: the sequence it describes across the named risk, the install-time control, composition analysis, code review, delivery containment, controlled acquisition, and governance visibility requires validation by the adopting organization against its own arrangements. The scenario is illustrative and makes no likelihood claim; a real event's facts determine which controls engage and how.

Source

The source

This page is rendered from the version-controlled Markdown file in the corpus repository, with the site's navigation and framing added around it. The Markdown, where its metadata, review record and full history live, is the source. If the two ever differ, the source governs.

Domains

The domains behind it