It only happened in the last 10 years apparently.
Why do sshd and xz-utils share an address space?
When was the sshd -> systemd dependency introduced?
When was the systemd -> xz-utils dependency introduced?
---
To me this ARCHITECTURE issue is actually bigger than the social engineering, the details of the shell script, and the details of the payload.
I believe that for most of the life of xz-utils, it was a "harmless" command line tool.
In the last 10 years, a dependency was silently introduced on some distros, like Debian and Fedora.
Now maintainer Lasse Collin becomes a target of Jia Tan.
If the dependency didn't exist, then I don't think anyone would be bothering Collin.
---
I asked this same question here, and got some good answers:
https://lobste.rs/s/uihyvs/backdoor_upstream_xz_liblzma_lead...
Probably around 2015?
So it took ~9 years for attackers to find this avenue, develop an exploit, and create accounts for social engieering?
If so, we should be proactively removing and locking down other dependencies, because it will likely be an effective and simple mitigation.