{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,2,26]],"date-time":"2026-02-26T15:59:34Z","timestamp":1772121574016,"version":"3.50.1"},"reference-count":20,"publisher":"Privacy Enhancing Technologies Symposium Advisory Board","issue":"4","license":[{"start":{"date-parts":[[2021,7,23]],"date-time":"2021-07-23T00:00:00Z","timestamp":1626998400000},"content-version":"unspecified","delay-in-days":0,"URL":"http:\/\/creativecommons.org\/licenses\/by-nc-nd\/3.0"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":[],"published-print":{"date-parts":[[2021,10,1]]},"abstract":"<jats:title>Abstract<\/jats:title>\n               <jats:p>Source code authorship attribution can be used for many types of intelligence on binaries and executables, including forensics, but introduces a threat to the privacy of anonymous programmers. Previous work has shown how to attribute individually authored code files and code segments. In this work, we examine authorship segmentation, in which we determine authorship of arbitrary parts of a program. While previous work has performed segmentation at the textual level, we attempt to attribute subtrees of the abstract syntax tree (AST). We focus on two primary problems: identifying the primary author of an arbitrary AST subtree and identifying on which edges of the AST primary authorship changes. We demonstrate that the former is a difficult problem but the later is much easier. We also demonstrate methods by which we can leverage the easier problem to improve accuracy for the harder problem. We show that while identifying the author of subtrees is difficult overall, this is primarily due to the abundance of small subtrees: in the validation set we can attribute subtrees of at least 25 nodes with accuracy over 80% and at least 33 nodes with accuracy over 90%, while in the test set we can attribute subtrees of at least 33 nodes with accuracy of 70%. While our baseline accuracy for single AST nodes is 20.21% for the validation set and 35.66% for the test set, we present techniques by which we can increase this accuracy to 42.01% and 49.21% respectively. We further present observations about collaborative code found on GitHub that may drive further research.<\/jats:p>","DOI":"10.2478\/popets-2021-0080","type":"journal-article","created":{"date-parts":[[2021,7,24]],"date-time":"2021-07-24T23:16:55Z","timestamp":1627168615000},"page":"464-479","source":"Crossref","is-referenced-by-count":3,"title":["Supervised Authorship Segmentation of Open Source Code Projects"],"prefix":"10.56553","volume":"2021","author":[{"given":"Edwin","family":"Dauber","sequence":"first","affiliation":[{"name":"Drexel University"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Robert","family":"Erbacher","sequence":"additional","affiliation":[{"name":"United States Army Research Laboratory"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Gregory","family":"Shearer","sequence":"additional","affiliation":[{"name":"ICF International"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Michael","family":"Weisman","sequence":"additional","affiliation":[{"name":"United States Army Research Laboratory"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Frederica","family":"Nelson","sequence":"additional","affiliation":[{"name":"United States Army Research Laboratory"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Rachel","family":"Greenstadt","sequence":"additional","affiliation":[{"name":"New York University"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"35752","published-online":{"date-parts":[[2021,7,23]]},"reference":[{"key":"2022060519475268547_j_popets-2021-0080_ref_001","doi-asserted-by":"crossref","unstructured":"[1] Mohammed Abuhamad, Tamer AbuHmed, Aziz Mohaisen, and DaeHun Nyang. 2018. Large-Scale and Language-Oblivious Code Authorship Identification. In Proceedings of the 2018 ACM SIGSAC Conference on Computer and Communications Security. ACM, 101\u2013114.","DOI":"10.1145\/3243734.3243738"},{"key":"2022060519475268547_j_popets-2021-0080_ref_002","doi-asserted-by":"crossref","unstructured":"[2] Mohammed Abuhamad, Tamer Abuhmed, DaeHun Nyang, and David Mohaisen. 2020. Multi-\u03c7: Identifying Multiple Authors from Source Code Files. Proceedings on Privacy Enhancing Technologies 1 (2020), 17.","DOI":"10.2478\/popets-2020-0044"},{"key":"2022060519475268547_j_popets-2021-0080_ref_003","unstructured":"[3] Alfred V Aho, Ravi Sethi, and Jeffrey D Ullman. 1986. Compilers, Principles, Techniques. Addison wesley."},{"key":"2022060519475268547_j_popets-2021-0080_ref_004","doi-asserted-by":"crossref","unstructured":"[4] Navot Akiva and Moshe Koppel. 2012. Identifying distinct components of a multi-author document. In 2012 European Intelligence and Security Informatics Conference. IEEE, 205\u2013209.","DOI":"10.1109\/EISIC.2012.16"},{"key":"2022060519475268547_j_popets-2021-0080_ref_005","doi-asserted-by":"crossref","unstructured":"[5] Navot Akiva and Moshe Koppel. 2013. A generic unsupervised method for decomposing multi-author documents. Journal of the American Society for Information Science and Technology 64, 11 (2013), 2256\u20132264.","DOI":"10.1002\/asi.22924"},{"key":"2022060519475268547_j_popets-2021-0080_ref_006","unstructured":"[6] Steven Burrows. 2010. Source code authorship attribution. Ph.D. Dissertation. RMIT University."},{"key":"2022060519475268547_j_popets-2021-0080_ref_007","unstructured":"[7] Steven Burrows and Seyed MM Tahaghoghi. 2007. Source code authorship attribution using n-grams. In Proceedings of the Twelth Australasian Document Computing Symposium, Melbourne, Australia, RMIT University. Citeseer, 32\u201339."},{"key":"2022060519475268547_j_popets-2021-0080_ref_008","doi-asserted-by":"crossref","unstructured":"[8] Steven Burrows, Alexandra L Uitdenbogerd, and Andrew Turpin. 2009. Application of information retrieval techniques for source code authorship attribution. In Database Systems for Advanced Applications. Springer, 699\u2013713.","DOI":"10.1007\/978-3-642-00887-0_61"},{"key":"2022060519475268547_j_popets-2021-0080_ref_009","unstructured":"[9] Aylin Caliskan-Islam, Richard Harang, Andrew Liu, Arvind Narayanan, Clare Voss, Fabian Yamaguchi, and Rachel Greenstadt. 2015. De-anonymizing programmers via code stylometry. In 24th USENIX Security Symposium (USENIX Security 15). 255\u2013270."},{"key":"2022060519475268547_j_popets-2021-0080_ref_010","doi-asserted-by":"crossref","unstructured":"[10] Edwin Dauber, Aylin Caliskan, Richard Harang, Gregory Shearer, Michael Weisman, Frederica Nelson, and Rachel Greenstadt. 2019. Git blame who?: Stylistic authorship attribution of small, incomplete source code fragments. Proceedings on Privacy Enhancing Technologies 2019, 3 (2019), 389\u2013408.","DOI":"10.2478\/popets-2019-0053"},{"key":"2022060519475268547_j_popets-2021-0080_ref_011","doi-asserted-by":"crossref","unstructured":"[11] Haibiao Ding and Mansur H Samadzadeh. 2004. Extraction of Java program fingerprints for software authorship identification. Journal of Systems and Software 72, 1 (2004), 49\u201357.","DOI":"10.1016\/S0164-1212(03)00049-9"},{"key":"2022060519475268547_j_popets-2021-0080_ref_012","unstructured":"[12] David Fifield, Torbj\u00f8rn Follan, and Emil Lunde. 2015. Unsupervised authorship attribution. arXiv preprint arXiv:1503.07613 (2015)."},{"key":"2022060519475268547_j_popets-2021-0080_ref_013","doi-asserted-by":"crossref","unstructured":"[13] Georgia Frantzeskou, Stephen MacDonell, Efstathios Stamatatos, and Stefanos Gritzalis. 2008. Examining the significance of high-level programming features in source code author classification. Journal of Systems and Software 81, 3 (2008), 447\u2013460.","DOI":"10.1016\/j.jss.2007.03.004"},{"key":"2022060519475268547_j_popets-2021-0080_ref_014","unstructured":"[14] Georgia Frantzeskou, Efstathios Stamatatos, Stefanos Gritzalis, Carole E Chaski, and Blake Stephen Howald. 2007. Identifying authorship by byte-level n-grams: The source code author profile (scap) method. International Journal of Digital Evidence 6, 1 (2007), 1\u201318."},{"key":"2022060519475268547_j_popets-2021-0080_ref_015","doi-asserted-by":"crossref","unstructured":"[15] Georgia Frantzeskou, Efstathios Stamatatos, Stefanos Gritzalis, and Sokratis Katsikas. 2006. Effective identification of source code authors using byte-level information. In Proceedings of the 28th international conference on Software engineering. ACM, 893\u2013896.","DOI":"10.1145\/1134285.1134445"},{"key":"2022060519475268547_j_popets-2021-0080_ref_016","unstructured":"[16] Moshe Koppel, Navot Akiva, Idan Dershowitz, and Nachum Dershowitz. 2011. Unsupervised decomposition of a document into authorial components. In Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies-Volume 1. Association for Computational Linguistics, 1356\u20131364."},{"key":"2022060519475268547_j_popets-2021-0080_ref_017","doi-asserted-by":"crossref","unstructured":"[17] Olaf Le\u00dfenich, Janet Siegmund, Sven Apel, Christian K\u00e4stner, and Claus Hunsen. 2018. Indicators for merge conflicts in the wild: survey and empirical study. Automated Software Engineering 25, 2 (2018), 279\u2013313.","DOI":"10.1007\/s10515-017-0227-0"},{"key":"2022060519475268547_j_popets-2021-0080_ref_018","unstructured":"[18] Stephen G MacDonell, Andrew R Gray, Grant MacLennan, and Philip J Sallis. 1999. Software forensics for discriminating between program authors using case-based reasoning, feedforward neural networks and multiple discriminant analysis. In Neural Information Processing, 1999. Proceedings. ICONIP\u201999. 6th International Conference on, Vol. 1. IEEE, 66\u201371."},{"key":"2022060519475268547_j_popets-2021-0080_ref_019","unstructured":"[19] Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. 2013. Efficient estimation of word representations in vector space. arXiv preprint arXiv:1301.3781 (2013)."},{"key":"2022060519475268547_j_popets-2021-0080_ref_020","doi-asserted-by":"crossref","unstructured":"[20] Fabian Yamaguchi, Nico Golde, Daniel Arp, and Konrad Rieck. 2014. Modeling and Discovering Vulnerabilities with Code Property Graphs. In Proc. of IEEE Symposium on Security and Privacy (S&P).10.1109\/SP.2014.44","DOI":"10.1109\/SP.2014.44"}],"container-title":["Proceedings on Privacy Enhancing Technologies"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.sciendo.com\/pdf\/10.2478\/popets-2021-0080","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2022,7,20]],"date-time":"2022-07-20T16:31:47Z","timestamp":1658334707000},"score":1,"resource":{"primary":{"URL":"https:\/\/petsymposium.org\/popets\/2021\/popets-2021-0080.php"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2021,7,23]]},"references-count":20,"journal-issue":{"issue":"4","published-online":{"date-parts":[[2021,7,23]]},"published-print":{"date-parts":[[2021,10,1]]}},"alternative-id":["10.2478\/popets-2021-0080"],"URL":"https:\/\/doi.org\/10.2478\/popets-2021-0080","relation":{},"ISSN":["2299-0984"],"issn-type":[{"value":"2299-0984","type":"electronic"}],"subject":[],"published":{"date-parts":[[2021,7,23]]}}}