{"title":"Automata-Based String Analysis for Detecting Malware in Android Programs","authors":"Assad Maalouf, Lunjin Lu, James Lynott","volume":168,"journal":"International Journal of Information and Communication Engineering","pagesStart":517,"pagesEnd":525,"ISSN":"1307-6892","URL":"https:\/\/publications.waset.org\/pdf\/10011645","abstract":"We design and implement a precise model of string<br \/>\r\noperations using finite state machine transformers and state<br \/>\r\ntransformers to approximate the values string variables can take<br \/>\r\nthroughout the execution of the program.We use our model to analyze<br \/>\r\nAndroid program string variables. Our experimental results show that<br \/>\r\nour string analysis is very efficient at detecting the contextual effect<br \/>\r\nof string operations on the string variables. Our model proved to be<br \/>\r\nvery useful when it came to verifying statements about the string<br \/>\r\nvariables of the program.","references":"[1] \u201cOpen web application security project..\u201d Available at https:\/\/www.\r\nowasp.org.\r\n[2] A. S. Christensen, A. M\u00f8ller, and M. I. Schwartzbach, \u201cPrecise analysis\r\nof string expressions,\u201d in International Static Analysis Symposium,\r\npp. 1\u201318, Springer, 2003.\r\n[3] F. Yu, T. Bultan, M. Cova, and O. H. Ibarra, \u201cSymbolic string\r\nverification: An automata-based approach,\u201d in International SPIN\r\nWorkshop on Model Checking of Software, pp. 306\u2013324, Springer, 2008.\r\n[4] S. Arzt, S. Rasthofer, C. Fritz, E. Bodden, A. Bartel, J. Klein,\r\nY. Le Traon, D. Octeau, and P. McDaniel, \u201cFlowdroid: Precise context,\r\nflow, field, object-sensitive and lifecycle-aware taint analysis for android\r\napps,\u201d SIGPLAN Not., vol. 49, pp. 259\u2013269, June 2014.\r\n[5] D. Li, Y. Lyu, M. Wan, and W. G. Halfond, \u201cString analysis for java and\r\nandroid applications,\u201d in Proceedings of the 2015 10th Joint Meeting on\r\nFoundations of Software Engineering, pp. 661\u2013672, ACM, 2015.\r\n[6] D. Octeau, P. McDaniel, S. Jha, A. Bartel, E. Bodden, J. Klein,\r\nand Y. Le Traon, \u201cEffective inter-component communication mapping\r\nin android: An essential step towards holistic security analysis,\u201d\r\nin Presented as part of the 22nd {USENIX} Security Symposium\r\n({USENIX} Security 13), pp. 543\u2013558, 2013.\r\n[7] E. Bodden, \u201cInter-procedural data-flow analysis with ifds\/ide and soot,\u201d\r\nin Proceedings of the ACM SIGPLAN International Workshop on State\r\nof the Art in Java Program analysis, pp. 3\u20138, ACM, 2012.\r\n[8] A. Einarsson and J. D. Nielsen, \u201cA survivor\u00e2\u02d8A \u00b4 Zs guide to java program\r\nanalysis with soot,\u201d BRICS, Department of Computer Science, University\r\nof Aarhus, Denmark, p. 17, 2008.\r\n[9] C. Fritz, S. Arzt, S. Rasthofer, E. Bodden, A. Bartel, J. Klein,\r\nY. Le Traon, D. Octeau, and P. McDaniel, \u201cHighly precise taint analysis\r\nfor android applications,\u201d 2013.\r\n[10] R. Amadini, A. Jordan, G. Gange, F. Gauthier, P. Schachte,\r\nH. S\u00f8ndergaard, P. J. Stuckey, and C. Zhang, \u201cCombining string\r\nabstract domains for javascript analysis: an evaluation,\u201d in International\r\nConference on Tools and Algorithms for the Construction and Analysis\r\nof Systems, pp. 41\u201357, Springer, 2017.\r\n[11] G. Costantini, P. Ferrara, and A. Cortesi, \u201cA suite of abstract domains\r\nfor static analysis of string values,\u201d Software: Practice and Experience,\r\nvol. 45, no. 2, pp. 245\u2013287, 2015.\r\n[12] M. Madsen and E. Andreasen, \u201cString analysis for dynamic field access,\u201d\r\nin International Conference on Compiler Construction, pp. 197\u2013217,\r\nSpringer, 2014.\r\n[13] S. H. Jensen, A. M\u00f8ller, and P. Thiemann, \u201cType analysis for javascript,\u201d\r\nin International Static Analysis Symposium, pp. 238\u2013255, Springer,\r\n2009.\r\n[14] V. Kashyap, K. Dewey, E. A. Kuefner, J. Wagner, K. Gibbons,\r\nJ. Sarracino, B. Wiedermann, and B. Hardekopf, \u201cJsai: a static analysis\r\nplatform for javascript,\u201d in Proceedings of the 22nd ACM SIGSOFT\r\ninternational symposium on Foundations of Software Engineering,\r\npp. 121\u2013132, ACM, 2014.\r\n[15] H. Lee, S. Won, J. Jin, J. Cho, and S. Ryu, \u201cSafe: Formal specification\r\nand implementation of a scalable analysis framework for ecmascript,\u201d\r\nin FOOL 2012: 19th International Workshop on Foundations of\r\nObject-Oriented Languages, p. 96, Citeseer, 2012.\r\n[16] F. Yu, T. Bultan, and O. H. Ibarra, \u201cRelational string verification\r\nusing multi-track automata,\u201d International Journal of Foundations of\r\nComputer Science, vol. 22, no. 08, pp. 1909\u20131924, 2011.\r\n[17] R. Padhye and U. P. Khedker, \u201cInterprocedural data flow analysis in\r\nsoot using value contexts,\u201d in Proceedings of the 2nd ACM SIGPLAN\r\nInternational Workshop on State Of the Art in Java Program analysis,\r\npp. 31\u201336, ACM, 2013.\r\n[18] N. Almashfi, L. Lu, K. Picker, and C. Maldonado, \u201cPrecise string\r\nanalysis for javascript programs using automata,\u201d in Proceedings of\r\nthe 2019 8th International Conference on Software and Computer\r\nApplications, pp. 159\u2013166, ACM, 2019.\r\n[19] \u201cDroidbench benchmark suite.,\u201d 2020. Available at https:\/\/github.com\/\r\nsecure-software-engineering\/DroidBench.\r\n[20] \u201cIcc-bench benchmark suite.,\u201d 2020. Available at https:\/\/github.com\/\r\nfgwei\/ICC-Bench.\r\n[21] L. Qiu, Y. Wang, and J. Rubin, \u201cAnalyzing the analyzers:\r\nFlowdroid\/iccta, amandroid, and droidsafe,\u201d in Proceedings of the 27th\r\nACM SIGSOFT International Symposium on Software Testing and\r\nAnalysis, pp. 176\u2013186, ACM, 2018.\r\n[22] \u201cTaint analysis of strings with automatons.,\u201d 2020. Available at https:\/\/\r\ndrive.google.com\/file\/d\/1RmxuFvk6TCCFxSuUuUss9cUVKI3zHOwV\/\r\nview?usp=sharing.","publisher":"World Academy of Science, Engineering and Technology","index":"Open Science Index 168, 2020"}