Throughout the course of time, crime and citizen insecurity continues to be one of the most harmful problems with great impacts on society, for this reason the present research work is based on the development of a security system oriented to the management and diversion of criminal attacks in Peruvian society, this being possible thanks to the help of one of the best technologies today, which is facial recognition. Likewise, together with this technology, the eXtreme Programming methodology was implemented, which, thanks to its development phases, provided different advantages for the development of this software. Consequently, it was possible to obtain positive results such as processes, innovations and viable tests for the implementation of this software in different entities of the society. The survey carried out on 17 businesses in 4 districts of northern Lima showed a 93% satisfaction rate. Finally, this research work fulfilled the needs reflected in the requirements set out at the beginning of the project, developing a viable security system. Keywords—Citizen Security, Criminal Record, Facial Recognition, Image Recognition, XP Methodology