By analyzing and studying the most current algorithms about mining association rule, the rules evaluated by minimum confidence could not ensure the validity of the rules and will generate unrelated rules which will affect the intrusion detection work. This paper proposes CF measure based on the previous work and applies the association rule algorithm based on CF to intrusion detection technology to detect the intrusion behaviors in the network. Finally, experiments show that improved algorithm is more efficient.