With the fast development of information technology, the nationals' information security and keeping secrets qualities have become one of the important hidden dangers for the state security and the state every walk of life interests. On the basis of the survey of current students' keeping information secrets qualities and their characters, the heuristic teaching method based on the facts is designed. In the method the teaching cases are chosen from those typical cases from routine work or life which they often have huge danger and have profound education importance. Since the cases are often the facts, they have inherent persuasiveness and easily arouse students' sympathy and thought. And the heuristic teaching method can further guide students to thoroughly analyze harm and cause of the divulging -secrets cases. So the students' enthusiasms for studying special knowledge are evoked. From teaching effect survey, the method is vivid, persuasive, interesting. It can excellently improve the security consciousness and capability of students, and the expectant teaching purpose is achieved.