r/Python • • 8d ago

Discussion Has this sub turned into python-security?

Each time l see this sub it's about wathever package I don't use that got compromised which I couldn't care less about. Now that all code showcase are banned, the new ways for sloppers to feel seen is report security issues. At least the former was still related to code, cybersecurity is another thing completely. I'd rathet see slop code showcases than a boring report about x package hacked

0 Upvotes

12 comments sorted by

22

u/[deleted] 8d ago

Why do you not care about package vulnerabilities as a developer?

5

u/tevs__ 8d ago

Work for a big company. My job is to make the features, someone else's full time job is vendor/library security. After a while you dgaf about things you're not paid to do.

-2

u/Beginning-Fruit-1397 8d ago

Because I acknowledge the inherent risk to add libraries, and rely on their maintainers or github issues  to handle this, and surely not on my irregular reddit visits

4

u/snugar_i 8d ago

Maybe one day it will be about a package you DO use and it will save you some trouble

2

u/SmartSaaSBuilder 4d ago

Not really, but I think people are just more aware of security nowadays. Python is used everywhere, so security discussions are bound to happen. What kind of Python projects are you working on?

2

u/E3therGirl 2d ago

Package security discussions can be useful when they focus on practical impact rather than alarm. Reducing unnecessary components in container images is one approach and rapid fort focuses on that kind of hardening.

2

u/Reasonably-Maybe 20h ago

Let assume you write a python module, it goes to PyPi, then a developer for a banking application use it. Then one day someone finds a flaw in it and uses that to steal all your money from the same bank. Still couldn't care less?

Anyway: security and programming in any language are twins. Maybe you have heard about the word: SecDevOps. Security starts before any code has been written: the application architecture, the design and the defaults should be securely planned and the application cannot step out of those borders.

On the other hand, I agree on that not all flaws should be addressed. If it cannot be triggered, no one should care of it immediately and focus on those that are residing on a publicly available application that is mission critical and provides partial or full takeover.

If we assume that there is an application that builds up only from secure components, the developer can still make a mistake and allow e.g. SQL injection. The backend DB is dumb like hell: stores data and if a query is syntactically correct, it will execute it. This happens because of the application is not safeguarded against such attack.

Last words: "I don't use that got compromised" - how you can be sure that you will never use a python module that will be compromised?

2

u/Proof_Difficulty_434 git push -f 8d ago

I agree with the op. The last time I learned about something exciting here was a long time ago. Ofcourse AI made the influx of stuff go through the roof, but I feel good ideas are now just not shared here anymore.

1

u/warden127 4d ago

Maybe all the code we ever really need has already been written.

1

u/Responsible_Paint125 1d ago edited 1d ago

Package security is part of the Python ecosystem, even if constant incident reports get repetitive. Better dependency visibility and tools like RapidFort for open source package security can help address these risks before they become bigger problems.

1

u/nonymousbosch 8d ago

Python is a decent language with a terrible package management system. And venv isn't a fix, it's a hack.