this post was submitted on 09 Feb 2024
844 points (97.5% liked)

Programmer Humor

19589 readers
458 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] stembolts@programming.dev 11 points 9 months ago (1 children)

It's not hard to do. What would be hard would be getting it through code review. Like the example provided.. how would that ever get through code review for a merge? Must not be a well-protected code base?

[–] maynarkh@feddit.nl 11 points 9 months ago (1 children)

Publish your own package to PyPI that on import does some evil stuff. Name the package something similar to a known, but not too well known package. Supply chain attacks are even less defended against than other stuff.

All this relies on companies being shit though, but well, we all know that's the case in a lot of places.

[–] MotoAsh@lemmy.world 7 points 9 months ago

Yea... pipeline and dependency auditing isn't trivial if you want to catch the subtle stuff. Even most of the devs that know how to do it are going to respond with, "above my pay grade..." unless they're somehow actually getting paid enough to be arsed to do it correctly...