This paper describes the progress and work carried out during the execution of the VICTORY project (Vision and Crowdsensing Technology for an Optimal Response in Security). It describes both its motivation and the progress made in the field of managing violent attacks in buildings. It is assumed that these buildings have a WiFi infrastructure that allows indoor localisation through mobile applications and a closed-circuit television system that allows real-time images to be captured. The advances of this project have allowed 1) the design of a crowdsensing application that allows indoor localisation in a reliable way and with a low battery consumption as well as the detection of stampedes and falls; 2) the development of a multi-agent model that simulates human behaviour in the face of a violent attack and 3) new approaches to improve the state of the art in computer vision for the detection of weapons.