27.2.10 Lab - Extract An Executable From A PCAP
27.2.10 Lab - Extract An Executable From A PCAP
Objectives
Part 1: Analyze Pre-Captured Logs and Traffic Captures
Part 2: Extract Downloaded Files from PCAP
Background / Scenario
Looking at logs is very important, but it is also important to understand how network transactions happen at
the packet level.
In this lab, you will analyze the traffic in a previously captured pcap file and extract an executable from the file.
Required Resources
CyberOps Workstation virtual machine
Instructions
2017 - 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 8 www.netacad.com
Lab - Extract an Executable from a PCAP
2017 - 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 8 www.netacad.com
Lab - Extract an Executable from a PCAP
c. The nimda.download.pcap file contains the packet capture related to the malware download performed
in a previous lab. The pcap contains all the packets sent and received while tcpdump was running.
d. Select the fourth packet in the capture and expand the Hypertext Transfer Protocol to display as shown
below.
e. Packets one through three are the TCP handshake. The fourth packet shows the request for the malware
file. Confirming what was already known, the request was done over HTTP, sent as a GET request.
2017 - 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 8 www.netacad.com
Lab - Extract an Executable from a PCAP
f. Because HTTP runs over TCP, it is possible to use Wireshark’s Follow TCP Stream feature to rebuild
the TCP transaction. Select the first TCP packet in the capture, a SYN packet. Right-click it and choose
Follow > TCP Stream.
g. Wireshark displays another window containing the details for the entire selected TCP flow.
2017 - 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 8 www.netacad.com
Lab - Extract an Executable from a PCAP
Questions:
What are all those symbols shown in the Follow TCP Stream window? Are they connection noise? Data?
Explain.
Los símbolos son el contenido real del archivo descargado. Debido a que es un archivo binario,
Wireshark no sabe cómo representarlo.
There are a few readable words spread among the symbols. Why are they there?
Si, son cadenas contenidas en el código ejecutable. Estas palabras forman parte de los mensajes
que el programa proporciona al usuario mientras se ejecuta. Un analista experto puede extraer
información valiosa al leer estos fragmentos.
Challenge Question: Despite the W32.Nimda.Amm.exe name, this executable is not the famous worm.
For security reasons, this is another executable file that was renamed as W32.Nimda.Amm.exe. Using
the word fragments displayed by Wireshark’s Follow TCP Stream window, can you tell what executable
this really is?
Desplazarse hacia abajo en esa ventana revela que este es el archivo cmd.exe de Microsoft
Windows.
h. Click Close in the Follow TCP Stream window to return to the Wireshark nimda.download.pcap file.
2017 - 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 8 www.netacad.com
Lab - Extract an Executable from a PCAP
b. With the GET request packet selected, navigate to File > Export Objects > HTTP, from Wireshark’s
menu.
c. Wireshark will display all HTTP objects present in the TCP flow that contains the GET request. In this
case, only the W32.Nimda.Amm.exe file is present in the capture. It will take a few seconds before the
file is displayed.
2017 - 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 8 www.netacad.com
Lab - Extract an Executable from a PCAP
Question:
Question:
2017 - 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 8 www.netacad.com
Lab - Extract an Executable from a PCAP
W32.Nimda.Amm.exe: PE32+ executable (console) x86-64, for MS Windows
[analyst@secOps ~]$
In the malware analysis process, what would be a probable next step for a security analyst?
Identificar el tipo de malware y analizar su comportamiento.
El archivo de malware se debe mover a un entorno controlado y ejecutarlo para observar su
comportamiento.
Los entornos de análisis de malware a menudo se basan en máquinas virtuales y están aislados
para evitar daños en los sistemas que no son de prueba. Dichos entornos suelen contener
herramientas que facilitan el seguimiento de la ejecución del malware; el uso de recursos, las
conexiones de red y los cambios en el sistema operativo son aspectos monitoreados comunes.
End of document
2017 - 2023 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 8 of 8 www.netacad.com