Based on immune danger theory, a danger zone generating mechanism, a danger zone radius calculation method and the calculating formula of the danger signals signal_0 by antigen necrosis and the antigen detected danger signals signal_1 were given according to the intrusion detection application.In addition, a detection algorithm in the danger zone was presented according to the signal_0 and signal_1.The experiments showed that the proper selection of the dangerous area radius is helpful for the improvement of the efficiency of intrusion detection system, and make both the false negative rate and false detection rates remained at a lower level.