repositories

daemon-sec-cheatsheet

The cheatsheet vault for operators: AD, enumeration, exploitation, priv-esc, web, DFIR

clonegit clone https://git.daemon-sec.xyz/daemon-sec-cheatsheet.git
index.mdMarkdown49 lines2.6 KiBsource raw download

title: "Dependency Confusion" topic: "Dependency Confusion" topicSlug: "dependency-confusion" sourcePath: "Dependency Confusion/README.md" sourceUrl: "https://github.com/swisskyrepo/PayloadsAllTheThings/blob/3ac27901c711/Dependency%20Confusion/README.md" sha: "3ac27901c711" isReadme: true#

Dependency Confusion#

A dependency confusion attack or supply chain substitution attack occurs when a software installer script is tricked into pulling a malicious code file from a public repository instead of the intended file of the same name from an internal repository.

Summary#

Tools#

Methodology#

Look for npm, pip, gem packages, the methodology is the same : you register a public package with the same name of private one used by the company and then you wait for it to be used.

NPM Example#

References#