Malware Musings

Thoughts on malware and malware analysis

  • About
  • Reference
  • Scripts
    • misql.py: A Cuckoo Package for MySQL Commands
    • parsemysql.py: Extract SQL commands from MySQL TCP data streams
    • parsetds.py: Extract SQL commands and login credentials from TDS (MS-SQL) TCP data
    • unhex.awk: Convert hex encoded strings to ASCII characters
    • unpack.py: Script using WinAppDbg to automatically unpack malware
  • Supporting Files
    • dionaea-mysql.py.diff: Patch for dionaea to capture cna12 MySQL binaries
    • logstartup.diff
    • memtst.s
    • Reverse Engineering Challenge #1: file

Capturing the cna12 MySQL Attacks with Dionaea

Posted by Karl on May 8, 2013
Posted in: Malware Analysis. Tagged: cna12.dll, Dionaea, MySQL attacks. Leave a Comment

To analyse the cna12 MySQL attacks, I had to install MySQL Express Server as the attacks were prematurely exiting when connecting to Dionaea. Extracting the binary files from the libpcap files was annoying, so I decided to change Dionaea so that it would automatically extract the binary files used in the cna12 attacks. Continue Reading

Share this:

  • Email
  • LinkedIn
  • Twitter
  • Facebook
  • Google +1

Like this:

Like Loading...

A look at some MS-SQL attacks (overview)

Posted by Karl on April 10, 2013
Posted in: Vulnerabilities and Exploits. Tagged: MS-SQL. Leave a Comment

What do you do when you notice MS-SQL connections topping the list of top ten destination ports hitting your honeynet? You install an MS-SQL server, give the sa user a week password, and see what happens of course (don’t try this at home). Continue Reading

Share this:

  • Email
  • LinkedIn
  • Twitter
  • Facebook
  • Google +1

Like this:

Like Loading...

Extracting Data From MS-SQL TDS Streams in a libpcap File

Posted by Karl on March 29, 2013
Posted in: Python, Scriptery. Leave a Comment

Sometimes in life you find yourself wanting to have a quiet afternoon in front of a computer, extracting login credentials and SQL commands from captured MS-SQL TCP connections. Other times you may find yourself needing to do so to analyse some MS-SQL attacks. Whatever your reason, this post explains how to use my parsetds.py script to extract such information.

Continue Reading

Share this:

  • Email
  • LinkedIn
  • Twitter
  • Facebook
  • Google +1

Like this:

Like Loading...

Remembering the Michelangelo Virus

Posted by Karl on March 6, 2013
Posted in: General Information. Leave a Comment

‘Remember the days of the old school yard?’ Or rather of the old school computer lab. Now that I’ve got this blog thing going, I couldn’t let the 06th of March go by without reminiscing about the Michelangelo virus, and rambling on about viruses ‘back when I was a lad’. Continue Reading

Share this:

  • Email
  • LinkedIn
  • Twitter
  • Facebook
  • Google +1

Like this:

Like Loading...

Automated Unpacking: A Behaviour Based Approach

Posted by Karl on February 26, 2013
Posted in: Malware Analysis, Python. 2 comments

Certain memory conditions have to be met before malware can unpack code and run it — the memory has to be writeable to unpack code to it, and executable to be able to execute it. The question is, can we use Win32 API calls to detect malware creating these conditions, and subsequently not only detect and identify unpacked code, but also find the original entry point? Continue Reading

Share this:

  • Email
  • LinkedIn
  • Twitter
  • Facebook
  • Google +1

Like this:

Like Loading...

How to protect yourself from the cna12.dll MySQL attacks

Posted by Karl on February 14, 2013
Posted in: Vulnerabilities and Exploits. Tagged: cna12.dll, isetup.exe, MySQL attacks, piress. Leave a Comment

This post explains some measures that you can take to prevent the MySQL cna12.dll attacks from infecting your MySQL server. It follows on from a previous post which explains the attacks. If you find that a cna12.dll file or a piress user account keep reappearing on your MySQL server, then read on. Continue Reading

Share this:

  • Email
  • LinkedIn
  • Twitter
  • Facebook
  • Google +1

Like this:

Like Loading...

Logging the Creation of Shell Processes

Posted by Karl on February 5, 2013
Posted in: General Information. Leave a Comment

Since attacks often involve trying to run a shell on a remote host, usually by exploiting a vulnerability in a network service, why don’t we get the shell to log some pertinent information when it starts up. Information that will both alert us to the fact, and identify which potentially compromised process started it. Continue Reading

Share this:

  • Email
  • LinkedIn
  • Twitter
  • Facebook
  • Google +1

Like this:

Like Loading...

Posts navigation

← Older Entries
  • Recent Posts

    • Capturing the cna12 MySQL Attacks with Dionaea
    • A look at some MS-SQL attacks (overview)
    • Extracting Data From MS-SQL TDS Streams in a libpcap File
    • Remembering the Michelangelo Virus
    • Automated Unpacking: A Behaviour Based Approach
  • Archives

    • May 2013
    • April 2013
    • March 2013
    • February 2013
    • January 2013
    • December 2012
    • November 2012
    • October 2012
    • September 2012
    • August 2012
  • Categories

    • General Information
    • Honeynets
    • Malware Analysis
    • Muse Food
    • Python
    • Reverse Engineering
    • Scriptery
    • Uncategorized
    • UNIX Shell Scripts
    • Vulnerabilities and Exploits
  • Subscribe to RSS Feeds

    RSS Feed RSS - Posts

    RSS Feed RSS - Comments

  • Enter your email address to follow this blog and receive notifications of new posts by email.

    Join 6 other followers

  • Blogroll

    • Internet Storm Center's StormCasts
    • Lenny Zeltser on Information Security
    • McAfee Labs
  • View Karl Denton's profile on LinkedIn
Blog at WordPress.com. Theme: Customized Parament by Automattic.
Malware Musings
Blog at WordPress.com. Theme: Customized Parament.
Follow

Get every new post delivered to your Inbox.

Powered by WordPress.com
Cancel
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.
%d bloggers like this: