Alex Birsan

medium.com/@alex.birsan · Personal blog · on HN since 2017

Alex Birsan is a security researcher who writes about bug bounty findings, including the dependency confusion attack on Apple, Microsoft, and others.

What HN saysCommenters repeatedly cite his dependency confusion article as the classic account of supply chain attacks through package names, noting it made global news.
26HN people shared it
18linked it in comments
8stories submitted
1.2Kstory points
1 year agolast shared
2017people per year2026

Most-shared posts

  1. 1
  2. 2
    The Bug That Exposed Your PayPal Password
    4 people · 13 points · first shared 2020 · discussion on HN
  3. 3
  4. 4
  5. 5
    Homepage
    1 people · first shared 2020

What HN people wrote when they linked it

codethief · 2023-08-21
> I don't know how Google's or AOSP's build systems are set up, but I'd suspect that not many entities are able to mount a successful supply chain attack on internal networks. This classic article might be worth your while: https://medium.com/@alex.birsan/dependency-confusion-4a5d60fec610
mooreds · 2022-03-18
Plenty of examples of NPM packages being taken over: * https://www.whitesourcesoftware.com/resources/blog/npm-package-javascr… * https://medium.com/@alex.birsan/dependency-confusion-4a5d60fec610 * https://blog.sonatype.com/npm-project-used-by-millions-hijacked-in-sup… * https://checkmarx.com/blog/attackers-write-bugs-as-well/ When was the last time you audited all of the libraries a SPA depended on? If it was during the last build, congrats, you're doing great. Lots of times it isn't automated and can be neglected, though.
JD557 · 2021-03-22
I might be a bit biased, since I've been writing Scala professionally for years. While most of the article rings true, I wanted to share some counter-arguments: 1) A lot of the problems mentioned are only really noticeable if you use Spark, which really lags behind in Scala versions compared to the rest of the ecosystem. As someone who doesn't use Spark, I don't really feel much of the "Scala minor versions" pain. 2) While not great, cross-compilation/publishing is not that bad (there are plugins like `sbt-release` and `sbt-crossproject` that pretty much take care of it). 3) I mostly disagree with the "Difficult to publish to Maven" point. I'm not saying that it's easy, but I enjoy the fact that it's not as trivial like other languages. I would argue that this whole process makes [1] almost impossible, which is a plus for me. 1: https://medium.com/@alex.birsan/dependency-confusion-4a5d60fec610
imran-iq · 2023-05-23
> For all the stories about malicious packages on PyPI and whatnot: I can't recall ever seeing a story about "misspelled packages caused us problems in production". https://medium.com/@alex.birsan/dependency-confusion-4a5d60fec610 Discussed at the time: https://news.ycombinator.com/item?id=26087064
knallfrosch · 2023-04-15
What's even worse is that this made global news two years (!) ago already. Dependency Confusion: How I Hacked Into Apple, Microsoft and Dozens of Other Companies The Story of a Novel Supply Chain Attack https://medium.com/@alex.birsan/dependency-confusion-4a5d60fec610 A company the size of Google should have been prepared.
athrowaway12 · 2022-12-02
> enforcement of security vulnerability should be by law I think whether there "should" be a law making you liable could depend on the details of the exploit. If you get exploited via rowhammer, I don't think anyone would blame you. It would be unreasonable if every small business running a website was legally required to defend against magnetic interference. However, if you're Apple and say, you get fully compromised because someone clicked a button to register version `9000.0.0` of your internal package on the public npm/pypi registry (https://medium.com/@alex.birsan/dependency-confusion-4a5d60fec610), maybe I agree there's an argument for some accountability there.
btown · 2022-02-10
Link for those who went straight to comments: https://medium.com/@alex.birsan/dependency-confusion-4a5d60fec610
ed_balls · 2021-07-05
How do you make sure your dependencies are not tampered with? https://medium.com/@alex.birsan/dependency-confusion-4a5d60fec610
Techbrunch · 2021-04-29
Similar issues: - Hacking 3,000,000 apps at once through CocoaPods - https://justi.cz/security/2021/04/20/cocoapods-rce.html - Remote code execution in Homebrew by compromising the official Cask repository - https://blog.ryotak.me /post/homebrew-security-incident-en/ - Dependency Confusion: How I Hacked Into Apple, Microsoft and Dozens of Other Companies - https://medium.com/@alex.birsan/dependency-confusion-4a5d60fec610
Isinlor · 2021-02-11
My experience too. I was shocked how terrible Python ecosystem is. For example stuff like dependency confusion i.e. public package with potentially malicious code overwriting private package are impossible in Composer by design. https://twitter.com/seldaek/status/1359417655762055171 But pip, npm and RubyGems failed to protect against dependency confusion. So Apple, Microsoft and dozens of other companies pulled malicious code. https://medium.com/@alex.birsan/dependency-confusion-4a5d60fec610 We are very lucky to have awesome Jordi Boggiano in the PHP ecosystem. He is doing gods work on Composer and Packgist.
database_lost · 2021-02-10
and the link to the original author's post: https://medium.com/@alex.birsan/dependency-confusion-4a5d60fec610
SideburnsOfDoom · 2021-02-10
The upstream article was posted yesterday, here "Dependency Confusion: RCE via internal package name squatting " https://news.ycombinator.com/item?id=26081149 "Dependency Confusion: How I Hacked Into Apple, Microsoft and Dozens of Other Companies, The Story of a Novel Supply Chain Attack, Alex Birsan" https://medium.com/@alex.birsan/dependency-confusion-4a5d60fec610
gislifb · 2017-10-31
A link to the researchers write-up would be more fitting I believe. https://medium.com/@alex.birsan/messing-with-the-google-buganizer-syst…
tetha · 2025-07-23
Since the Github issue is turning into an unusable mess and I am currently experiencing emotions I don't have to unleash here... There is an interesting comment by one of the older maintainers of stylus, Panya [1]. Taking this at face value, they claim to have published some malicious packages for research purposes about dependency confusion [2] (their link). This also fits with the comments of a few people claiming to be security researchers, [3] and [4], which at least say the same and point to three malicious packages published by Panya. Based off of that, my own personal interpretation and simplest thesis is that Panya released some packages with questionable code. This triggered some security mechanism in npm and that system yanked packages they were a contributor of [5], because the account looked compromised or otherwise malicious. And then pipelines went red. If this was an actual malicious act, or curiosity about security and security responses getting a fairly nuclear security response, I don't know. You need to apply your own security reasoning to this -- if you even want to trust this comment :) I just wanted to collect the interesting comments in a place, because that ticket is getting impossible to navigate. 1: https://github.com/stylus/stylus/issues/2938#issuecomment-3106721706 2: https://medium.com/@alex.birsan/dependency-confusion-4a5d60fec610 3: https://github.com/stylus/stylus/issues/2938#issuecomment-3106424718 4:…
shanipribadi · 2023-01-01
Alex Birsan actually published his findings for this vulnerability in Feb 2021 [1], and collected a bunch of bug bounties from various companies (Apple, Microsoft, Paypal, Yelp, Tesla, Shopify, Uber, Netflix). He was able to steal packages names for Python (PyPi), JS (npm), Ruby (Gem), where these various companies have their own private package repositories with private modules where they don't control the package names in the default repositories. The main requirements for this attack are 1. Having private repositories, where the package names in the default repositories is not owned by the owner of the package. 2. Package manager allows downloading packages from multiple repositories (the default and private repositories) without being able to pin specific package to only be downloaded from the private repositories. What's notable on his findings is the omission of Facebook and Google, which I believe due to their usage of Buck/Bazel and monorepos for their internal codes. Another thing to note was that Alex mainly target companies internal private packages, while this particular instance affects an open source project which was providing package on their own repository and make use of a package (which I was not able to find any bug bounty program for). There's another post by Kjäll et.al [2] that explains how this particular vulnerabilities affects other package managers (PHP, Java, .Net, ObjC/Swift, Docker), in what conditions it's vulnerable, and how to mitigate…
EdOverflow · 2022-02-10
I am a security researcher referenced in the winning web-hacking technique on that list ("Dependency Confusion" by Alex Birsan [1]) and was ranked 7th in Portswigger's 2019 issue [2,3]. My motto has always been "Learn to make it; then break it." In other words, I invest a lot of time familiarising myself with technologies and specifications before examining how their implementation might lead to security flaws. This process usually requires reading a lot of technical documentation and source code, and becoming acquainted with how organisations implement said technologies. Once I feel comfortable with my understanding of the subject material, I start to think about how certain aspects of the technology could lead to security flaws or interesting areas of research. At times this may require out-of-the-box thinking or can even be the result of pure luck. The "bug bounty" aspect of this all tends to come into play once I want to find case studies for my research. [1]: https://medium.com/@alex.birsan/dependency-confusion-4a5d60fec610 [2]: https://portswigger.net/research/top-10-web-hacking-techniques-of-2019 [3]: https://edoverflow.com/2019/ci-knew-there-would-be-bugs-here/
blazespin · 2020-02-24
Hmm, they don't look that bad - https://hackerone.com/paypal Here's an example of something that got paid out by paypal - https://hackerone.com/reports/739737 (15K) Good writeup - https://medium.com/@alex.birsan/the-bug-that-exposed-your-paypal-passw… Interesting history with paypal - https://hackerone.com/alexbirsan Here's how duplicate reports are dealt with - https://docs.hackerone.com/programs/duplicate-reports.html I am curious if paypal provided the OP with original reports. They don't say. I wonder how much the OP is not saying here, versus how much they understand the platform they are working on. This statement makes me very curious: "Other criticisms have pointed out that Security Analysts can first delay the reported vulnerability, report it themselves on a different bug bounty platform, collect the bounty (without disclosing it of course), and then closing the reported issue as Not Applicable, or perhaps Duplicate." How can you do that if you're providing the original report? Also, the guy is just wrong. You GAIN rep points for duplicates, unless you did something dumb and really amateur like not searching first for already publicly disclosed issues. https://docs.hackerone.com/hackers/reputation.html#effects-of-report-s…

Keyboard shortcuts

/Search
j kNext / previous blog
EnterOpen selected blog
vVisit the blog site
fFollow / unfollow
lSwitch grid / list view
dSwitch dark mode
g hHome
g pTop posts
g tTopics
g fFollowing
g lLiked
g yHistory
g qFAQ
EscBack / close