As I pointed out in 2004[3], one technique around Naive Bayes (and other machine learning systems) was to pit machine learning against machine learning[4].
[2] https://en.wikipedia.org/wiki/POPFile
[3] https://blog.jgc.org/2023/07/how-to-beat-adaptivebayesian-sp...
[4] https://en.wikipedia.org/wiki/Adversarial_machine_learning