A federal judge in Maryland on Friday sentenced John R. Bolton, the former national security adviser, to six months in prison for mishandling classified information he used in a book that portrayed President Trump as a scheming would-be autocrat.
The indictment against Mr. Bolton accused him of using personal email and a messaging app to share more than 1,000 pages of notes, which included national defense information, with two family members who did not have security clearances.
In July, Mr. Bolton, who served as ambassador to the United Nations under President George W. Bush, admitted to a single charge of illegal retention of classified information over notes he compiled for “The Room Where It Happened: A White House Memoir,” which was published in 2020. Mr. Bolton was reported to have received a $2 million advance for the tell-all.
Mr. Bolton was never accused of holding on to classified material, but of keeping detailed notes and emailing sensitive information, unlike Mr. Trump, who was indicted on charges of retaining and refusing to return classified documents. The first Trump administration fought unsuccessfully to prevent the publication of Mr. Bolton’s book.
Under the terms of the plea deal, Mr. Bolton must also pay a fine of $2.25 million and will forfeit his federal pension. Mr. Bolton faced a maximum sentence of five years under federal guideline calculations that the judge could still alter.
Several prominent news outlets and Republican leaders urged the court to issue a lenient sentence, given Mr. Bolton’s long history of public service, his lack of prior criminal record and his advanced age.
The sentence was delivered after prosecutors made a remarkable admission: They could not guarantee Mr. Bolton, if imprisoned, would be provided stepped-up security to protect him from an assassination attempt by Iran — and that department leaders could overrule their recommendations.

