In regards to classified information it’s come up in some Tom Clancy style novels and contemporary military histories. See https://en.m.wikipedia.org/wiki/No_Easy_Day
Although in that case the author had a contractual requirement to clear the book and didn't. In that sense it's similar to defying an NDA or publishing your company's trade secrets.