2017Murat Volkan DülgerArticle

Abstract

This work was written in Turkish. The summary on this page is a translation; the citation gives the original title in parentheses.

In the 21st century, in which we are living through the information age, we have become dependent on technology. We are digitising every area of life. From banking to commerce, from news reporting to communication, from working life to social life, we have come to put the letter “e” in front of everything. However much easier our lives may seem to become with the help of technology, on the other side of the coin we have also begun to be exposed to unwanted and harmful incidents that we refer to as cybercrimes, such as intrusion into our bank accounts, the takeover of our e-mails and the theft of our personal information. While the digital world pushes our limits, we also have to obtain the information that can shed light on the offence from digital environments.

As a result, identifying evidence in digital environments has become a matter requiring expertise, like identifying DNA from a hair. This field of expertise, which we call digital forensics (Computer / Cyber Forensic), has now begun to establish itself as a separate discipline and field of expertise under the umbrella of the forensic sciences. In this article I will try to explain all aspects of digital forensics in a language that lawyers can understand, without going too far into technical detail. After first explaining the concept of digital evidence, the integrity of digital evidence and the concept of the hash value by which we ensure it, I will address the basic principles and processes of digital forensics in detail.

Full text

This text is a translation of the Turkish original, prepared for this website. Numbers in square brackets are the page numbers of the original; sources in the footnotes are given as in the original. For citation, the original publication (PDF) is authoritative.

Assoc. Prof. Dr. Murat Volkan DÜLGER, Academic/Attorney

WE NOW PREFER TO STORE OUR INFORMATION IN DIGITAL FORM. OUR BOOK

DIGITAL FORENSICS

PROJECT, THE LATEST

& Its Practice

PIECE OF MUSIC WE HAVE COMPOSED AND THE PHOTOGRAPHS WE HAVE TAKEN ARE KEPT NOT ON PAPER BUT ON OUR PERSONAL COMPUTER, AND COMPANY RECORDS NOT IN THICK FILES BUT IN APPLICATIONS ON SERVER COMPUTERS. NOR ARE WE CONTENT WITH THAT: WE SEND EVERYTHING TO THE CLOUD. THE INFORMATION WE HAVE DIGITISED IS NOW IN CIRCULATION EVERYWHERE AND AT EVERY MOMENT. AT THE PRESS OF A KEY IT APPEARS BEFORE US, AT THE PRESS OF A KEY IT MULTIPLIES, AND AT THE PRESS OF A KEY IT

In the 21st century, in which we are living through the information age, we have become dependent on technology. We are digitising every area of life.

From banking to commerce, from news reporting to communication, from working life to social life, we have come to put the letter “e” in front of everything. However much technology may appear to make our lives easier, on the other side of the coin we have also begun to be exposed to unwanted and harmful events that we term cybercrime, such as intrusion into our bank accounts, the takeover of our e-mails and the theft of our personal information.

While the digital world pushes our limits, we also have to obtain the information capable of shedding light on an offence from digital environments. That being so, identifying evidence in digital environments has become a matter requiring expertise, like identifying DNA from a hair. This field of expertise, which we call digital forensics (Computer / Cyber Forensic),

in Türkiye

In this article I shall try to explain all aspects of digital forensics in language that lawyers will understand, without going too far into technical detail. First, the concept of digital evidence and the integrity of digital

DISAPPEARS, OR WE THINK IT HAS DISAPPEARED!

has now begun to establish itself as a separate discipline and field of expertise under the umbrella of the forensic sciences.

evidence, together with the concept of the hash value by which we ensure it, will be explained; I shall then deal in detail with the basic principles and processes of digital forensics.

DIGITAL EVIDENCE

The forensic sciences are concerned with bringing to light and obtaining, by scientific methods, information of a kind that can be used to prove an offence, that is, evidence. In digital forensic examinations, the digital data inside electronic materials such as hard disks and portable USB sticks – data which cannot be seen with the eye or touched with the hand and which we describe as virtual – are examined, their connection with the real/physical world is established, and digital data capable of proving the offence are brought to light.

Digital data inside electronic materials that are capable of proving the offence are called “digital evidence”.

DIGITAL DATA INSIDE ELECTRONIC MATERIALS THAT ARE CAPABLE OF PROVING THE OFFENCE ARE CALLED “DIGITAL EVIDENCE”.

Because digital data can, by their nature, change form and location very quickly, a wrong intervention may cause digital evidence to be lost beyond recovery. For this reason, those who handle digital evidence must know well how information systems work, how they store and transmit information, and also the cyber world and how digital evidence in these environments should be approached. Persons who have gained experience in digital forensics are called “digital forensics experts”.

The environments in which digital evidence is examined are also extremely important. Whether the examinations are carried out by the judicial police or by private experts, laboratory conditions must be ensured. In digital forensics laboratories a suitable environment must be provided so that the electronic materials

are not damaged, and the examinations must be carried out on the forensic image file.

HASH VALUE (HASH)

The most critical issue in digital forensic examinations is that the evidence be examined without being altered. In order to prove that the evidence has not changed, the information defined as the hash value (Hash) must travel with the evidence. The hash value is a scientifically accepted mathematical algorithm.

IN ORDER TO PROVE THAT THE EVIDENCE HAS NOT CHANGED, THE HASH VALUE (HASH) MUST TRAVEL WITH THE EVIDENCE.

The data entered into the algorithm as a parameter emerge from the operation as a numerical value of a fixed length. There is more than one algorithm for calculating hash values. The numerical length of the hash value produced differs for each algorithm. The numerical length of the value produced reduces the probability that the hash values calculated for two sets of data will be identical.

For example, if we calculate the hash value of data consisting of the text “Adli Bilişim” using the algorithm called MD5 (Message-Digest 5), a numerical value of the form “07ffec3f75b3b9b01c4fc3fe85de247” is produced. The resulting hash value contains 32 digits of the base-16 number system. The number of values that can be formed with this many digits is 2128, that is, a very large number of 36 digits in the number system we use, which shows how low the probability is that the hash values of two different sets of data will turn out to be the same. • If the hash value of the data “Adli Bilişim” is calculated with the SHA1 (Secure Hash Algorithm 1) algorithm, the numerical value “b16a22679c9550ad- 85cd97621fd9640595ecdb84” is produced. This time the resulting hash value is another number, consisting of 40 digits of the base-16 number system.

Here, however, because the number of digits increases, the probability falls logarithmically. Whether the information for which the hash value is to be calculated is the content of a 1 TB disk or a text file containing only the words “Adli Bilişim”, the length of the resulting hash value will always be the same.

Because the probability values are extremely low, the resulting hash value is accepted as representing the data.

In digital forensic examinations both the MD5 and the SHA1 algorithms are used for the hash value of an item of digital evidence.

THE PROCESS OF DIGITAL FORENSIC EXAMINATIONS

The process of digital forensic examinations, as in all other forensic science disciplines, begins at the scene and ends when the report containing the evidence is submitted to the court.

Having regard to practice, the process as a whole must be divided into three main parts. The first stage is the response to the incident and the collection of the electronic materials containing digital evidence.

The more soundly this stage is conducted, the more soundly the subsequent stages will be carried out. The electronic materials obtained are then examined and the digital evidence is brought to light.

This stage must be carried out by digital forensics experts in a laboratory environment. In the final stage, the evidence obtained is reported in writing.

In countries subject to the Anglo-American legal system, moreover, since the report is also explained in court with a presentation, the final stage appears under the heading of reporting and presentation

ACQUISITION STAGE

The scene is the stage at which first contact is made with the evidence. Failure to ensure appropriate conditions during the collection of evidence will mean that the evidence cannot be collected soundly and loses its evidential quality. For this reason, before arriving at the scene, law enforcement officers must obtain information about it and take the necessary tools and equipment with them.

In Türkiye, the necessary legal provision on the collection of electronic materials from the scene has been made in Article 134 of the Code of Criminal Procedure (CMK), under the heading “Search, Copying and Seizure in Computers, Computer Programs and Computer Files”. Although the legal provision made is not sufficient, there are mandatory requirements binding on the law enforcement officers who respond to the incident and collect the electronic material.

CMK 134(1): ... THAT A SEARCH BE CARRIED OUT OF THE COMPUTER, COMPUTER PROGRAMS AND COMPUTER FILES USED BY THE SUSPECT, THAT COPIES BE MADE OF THE COMPUTER RECORDS …

The first paragraph of the Article describes the making of a copy of the data in the suspect's electronic materials at the scene, that is, the obtaining of a forensic image file. A forensic image file is a computer file containing all of the data in the material. Whether the hash value is taken of the data in the material or of the forensic image file, the two will be the same. Subsequent examinations must be carried out not on the original material but on the image file.

The second paragraph states that, where it is not possible to take an image file, the materials must be seized, and that they must be returned without delay once their images have been taken.

CMK 134 (2): …THESE DEVICES AND EQUIPMENT MAY BE SEIZED SO THAT THE DECRYPTION CAN BE CARRIED OUT AND THE NECESSARY COPIES CAN BE MADE. ONCE THE PASSWORD HAS BEEN DECRYPTED AND THE NECESSARY COPIES HAVE BEEN MADE, THE SEIZED DEVICES SHALL BE RETURNED WITHOUT DELAY.

The fourth paragraph states that a copy of the image file obtained must be given to the suspect or his representative.

Since matters such as the length of time imaging takes, the impossibility of imaging very large disks, and how evidence is to be collected when an examination is to be carried out without imaging are not set out in detail, the statutory

CMK 134 (4): A COPY OF THE BACKUP MADE UNDER PARAGRAPH THREE SHALL BE PRODUCED AND GIVEN TO THE SUSPECT OR HIS REPRESENTATIVE, AND THIS SHALL BE RECORDED IN THE MINUTES AND SIGNED.

provisions in their present form are not sufficient in practice.

Leaving the statutory provisions aside, for a sound and accurate digital forensic examination to be possible, at the very least an image file of the suspect's electronic materials must be created at the scene and the hash value of the image file must be given to the parties. The purpose of giving the hash value to the parties is to prove that the examination was carried out on the correct image.

The report drawn up at the end of the examination states the hash value of the image on which the examination was conducted. It is thereby established that another digital forensics expert who examines the image file with the same hash value will reach the same results. If a different hash value is calculated, this means that the image file belongs to a different disk or that changes have been made on the disk. In such a case it is also impossible to determine retrospectively how the change came about.

If, after the materials have been collected, the image file is not taken at the scene, there will always be doubt as to whether data were subsequently added. The evidential quality will therefore have been impaired and the examinations carried out will have been in vain. In addition, the hash values of the image files obtained must be given to the parties.

Otherwise, doubt will arise as to whether the image file examined is the

image file obtained at the scene. To prevent such doubts, law enforcement officers must, as a matter of principle, take the image file at the scene in the presence of the parties, and the hash value generated while the image file is being taken must be given to the parties (Art. 134(2) CMK is an exception and must be applied as an exception!).

Applied as it stands, Art. 134 CMK at least entails that, when digital evidence is handled at the scene, the image file must be taken and the hash value must be given to the parties. The requirements in the statute therefore impose on law enforcement a binding obligation with regard to the security of the evidence.

THE FORENSIC IMAGE FILE IS A COMPUTER FILE CONTAINING ALL OF THE DATA IN THE ELECTRONIC MATERIAL OBTAINED FROM THE SCENE.

LABORATORY EXAMINATION

The materials and/or image files obtained at the scene are as yet only findings. The next stage is to examine the findings and determine whether they contain evidence capable of proving the offence. Following an examination carried out in a laboratory environment, the materials acquire the quality of evidence suitable for proof.

The examinations must be carried out on the forensic image file. If the material obtained from the scene has been sent to the laboratory, no examination should be carried out on it • unless this is unavoidable, and it must be stored in a secure environment. Since hard disks in particular have mechanical parts, a disk may be rendered permanently inoperable if its physical security is not ensured.

Digital forensic examinations must be carried out in laboratories that are equipped with the necessary hardware and software and have trained experts.

The laboratory must contain hardware and software such as the workstations on which the examinations will be carried out, write

- blockers, forensic examination software, and adapters and connecting cables capable of reading different types of electronic material.

The image file obtained at the scene may contain terabytes of data. Finding the incriminating data among so much data can be as hard as looking for a needle in a haystack. The data may have been deliberately altered or deleted. Before every examination begins, data recovery procedures must be applied according to the condition of the material.

This makes it possible to work with a larger quantity of meaningful data.

The most critical issue here is the quality of the expert who will carry out the examination.

Digital forensics experts must know well how computer systems work, how they store and transmit information, and also the cyber world and how digital evidence in these environments should be approached.

There is no standard for digital forensics expertise in Türkiye.

However, some international certification bodies provide certification in this field by examination.

Although certifications satisfy the general requirements, since very different situations may be encountered in each case under examination, what matters is how much experience the digital forensics expert has.

The more cases an expert has worked on, the more experience he will have.

REPORTING STAGE

The work carried out and the evidence obtained as a result of digital forensic examinations must be submitted to the relevant authority together with a report. The report prepared must contain the information obtained in line with the matter requested. Since the content of the report will include technical information in line with the examination carried out, great care must be taken with the language of the report. For unnecessary technical information will reduce the report's comprehensibility and will not summarise the result.

A digital forensic report should be structured like the introduction, main body and conclusion sections of an article. In the introduction, the information relating to the period before the examination should be entered. This information comprises:

• A list of the hardware and software used in the examination, together with their versions: when the same hardware and software are used, the same result must be obtained.

• What the examination requested was: whatever kind of examination was requested, that request must be set down in the report. The examinations must also be carried out in line with the request. None of the work requested may be left incomplete; if it cannot be done, it must be explained why not.

• Information and documents concerning the expert who prepared the report: this establishes the abilities of the examining expert and whether they cover the examination.

• Date information: dates such as when the request was received, when the examination began, when the image was taken, etc. must be stated in the report. One of the matters with which courts most often have difficulty, in particular, is the timely preparation of the report.

• Information on the electronic materials examined: the type of the material examined, whether it is a hard disk or a USB stick, its capacity, its serial number, its hash value, information on the operating system it contains, etc. must be stated. In this way a detailed identification record of the material examined is produced.

In the main body of the report, it must be explained in detail what kind of examination was carried out on the materials listed above with the hardware and software available in the laboratory. Information such as which file constitutes the evidence, the hash value of the file and its location on the disk must be stated.

In addition, the operations by which the evidence identified was reached must be described in chronological order.

In some digital forensic reports one finds that only information on the file and/or data identified as evidence is given. However, if it is not explained how this file was obtained and which operations were applied, the result reached in the report cannot be verified by applying the same processes.

This is one of the most important points indicating the quality of reports.

In the conclusion of the report, a short text summarising the matter asked should be written. For example, if the question asked is “Is file X on this computer? If so, when was it created?”, the conclusion of the report should contain brief and plain information such as “File X is located on the computer examined under the folder “C:\Dosyalar”. The file's creation date is 12.12.2016”. All the technical work on how this information was arrived at should be written in the examination section, that is, the main body of the report. If the examination carried out concerns a judicial case, the conclusion of the report is addressed to the judge or prosecutor who requested the report.

For what matters to the judge and the prosecutor is “has the matter asked been established or not?”. They will not concern themselves with the technical aspects of the report.

The technical parts set out in the report, by contrast, are written to convince the parties.

Lawyers may wish to have the report examined by another digital forensics expert.

In that case, the whole process set out in the report must yield the same result again when the same examination is carried out.

CONCLUSION

The fact that there is no standard for digital forensics expertise in Türkiye means that there are natural or legal persons producing reports of very different quality. Even the Law on Experts No. 6754 of 3.11.2016 did not lay down these standards. It merely made the supervision of experts mandatory.

It does not seem very easy to set up a unit capable of supervising this requirement and of establishing the quality of digital forensics experts.

The problem is that there are no people trained in digital forensics in Türkiye. As things stand, the few experts there are carry out examinations through the digital forensics laboratories they have set up, and there is as yet no higher authority to supervise digital forensics experts.

Today, when cybercrime is committed in great numbers, the importance of digital forensics expertise is too great to be denied.

FOR THIS REASON, A GREAT EFFORT MUST BE MADE TO TRAIN DIGITAL FORENSICS EXPERTS IN TURKEY.

Assoc. Prof. Dr. Murat Volkan DÜLGER Academic / Attorney volkan.dulger@dulger.av.tr

[1] Ian Walden, Computer Crimes and Digital Investigations, Second Edition, Oxford, Oxford University Press, 2016, s. 371. [2] Murat Volkan Dülger, Bilişim Suçları ve İnternet İletişim Hukuku, Altıncı Bası, Ankara, Seçkin Yayıncılık, 2015, s. 789

Download PDF (in Turkish)

More publications on this topic