{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,30]],"date-time":"2026-11-30T21:07:45Z","timestamp":1796072865765,"version":"4.11.3"},"reference-count":16,"publisher":"Centre pour la Communication Scientifique Directe (CCSD)","license":[{"start":{"date-parts":[[2012,5,31]],"date-time":"2012-05-31T00:00:00Z","timestamp":1338422400000},"content-version":"am","delay-in-days":0,"URL":"https:\/\/arxiv.org\/licenses\/nonexclusive-distrib\/1.0"},{"start":{"date-parts":[[2012,5,31]],"date-time":"2012-05-31T00:00:00Z","timestamp":1338422400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/arxiv.org\/licenses\/nonexclusive-distrib\/1.0"},{"start":{"date-parts":[[2012,5,31]],"date-time":"2012-05-31T00:00:00Z","timestamp":1338422400000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/arxiv.org\/licenses\/nonexclusive-distrib\/1.0"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":[],"accepted":{"date-parts":[[2015,6,25]]},"abstract":"<jats:p>Exchanging mutable data objects with untrusted code is a delicate matter because of the risk of creating a data space that is accessible by an attacker. Consequently, secure programming guidelines for Java stress the importance of using defensive copying before accepting or handing out references to an internal mutable object. However, implementation of a copy method (like clone()) is entirely left to the programmer. It may not provide a sufficiently deep copy of an object and is subject to overriding by a malicious sub-class. Currently no language-based mechanism supports secure object cloning. This paper proposes a type-based annotation system for defining modular copy policies for class-based object-oriented programs. A copy policy specifies the maximally allowed sharing between an object and its clone. We present a static enforcement mechanism that will guarantee that all classes fulfil their copy policy, even in the presence of overriding of copy methods, and establish the semantic correctness of the overall approach in Coq. The mechanism has been implemented and experimentally evaluated on clone methods from several Java libraries.<\/jats:p>","DOI":"10.2168\/lmcs-8(2:5)2012","type":"journal-article","created":{"date-parts":[[2013,9,23]],"date-time":"2013-09-23T10:50:43Z","timestamp":1379933443000},"source":"Crossref","is-referenced-by-count":0,"title":["Secure the Clones"],"prefix":"10.46298","volume":"Volume 8, Issue 2","author":[{"given":"Thomas","family":"Jensen","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Florent","family":"Kirchner","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"David","family":"Pichardie","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"25203","published-online":{"date-parts":[[2012,5,31]]},"reference":[{"key":"10.2168\/LMCS-8(2:5)2012_clone-webpage","doi-asserted-by":"crossref","unstructured":"Secure cloning webpage. http:\/\/www.irisa.fr\/celtique\/ext\/clones, September 2011. A. Aiken, J. S. Foster, J. Kodumal, and T. Terauchi. Checking and inferring local non-aliasing. In\n                      Proc. of PLDI '03\n                      , pages 129-140. ACM Press, 2003.","DOI":"10.1145\/780822.781146"},{"key":"10.2168\/LMCS-8(2:5)2012_AndersonGayNaik:PLDI09","doi-asserted-by":"crossref","unstructured":"Z. Anderson, D. Gay, and M. Naik. Lightweight annotations for controlling sharing in concurrent data structures. In\n                      Proc. of PLDI'09\n                      , pages 98-109. ACM Press, 2009.","DOI":"10.1145\/1542476.1542488"},{"key":"10.2168\/LMCS-8(2:5)2012_Blanchet99","doi-asserted-by":"crossref","unstructured":"B. Blanchet. Escape analysis for object-oriented languages: Application to Java. In\n                      Proc. of OOPSLA\n                      , pages 20-34. ACM Press, 1999.","DOI":"10.1145\/320385.320387"},{"key":"10.2168\/LMCS-8(2:5)2012_Bloch04","unstructured":"J. Bloch.\n                      JSR 175: A metadata facility for the Java programming language\n                      . http:\/\/jcp.org\/en\/jsr\/detail?id=175, September 30, 2004."},{"key":"10.2168\/LMCS-8(2:5)2012_ChoiGSSM99","doi-asserted-by":"crossref","unstructured":"J.D. Choi, M. G., M. J. Serrano, V. C. Sreedhar, and S. P. Midkiff. Escape analysis for Java. In\n                      Proc. of OOPSLA\n                      , pages 1-19. ACM Press, 1999.","DOI":"10.1145\/320385.320386"},{"key":"10.2168\/LMCS-8(2:5)2012_Clarke:98:Ownership","doi-asserted-by":"crossref","unstructured":"D. Clarke, J. Potter, and J. Noble. Ownership types for flexible alias protection. In\n                      Proc. of the 13th ACM SIGPLAN conference on Object-oriented programming, systems, languages, and applications\n                      , OOPSLA '98, pages 48-64, New York, NY, USA, 1998. ACM.","DOI":"10.1145\/286936.286947"},{"key":"10.2168\/LMCS-8(2:5)2012_CousotCousot77","doi-asserted-by":"crossref","unstructured":"P. Cousot and R. Cousot. Abstract interpretation: a unified lattice model for static analysis of programs by construction or approximation of fixpoints. In\n                      Proc. of POPL'77\n                      , pages 238-252. ACM Press, 1977.","DOI":"10.1145\/512950.512973"},{"key":"10.2168\/LMCS-8(2:5)2012_pubsdoc:clonesPre","unstructured":"S. Drossopoulou and J. Noble. Trust the Clones. In\n                      FoVEOOS 2011 - preproceedings\n                      , September 2011."},{"key":"10.2168\/LMCS-8(2:5)2012_Fahndrich03","doi-asserted-by":"crossref","unstructured":"M. F\u00e4hndrich and K. R. M. Leino. Declaring and checking non-null types in an object-oriented language. In\n                      Proc. of OOPSLA'03\n                      , pages 302-312. ACM Press, 2003.","DOI":"10.1145\/949305.949332"},{"key":"10.2168\/LMCS-8(2:5)2012_hubert08","doi-asserted-by":"crossref","unstructured":"L. Hubert, T. Jensen, and D. Pichardie. Semantic foundations and inference of non-null annotations. In\n                      Proc. of FMOODS'08\n                      , volume 5051 of\n                      LNCS\n                      , pages 132-149. Springer Berlin, 2008.","DOI":"10.1007\/978-3-540-68863-1_9"},{"key":"10.2168\/LMCS-8(2:5)2012_JensenKP:Esop11","doi-asserted-by":"crossref","unstructured":"T. Jensen, F. Kirchner, and D. Pichardie. Secure the clones: Static enforcement of secure object copying. In G. Barthe, editor,\n                      Proc. of 20th European Symposium on Programming (ESOP 2011)\n                      . Springer LNCS vol. 6602, 2011.","DOI":"10.1007\/978-3-642-19718-5_17"},{"key":"10.2168\/LMCS-8(2:5)2012_Noble:98:Flexible","doi-asserted-by":"crossref","unstructured":"J. Noble, J. Potter, and J. Vitek. Flexible alias protection. In\n                      Proc. of ECOOP'98\n                      , pages 158-185. Springer LNCS vol. 1445, 1998.","DOI":"10.1007\/BFb0054091"},{"key":"10.2168\/LMCS-8(2:5)2012_OHearnYR04","doi-asserted-by":"crossref","unstructured":"P. W. O'Hearn, H. Yang, and J. C. Reynolds. Separation and information hiding. In\n                      Proc. of POPL'04\n                      , pages 268-280. ACM Press, 2004.","DOI":"10.1145\/964001.964024"},{"issue":"3","key":"10.2168\/LMCS-8(2:5)2012_SagivRW02","doi-asserted-by":"crossref","first-page":"217","DOI":"10.1145\/514188.514190","volume":"24","author":"S. Sagiv, T. W. Reps, and R. Wilhelm","year":"2002","journal-title":"ACM Trans. Program. Lang. Syst."},{"key":"10.2168\/LMCS-8(2:5)2012_SunGuidelines:2010","unstructured":"Sun Developer Network.\n                      Secure Coding Guidelines for the Java Programming Language, version 3.0\n                      , 2010. http:\/\/java.sun.com\/security\/seccodeguide.html."},{"issue":"2","key":"10.2168\/LMCS-8(2:5)2012_TofteTalpin97","doi-asserted-by":"crossref","first-page":"109","DOI":"10.1006\/inco.1996.2613","volume":"132","author":"M. Tofte and J.-P. Talpin","year":"1997","journal-title":"Information and Computation"}],"container-title":["Logical Methods in Computer Science"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/arxiv.org\/pdf\/1204.4322v3","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/arxiv.org\/pdf\/1204.4322v3","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,11,30]],"date-time":"2026-11-30T20:24:18Z","timestamp":1796070258000},"score":1,"resource":{"primary":{"URL":"http:\/\/lmcs.episciences.org\/801"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2012,5,31]]},"references-count":16,"URL":"https:\/\/doi.org\/10.2168\/lmcs-8(2:5)2012","relation":{"is-same-as":[{"id-type":"arxiv","id":"1204.4322","asserted-by":"subject"},{"id-type":"doi","id":"10.48550\/arXiv.1204.4322","asserted-by":"subject"}]},"ISSN":["1860-5974"],"issn-type":[{"value":"1860-5974","type":"electronic"}],"subject":[],"published":{"date-parts":[[2012,5,31]]},"article-number":"801"}}