I don't see how it's any different from a politician writing his memoirs. I can't see how it could really influence his work, other than the time taken to write it, and it was probably ghostwritten anyway. Once again, I must fall back on the position that unless something affects someone else, it should not be ``illegal'', and the thing here that would affect someone else would be Moose not doing his job, which would seem to be a firable offense anyway, regardless of the circumstances that led him to it.
I don't think that convicted criminals are allowed to directly profit from their crimes in any way. At the same time, Kevin Mitnick just published a book. I don't know how much of it talks about his crimes.
Notoriety for Profit Laws