{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,16]],"date-time":"2026-11-16T09:43:15Z","timestamp":1794822195238,"version":"4.9.1"},"reference-count":0,"publisher":"IOS Press","isbn-type":[{"value":"9781643686318","type":"electronic"}],"license":[{"start":{"date-parts":[[2025,10,21]],"date-time":"2025-10-21T00:00:00Z","timestamp":1761004800000},"content-version":"unspecified","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by-nc\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":[],"published-print":{"date-parts":[[2025,10,21]]},"abstract":"<jats:p>Large language model (LLM)-based code assistants are increasingly popular among developers. These tools help improve developers\u2019 coding efficiency and reduce errors by providing real-time suggestions based on the developer\u2019s codebase. While beneficial, the use of these tools can inadvertently expose the developer\u2019s proprietary code to the code assistant service provider during the development process. In this work, we propose a method aimed at mitigating the risk of code leakage when using LLM-based code assistants. CodeCloak is a novel, real-time, deep reinforcement learning agent that manipulates the prompts before sending them to the code assistant model. CodeCloak aims to achieve the following two contradictory objectives: (i) minimizing code leakage, while (ii) preserving relevant and useful suggestions for the developer. Our evaluation performed on multiple code assistant models, demonstrates CodeCloak\u2019s effectiveness on a diverse set of code repositories of varying sizes, as well as its transferability across different models. We validate our approach through human judgment of suggestion quality and testing on complete repositories simulating real development scenarios.The source code is available at: https:\/\/github.com\/AmitFinkman\/CodeCloak<\/jats:p>","DOI":"10.3233\/faia251340","type":"book-chapter","created":{"date-parts":[[2025,10,22]],"date-time":"2025-10-22T09:58:41Z","timestamp":1761127121000},"source":"Crossref","is-referenced-by-count":2,"title":["CodeCloak: A Method for Mitigating Code Leakage by LLM Code Assistants"],"prefix":"10.3233","author":[{"given":"Amit","family":"Finkman Noah","sequence":"first","affiliation":[{"name":"Ben-Gurion University of the Negev"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Avishag","family":"Shapira","sequence":"additional","affiliation":[{"name":"Ben-Gurion University of the Negev"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Eden","family":"Bar Kochva","sequence":"additional","affiliation":[{"name":"Ben-Gurion University of the Negev"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Inbar","family":"Maimon","sequence":"additional","affiliation":[{"name":"Ben-Gurion University of the Negev"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Dudu","family":"Mimran","sequence":"additional","affiliation":[{"name":"Ben-Gurion University of the Negev"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Yuval","family":"Elovici","sequence":"additional","affiliation":[{"name":"Ben-Gurion University of the Negev"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Asaf","family":"Shabtai","sequence":"additional","affiliation":[{"name":"Ben-Gurion University of the Negev"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"7437","container-title":["Frontiers in Artificial Intelligence and Applications","ECAI 2025"],"original-title":[],"link":[{"URL":"https:\/\/ebooks.iospress.nl\/pdf\/doi\/10.3233\/FAIA251340","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,22]],"date-time":"2025-10-22T09:58:41Z","timestamp":1761127121000},"score":1,"resource":{"primary":{"URL":"https:\/\/ebooks.iospress.nl\/doi\/10.3233\/FAIA251340"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2025,10,21]]},"ISBN":["9781643686318"],"references-count":0,"URL":"https:\/\/doi.org\/10.3233\/faia251340","relation":{},"ISSN":["0922-6389","1879-8314"],"issn-type":[{"value":"0922-6389","type":"print"},{"value":"1879-8314","type":"electronic"}],"subject":[],"published":{"date-parts":[[2025,10,21]]}}}