I read it about a decade or two ago, in English (I think it was not a translation, but the author's native language was English, but am not 100% sure). I also think author was male, and he might have been well-known (already then, or not then, but now?). It was probably not the newest book even then. If I had to guess, I'd guess it was probably written perhaps somewhere around the 1980s, but that is just a guess. I don't recall the book itself (it might even have been e-book or something. or not).
The story was set in the future, when the computers are far more advanced. There is one very small episode in which some group (or anonymous hackers?) uses AI and the stolen identity of some (teenage?) girl who has rich parents in order to send a spam e-mail (I don't think its called an e-mail in the story, but it is some kind of messaging system using something like the Internet), and the message thus manages to bypass anti-spam AIs which are usually quite successful at filtering spam, and is shown to many people (I think the term used was "shotgun spam" or something similar to it).
I think the girl was at some private party at some beach or somewhere, and the group managed to plant a boy in that group of otherwise rich-people-only kids and that is how he managed to steal her e-mail identity which made the spam run successful (I think the explanation was that AIs assign lower spam scores to messages coming from influential people). I don't think the girl was important in the story as a whole (i.e. not one of the main actors), but used more as an explanation for that spam (or as a minor character, or related to some of the more important characters).
More information guessing (it is quite possible I've conflated several different stories below: to be clear I'm looking for a story with that specific "AI spam" substory; everything else is just to help people identify it):
People might have implants in their head, and one of them might have been the main protagonist. Trying to hack into some mainframe? I think the author, when guessing what should be the specs of those future imagined supercomputers be, underrated some and overrated some other specs compared to today's reality (i.e. they might have been talking about those supercomputers having hundreds of megabytes of RAM and terahertz CPU clocks, or something in that vein).
My vague recollections failed to result in a successful search. Also, trying AIs failed to produce anything that I would remember connected to the story (oh the irony). I though it might be Neal Stephenson's Snow Crash or some of his other stories, or William Gibson's Neuromancer or something in that style, but I'm unable to confirm.
Does some human happen to remember that substory?