Cory Doctorow wrote a story ~20 years ago about how the first sentient machines would be spam bots because their job is to pass as human, and anti-spam systems provide competitive evolutionary pressure.
He may not be too far off.
This one?
https://craphound.com/overclocked/Cory_Doctorow_-_Overclocke...
This one?
https://craphound.com/overclocked/Cory_Doctorow_-_Overclocke...