dfm covers

How Genetic Algorithms can be used in forensics tools

Written by DFM team

An introduction to using evolutionary techniques for forensic investigation  

Tim Watson writes

During an investigation, or when setting up for forensic readiness, have you ever needed to optimise anything, to search, to pattern-match, or have you wished that your solutions were adaptive – changing as the system changes? From spam filtering through to Olympics event scheduling, Genetic Algorithms (GAs) have been used to search, refine and adapt. We’ll look at how they work, how to use them and by the end of the article you should be able to identify ways in which your work could be improved through the use of evolutionary computing.

Why struggle to identify a solution when you can grow your own? As with any new tool or technique, it is important to be able to identify when to use GAs and what added value they might contribute. While a full appreciation of the attributes of GAs and of their applicability is still out of reach to even the specialists in the field, the essential advantages are fairly straightforward to state. To grasp the benefits of GAs and when to use them, remember that GAs are good when you don’t know what you are doing.

If you know that text messages tend to be shorter when two people know each other well then calculate the statistical properties of text messages from a suspect’s phone and use a library of previously collected statistics to determine how well the communicating parties know each other. This is what John Olsson does when he applies his renowned forensic linguistic skills to text messages [Olsson, J., ‘Forensic Linguistics’, Continuum, 2nd Revised edition, 2008.]. If you know the format of a DOS partition table in the Master Boot Record of a hard disk drive then write an explicit algorithm – an executable recipe – to extract the information you need to tell you which partition is bootable and which ones are likely to contain relevant data. There’s no need to guess when you know what to look for.

But what about a situation where you don’t know enough? If you needed to automatically scan jpeg image files to identify images that show fear, how would you write that algorithm? If you needed a way to choose up to six Facebook profile attributes that are good indicators of online criminal activity, when attributes are often deliberately misleading and when online criminals will react to profiling by changing their profiles to avoid detection, which would you choose, how would you choose them and how would you adapt your choices as the profi les are changed? Both of the previous two examples would benefit from the use of GAs.

Read more on this fascinating subject in Issue 7 of DFM - out now - login or subscribe today!!

Please make cache directory writable.

Submit an Article

Call for Articles

We are keen to publish new articles from all aspects of digital forensics. Click to contact us with your completed article or article ideas.

Featured Book

Learning iOS Forensics

A practical hands-on guide to acquire and analyse iOS devices with the latest forensic techniques and tools.

Meet the Authors

Andrew Hoog

Andrew Hoog is the Chief Investigative Officer at viaForensics'


Coming up in the Next issue of Digital Forensics Magazine

Graph Database Technology

Attackers examine how your assets are connected, looking for a vulnerable part of the network, and navigating via methods such as “spear phishing.” What they’re really doing is abstracting out the graph of your networked systems, which is the set of security dependencies. Read More »

Fraudulent Use of Digital Images and Detection Survey

This article looks at the basic concepts related to image forgery; the types, detection procedure algorithms and all possible techniques to detect malicious signatures ibased on forgery types and detection techniques. Read More »

Subscribe today

Discovery in the Cloud: An Investigator’s Close Look at Unexpected Risks and Challenges

Documents residing in cloud storage accounts are increasingly coming into scope in digital forensic investigations such as IP theft, regulatory, corruption, merger clearance and civil matters.  Read More »

Every Issue
Plus the usual Competition, Book Reviews, 360, IRQ, Legal

Click here to read more about the future issues