SITF technique T-R011: Namespace/Dependency Confusion
Component: RegistryStage: Initial AccessID: T-R011
Attacker publishes malicious packages with same names as private packages but higher version numbers, tricking package managers into fetching the public version instead of the private package.
SITF technique T-R011 (Namespace/Dependency Confusion) is a Initial Access technique in the SDLC Infrastructure Threat Framework (SITF). It targets the Registry component (Container and artifact registries (NPM, Docker, PyPI)).
Risks that enable this technique
- Lack of internal repository enforcement
- Package managers prioritize public repositories
- No namespace isolation between internal and public packages
- Automatic dependency resolution without verification
- Higher version numbers in public repositories
- Direct downloads from public registries
Protective controls
- Local registry proxy with filtering
OWASP SPVS: V2.6 3rd Party Library Audit - Internal repository enforcement and prioritization
OWASP SPVS: V2.6 3rd Party Library Audit - Namespace isolation and scoping
OWASP SPVS: V2.6 3rd Party Library Audit - Package version pinning
OWASP SPVS: V2.6 3rd Party Library Audit - Automated maintainer reputation and hygiene checks
OWASP SPVS: V2.6 3rd Party Library Audit - Private package registry configuration
OWASP SPVS: V2.6 3rd Party Library Audit - Dependency resolution policies
OWASP SPVS: V2.6 3rd Party Library Audit - Package source verification
OWASP SPVS: V2.6 3rd Party Library Audit
Detective controls
None mapped yet.
Framework mappings
- MITRE ATT&CK: T1195.001
Explore
- Open T-R011 in the interactive technique library
- Map an attack using T-R011 in the SITF flow builder
- Previous Registry technique: T-R010 Typosquatting
- Next Registry technique: T-R012 Package Lifecycle Script Abuse
How to reference
Cite as SITF technique T-R011 (Namespace/Dependency Confusion), SDLC Infrastructure Threat Framework (SITF), https://wiz-sec-public.github.io/SITF/techniques/T-R011.html.