Rachid Niny, publisher of Al-Massae in Casablanca, the country's largest newspaper, was convicted Thursday of "disinformation" for stories questioning the spy agency and urging it to be put under parliamentary control.
Morocco outlaws "erroneous" reporting about the government.
"We reject this verdict," Khalid Sefiani, Niny's lawyer, told CNN. "Prison for him is a violation of the liberty of journalism and to the future of Morocco. ... We regret that the court dismissed the application of the press code in favor of a penal one."
The Committee to Protect Journalists said the decision was "another example of how the Moroccan judiciary is utilized to curb press freedom."
Niny, who has been fined for his journalism in the past, has written about official corruption and called for repeal of the anti-terrorism law, the committee said.
Al-Massae's story Friday implied the prosecution was ordered by King Mohamed VI or someone close to him. "It's a political solution from the highest powers in the country," the paper wrote.
Newt Gingrich fires back at Mandela backlash
N.J. man wakes up from 10-hour sleep with knife in back