You are correct. It's not illegal.
Well if the classified program has been released public then its not illegal of course; but if it is still classified and not released, then I think it is considered a crime.
Disseminating classified information is not a crime?