This is technically illiterate article that does more to confuse the reader than inform.

There is no such thing as AI in hacking, just plain old bugs and exploits targeted at them. Spread of ransomware, like Wannacry, has NOTHING to do with your passwords. It is a worm (meaning self-propagating) that exploits vulnerability in your system configuration to get in. If you recently patched, you are immune to it.

When passwords attacked (different from  ransomware) it is almost always for the online services. In such cases attackers use dictionary attacks and lists of common passwords. More often than not it is password reuse that gets you compromised. Again, no AI or any other sci-fi needed, just a script (type of a program that automates a task) that keep trying.