Hanlon's razor reads more to me like a malicious thought terminating cliche than an actual law via averages that still requires testing. Anyone operating with Hanlon's razor can have their perception of anything easily hacked by simply pretending to be stupid, thus converting an act of malicious intent presumably brought about through some motive into an opaque act that requires no further scrutiny.
Agreed, although in common parlance the cliche has has developed more power than it was intended to possess, purely through habitual use. My main point is to point out that it does have a real chilling-like effect within public discourse. I see it most often in commentary about unfolding events. Inquiry into current events creates an impetus for further explanation from information dealers (governments, reporters, etc.) and when that inquiry happens out in the open, it benefits us in the moment and in the historical record. You only get so much attention from a reader and when the content is akin to eating your vegetables, readers look for excuses to clear their plate.
Embrace the nuance of any given situation. Abandon the idea that there even exists a valid explanation in blaming cause on stupidity. The cliche doesn't convey information, its merely a characterization which gives permission to readers to stop further inquiry and our acceptance of this has been trained through basic mimetics. Find comfort in saying "I'm not sure what the attributable cause is" rather than deferring to a pop-sci over generalization of human nature. After that, its simply an effort of fact finding.
I would say the incompetence side also includes decades of 'get er done' attitude towards software design. We've been chasing fashionable frameworks and abstractions that may support velocity for developers, but not deep contemplation of the ramifications of design/architecture. The reward/risk balance was never in favor of slowing down to design secure software, it is in favor of meeting the complex and changing requirements of business as quickly as possible. Tech debt just got more expensive because 'poke it until it breaks' was always an option, but now we can ask an LLM and it can work tirelessly in the same problem space. Time for everyone to grind fundamental CS concepts, and aim to reduce complexity. On the bright side an LLM can help with that as well, just remember to append "make no mistakes" to the end of every prompt!