What judge or jury disagrees with me and agrees with you?
The CIA is not a judge or jury, by the way.
What section of the US Code did the author violate?
You can't. The author has not been arrested for any crime.
He is protected by very specific laws that he followed very carefully.
As the KGB says, "This criminal is so cunning that he didn't break the law."
One intriguing possibility, noted by several lawyers familiar with the case, is that Novak may have invoked his Fifth Amendment right against self-incrimination, and that Fitzgerald has not yet chosen to give him immunity from prosecution to compel his testimony. (WP cited article)
The CIA may not be a judge or jury, but they have piles of lawyers who check books to make sure that nothing classified is leaked.