Quickie: tshark & Malware Analysis
The following screenshot drew my attention when I read Brad's diary entry "Excel spreadsheets push SystemBC malware":
This shellcode is encoded, each byte is represented with printable characters: \xHH where HH are hexadecimal characters.
And that is something that can easily be decoded with my tool base64dump.py (this tools supports many encodings, not only base64).
I was able to export this encoded shellcode as a file with Wireshark (File / Export Objects / HTTP), and then decode it.
But then I was wondering: can I avoid saving this shellcode to disk? Can I pipe together commands to analyze the shellcode?
And I found a solution with tshark (Wireshark's console version).
Here's how I did this:
I read Brad's pcap file (option -r) and apply a display filter (-Y) to select packets that contain xfc (the start of the encoded shellcode, minus the backslash): "http.file_data contains xfc". And I display the content of field http.file_data (options -Tfields and -e).
I can pipe this directly into my base64dump.py tool:
Like Brad mentioned, the shellcode is downloaded twice. And here we can see that it's the same shellcode (same hash).
And this looks indeed like shellcode (notice the IP address at the end of the hex/ascii dump):
That IP address (plus 0x00 byte) is followed by 4 bytes: that's most likely the Cobalt Strike license ID/watermark.
I can check this with my tool 1768.py to analyze Cobalt Strike beacons:
Didier Stevens
Senior handler
Microsoft MVP
blog.DidierStevens.com DidierStevensLabs.com
Comments
www
Nov 17th 2022
6 months ago
EEW
Nov 17th 2022
6 months ago
qwq
Nov 17th 2022
6 months ago
mashood
Nov 17th 2022
6 months ago
isc.sans.edu
Nov 23rd 2022
6 months ago
isc.sans.edu
Nov 23rd 2022
6 months ago
isc.sans.edu
Dec 3rd 2022
6 months ago
isc.sans.edu
Dec 3rd 2022
6 months ago
<a hreaf="https://technolytical.com/">the social network</a> is described as follows because they respect your privacy and keep your data secure. The social networks are not interested in collecting data about you. They don't care about what you're doing, or what you like. They don't want to know who you talk to, or where you go.
<a hreaf="https://technolytical.com/">the social network</a> is not interested in collecting data about you. They don't care about what you're doing, or what you like. They don't want to know who you talk to, or where you go. The social networks only collect the minimum amount of information required for the service that they provide. Your personal information is kept private, and is never shared with other companies without your permission
isc.sans.edu
Dec 26th 2022
5 months ago
isc.sans.edu
Dec 26th 2022
5 months ago