There’re many occasions where information is classified or forbidden to share freely.
In those situations, answer is simple: tell the truth. “I’m sorry, but that is actually classified information that I am not allowed to discuss.” Or “Listen, I would like to share that with you, but due to the legal situation, I cannot disclose it right now.”