There are regulations we should adopt, but what GP proposed is a bottom-up rather than a top-down approach like regulation. For instance, we could, as software professionals, take an oath not to write malware or spyware ("malware with a budget"), and at the same time, take an oath to invest time in the security of a piece of software.
If a civil engineer is approached to design a bridge in an unsafe manner, it is the expectation of society that they will refuse. If that bridge collapses, they're expected to take responsibility and to participate in an investigation to ensure this never happens again.
We should be thinking along these lines. I used to think I was just a hacker and that software engineer was just a job title. After reading this series of blog posts [1], my eyes were opened. Once I accepted I was some kind of engineer, I asked myself what that meant. What I realized was, an engineer has a responsibility to society, because they build the context society inhabits.
That's what separates them from a hacker or tinkerer, exploring in their garage for the joy of it. In your garage you can be an artist, accountable to no one. When you build the systems people rely on every day - you aren't a hacker anymore.
[1] https://www.hillelwayne.com/post/are-we-really-engineers/