<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">JIS</journal-id><journal-title-group><journal-title>Journal of Information Security</journal-title></journal-title-group><issn pub-type="epub">2153-1234</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/jis.2014.53009</article-id><article-id pub-id-type="publisher-id">JIS-47558</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>COMPUTER SCIENCE &amp; COMMUNICATIONS</subject></subj-group></article-categories><title-group><article-title>Smartphone Forensic Analysis: A Case Study for Obtaining Root Access of an Android Samsung S3 Device and Analyse the Image without an Expensive Commercial Tool</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Muhammad</surname><given-names>Faheem</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>N.-A.</surname><given-names>Le-Khac</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Tahar</surname><given-names>Kechadi</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff2"><addr-line>Department of Computer Science, Abdul Wali Khan University Mardan, Mardan, Pakistan</addr-line></aff><aff id="aff1"><addr-line>University College Dublin, Dublin, Ireland</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>faheemkhalil@gmail.com(MF)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>25</day><month>06</month><year>2014</year></pub-date><volume>05</volume><issue>03</issue><fpage>83</fpage><lpage>90</lpage><history><date date-type="received"><day>30</day>	<month>April</month>	<year>2014</year></date><date date-type="rev-recd"><day>25</day>	<month>May</month>	<year>2014</year>	</date><date date-type="accepted"><day>20</day>	<month>June</month>	<year>2014</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
	Smartphone is a very
useful and compact device that fits in person’s pocket, but at the same time it
can be used as a tool for criminal activities. In this day and age, people
increasingly rely on smart phones rather than desktop computers or laptops to
exchange messages, share videos and audio messages. A smartphone is almost
equivalent in its application to a PC, hence there are security risks
associated with its use such as carrying out a digital crime or becoming a
victim of one. Criminals can use smartphones for a number of activities.
Namely, committing a fraud over e-mail, harassment via text messages, drug
trafficking, child pornography, communications related to narcotics, etc. It is
a great challenge for forensic experts to extract data from a smartphone for
forensic purposes that can be used as evidence in the court of law. In this
case study, I show how to obtain the root access of Samsung S3 phone, how to
create DD image and then how to examine DD image via commercial tool like UFED
physical analyzer trial version which
doesn’t support Android devices? I will extract the messages for Viber on trial version of UFED
Physical analyzer. 
</p></abstract><kwd-group><kwd>Viber</kwd><kwd> Root</kwd><kwd> Android Forensic</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>According to the NIST, the current definition of digital forensics is the scientific procedures used to recognize and classify, collect, evaluate and analyse the data while maintaining the level of integrity of the information throughout the forensics process.</p><p><xref ref-type="fig" rid="fig1">Figure 1</xref> below is showing different fields of the Digital Forensics.</p><p>Computer forensics is the process of obtaining, identifying, extracting, analysing, and documenting of com- puter evidence stored as data/digital/magnetically encoded information for use as evidence in civil, administra- tive and criminal cases [<xref ref-type="bibr" rid="scirp.47558-ref1">1</xref>] .</p><p>Database forensics is the study of database and their metadata. Database forensics use database contents and log files in order to retrieve the relevant information.</p><p>Network forensics is an analysis of network traffic. Network forensics allows us to make forensic determina- tions based on the observed traffic of the network [<xref ref-type="bibr" rid="scirp.47558-ref2">2</xref>] .</p><p>Mobile forensics is a branch of digital forensics relating to recovery of digital evidence or data from a mobile device under forensically sound conditions [<xref ref-type="bibr" rid="scirp.47558-ref3">3</xref>] .</p><p>According to NIST, the mobile forensics is a process of preservation, acquisition, examination and analysis, followed by reporting [<xref ref-type="bibr" rid="scirp.47558-ref4">4</xref>] .</p><sec id="s1_1"><title>1.1. Android Smartphone Growth</title><p>In this digital age, smartphones are integral part of our communication as they become more similar in use to desktop computers. We no longer make only phone calls, and send and receive text messages, but also use them for social networking, online banking, buying and selling goods online, watching news and movies, playing games, etc. Nowadays more commercial and non-commercial businesses deploy their custom-made applications for smartphones, which allow employees and customers to download usable data on smartphones.</p><p>There are many kinds of smartphone operating systems available on the market, i.e. Android, IOS and RIM. Google’s Android operating system is one of the most popular OS for smartphones, television, gaming devices and notebooks. In the first quarter of 2013, smart mobile phone shipment exceeded 300 million and Android accounted for 64% of total sales of all smartphones [<xref ref-type="bibr" rid="scirp.47558-ref5">5</xref>] .</p><p><xref ref-type="fig" rid="fig2">Figure 2</xref> underneath is presenting a range of top selling smartphone brands in the first quarter of 2013.</p><p><xref ref-type="fig" rid="fig3">Figure 3</xref> is the projected sales growth for most common used OS according to Gartner.</p><fig id="fig1"><label>Figure 1</label><caption><p> Digital forensics fields</p></caption><graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://file.scirp.org/Html/htmlimages\2-7800178x\51bf00d4-79a6-435e-982d-d0aadf029030.png"/></fig><fig id="fig2"><label>Figure 2</label><caption><p> Top selling models</p></caption><graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://file.scirp.org/Html/htmlimages\2-7800178x\0c04a7aa-4d8a-4f38-9736-6f876f9d3f02.png"/></fig><fig id="fig3"><label>Figure 3</label><caption><p> Sales growth graph</p></caption><graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://file.scirp.org/Html/htmlimages\2-7800178x\d0cdb5f9-cb54-4f27-a1ff-8e60e28ee6ca.png"/></fig></sec><sec id="s1_2"><title>1.2. Android OS Architecture</title><p>Android is an open source platform for smartphones. The term “Android” is a Greek word which means “human being”. Android is a software stack for mobile devices that includes an operating system, middleware and key applications [<xref ref-type="bibr" rid="scirp.47558-ref6">6</xref>] .</p><p>In order to compete with Apple iOS system, Google acquired company called Android which developed an operating system with a consideration for the device for which it was created. This operating system provides users with visibility into how applications work, allows control over those applications and provides security against any malware attack.</p><p>In order to perform forensic analysis of Android system it is important to understand Android’s architecture and its core components. The basic Android architecture is Linux Kernel, and it is composed of five main com- ponents. These are presented in <xref ref-type="fig" rid="fig4">Figure 4</xref> [<xref ref-type="bibr" rid="scirp.47558-ref7">7</xref>] .</p></sec></sec><sec id="s2"><title>2. Related Work</title><p>The most relevant research that was close to my case studies was done by “Forensic Analysis of Instant Mes- senger Applications on Android Devices” Mahajan, Aditya, M. S. Dahiya, and H. P. Sanghvi (2013).</p><p>In this research, they use the commercial UFED Physical Analyzer which cost around eight thousand Eurosto acquire data from mobile phone. With the commercial UFED physical Analyzer data extraction was done logi- cally. After data extraction it was possible to get artifacts and timestamp of Viber. In this research, if the investi- gators want to examine the deleted data they won’t be able to do analysis because data acquisition was done logically it didn’t create bit by bit copy of the phone internal memory.</p><p>In my case I should be able to examine deleted data if use commercial forensics tools.</p></sec><sec id="s3"><title>3. Case Study</title><p>In Previous cases, they fail to explain how we can obtain forensically sound image without access to commercial tool. In this case study, I have task to obtain image of suspected Android devices which is Samsung S3 phone and Viber was used as mean of communication between suspects. Below is the specification of the mobile phone:</p><p> CPU: Quad-core 1.4 GHz Cortex-A9</p><p> Memory 16 GB</p><p> Android OS 4.1.2</p><p> Model No GT-19300</p><p>My first task is to obtained root access of this mobile phone so I can create image which I can examine then using UFED Physical Analyzer.</p><sec id="s3_1"><title>1) 3.1. A Root Access</title><p>2) First I need to install Android Development Tool (ADT) which is part of Android Software Development Kit (SDK) on my windows machine from http://developer.android.com/sdk/index.html, which is zipped file. Next I extract the file on C drive (copy all the files from folder “Platform Tools” into folder “Tools”).</p><fig id="fig4"><label>Figure 4</label><caption><p> Android OS architecture</p></caption><graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://file.scirp.org/Html/htmlimages\2-7800178x\6fc0e541-3386-421b-a808-1a3e908061a1.png"/></fig><p>3) To gain access to the root directory I need to enable USB debugging on the phone, which is achieved by se- lecting Settings and then Developer options. From the latter Debugging has to be clicked and then check box USB debugging has to be selected. Once a warning message appears, Ok has to be clicked.</p><p>4) The next step is a command prompt command which ensures that ADB is working properly. To execute this command a phone must be connected via USB cable to the laptop computer as shown in <xref ref-type="fig" rid="fig5">Figure 5</xref>.</p><p>5) I have installed SRSRoot from http://www.srsroot.com/ on my machine in order to gain the root access. Next I used a set of commands:</p><p>$ adb push /SRSRoot /data/local/tmp</p><p>$ adb shell</p><p>$ ls to see the list of directory</p><p>$ chmod 777 
<filename>
  (chmod 777 change file permissions gives everyone permission (read/write/execute) to that file) 
</filename></p><p>$. / 
<filename>
  (./ is used to execute a file) 
</filename></p><p>Then su</p><p>And now</p><p># adb shell (now the $ is replaced by # indicating that you are root) as show in <xref ref-type="fig" rid="fig6">Figure 6</xref>.</p><p>6) After gaining the root permission, I am able to create image of an Android device.</p></sec><sec id="s3_2"><title>3.2. Creating DD Image of Memory</title><p>The Android file system is divided into number of partitions. Without a traditional hard drive, it uses Memory Technology Devices (MTD) to make connections between Linux Kernel and flash drive. The most common par- titions in the Android system are boot, cache, data, and recovery.</p><p>After gaining the root access to the file system of the Android Samsung Galaxy S3 phone, I used a DF com- mand shown in <xref ref-type="fig" rid="fig7">Figure 7</xref> followed by a mount command <xref ref-type="fig" rid="fig8">Figure 8</xref> to display the partitions. Next I inserted a fresh formatted external 30 GB SD card into the phone.</p><p><xref ref-type="fig" rid="fig7">Figure 7</xref> underneath presents the outputs from these two commands (<xref ref-type="fig" rid="fig8">Figure 8</xref>).</p><fig id="fig5"><label>Figure 5</label><caption><p> Above shows that device is connected to the ADB</p></caption><graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://file.scirp.org/Html/htmlimages\2-7800178x\f3f7e73a-2956-400e-a473-ef083701c335.png"/></fig><fig-group id="fig6"><caption><title>Figure 6</title><p> Showing root access successfully obtained</p></caption><fig id ="fig6_1"><graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://file.scirp.org/Html/htmlimages\2-7800178x\e480b6fc-724c-4f11-b971-ead4185568ed.png"/></fig><fig id ="fig6_2"><graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://file.scirp.org/Html/htmlimages\2-7800178x\46c4c286-f16c-48e2-aaa6-c358d1d06006.png"/></fig></fig-group><fig id="fig7"><label>Figure 7</label><caption><p> Output of DF command</p></caption><graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://file.scirp.org/Html/htmlimages\2-7800178x\348a9607-9813-4ce2-8e0b-414be79d2d1e.png"/></fig><fig-group id="fig8"><caption><title>Figure 8</title><p> (a) Output of mount command; (b) Command for obtaining read write access</p></caption><fig id ="fig8_1"><label>(a)</label><graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://file.scirp.org/Html/htmlimages\2-7800178x\b2b2ff29-c323-4c22-a67b-cb676e8d64ba.png"/></fig><fig id ="fig8_2"><label>(b)</label><graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://file.scirp.org/Html/htmlimages\2-7800178x\e0cf08bc-a666-4735-bdd5-5403ff955a42.png"/></fig></fig-group><p>rootfs-Kernel mounts the Root File System at Startup</p><p>devpts-simulated terminal sessions</p><p>Proc-information about Kernel, processes and configuration</p><p>tmpfs-most important—this is RAM (stored on a different chip)</p><p>cramfs-compressed ROM file system</p><p>Next I will be creating a DD image of the partitions:</p><p> Data</p><p> System</p><p> Cache</p><p> EFS—contains sensitive information like Mac address, IMEI, product code, wireless</p><p>Before DD command I make it sure to give read/write permission to each partition which is as follows:</p><p>mount-0 rw, remount /xxxxx where xxxxx = partition name</p><sec id="s3_2_1"><title>Example of DD commands</title><p>DD if = /dev/block/mmcblk0p12/data of = /storage/extSdCard/data.dd</p><p>DD if = /dev/block/mmcblk0p8/cache of = /storage/extSdCard/cache.dd</p><p>DD if = /dev/block/mmcblk0p3/efs of = /storage/extSdCard/efs.dd</p><p>DD if = /dev/block/mmcblk0p09/system of = /storage/extSdCard/system.dd</p><p>Efs image <xref ref-type="fig" rid="fig9">Figure 9</xref>.</p><p>Data image <xref ref-type="fig" rid="fig10">Figure 10</xref>.</p><p>The DD command was executed successfully and output was saved onto the external SD drive, and then I used the command below to move the output from SD card to the host machine.</p><p>ADB pull/sdcard/xxxxx/pathto download</p><p>Where xxxxx = image and pathto download is where I want to save it on host machine.</p></sec></sec></sec><sec id="s4"><title>4. UFED Physical Analyzer Examination</title><p>I need to install trial version of UFED Physical Analyzer which is free to use for maximum one month, but it doesn’t support any Android phones. But I have obtained the image of the phone and I can use UFEF Physical Analyzer I open a blank project and add source file as my DD image. The UFED Physical Analyzer does recog- nize this image I can do analysis on this image. My aim in this case study is to find Arifact connected to any vi- ber communication below is screen dump I obtained <xref ref-type="fig" rid="fig11">Figure 11</xref>.</p><fig id="fig9"><label>Figure 9</label><caption><p> EFS image</p></caption><graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://file.scirp.org/Html/htmlimages\2-7800178x\cf402312-5cbd-46c5-b733-9e74ce30db52.png"/></fig><fig id="fig10"><label>Figure 10</label><caption><p> Data image</p></caption><graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://file.scirp.org/Html/htmlimages\2-7800178x\934205b2-8a59-4e9d-9820-b5357639184b.png"/></fig><fig id="fig11"><label>Figure 11</label><caption><p> UFED Physical Analyzer screen dump</p></caption><graphic xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://file.scirp.org/Html/htmlimages\2-7800178x\16313cc9-58ac-460e-b9f7-e36cc41d52c2.png"/></fig><p>Below is table for all Viber related artifacts.</p><p>I found most of the Viberarifacts in /data/data/com.viber.voip/ directory, while Viber messages with time stamps in the folder /data/data/com.viber.voip/databases/viber_messages.</p><p>SIM number with which the Viber account was activated and the time stamps are in the folder called</p><p>/data/data/com.viber.voip/files/preference/activiated_sim_serial.</p><p>The country code which Viber is registered with is in</p><p>/data/data/com.viber.voip/files/preference/reg_viber_country_code.</p><p>First SMS sent via Viber is to be found at</p><p>/data/data/com.viber.voip/files/preference/viber_first_sms.</p><p>The Viber activation code with time stamps is in the folder</p><p>/data/data/com.android.providers.telephony/databases.</p><p>Pictures sent via Viber are in the folder /data/data/com.android.providers.telephony/app_aparts.</p></sec><sec id="s5"><title>5. Conclusion and Future Work</title><p>The Android forensics is a relatively new and constantly evolving discipline as a result of new models of the Android phone coming to the market. Some research shows that the Android phone will exceed iPhone sales within next few years.</p><p>The above results show we still can work around and do forensic analysis even without full licence copy of the forensic tools. The results obtained in this cases studies are exactly the same or similar if we use expensive commercial tools. In this research, I was particularly focused on how to gain the root access and acquire data from the Samsung Galaxy S3 phone followed by the forensic analysis of data using UFED Physical Analyzer.</p><p>This is by no means a conclusive project. In my future research, I would like to further investigate more tools and different application if I am able to fully explore all artifacts using trial version of forensic tools.</p></sec></body><back><ref-list><title>References</title><ref id="scirp.47558-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">VACCA, J.R. (2002) COMPUTER FORENSICS. CHARLES RIVER MEDIA, HINGHAM.</mixed-citation></ref><ref id="scirp.47558-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">COHEN, M.I. AND PYFLAG (2008) PYFLAG—AN ADVANCED NETWORK FORENSIC FRAMEWORK COMMUNICATION OF THE ACM. DIGITAL INVESTIGATION, 5, S112-S120.</mixed-citation></ref><ref id="scirp.47558-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">HTTP://WWW.WEBOPEDIA.COM/TERM/M/MOBILE_PHONE_FORENSICS.HTML</mixed-citation></ref><ref id="scirp.47558-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">JANSEN, W.A. (2007) GUIDELINE ON CELL PHONE FORENSICS.</mixed-citation></ref><ref id="scirp.47558-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">PALO ALTO 31ST OF JANUARY 2011. HTTP://WWW.KANTARWORLDPANEL.COM/</mixed-citation></ref><ref id="scirp.47558-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">AVAILABLE FROM HTTP://DEVELOPER.ANDROID.COM/ABOUT/INDEX.HTML</mixed-citation></ref><ref id="scirp.47558-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">AVAILABLE FROM HTTP://WWW.ANDROID-APP-MARKET.COM/ANDROID-ARCHITECTURE.HTML</mixed-citation></ref></ref-list></back></article>