I don't think there's a screenwriter in the world that knows how to do hacking and security stuff realistically.
It's just as with any other time-consuming thinking activities such as invention/tech research; crime/plot investigation; medical diagnosis - they're much more successful when the screenwriters/directors misrepresent reality of 'how it happens', so they do so intentionally.
That's how that media works - if you want realistic portrayal of hacking and security, then it (just as many, many other topics) is quite suitable for a written narrative, but not really for a two-hour movie/30min tvseries format.