This actually has existed since or even before NPOLT, possibly as long back as AC.
In fact, there is an api now for this.
however, a situation like this is extremely unlikely
Why? Because even if it is a bot automated to pick up transaction logs, doing this for every nation using scraping is going to take at the very least 10-20 minutes. I know this because I personally have bots that scrape some info that is not available via APIs and each call takes ~0.1-0.5s/page. It is almost implausible to think that you would withdraw money and someone would find out you withdrew within a fraction of a second and do an op on you. The probability of something like this happening is astronomically low.
Even then, using bots to spy is against game rules so the bot would need to first find the transaction and then ping a role/person in a discord channel and then he'd manually go an do the op. This would take atleast some time which should be enough to buy a city imo.