Process Data to ELSA
Introduction
It seems the useful things ELSA can help a security professional with are endless. A couple of weeks ago I thought it would be interesting to include a snapshot of running process data from Windows hosts in ELSA. Therefore, I wrote a simple script in Python to input a list of hosts, by IP address, capture all the running processes via WMI, and send them to the ELSA via syslog. If you want to use this script but do not have Python installed on a machine, I created a Windows executable. Check my GitHub account to download the Python script/Windows executable, MySQL file to alter the ELSA database schema and XML file for appending patterndb.xml used with syslog-ng. First let's take a look at how to configure ELSA for use with the script and then we will look at what you can do with it.Setup
For this example I will assume you downloaded the Windows executable version of my script. You will also want to download patterndb_process.xml and PROCESS_db_setup.sql. First cut all of the text from patterndb_process.xml and add it to patterndb.xml as shown.
Next, update the MySQL database schema and restart syslog-ng since you modified patterndb.xml.
# mysql < PROCESS_db_setup.sql
# service syslog-ng restart
Now your ELSA installation should be configured and ready to accept syslogs containing Windows process data.
You can also include a file called scanID.txt. The script might throw an error the first time looking for the file, however if you run it again it with the same parameters it should create the file automatically and work fine. The idea behind the scanID.txt file is to give each scan or process data pull a unique scan ID number to more easily track them in ELSA. Every subsequent time you run the script, this ID will increment. I designed the script to work well as a scheduled task in Windows.
Analysis
I tried to capture interesting information about processes that would be helpful to an analyst or security professional. Data such as process name, operating system type, process ID, executable directory, parent process ID and parent process name (if available) are all collected.
I think the opportunities from a security perspective can be pretty interesting. For example suppose an analyst wants to see all the places where Java is currently running in the environment. You could simply do a query in ELSA such as 'class=PROCESS +java'.
Furthermore, suppose an attacker is hiding a backdoor in an unusual directory. You can search ELSA for process names and sort by directory.
In the example I searched for cmd.exe and noticed it was running in three different places. However, in the last log entry it is not running in the standard directory. Hmm.....
There is a lot more interesting data that can be mined from taking periodic snapshots of processes. An example might be searching for anomalies in parent processes. Searching for a parent process of iexplorer.exe might yield some interesting results. I would love to hear other cool ideas on how to use this data. As always I welcome you feedback.
For secure your sensitive information, you need a reliable & good service provider. So that your service provider will keep your information secure.
ReplyDeletevirtual data rooms
It seems the useful things ELSA can help a security professional with are endless. A couple of weeks ago I thought it would be interesting to include a snapshot of running process data from Windows hosts in ELSA.
ReplyDeleteScania Gasket Sets
heavy duty sealing gasket
TopAssociate is a specialist provider of outsourcing and offshoring solutions for the global financial and investment community.We provide a very comprehensive range of high quality Investment research outsourcing,hedge fund research outsourcing,M&A research outsourcing,Outsourced equity research,Equity research outsourcing,Financial analyst outsourcing,Credit research outsourcing,Fixed income research outsourcing,Financial research outsourcing.
ReplyDeletecredit research outsourcing
This is the superb review, Let me make sense of how to experience additional substance if you have pretty much any this truly is remarkable submit. sorts review gives a great deal of valuable segments in this manner, Let me tidy up the inconveniences without trouble, thanks intended for giving sorts historic angles.
ReplyDeleteoutsourcing financial research
Certified sleep consultant, Dr. Rebecca Kempton, M.D. provides baby sleep consulting and can help getting baby to sleep and can help your baby sleep through the night. Is your baby not sleeping? Baby Sleep Pro can answer all your questions about “how to get my baby to sleep”
ReplyDeletebaby Sleep problems