{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,22]],"date-time":"2026-09-22T16:18:16Z","timestamp":1790093896049,"version":"4.0.1"},"reference-count":23,"publisher":"Springer Science and Business Media LLC","issue":"1","license":[{"start":{"date-parts":[[2025,3,1]],"date-time":"2025-03-01T00:00:00Z","timestamp":1740787200000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"},{"start":{"date-parts":[[2025,3,1]],"date-time":"2025-03-01T00:00:00Z","timestamp":1740787200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":["Cybersecurity"],"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>With the increasing complexity of network system architectures and the advancements in artificial intelligence, automated penetration testing holds crucial significance in enhancing network security. Attack path optimization is the key to automated penetration testing. However, existing methods mostly focus on maximizing the attack gain, overlooking the impact of the attack path length. To address this issue, we propose a bi-objective attack path optimization problem based on attack graphs, aiming to maximize attack gains while minimizing the attack path length. We model the problem as a Markov decision process and theoretically analyze the selection of the discount factor to ensure the consistency between the goal of the MDP and the optimization objective. To address the issues of excessive invalid actions and poor training effect of current deep reinforcement learning-based attack path optimization methods, we propose a Prior Knowledge-based Proximal Policy Optimization (PKPPO) algorithm. The algorithm first designs action filtering rules based on prior knowledge extracted from the attack graph. Based on these rules, action mask vectors are generated before each action sampling phase to modify the distribution of the output of the policy network. Through this approach, the action space is effectively pruned, thereby enhancing the performance and efficiency of the algorithm in large-scale, complex network scenarios. The experimental results show that the PKPPO algorithm can converge within 100 training episodes in all test scenarios. The convergence speed and stability of PKPPO are significantly better than the baselines, and it remains effective in large-scale network environments with greater adaptability.<\/jats:p>","DOI":"10.1186\/s42400-024-00288-8","type":"journal-article","created":{"date-parts":[[2025,2,28]],"date-time":"2025-02-28T21:01:42Z","timestamp":1740776502000},"update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":6,"title":["Efficient network attack path optimization method based on prior knowledge-based PPO algorithm"],"prefix":"10.1186","volume":"8","author":[{"ORCID":"https:\/\/orcid.org\/0009-0009-9072-1269","authenticated-orcid":false,"given":"Qiuxiang","family":"Li","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Jianping","family":"Wu","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"297","published-online":{"date-parts":[[2025,3,1]]},"reference":[{"key":"288_CR1","unstructured":"Berner C, Brockman G, Chan B, Cheung V, Debiak P, Dennison C, Farhi D, Fischer Q, Hashme S, Hesse C, J\u00f3zefowicz R, Gray S, Olsson C, Pachocki J, Petrov M, de Oliveira Pinto HP, Raiman J, Salimans T, Schlatter J, Schneider J, Sidor S, Sutskever I, Tang J, Wolski F, Zhang S (2019) Dota 2 with large scale deep reinforcement learning. CoRR http:\/\/arxiv.org\/abs\/1912.06680"},{"issue":"5","key":"288_CR2","doi-asserted-by":"publisher","first-page":"25","DOI":"10.1109\/MIM.2023.10208253","volume":"26","author":"T Cody","year":"2023","unstructured":"Cody T, Meno E, Beling PA, Freeman LJ (2023) Whole campaign emulation with reinforcement learning for cyber test. IEEE Instrum Meas Mag 26(5):25\u201330","journal-title":"IEEE Instrum Meas Mag"},{"key":"288_CR3","first-page":"1","volume":"2022","author":"T Cody","year":"2022","unstructured":"Cody T, Beling PA, Freeman LJ (2022) Towards continuous cyber testing with reinforcement learning for whole campaign emulation. IEEE AUTOTESTCON 2022:1\u20135","journal-title":"IEEE AUTOTESTCON"},{"issue":"06","key":"288_CR4","doi-asserted-by":"publisher","first-page":"166","DOI":"10.11959\/j.issn.2096-109x.2023091","volume":"9","author":"C Fan","year":"2023","unstructured":"Fan C, Hu G, Ding T, Zang Z (2023) Automated security analysis and penetration testing model based on attack graph and deep Q-learning network. Chin J Netw Inf Secur 9(06):166\u2013175. https:\/\/doi.org\/10.11959\/j.issn.2096-109x.2023091","journal-title":"Chin J Netw Inf Secur"},{"issue":"5","key":"288_CR5","doi-asserted-by":"publisher","first-page":"65","DOI":"10.19363\/J.cnki.cn10-1380\/tn.2022.09.06","volume":"7","author":"W Gao","year":"2022","unstructured":"Gao W, Zhou T, Zhao Z, Zhu J (2022) Network attack path planning method based on deep reinforcement learning. J Cyber Secur 7(5):65\u201378. https:\/\/doi.org\/10.19363\/J.cnki.cn10-1380\/tn.2022.09.06","journal-title":"J Cyber Secur"},{"key":"288_CR6","doi-asserted-by":"crossref","unstructured":"Happe A, Cito J (2023) Getting pwn\u2019d by AI: penetration testing with large language models. In: ESEC\/SIGSOFT FSE 2082\u20132086","DOI":"10.1145\/3611643.3613083"},{"key":"288_CR7","doi-asserted-by":"crossref","unstructured":"Hu Z, Beuran R, Tan Y (2020) Automated penetration testing using deep reinforcement learning. In: EuroS&P workshops, pp 2\u201310","DOI":"10.1109\/EuroSPW51379.2020.00010"},{"key":"288_CR8","doi-asserted-by":"crossref","unstructured":"Huang S, Onta\u00f1\u00f3n S (2022) A closer look at invalid action masking in policy gradient algorithms. In: FLAIRS","DOI":"10.32473\/flairs.v35i.130584"},{"key":"288_CR9","doi-asserted-by":"crossref","unstructured":"Li L, Ma H, Han S, Fu J (2023) Synthesis of proactive sensor placement in probabilistic attack graphs. In: ACC, pp 3415\u20133421","DOI":"10.23919\/ACC55779.2023.10156520"},{"issue":"1","key":"288_CR10","doi-asserted-by":"publisher","first-page":"50","DOI":"10.1109\/JIOT.2023.3285224","volume":"11","author":"X Li","year":"2024","unstructured":"Li X, Hu X, Jiang T (2024) Dual-reinforcement-learning-based attack path prediction for 5G industrial cyber-physical systems. IEEE Internet Things J. 11(1):50\u201358","journal-title":"IEEE Internet Things J."},{"issue":"7","key":"288_CR11","doi-asserted-by":"publisher","first-page":"9109","DOI":"10.1109\/TII.2024.3379633","volume":"20","author":"Q Li","year":"2024","unstructured":"Li Q, Wang R, Zhang M, Shi F, Shen Yi, Miao Hu, Guo B, Chengxi Xu (2024) An intelligent penetration testing method using human feedback. IEEE Trans Ind Inf 20(7):9109\u20139119","journal-title":"IEEE Trans Ind Inf"},{"key":"288_CR12","doi-asserted-by":"crossref","unstructured":"Li Y, Dai H, Yan J (2024) Knowledge-informed auto-penetration testing based on reinforcement learning with reward machine. CoRR http:\/\/arxiv.org\/abs\/2405.15908","DOI":"10.1109\/IJCNN60899.2024.10650368"},{"key":"288_CR13","unstructured":"Schulman J, Wolski F, Dhariwal P, Radford A, Klimov O (2017) Proximal policy optimization algorithms. CoRR http:\/\/arxiv.org\/abs\/1707.06347"},{"key":"288_CR14","unstructured":"Rishu R, Kakkar A, Wang C, Rahman A, Redino C, Nandakumar D, Cody T, Clark R, Radke D, Bowen E (2023) Enhancing exfiltration path analysis using reinforcement learning. In: CAMLIS, pp 77\u201390"},{"key":"288_CR15","doi-asserted-by":"crossref","unstructured":"Schwartz J, Kurniawati H, El-Mahassni E (2020) POMDP + information-decay: incorporating defender\u2019s behaviour in autonomous penetration testing. In: ICAPS, pp 235\u2013243","DOI":"10.1609\/icaps.v30i1.6666"},{"key":"288_CR16","doi-asserted-by":"publisher","unstructured":"Simon R, Mees W (2024) SoK: a comparison of autonomous penetration testing agents. In: ARES\u201924: proceedings of the 19th international conference on availability, reliability and security, vol 41, pp 1\u201310. https:\/\/doi.org\/10.1145\/3664476.366448","DOI":"10.1145\/3664476.366448"},{"issue":"2","key":"288_CR17","doi-asserted-by":"publisher","first-page":"1572","DOI":"10.1109\/TNSM.2023.3266779","volume":"20","author":"F Sun","year":"2023","unstructured":"Sun F, Zhang Z, Chang X, Zhu K (2023) Toward heterogeneous environment: Lyapunov-orientated ImpHetero reinforcement learning for task offloading. IEEE Trans Netw Serv Manag 20(2):1572\u20131586","journal-title":"IEEE Trans Netw Serv Manag"},{"issue":"3","key":"288_CR18","doi-asserted-by":"publisher","first-page":"360","DOI":"10.11896\/jsjkx.221200104","volume":"51","author":"Y Wang","year":"2024","unstructured":"Wang Y, Wang T, Shen H, Bai G (2024a) Optimal penetration path generation method based on maximum entropy reinforcement learning. Comput Sci 51(3):360\u2013367. https:\/\/doi.org\/10.11896\/jsjkx.221200104","journal-title":"Comput Sci"},{"key":"288_CR19","doi-asserted-by":"crossref","unstructured":"Wang C, Kakkar A, Redino C, Rahman A, Ajinsyam S, Clark R, Radke D, Cody T, Huang L, Bowen E (2024) Discovering command and control channels using reinforcement learning. CoRR http:\/\/arxiv.org\/abs\/2401.07154","DOI":"10.1109\/SoutheastCon51012.2023.10115173"},{"key":"288_CR20","doi-asserted-by":"crossref","unstructured":"Ye D, Liu Z, Sun M, Shi B, Zhao P, Wu H, Yu H, Yang S, Wu X, Guo Q, Chen Q, Yin Y, Zhang H, Shi T, Wang L, Fu Q, Yang W, Huang L (2020) Mastering complex control in MOBA games with deep reinforcement learning. In: AAAI, pp 6672\u20136679","DOI":"10.1609\/aaai.v34i04.6144"},{"issue":"16","key":"288_CR21","doi-asserted-by":"publisher","first-page":"9467","DOI":"10.3390\/app13169467","volume":"13","author":"J Yi","year":"2023","unstructured":"Yi J, Liu X (2023) Deep reinforcement learning for intelligent penetration testing path design. Appl Sci 13(16):9467. https:\/\/doi.org\/10.3390\/app13169467","journal-title":"Appl Sci"},{"key":"288_CR22","doi-asserted-by":"crossref","unstructured":"Yousefi M, Mtetwa N, Zhang Y, Tianfield H (2018) A reinforcement learning approach for attack graph analysis. In: TrustCom\/BigDataSE, pp 212\u2013217","DOI":"10.1109\/TrustCom\/BigDataSE.2018.00041"},{"issue":"09","key":"288_CR23","doi-asserted-by":"publisher","first-page":"47","DOI":"10.3969\/j.issn.1671-1122.2023.09.005","volume":"23","author":"G Zhang","year":"2023","unstructured":"Zhang G, Zhang S, Zhang J (2023) Discovery and optimization method of attack paths based on PPO algorithm. Netinfo Secur 23(09):47\u201357. https:\/\/doi.org\/10.3969\/j.issn.1671-1122.2023.09.005","journal-title":"Netinfo Secur"}],"container-title":["Cybersecurity"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1186\/s42400-024-00288-8.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/article\/10.1186\/s42400-024-00288-8\/fulltext.html","content-type":"text\/html","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1186\/s42400-024-00288-8.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,2,28]],"date-time":"2025-02-28T21:01:56Z","timestamp":1740776516000},"score":1,"resource":{"primary":{"URL":"https:\/\/cybersecurity.springeropen.com\/articles\/10.1186\/s42400-024-00288-8"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,3,1]]},"references-count":23,"journal-issue":{"issue":"1","published-online":{"date-parts":[[2025,12]]}},"alternative-id":["288"],"URL":"https:\/\/doi.org\/10.1186\/s42400-024-00288-8","relation":{},"ISSN":["2523-3246"],"issn-type":[{"value":"2523-3246","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,3,1]]},"assertion":[{"value":"26 June 2024","order":1,"name":"received","label":"Received","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"3 September 2024","order":2,"name":"accepted","label":"Accepted","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"1 March 2025","order":3,"name":"first_online","label":"First Online","group":{"name":"ArticleHistory","label":"Article History"}},{"order":1,"name":"Ethics","group":{"name":"EthicsHeading","label":"Declarations"}},{"value":"The authors declare that they have no competing interests.","order":2,"name":"Ethics","group":{"name":"EthicsHeading","label":"Competing interests"}}],"article-number":"15"}}