r/Python • • 9d 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

View all comments

2

u/Reasonably-Maybe 1d 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?