Skip to content
forked from John-Lin/malware

This is a malware analysis project which expecte to generate snort rule via malicious network traffic

License

Notifications You must be signed in to change notification settings

Sw0rrdD/malware

 
 

Repository files navigation

Dynamic Malware Analysis

This is a malware analysis project which expecte to generate snort rule via malicious network traffic

Requirement package

Isolation environment in VirtualBox

  1. Take the snapshot (manually)
  2. Copy the malware into virtual machine
  3. Active the malware
  4. Record the network traffic (Save in the host) in the virtual machinei
  5. Restore the snapshot (Which means goto step 0)

Usage

  • Isolation environment usage

    Show help messages

$ python sandbox_run.py -h

usage: sandbox_run.py [-h] [-n NAME] [-t TIME] [-m MALWARE]

This is a automatic script which record malware network behavior in the
isolation environment.

optional arguments:
  -h, --help            show this help message and exit
  -n NAME, --name NAME  Specify a VM name.
  -t TIME, --time TIME  Specify a time in seconds for recording network
                        traffic.
  -m MALWARE, --malware MALWARE
                        Specify a path which place malware will be copy into
                        sandbox.

The following example is starting a virtual machine named WinXPSP3 and capturing network traffic for 60 seconds.

$ python sandbox_run.py -n WinXPSP3 -t 60 -m malware_bin
  • Packet reconstruct Usage

    Show help message

$ python pkt_reconstruct.py -h

usage: pkt_reconstruct.py [-h] [-d DIRECTORY]

This is a packet reconstruct tool to help reconstruct the packet payload.

optional arguments:
  -h, --help            show this help message and exit
  -d DIRECTORY, --directory DIRECTORY
                        Specify a path which place pcap file

Todo

  1. Analysis malicious network traffic from packet reconstruct
  2. Automatic generate the snort rule depending on analyse results
  3. A Web GUI interface for user can upload the malware and generate snort rule

About

This is a malware analysis project which expecte to generate snort rule via malicious network traffic

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.8%
  • Shell 0.2%