Monday, October 13, 2014

My Top 5 Computer Future Security Issues




Data Breaches

“A breach is defined as an event in which an individual’s name plus a medical record and/or a financial record or debit card is potentially put at risk—either in electronic or paper format.” (Ponemon, 2014)


For the first half of 2014, there were a reported 1,331 incidents. As a result of these incidents, there were a reported 502 million records exposed (datalossdb.org, 2014).  For the entire 2013, there were a reported 2308 incidents (datalossdb.org, 2014). While it is generally accepted that sooner or later an organization will be breached, the frequency with which these occur and the number of records involved is what is astounding.



Interestingly, these breaches are not limited to a specific country and or industry. Figure 1 below shows the number of breaches experienced by countries while Figure 2 shows by Industry during the period May 2013 to May 2014.

Figure 1
Source: Pomenon Institue

Figure 2:
  
 

Source: Pomenon Institue 



Identity Theft/Fraud

Identify theft is referred to as the “preparatory stage of acquiring and collecting someone else’s personal information for criminal purposes” (rcmp-grc.gc.ca). Identity Fraud on the other hand, is defined as “the unauthorized use of another person’s personal information to achieve illicit financial gain” (javelinstrategy.com, 2014)


With the massive amount of breached records and the known proclivity for cyber criminals to ensure they are compensated for their illegal activities one can only conclude that sooner or later, these records will be on the blackmarket. Some sites from which credit card and other personal information can be bought are rescator.* (.cm, .la. and .so), kaddaf[dot]hk, octavian[dot]su and cheapdumps[dot]org (Krebs, 2013).

More importantly, It is reported that there was A New Identity Fraud Victim Every Two Seconds in 2013” (javelinstrategy.com, 2014). Of greater importance, one in 3 people who received data breach notification letter were victims of identity fraud (javelinstrategy.com, 2014).

The graph below shows millions of Identity Theft Victims

Figure 3:


Source: Javelinstrategy.com


Human Factor

Whether it is a user that has clicked on a link via a phishing email or an administrator that misconfigured a firewall, the human factor plays a tremendous role in the security threats paradigm. It is reported that 30% of all data breaches is a result of Human Error (Ponemon, 2014).


Figure 4:

 

Organizations such as the SANS Institute have recognize the importance of the role of humans in IT Security and thus have implemented programs based on “Securing the Human” (securingthehuman.org).  It is through these programs that while everyone cannot be made an expert in IT security, everyone can at least be made knowledgeable about some of the dangers related to technology. Through its’ OUCH newsletter, SANS has also produced a free document which each explains a specific topic and the necessary actions people can take to protect themselves (securingthehuman.org, 2014)


Mobile/Wearable Malware


It is predicted that in 2015, 87% of connected devices sales will be tablets and smart phones (idc.com, 2013). This immediately implies that most of our online activities will be done via a smart phone and or tablet.  To be able to effectively use these devices, an operating system is required. It is estimated that Android owns 76% of this market with iOS at 14.4% as shown in the figure below.

Figure 5:
 
 

Source: MobileThinking


The threat comes not necessarily from these devices themselves but from the underlying OS which they used. According to the F-Secure, for Q1 2014, there were 275 threat families (malware) that run on Android, 1 for iPhone and 1 for Symbian (F-Secure, 2014). 

In addition, the advent of Smart Watches, google glass, fitness tracking bands and other wearables, makes for an even more interesting mobile future.


Internet of Things
As we continue to march towards the future, by biggest fears lies in what else we may choose to connect to the Internet.


The Internet of things is considered as a network of physical objects which are accessed through the Internet. Through the Internet of things, connections can be made between manufacturing floors, energy grids, healthcare facilities, transportations systems to the Internet (cisco.com).

It is reported at a staggering 30 Billion devices will connect wirelessly to the Internet of Everything in 2020 (abiresearch.com, 2013).  If we contrast this with the world’s population which currently stands at 7.2 Billion (worldometers.info), we can conclude that each person will be responsible for at least 4 devices in 2020. Our rush to have everything inter-connected will provide us with a very interesting future.

References:

(n.d.). Retrieved from rcmp-grc.gc.ca: http://www.rcmp-grc.gc.ca/scams-fraudes/id-theft-vol-eng.htm
(n.d.). Retrieved from securingthehuman.org: http://www.securingthehuman.org
(n.d.). Retrieved from cisco.com: http://www.cisco.com/web/solutions/trends/iot/overview.html
(n.d.). Retrieved from worldometers.info: http://www.worldometers.info/world-population/
(n.d.).
(2013, 9 11). Retrieved from idc.com: http://www.idc.com/getdoc.jsp?containerId=prUS24314413
(2013, 05 09). Retrieved from abiresearch.com: https://www.abiresearch.com/press/more-than-30-billion-devices-will-wirelessly-conne
(2014, 08 24). Retrieved from datalossdb.org: http://datalossdb.org
(2014, 08 25). Retrieved from census.gov: http://www.census.gov/popclock/
(2014, 02 5). Retrieved from javelinstrategy.com: https://www.javelinstrategy.com/news/1467/92/A-New-Identity-Fraud-Victim-Every-Two-Seconds-in-2013-According-to-Latest-Javelin-Strategy-Research-Study/d,pressRoomDetail
(2014, 08). Retrieved from securingthehuman.org: http://www.securingthehuman.org/resources/newsletters/ouch/2014
F-Secure. (2014). Mobile Threat Report Q1. F-Secure.
Krebs, B. (2013, 12 13). Retrieved from krebsonsecurity.com: http://krebsonsecurity.com/2013/12/whos-selling-credit-cards-from-target/
Ponemon. (2014). 2014 Cost of Data Breach Study: Global ANalysis. Ponemon Institute.
ZIOBRO, P. (n.d.). Retrieved from blogs.wsj.com: http://blogs.wsj.com/corporate-intelligence/2014/03/17/with-credit-card-data-in-play-who-hacks-the-hackers/

Wednesday, October 1, 2014

Hiding Data in Slack space: USB Drive


What is slack space?
Slack space refers to portions of a hard drive that are not fully used by the current allocated file and which may contain data from a previously deleted file.
In this post, we will hide data on a USB Drive. The drive is formatted FAT with sectors of 512 bytes and cluster sizes of 2048 bytes.



There is one file on this drive which is 62 bytes



Considering the Cluster (allocation unit) is 2048 bytes and this file is 62 bytes, this means we should have slack space of 1986 bytes. Since the sector is 512 bytes and the file is 62 bytes, we have 450 bytes which will be padded by data as determined by the operating system. The other 1536 bytes we will use part of it to hide some data..



As can be seen above, we have now modified the raw bytes on the drives to put the data we would like to have there.
This concludes the series of posts on data hiding. Obviously there a number of ways of hiding data on a computer system, I just wanted to touch on a few to show what is possible.
Hope you enjoyed the reading

Hiding data by changing the file extension



As simple as it may seem (or sound), simply changing a file extension as a way of hiding data is an effective technique against anyone who does not know how to investigate what type of file they may actually be dealing with. The reason this can be a challenge is because of the long list of file extensions which are out there. While there are some popular extensions like .zip, .pdf. doc, etc., deciding which one a specific file is can still be a challenge unless you plan to go through all of the known extensions.

For this post, we will use a file with an extension of .jpg. The objective is to open this file in its native application.

Without further ado, let’s get started.

Let’s double click this file “securitynik.jpg”in “Windows Explorer”




As can be seen above, we encountered an error. Now, a typical user may say this file is corrupt and thus probably delete the file and move on. While that may be acceptable for the regular user, a forensics analyst would need to dig a little deeper.

Let’s do that … Digging a little deeper.

To dig a little deeper, our shovel will be HxD Hexeditor. A point to note is that every file type has a header which can be used as a signature to identify the type of file. Similarly some file types have known trailers, which marks as the ending of the file. Considering this information, we can use the Internet to our advantage to learn about file extensions. To determine our actual file type we will rely on the work already done by garykessler.net. Let’s open our file in Hx.


If we compare the first 6 bytes “7B 5C 72 74 66 31” to one of the known entries on garykessler.net, we can see that this file should have an extension of .rtf. In addition, if we look at the trailer we see that within the last 10 bytes, we have a 4 byte sequence “5C 70 61 72” that matches part of the .rtf extension. Let’s focus on the header and change the file to .rtf instead of .jpg.

The file extension can be changed by either renaming the file in “Windows Explorer” or by “ren securitynik.jpg securitynik.rtf” in the command prompt. Once completed, let’s try to open the file again


 
Awesome!!! There we go, the file now has successfully been opened.
As stated earlier, typically when someone gets an error upon opening a file, it is typically assumed that the file may be corrupted. More than likely the average user pays no attention to the fact that this file can be opened in a Hexeditor to verify it has the correct extension. However, as a forensic analyst, being able to determine this type of information is crucial.

Alternate Data Streams: Detecting hidden data on Windows 8

In the previous post we dealt with hiding data in an alternate data stream. In this post we will try to detect this hiding.

As shown also in the previous post, simply using the "DIR" command, does not give any indication that you may be using alternate data streams. 

In addition, using a hex editor does not show any difference between the original file and the one with the alternate data stream.

So how do we detect this? Let's try a couple of different tools.

1. Let's first start with the tools that are native to Windows.
If you remember previously I said you cannot simply use the "DIR" command. However, if you use "DIR /R" you will be able to find your alternate data streams. Let's do that.

D:\tmp>dir /R
 Volume in drive D is DATA
 Volume Serial Number is DE47-DE1A

 Directory of D:\tmp

08/11/2014  07:26 PM    <DIR>          .
08/11/2014  07:26 PM    <DIR>          ..
08/11/2014  07:26 PM                47 ADS.txt
                               161,307 ADS.txt:ADS_HIDDEN.txt:$DATA
08/11/2014  07:04 PM           161,307 securityNik.htm
08/11/2014  07:04 PM    <DIR>          securityNik_files
               2 File(s)        161,354 bytes
               3 Dir(s)   5,568,835,584 bytes free
  
Now look at that, we have managed to find our alternate data stream and it's name.

Let's try the "streams" tool from the sysinternals suite.
D:\tmp>streams.exe -s d:\tmp

Streams v1.56 - Enumerate alternate NTFS data streams
Copyright (C) 1999-2007 Mark Russinovich
Sysinternals - www.sysinternals.com

d:\tmp\ADS.txt:
   :ADS_HIDDEN.txt:$DATA        161307
   
once again, we see we have data in an alternate data stream.


Let's try one more tool. This one is named LADS.
D:\tmp>lads.exe

LADS - Freeware version 4.10
(C) Copyright 1998-2007 Frank Heyne Software (http://www.heysoft.de)
This program lists files with alternate data streams (ADS)
Use LADS on your own risk!

Scanning directory D:\tmp\

      size  ADS in file
----------  ---------------------------------
    161307  D:\tmp\ADS.txt:ADS_HIDDEN.txt

    161307 bytes in 1 ADS listed


Once again, we see that we have an alternate data stream and the path of the file along with its size.

While the this and previous post may be interesting, alternate data streams is not all that bad. As mentioned in the "Alternate Data Streams in NTFS" post by John Marlin, Microsoft uses these for varying reasons by default.

If you would like to see if you have any alternate data streams on your system (and you more than likely do), run the following command "C:\>dir /S /R | findstr /i /e $DATA" from the root of your drive. This will show all the alternate data streams found.


References:
http://mh-nexus.de/en/hxd/
http://www.heysoft.de/en/software/lads.php?lang=EN
http://technet.microsoft.com/en-ca/sysinternals/bb842062.aspx
http://blogs.technet.com/b/askcore/archive/2013/03/24/alternate-data-streams-in-ntfs.aspx
http://technet.microsoft.com/en-us/library/bb490907.aspx

Alternate Data Streams: Hiding data on Windows 8

In today's lab, we will hide data on Windows 8 using the alternate data streams. To begin, let's create a basic .txt file.

D:\tmp>echo "Hey I'm testing the alternate data streams" > ADS.txt

Let's verify the contents of the file and list the directory contents

D:\tmp>type ADS.txt && dir
"Hey I'm testing the alternate data streams"
 Volume in drive D is DATA
 Volume Serial Number is DE47-DE1A

 Directory of D:\tmp

08/11/2014  06:32 PM    <DIR>          .
08/11/2014  06:32 PM    <DIR>          ..
08/11/2014  06:32 PM                47 ADS.txt
               1 File(s)             47 bytes
               2 Dir(s)   5,574,283,264 bytes free

As can be seen the file ADS.txt is 47 bytes in size. 

  
Let's run  this file through "strings"
strings.exe ADS.txt

Strings v2.5
Copyright (C) 1999-2012 Mark Russinovich
Sysinternals - www.sysinternals.com

"Hey I'm testing the alternate data streams"   
  
Let's go ahead and create an alternate data stream. For this we will save a copy of the securitynik.blogspot.ca website to our local system. Once done, let's view the directory once again.
D:\SECURITYNIK>dir
 Volume in drive D is DATA
 Volume Serial Number is DE47-DE1A

 Directory of D:\tmp

08/11/2014  07:05 PM    <DIR>          .
08/11/2014  07:05 PM    <DIR>          ..
08/11/2014  06:32 PM                47 ADS.txt
08/11/2014  07:04 PM           161,307 securityNik.htm
08/11/2014  07:04 PM    <DIR>          securityNik_files
               2 File(s)        161,354 bytes
               3 Dir(s)   5,569,003,520 bytes free


As can be seen above, "securityNik.htm" file is 161,307 bytes.

To create the alternate data stream we do the following.
D:\tmp>type securityNik.htm >> ADS.txt:ADS_HIDDEN.txt

Let's see what has changed with our original file

D:\tmp>dir
 Volume in drive D is DATA
 Volume Serial Number is DE47-DE1A

 Directory of D:\tmp

08/11/2014  07:26 PM    <DIR>          .
08/11/2014  07:26 PM    <DIR>          ..
08/11/2014  07:26 PM                47 ADS.txt
08/11/2014  07:04 PM           161,307 securityNik.htm
08/11/2014  07:04 PM    <DIR>          securityNik_files
               2 File(s)        161,354 bytes
               3 Dir(s)   5,568,835,584 bytes free
  
Doesn't look like much. By simply using the "DIR" command, we are unable to tell that this file is using an alternate data stream.

Let's investigate this in the next post.


References:
http://blogs.technet.com/b/askcore/archive/2013/03/24/alternate-data-streams-in-ntfs.aspx
http://blogs.technet.com/b/askcore/archive/2010/08/25/ntfs-file-attributes.aspx
http://www.bleepingcomputer.com/tutorials/windows-alternate-data-streams/
http://mh-nexus.de/en/hxd/