Poisoned Pipeline / Techniques / T0253

T0253 · Defense Evasion · TA07 · observed in 1 incident(s)

Restore the package from a folder inside the repository

Open Source Security Artifact Security

A package does not have to come from a registry. NuGet resolves a
project's references from the sources it is given, and
RestoreAdditionalProjectSources in the project file — or a NuGet.config
committed next to it — can name a folder in the repository itself. A
.nupkg committed into that folder is a package the registry never saw: no
catalog entry, no repository signature, nothing for a registry scan to
match and nothing for a takedown to remove.

The take-home assessment Socket analysed in November 2026 did exactly
this. Its first commit added a Packages folder holding
VS_Builder.MSBuildAnalyzer.1.2.7.nupkg and
VS_Builder.WinUI3Controls.1.0.7.nupkg and set
RestoreAdditionalProjectSources to that folder; a second commit corrected
the path. Neither version has a NuGet catalog entry or the repository
signature NuGet adds to every package it serves, and the DLLs inside them
are timestamped minutes before the first commit and about 36 hours after
NuGet deleted the VS_Builder account's packages. When NuGet removed the
publisher, the copies in the assessment repository kept restoring.

The file is in the diff. That is the point: a reviewer sees a binary in a
folder, not source, and a project file change that reads as a build
setting. It is a different failure from T0209, where the registry itself
is compromised, and from T0236, where the payload sits in a path the
review tool never renders — here review succeeds and the artifact cannot
be read. It also needs nothing from T0120: no public name is contested, so
a dependency-confusion defence has nothing to compare against.

Where this idea came from

Public incident / advisory

From the November 2026 NuGet operation, where the take-home assessment committed two .nupkg files into Packages/ and set RestoreAdditionalProjectSources to that folder, so restore read the payload from the clone; neither package has a catalog entry or a repository signature, and NuGet's deletion of the publisher left the copies working. Distinct from T0209 (the registry itself is compromised) and T0236 (the payload is in a path review cannot render) because the file is in the diff and cannot be read.

Mitigations

None linked yet.

Detections

None linked yet.

Observed in incidents (1)

References