\documentclass[a4paper]{article}
\usepackage[latin9]{inputenc}
\usepackage{array}
\usepackage{url}
\usepackage{amstext}
\usepackage{graphicx}
\usepackage{amssymb}

\begin{document}

\title{Malware Capture Facility. Scenario CTU-Malware-Capture-Botnet-31}
\author{Sebastian Garcia. sebastian.garcia@agents.fel.cvut.cz}

\maketitle

\part*{General Information about the scenario}
\begin{itemize}
    \item Infected Machines:

        \begin{itemize}
            \item Windows XP Name: WIN10, IP: 10.0.2.110 (Label: Botnet-V31-1 in the files)
            \item Windows XP Name: WIN7,  IP: 10.0.2.107 (Label: Botnet-V31-2 in the files)
        \end{itemize}

    \item Binary Used:

        c740789d5b226668f8a37626883fd0b7.exe
    \item MD5:

        c740789d5b226668f8a37626883fd0b7

    \item Probable Name:
        
        Unknown
    \item Duration:
        
        56 days

     \item VirusTotal Link:

     https://www.virustotal.com/en/file/104428ccf005b36edfb62d110203a43bdbb417052b31eb4646395309645c9944/analysis/1407235871/
\end{itemize}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\part*{Files}
Details about the files used in this scenario.



%%%%%%%%%%%%%%
\section{Pcap file: 2013-11-25\_capture-win10-2.pcap}

\subsection{Generic Info}
\begin{itemize}
    \item Number of packets:    24 M
    \item File size:            8794 MB  
    \item Data size:            8401 MB  
    \item Capture duration:     676444 seconds (7.82921 days)
    \item Start time:           Tue Nov 26 10:23:03 CET 2013
    \item End time:             Wed Dec  4 ??:??:??:CET 2013
    \item Data byte rate:       12 kBp  
    \item Data bit rate:        99 kbps  
    \item Average packet size:  342.53 bytes
    \item Average packet rate:  36 packets/se
    \item Bidirectional flowfile size: 705 MB
    \item Amount of bidirectional flows:      3,047,145 
\end{itemize}
\subsection{Related Files}
\begin{itemize}
    \item 
\end{itemize}

\subsection{Weblogs}
Description of the weblogs

\subsection{Graphs of the traffic with RRD}
\includegraphics[scale=0.05]{2013-11-25_capture-win10-2.png}


%%%%%%%%%%%%%%
\section{Pcap file: 2013-11-25\_capture-win10-3.pcap}

\subsection{Generic Info}
\begin{itemize}
    \item Number of packets:   11 M
    \item File size:           4272 MB
    \item Data size:           4082 MB
    \item Capture duration:    441355 seconds (5.10828 days)
    \item Start time:          Fri Dec  6 10:53:06 CET 2013
    \item End time:            Wed Dec 11 ??:??:?? CET 2013
    \item Data byte rate:      9250 bytes/s
    \item Data bit rate:       74 kbps
    \item Average packet size: 345.08 bytes
    \item Average packet rate: 26 packets/sec
    \item Bidirectional flow file size: 343 MB
    \item Amount of bidirectional flows:     1,477,663 
\end{itemize}

\subsection{Related Files}
\begin{itemize}
    \item 
\end{itemize}

\subsection{Weblogs}
Description of the weblogs

\subsection{Graphs of the traffic with RRD}
\includegraphics[scale=0.05]{2013-11-25_capture-win10-2.png}


%%%%%%%%%%%%%%
\section{Pcap file: 2013-11-25\_capture-win10.pcap}

\subsection{Generic Info}
\begin{itemize}
    \item Number of packets:        42 M
    \item File size:                15 GB
    \item Data size:                14 GB
    \item Capture duration:         1076464 seconds (12.45907407 days)
    \item Start time:               Tue Nov 12 20:00:29 CET 2013
    \item End time:                 Sun Nov 24 ??:??:?? CET 2013
    \item Data byte rate:           13 kBps
    \item Data bit rate:            107 kbps
    \item Average packet size:      342.06 bytes
    \item Average packet rate:      39 packets/sec
    \item Bidirectional flow file size:  1.2 GB
    \item Amount of bidirection flows:          5,148,948 
\end{itemize}

\subsection{Related Files}
\begin{itemize}
    \item 
\end{itemize}

\subsection{Weblogs}
Description of the weblogs

\subsection{Graphs of the traffic with RRD}
\includegraphics[scale=0.05]{2013-11-25_capture-win10.png}


%%%%%%%%%%%%%%
\section{Pcap file: 2013-11-25\_capture-win7-2.pcap}

\subsection{Generic Info}
\begin{itemize}
    \item Number of packets:   
    \item File size:           
    \item Data size:           
    \item Capture duration:    
    \item Start time:          
    \item End time:            
    \item Data byte rate:      
    \item Data bit rate:       
    \item Average packet size: 
    \item Average packet rate: 
    \item Bidirectional flow file size: 
    \item Amount of bidirection flows: 
\end{itemize}

\subsection{Related Files}
\begin{itemize}
    \item 
\end{itemize}

\subsection{Weblogs}
Description of the weblogs

\subsection{Graphs of the traffic with RRD}
\includegraphics[scale=0.05]{2013-11-25_capture-win10.png}



%%%%%%%%%%%%%%
\section{Pcap file: 2013-11-25\_capture-win7-3.pcap}

\subsection{Generic Info}
\begin{itemize}
    \item Number of packets:   
    \item File size:           
    \item Data size:           
    \item Capture duration:    
    \item Start time:          
    \item End time:            
    \item Data byte rate:      
    \item Data bit rate:       
    \item Average packet size: 
    \item Average packet rate: 
    \item Bidirectional flow file size: 
    \item Amount of bidirection flows: 
\end{itemize}

\subsection{Related Files}
\begin{itemize}
    \item 
\end{itemize}

\subsection{Weblogs}
Description of the weblogs

\subsection{Graphs of the traffic with RRD}
\includegraphics[scale=0.05]{2013-11-25_capture-win7-3.png}



%%%%%%%%%%%%%%
\section{Pcap file: 2013-11-25\_capture-win7.pcap}

\subsection{Generic Info}
\begin{itemize}
    \item Number of packets:   
    \item File size:           
    \item Data size:           
    \item Capture duration:    
    \item Start time:          
    \item End time:            
    \item Data byte rate:      
    \item Data bit rate:       
    \item Average packet size: 
    \item Average packet rate: 
    \item Bidirectional flow file size: 
    \item Amount of bidirection flows: 
\end{itemize}

\subsection{Related Files}
\begin{itemize}
    \item 
\end{itemize}

\subsection{Weblogs}
Description of the weblogs

\subsection{Graphs of the traffic with RRD}
\includegraphics[scale=0.05]{2013-11-25_capture-win7.png}



%%%%%%%%%%%%%%
\section{Pcap file: 2014-01-10\_capture-win10.pcap}

\subsection{Generic Info}
\begin{itemize}
    \item Number of packets:   
    \item File size:           
    \item Data size:           
    \item Capture duration:    
    \item Start time:          
    \item End time:            
    \item Data byte rate:      
    \item Data bit rate:       
    \item Average packet size: 
    \item Average packet rate: 
    \item Bidirectional flow file size: 
    \item Amount of bidirection flows: 
\end{itemize}

\subsection{Related Files}
\begin{itemize}
    \item 
\end{itemize}

\subsection{Weblogs}
Description of the weblogs

\subsection{Graphs of the traffic with RRD}
\includegraphics[scale=0.05]{2014-01-10_capture-win10.png}

%%%%%%%%%%%%%%
\section{Pcap file: 2014-01-10\_capture-win7.pcap}

\subsection{Generic Info}
\begin{itemize}
    \item Number of packets:   
    \item File size:           
    \item Data size:           
    \item Capture duration:    
    \item Start time:          
    \item End time:            
    \item Data byte rate:      
    \item Data bit rate:       
    \item Average packet size: 
    \item Average packet rate: 
    \item Bidirectional flow file size: 
    \item Amount of bidirection flows: 
\end{itemize}

\subsection{Related Files}
\begin{itemize}
    \item 
\end{itemize}

\subsection{Weblogs}
Description of the weblogs

\subsection{Graphs of the traffic with RRD}
\includegraphics[scale=0.05]{2014-01-10_capture-win7.png}




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\part*{Timeline}
\textbf{Tue Nov 12 20:00:29 CET 2013}
start win10

\textbf{Tue Nov 12 20:12:26 CET 2013}
infected win10 with c740789d5b226668f8a37626883fd0b7.exe

\textbf{Tue Nov 12 20:16:05 CET 2013}
started win7

\textbf{Tue Nov 12 20:17:29 CET 2013}
infected win7 with c740789d5b226668f8a37626883fd0b7.exe

\textbf{Unknown time}
There was an issue with computer so the vm was powered down.

\textbf{Tue Nov 26 10:23:03 CET 2013}
win10 is powered on again. Already infected.
Pcap file: 2013-11-25\_capture-win10-2.pcap

\textbf{Tue Nov 26 10:23:03 CET 2013}
win7 vm is powered on again.

\textbf{Mon Dec  2 13:48:06 CET 2013}
running graph with rrd file stopped and started again...

\textbf{Fri Dec  6 10:48:09 CET 2013}
I started win7 again. The linux host was frozzen.

\textbf{Fri Dec  6 10:53:06 CET 2013}
I started win10 again. The linux host was frozzen.
Pcap file 2013-11-25\_capture-win10-3.pcap


\textbf{Mon Jan  6 12:48:38 CET 2014}
I powered off win10 and started it again infected

\textbf{Mon Jan  6 12:51:16 CET 2014}
I poweredoff the win7 and started again infected.


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\part*{Traffic Analysis}
The traffic pattern of the files 2013-11-25\_capture-win7-3.pcap and 2013-11-25\_capture-win10-3.pcap are very similar because they are simoultaneous. The

2013-11-25\_capture-win7-2.pcap
2013-11-25\_capture-win10-2.pcap

2013-11-25\_capture-win7.pcap
2013-11-25\_capture-win10.pcap

2014-01-10\_capture-win10.pcap
2014-01-10\_capture-win7.pcap


Analyzying the 4-tuple 10.0.2.107-192.35.51.30-53-tcp we realized that it is a DGA algorithm, using TCP DNS queries to an custom DNS server. The requests are mostly not periodic, and only have a slightly periodicity from time to time. For example:
State=11rrrrrArrrrrrrrAArrrrarrrrrrraAArrrAarrArrrrrrrArrbrrrararrrrrrrrrrrrrArrrrrArrrraAAr

Furthermore, the time differences of these requests seem to be quite random. So we tested the values of the T1 to see if they follow a distribution. And they seem to be following a distribution.

\part*{Disclaimer}
These files were generated as part of the Malware Capture Facility Project in the CTU University, Prague, Czech Republic. The  goal of the project is to store long-lived real botnet traffic and to generate labeled netflows files. Any question feel free to contact us to sebastian.garcia@agents.fel.cvut.cz.

\textbf{You are free to use these files as long as you reference this project and the authors. See \url{http://mcfp.felk.cvut.cz}}

\end{document}



