The wide application of artificial intelligence technology in the military field has led to the continuous evolution of war forms. To meet the challenge of intelligent warfare, this paper analyzes the development trend and the role of artificial intelligence technology and discusses the necessity of developing artificial intelligence defense technology in the military. From the view of "hard strike" and “soft strike”, the technical ideas of defense against anti-AI weapon systems and AI security defense architecture are given. The technical principles of pollution strike, reverse strike, backdoor strike, and confrontation strike are analyzed emphatically. Suggestions for strengthening AI defense technology research are given from six aspects: top-level design, application review, data governance, primary analysis, command art, and human-machine hybrid intelligence.