This paper presents a novel approach to detecting and predicting attack vectors based on genetic programming. The proposed method utilizes a genetic algorithm to evolve a set of rules that predict attack vectors over the system based on caught indicators of compromise. The generated rules are then used to identify poten-tial attack vectors and predict how it started and how it will develop in the future. This research aims to enhance the accuracy and efficiency of existing attack reconstruction methods. The proposed approach is evaluated using real-world attack data.