<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PredragTasevski.com</title>
	<atom:link href="http://predragtasevski.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://predragtasevski.com</link>
	<description>Sharing is Caring</description>
	<lastBuildDate>Tue, 21 Feb 2012 16:51:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Security Programing Techniques</title>
		<link>http://predragtasevski.com/cybersecurity/security-programing-techniques/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=security-programing-techniques</link>
		<comments>http://predragtasevski.com/cybersecurity/security-programing-techniques/#comments</comments>
		<pubDate>Tue, 21 Feb 2012 14:27:28 +0000</pubDate>
		<dc:creator>pece</dc:creator>
				<category><![CDATA[Cyber Security]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Programing]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[cyber security]]></category>
		<category><![CDATA[HQL]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[JDBC]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[PHP5]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[Ruby on Rail]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[security model]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://predragtasevski.com/?p=342</guid>
		<description><![CDATA[INTRODUCTION The main goal of this post is to introduce the reader with the security programing techniques into deferent program languages and operating system security models. The post is introducing four following topics: Session storage&#8217;s in Ruby on Rail Parameterized &#8230; <a href="http://predragtasevski.com/cybersecurity/security-programing-techniques/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h1>INTRODUCTION</h1>
<p>The main goal of this post is to introduce the reader with the security programing techniques into deferent program languages and operating system security models. The post is introducing four following topics:</p>
<ol>
<li>Session storage&#8217;s in Ruby on Rail</li>
<li>Parameterized statements into Java with JDBC, C# with ASP.NET, PHP5, php-mysqli, Perl, Python and Hibernate Query Language (HQL)</li>
<li>Unix permission model, Unix ACL and Windows 7 security<br />
model</li>
<li>Finding all the security vulnerabilities in bash script</li>
</ol>
<p>Each topic will be divided into own section, where at the end of each topic we stated the reference and additional reading material. The source code, scrips and the additional task were given by the lecture. However this will help the readers and people interesting into programing for further work and involvement with the above topics.</p>
<p><span id="more-342"></span></p>
<h1>1. Session storage&#8217;s in Ruby on Rail</h1>
<p>Session in Rails is a hash-like structure which allows you to store data across requests.<br />
Sessions can hold any kind of data object (with some limitations) because they store<br />
data using Data Marshalling.Session in rails it is not a hash. Session creates new<br />
instant of session in every time new user visit the site. Recommendation is to not store<br />
large objects in a session and critical data should not be stored in session.Rails way of<br />
implementing session is:</p>
<p>&nbsp;</p>
<ol>
<li>session_id is a 32 hex character MD5 hash based upon time, random number and constant string. It is stored in cookie at client browser. Rails provides transparent support for session_id.</li>
<li>Session storage discussed below.</li>
</ol>
<p>Ruby on Rails provides with many session storage option:</p>
<p>&nbsp;</p>
<ol>
<li>PStore &#8211; it implements a file based persistence mechanism based on a Hash. User code can store hierarchies of Ruby objects (values) into the data store file by name (keys). An object hierarchy may be just a single object. User code may later read values back from the data store or even update data, as needed. The files that are stored are usually located in the tmp/sessions folder for the Rails app. The main downside of using the PStore is that you will have to do some session-pruning periodically because performance decreases as the number of sessions stored increases.</li>
<li>ActiveRecordStore &#8211; keeps the session id and hash in a database table and saves and retrieves the hash on every request.</li>
<li>CookieStore &#8211; it saves the session hash directly in a cookie on the client-side. The server retrieves the session hash from the cookie and eliminates the need for a session id. Cookie-based sessions are just faster to retrieve and process than hitting the file-system on every request, were it was previously. Cookies are generally limited to 4K in size. While not an issue for most (proper) usage of the session, this could be a legitimate limit for some scenarios. If your application abuses the session, you’ll need to decide on a different session store that are available. The cookie has a SHA512 fingerprint attached and is hashed with a secret stored up on the server and there are, however, derivatives of CookieStore which encrypt the session hash, so the client cannot see it.</li>
<li>DRbStore &#8211; it store uses distributed Ruby to store a user’s session data. The performance is great, but it requires a bit more setup than the other stores.</li>
<li>FileStore &#8211; This store keeps the fragments on the hard disk instead of in memory. It works well if you have a lot of file storage and have outgrown the MemoryStore.</li>
<li>MemoryStore &#8211; keeps your session data in server memory. It keeps the fragments in your application&#8217;s memory, which can potentially take up a lot of memory on your server. It is used by default, but it is hard to manage and scale if your application becomes popular.</li>
</ol>
<p><strong>Note:</strong> Ruby on Rail CookieStore is available only in edge rails. PStore is the default option for stable release, whereas its CookieStore as default for edge rails.</p>
<h2>Reference</h2>
<p>Ruby On Rails Security Guide, From: <a href="http://guides.rubyonrails.org/security.html" target="_blank">http://guides.rubyonrails.org/security.html</a><br />
Sessions and cookies in Ruby on Rails, From: <a href="http://www.quarkruby.com/2007/10/21/ sessions-and-cookies-in-ruby-on-rails#sstorage" target="_blank">http://www.quarkruby.com/2007/10/21/<br />
sessions-and-cookies-in-ruby-on-rails#sstorage</a><br />
What&#8217;s New in Edge Rails: Cookie Based Sessions are the New Default, From: <a href="http:// ryandaigle.com/articles/2007/2/21/what-s-new-in-edge-rails-cookie-based-sessions" target="_blank">http://<br />
ryandaigle.com/articles/2007/2/21/what-s-new-in-edge-rails-cookie-based-sessions</a></p>
<h1>2. Parameterized statements into Java with JDBC, C# with ASP.NET, PHP5, php-mysqli, Perl, Python and Hibernate Query Language (HQL)</h1>
<p>For this task we will take a look at the parameterized statement API-s and we will find out and document how much does each of them protect against the following possible<br />
misuses of SQL statements:</p>
<ul>
<li>String injection (quotes, double quotes)</li>
<li>SQL statement injection (expression syntax etc)</li>
<li>Out of range integers</li>
<li>Blind SQL injection</li>
</ul>
<h2>Java with JDBC</h2>
<pre class="brush: php">

PreparedStatement prep =
conn.prepareStatement(&quot;SELECT * FROM
USERS
WHERE USERNAME=? AND PASSWORD=?&quot;);
prep.setString(1, username);
prep.setString(2, password);
prep.executeQuery();
</pre>
<p>There are no possibilities of string injection because of the filtering the statements. It enables users’ input to be initially filtered instead  of directly embedding it in the SQL statements. In this example is that the each parameter is a scalar, not a table, where the user input is then assigned (bound) to a parameter. It is a good idea if the character range is limited. Another thing that can be done to avoid SQL injection is to convert numeric values to integers before parsing them into the SQL statement. Or using ISNUMERIC to verify that they are integers.</p>
<h2>C# with ASP.NET</h2>
<pre class="brush: php">

using (SqlCommand myCommand =
new SqlCommand(&quot;SELECT * FROM USERS
WHERE
USERNAME=@user AND
PASSWORD=HASHBYTES(’SHA1’, @pwd)&quot;,
myConnection))
{
myCommand.Parameters.AddWithValue(&quot;@user&quot;,
user);
myCommand.Parameters.AddWithValue(&quot;@pwd&quot;,
pass);
myConnection.Open();
SqlDataReader myReader =
myCommand.ExecuteReader();
...
}
</pre>
<p>The placeholder &#8211; @user and the hashbyte value of password @pws &#8211; has become part  if the hardcoded SQL. At runtime, the value provided by the querystring is passed to the database along with the hardcoded SQL, and the database will check the Username and password field as it attempts to bind the parameter value to it. This ensures a level of strong typing. If the parameter value is not the right type for the database field (a string, or numeric that&#8217;s out of range for the field type), the database will be unable to convert it to the right type and will reject it. If the target field datatype is a string (char, nvarchar etc), the parameter value will be &#8220;stringified&#8221; automatically, which includes escaping single quotes. It will not form part of the SQL statement to be executed.</p>
<h2>PHP5</h2>
<pre class="brush: php">

$db = new PDO(’pgsql:dbname=database’);
$stmt = $db-&amp;amp;amp;amp;amp;gt;prepare(&quot;SELECT priv FROM
testUsers WHERE
username=:username AND password=:password&quot;);
$stmt-&amp;amp;amp;amp;amp;gt;bindParam(’:username’, $user);
$stmt-&amp;amp;amp;amp;amp;gt;bindParam(’:password’, $pass);
$stmt-&amp;amp;amp;amp;amp;gt;execute();
</pre>
<p>In this example to protect against SQL injection, it is used an input not directly to be  embedded in SQL statements. Instead, it is used an parameterized statements (preferred), or user input must be carefully escaped or filtered. This example shows and parameterized example/statement in php v. 5 and PDO database to protect from SQL injections and blind SQL injections.</p>
<h2>PHP-MySQLi</h2>
<pre class="brush: php">

$db = new mysqli(&quot;host&quot;, &quot;user&quot;, &quot;pass&quot;,
&quot;database&quot;);
$stmt = $db -&amp;amp;amp;amp;amp;gt; prepare(&quot;SELECT priv FROM
testUsers
WHERE username=? AND password=?&quot;);
$stmt -&amp;amp;amp;amp;amp;gt; bind_param(&quot;ss&quot;, $user, $pass);
$stmt -&amp;amp;amp;amp;amp;gt; execute();
</pre>
<p>Same as above but this time it is used the vendor-specific methods; for instance, using the mysqli extension for MySQL 4.1 and create parameterized statements to protect from the SQL injection.</p>
<h2>Perl</h2>
<pre class="brush: php">

use DBI;
my $db = DBI-
&amp;amp;amp;amp;amp;gt;connect(’DBI:mysql:mydatabase:host’,
’login’, ’password’);
$statment = $db-&amp;amp;amp;amp;amp;gt;prepare(&quot;UPDATE players SET
name = ?,
score = ?, active = ? WHERE jerseyNum = ?&quot;);
$rows_affected = $statment-&amp;amp;amp;amp;amp;gt;execute(&quot;Smith,
Steve&quot;,
42, ’true’, 99);</pre>
<p>Automatically &#8220;sanitize&#8221; input to parameterized SQL statements to avoid the catastrophic  database attacks.</p>
<h2>Python</h2>
<pre class="brush: php">

import sqlite3
db = sqlite3.connect(’:memory:’)
db.execute(’update players set name=:name,
score=:score,
active=:active where jerseyNum=:num’,
{’num’: 100,
’name’: ’John Doe’,
’active’: False,
’score’: -1}
)</pre>
<p>It is parameterized statement with an example of named placeholders. Which insure to avoid the SQL injections and database attacks.</p>
<h2>Hibernate Query Language (HQL)</h2>
<pre class="brush: php">

Query safeHQLQuery = session.createQuery(
&quot;from Inventory where productID=:productid&quot;);
safeHQLQuery.setParameter(&quot;productid&quot;,
userSuppliedParameter);
</pre>
<p>Unsafe example: Query unsafeHQLQuery = session.createQuery(&#8220;from Inventory where<br />
productID=&#8217;&#8221;+userSuppliedParameter+&#8221;&#8216;&#8221;); The example from left it’s used prepared statement approach because all the SQL code stays within the application. This makes your application relatively database independent. However, other options allow you to store all the SQL code in the database itself, which has both security and non-security<br />
advantages and the approach is called Stored Procedure</p>
<h1>3. Unix permission model, Unix ACL and Windows 7 security<br />
model</h1>
<p>In this topic we will describe two security set-ups that can not be expressed with traditional Unix permission model, UNIX ACL and Windows 7 security model.</p>
<h2>Unix permission model</h2>
<ul>
<li>Giving an different permission to different users in the same group</li>
<li>Read and write permission/access to all groups, which gives and access to the ‘private files’, and you can gain access through a root account by an unwanted user, which brings and complete breach of the system</li>
</ul>
<h2>Unix ACL- enabled permission model</h2>
<ul>
<li>If the user has permission over the file, he can read/write and delete it, which brings that it is not possible to give ‘some’ permission to the user.</li>
<li>ACL’s are not very portable and are very hard to maintain. For instance good example is transferring of files with ACL’s between different of Unix systems is an exercise for brave person, even if the both file systems support them. Which brings a difficulty to maintain for existing files for instance backup, restore, copying, etc.</li>
</ul>
<h2>Windows 7 security model</h2>
<ul>
<li>As a standard user you can perform an action that requires administrator privileges by the UAC(User Access Control), which is controlled by the Admin Approval Mode. It can be turn off and on. Every time when you need to gain an access of the administration privileges it will be prompt a dialog box to gain and provide the password for an access. Therefore in the medium settings with any malware could turn it off.</li>
<li>And the settings of the UAC are in medium mode not off, still brings an opportunity to being turn off by the malware.</li>
</ul>
<h1>4. Finding all the security vulnerabilities in bash script</h1>
<p>In this topic we will find all the possible vulnerabilities into the following bash script:</p>
<pre class="brush: php">

#!/bin/sh
# remove files with name pattern matching regexp
if [ x$1 = x ]; then
# if [[ x$1 = x ]]
echo -n &quot;Please enter directory name: &quot;
read dir
else
dir=$1
fi
if [ x$2 = x ]; then
# if [[ x$2 = x ]]
echo -n &quot;Please enter pattern: &quot;
read pattern
else
pattern=$2
fi
find $dir &amp;amp;amp;amp;amp;gt; /tmp/listing
# can use &amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;gt; or print the output first before
cmd=&#039;rm `grep &#039;$pattern&#039; /tmp/listing`&#039; #+the command is execute
echo &quot;Running command $cmd&quot;
eval $cmd //it converts string in command
rm /tmp/listing
exit 0</pre>
<p>We should avoid temporary file, instead we should use pipes [2].<br />
We should avoid eval [2].<br />
Using the double brackets, instead of single one ([[... ]]) it is comment on the script above [1].<br />
$REPLY can be used to read the previous value of the dir and pattern variable [1].<br />
We can use instead of find, while read contracture (loop) [1]. Find &#8211; can be set with a cycle, for or while to check the validation of the file and the directory/path, also comment on the script or using “$pattern” /tmp/listing [1].<br />
No sensitization of the input, the user can put any value and therefore, execute any command to create another command.<br />
As we can see above the script it looks like that it is security vulnerable. If we want to<br />
implement the security in the script we should implement the above changes into the script.</p>
<h2>Reference:</h2>
<p>[1] Mendel Cooper, 30 April 2011. Advanced Bash-Scripting Guide; An in-depth exploration of the art of shell scripting. Retrieved from: <a href="http://tldp.org/LDP/abs/html/index.html" target="_blank">http://tldp.org/LDP/abs/html/index.html</a><br />
[2] Lecture 8 slides Scripting, Meelis Roos. Retrieved from file: 08-scripting.pdf</p>
]]></content:encoded>
			<wfw:commentRss>http://predragtasevski.com/cybersecurity/security-programing-techniques/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Honeypot document</title>
		<link>http://predragtasevski.com/malware/honeypot-document/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=honeypot-document</link>
		<comments>http://predragtasevski.com/malware/honeypot-document/#comments</comments>
		<pubDate>Thu, 16 Feb 2012 08:00:01 +0000</pubDate>
		<dc:creator>pece</dc:creator>
				<category><![CDATA[Malware]]></category>
		<category><![CDATA[honeypot document]]></category>

		<guid isPermaLink="false">http://predragtasevski.com/?p=338</guid>
		<description><![CDATA[INTRODUCTION The main goal of laboratory report is to identify possible leaked/stolen information, documents from our system without recognising that attacker had an access. Thus access of the document will inform us immediately with the information of the burglar. The &#8230; <a href="http://predragtasevski.com/malware/honeypot-document/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h1>INTRODUCTION</h1>
<p>The main goal of laboratory report is to identify possible leaked/stolen information,<br />
documents from our system without recognising that attacker had an access. Thus access of the document will inform us immediately with the information of the burglar. The report should highlight the following aspects:</p>
<p>&nbsp;</p>
<ul>
<li>Constructed an document as non malicious code, for instance honey document that will help us to track from where, who, information about the system, etc. is using our document.</li>
<li>Detail description of process, how did we build the document and the idea behind the tracking system.</li>
<li>Description of needed infrastructure that is tracking the document.<span id="more-338"></span></li>
</ul>
<p>The laboratory report is created by a team of 7 members. Where each member had<br />
own task to accomplish.<br />
Moreover, to be more contingent the unknown person has gain access to our<br />
computer/laptop. Thereby he is looking for interesting name of file, folder, etc. that most<br />
likely will have a content of interesting data, information for his purpose. After he<br />
downloaded file/folder from our system the intruder will open this file in his system<br />
assuming that contains very important personal/corporate information. However, by<br />
opening this file/folder, document it will send us immediately leaked information about his<br />
system to our server and additionally an e-mail. This process and procedures that are<br />
behind the honeypot document, or with other words trap set to detect, deflect, or in some<br />
manner counteract attempts at unauthorized use of information systems [1] is described in following sections.<br />
Furthermore, the coding of the honeypot document is done in HTML file with<br />
additional java script queries, where detail information and construction are displayed in<br />
Honeypot section.<br />
Meanwhile in Appendix section we provide the code of the honeypot document and<br />
additional what is the leaked/collected information of the intruder system, with other word,<br />
content illustration of mail and server logs.</p>
<p>Finally the conclusion made of the laboratory report will be concise in summary<br />
section.</p>
<h1>HONEYPOT IDEA</h1>
<p>HTML file We can name the file online banking or etc. cause it is html and it is more<br />
convincing way that the attacker will assume that this is an not only a online banking link<br />
but yet an the stored cookies and other leaked information.<br />
The honeypot file has inline javascript that will collect as much information as it can<br />
from the users browser, make it into a JSON object and create a request to our server<br />
using that information. The request will return an image, so nothing will be broken,<br />
however on our server we decode the information and send ourselves an alert email, that<br />
someone has accessed that document and where the accessing came from. There is also an image embedded that requests it from our server- these requests are logged and we see the IP address of the opener. This is as a backup in case the user doesn’t allow<br />
javascript to execute.<br />
<em><strong>How we lure an attacker into trap</strong></em><br />
To discover the identity of attacker and get information, she/he has to open html file.<br />
Besides setting up honeypot from technical point of view, we have to make document<br />
attractive.<br />
On our system all the documents will be protected by (different) passwords. We can<br />
have same password for files with same extensions (for example, for PDFs or for MS Word documents).<br />
In html file, we store these passwords. The name of html document should be<br />
corresponding (“file passwords” for example). Attacker will need additional time to crack<br />
the passwords, so we are offering easy, quick way to get over additional obstacles.<br />
Actually, in html file passwords should be correct not no make the attacker suspicious.<br />
Attacker may be suspicious why we stored this kind of information in html file, but it<br />
can be explained with the following reasons: a) to open html (with notepad or browser for<br />
example) is quicker than opening .pdf and .doc (by Adobe Reader and MS Word<br />
respectively) b) html has different extension (.html) that PDF or MS Word documents, so it has different icon in GUI. If you put a lot of different files in a folder, html is much easier to find with a glance among PDFs and DOCs.</p>
<p><em><strong>What information we get</strong></em></p>
<p>The honeypot is scripted to give us the following information about the attacker: first of all IP address. Time, when the attacker accessed the honeypot file.<br />
Except that, we also get information about user agent, OS, language and other details<br />
about attacker’s system. For this concrete task that should be enough. The script is configurable to get some additional information too. As our plan is to simply gather information on our infiltrator, it is essential to avoid being malicious with our code. It will not alter target’s system or bypass any restrictions of it. The solution will not announce itself and will be as stealthy as possible.<br />
The information is sent to mail. For the example of sent e-mail, please refer to Appendix 2.</p>
<h1>HONEYPOT INFRASTRUCTURE</h1>
<p>We need a Web server running PHP. The PHP script will collect the JSON data received<br />
from the attacker, format it nicely and send via email to people who will process it. If<br />
JavaScript is not enabled on the attacker’s side we rely on the fact that a picture is<br />
accessed from the honeypot html file. The server has to serve this image and the request<br />
for it of course appears in the web server access logs. This information again is processed by the same PHP script mentioned above and forwarded to analysts. Another alternative way to inform security personnel about this honeypot image being accessed is the Simple Event Corelator (SEC) written by Risto Vaarandi [2]. This software is freely available under GPL license. We could write a rule for SEC that would monitor the web server access log file for the specific image file request and send an email with the IP address from which the image was accessed. The rule that is used for SEC can be found in Appendix 3. The content we are looking for in the log file may look like this:</p>
<pre class="brush: php">192.168.1.34 - - [07/Dec/2011:19:16:07 +0200] &quot;GET /honey.png HTTP/1.1&quot; 200 1932</pre>
<h1>SUMMARY</h1>
<p>Nowadays the most common vector in unauthorized access into the system is followed by stealing important data, either is from personal computer or corporate network. Therefore, solution of implementing a trap for detecting, and deflecting the attacker of collecting valuable information is important. This laboratory report consists solution for future detection, by creating an honeypot document that will help us to collect data from the attacker. The document it self it is not an malicious code, likewise does not corrupt or infect the attacker system. Solution provided above is designed with an simple infrastructure which help us to identify identity of attacker in different operation system.<br />
Moreover, the honeypot document provides us an information of what is the attacker<br />
or user of this document operation system, which browser he is using, what plugins are<br />
installed in the browser and additional the time of accessing the file and attached IP<br />
address. Thereby, by identifying the above information will guide us in further steps. For<br />
instance by identifying his IP address we can find his location, ISP, etc.<br />
However, is this above provided information enough? The answer to the question is<br />
simple, indeed it is, cause we don’t need more. The idea in this laboratory is not to find or<br />
assail the attacker, but it is just to identify, and realize that someone had an unauthorized<br />
access to the system and to distinguish his identity.<br />
Consequently, from the above we can conclude that we rather gather the<br />
information from the attacker then to attack him back.</p>
<h1>APPENDICES</h1>
<p>Appendix 1 is the HTML and Java script code presented and in addition in Appendix 2 we<br />
present the e-mail received after the attacker has open the document. SEC are described<br />
in Appendix 3</p>
<h2>Appendix 1</h2>
<p>HTML + Java script code presented below:</p>
<pre class="brush: php">&amp;lt;!--
To change this template, choose Tools | Templates
and open the template in the editor.
--&amp;gt;
&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;
&amp;lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;
var JSON;JSON||(JSON={});
(function(){function k(a){return 10&amp;gt;a?&quot;0&quot;+a:a}function o(a){p.lastIndex=0;return
p.test(a)?&#039;&quot;&#039;+a.replace(p,function(a){var c=r[a];return&quot;string&quot;===typeof c?c:&quot;\\u&quot;+
(&quot;0000&quot;+a.charCodeAt(0).toString(16)).slice(-4)})+&#039;&quot;&#039;:&#039;&quot;&#039;+a+&#039;&quot;&#039;}function m(a,j){var
c,d,h,n,g=e,f,b=j[a];b&amp;amp;&amp;amp;&quot;object&quot;===typeof b&amp;amp;&amp;amp;&quot;function&quot;===typeof
b.toJSON&amp;amp;&amp;amp;(b=b.toJSON(a));&quot;function&quot;===typeof i&amp;amp;&amp;amp;(b=i.call(j,a,b));switch(typeof b)
{case &quot;string&quot;:return o(b);case &quot;number&quot;:return isFinite(b)?&quot;&quot;+b:&quot;null&quot;;case
&quot;boolean&quot;:case &quot;null&quot;:return&quot;&quot;+b;
case &quot;object&quot;:if(!b)return&quot;null&quot;;e+=l;f=[];if(&quot;[object
Array]&quot;===Object.prototype.toString.apply(b))
{n=b.length;for(c=0;c&amp;lt;n;c+=1)f[c]=m(c,b)||&quot;null&quot;;h=0===f.length?&quot;[]&quot;:e?&quot;[\n&quot;+e+f.join(&quot;
,\n&quot;+e)+&quot;\n&quot;+g+&quot;]&quot;:&quot;[&quot;+f.join(&quot;,&quot;)+&quot;]&quot;;e=g;return h}if(i&amp;amp;&amp;amp;&quot;object&quot;===typeof i)
{n=i.length;for(c=0;c&amp;lt;n;c+=1)&quot;string&quot;===typeof i[c]&amp;amp;&amp;amp;(d=i[c],(h=m(d,b))&amp;amp;&amp;amp;f.push(o(d)+
(e?&quot;: &quot;:&quot;:&quot;)+h))}else for(d in
b)Object.prototype.hasOwnProperty.call(b,d)&amp;amp;&amp;amp;(h=m(d,b))&amp;amp;&amp;amp;f.push(o(d)+(e?&quot;: &quot;:&quot;:&quot;)
+h);h=0===f.length?&quot;{}&quot;:e?&quot;{\n&quot;+e+f.join(&quot;,\n&quot;+
e)+&quot;\n&quot;+g+&quot;}&quot;:&quot;{&quot;+f.join(&quot;,&quot;)+&quot;}&quot;;e=g;return h}}if(&quot;function&quot;!==typeof
Date.prototype.toJSON)Date.prototype.toJSON=function(){return isFinite(this.valueOf())?
this.getUTCFullYear()+&quot;-&quot;+k(this.getUTCMonth()+1)+&quot;-&quot;+k(this.getUTCDate())
+&quot;T&quot;+k(this.getUTCHours())+&quot;:&quot;+k(this.getUTCMinutes())+&quot;:&quot;+k(this.getUTCSeconds())
+&quot;Z&quot;:null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=fun
ction(){return this.valueOf()};var q=/
[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufe
ff\ufff0-\uffff]/g,
p=/
[\\\&quot;\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\
u2060-\u206f\ufeff\ufff0-\uffff]/g,e,l,r={&quot;\u0008&quot;:&quot;\\b&quot;,&quot;\t&quot;:&quot;\\t&quot;,&quot;\n&quot;:&quot;\\n&quot;,&quot;\u000c&quot;
:&quot;\\f&quot;,&quot;\r&quot;:&quot;\\r&quot;,&#039;&quot;&#039;:&#039;\\&quot;&#039;,&quot;\\&quot;:&quot;\\\\&quot;},i;if(&quot;function&quot;!==typeof
JSON.stringify)JSON.stringify=function(a,j,c){var d;l=e=&quot;&quot;;if(&quot;number&quot;===typeof
c)for(d=0;d&amp;lt;c;d+=1)l+=&quot; &quot;;else&quot;string&quot;===typeof c&amp;amp;&amp;amp;(l=c);if((i=j)&amp;amp;&amp;amp;&quot;function&quot;!==typeof
j&amp;amp;&amp;amp;(&quot;object&quot;!==typeof j||&quot;number&quot;!==typeof j.length))throw
Error(&quot;JSON.stringify&quot;);return m(&quot;&quot;,
{&quot;&quot;:a})};if(&quot;function&quot;!==typeof JSON.parse)JSON.parse=function(a,e){function c(a,d){var
g,f,b=a[d];if(b&amp;amp;&amp;amp;&quot;object&quot;===typeof b)for(g in
b)Object.prototype.hasOwnProperty.call(b,g)&amp;amp;&amp;amp;(f=c(b,g),void 0!==f?b[g]=f:delete
b[g]);return e.call(a,d,b)}var
d,a=&quot;&quot;+a;q.lastIndex=0;q.test(a)&amp;amp;&amp;amp;(a=a.replace(q,function(a){return&quot;\\u&quot;+
(&quot;0000&quot;+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:
{}\s]*$/.test(a.replace(/\\(?:[&quot;\\\/bfnrt]|u[0-9a-fA-F]
{4})/g,&quot;@&quot;).replace(/&quot;[^&quot;\\\n\r]*&quot;|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
&quot;]&quot;).replace(/(?:^|:|,)(?:\s*\[)+/g,&quot;&quot;)))return d=eval(&quot;(&quot;+a+&quot;)&quot;),&quot;function&quot;===typeof
e?c({&quot;&quot;:d},&quot;&quot;):d;throw new SyntaxError(&quot;JSON.parse&quot;);}})();
&amp;lt;/script&amp;gt;
&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;
var l=window.navigator,q={},a={},r={};delete l.geolocation;for(var i in
l.plugins)a[i]={},a[i].description=l.plugins[i].description,a[i].filename=l.plugins[i].
filename,a[i].name=l.plugins[i].name;delete l.plugins;delete
l.mimeTypes;q.plugins=a;q.nav=l;var h=JSON.stringify(q),s=&quot;?
i=&quot;+encodeURIComponent(h);document.write(&#039;&amp;lt;img
src=&quot;http://78.47.222.185/honey.php&#039;+s+&#039;&quot; /&amp;gt;&#039;);
&amp;lt;/script&amp;gt;
&amp;lt;div&amp;gt;TODO write content&amp;lt;/div&amp;gt;
&amp;lt;img src=&quot;http://78.47.222.185/honey.png&quot; /&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
</pre>
<h2>Appendix 2</h2>
<p>What we receive via email:</p>
<pre class="brush: php">

stdClass Object
(
[plugins] =&amp;gt; stdClass Object
(
[0] =&amp;gt; stdClass Object
(
[description] =&amp;gt; Shockwave Flash 11.1 r102
[filename] =&amp;gt; gcswf32.dll
[name] =&amp;gt; Shockwave Flash
)
[1] =&amp;gt; stdClass Object
(
[description] =&amp;gt; Shockwave Flash 11.1 r102
[filename] =&amp;gt; NPSWF32.dll
[name] =&amp;gt; Shockwave Flash
)
[2] =&amp;gt; stdClass Object
(
[description] =&amp;gt; NPRuntime Script Plug-in Library for Java(TM)
Deploy
[filename] =&amp;gt; npdeployJava1.dll
[name] =&amp;gt; Java Deployment Toolkit 7.0.10.8
)
[3] =&amp;gt; stdClass Object
(
[description] =&amp;gt; 4.0.60831.0
[filename] =&amp;gt; npctrl.dll
[name] =&amp;gt; Silverlight Plug-In
)
[4] =&amp;gt; stdClass Object
(
[description] =&amp;gt;
[filename] =&amp;gt; internal-remoting-viewer
[name] =&amp;gt; Remoting Viewer
)
[5] =&amp;gt; stdClass Object
(
[description] =&amp;gt;
[filename] =&amp;gt; ppGoogleNaClPluginChrome.dll
[name] =&amp;gt; Native Client
)
[6] =&amp;gt; stdClass Object
(
[description] =&amp;gt;
[filename] =&amp;gt; pdf.dll
[name] =&amp;gt; Chrome PDF Viewer
)
[7] =&amp;gt; stdClass Object
(
[description] =&amp;gt; DivX VOD Helper Plug-in
[filename] =&amp;gt; npovshelper.dll
[name] =&amp;gt; DivX VOD Helper Plug-in
)
[8] =&amp;gt; stdClass Object
(
[description] =&amp;gt; DivX Plus Web Player version 2.1.3.529
[filename] =&amp;gt; npdivx32.dll
[name] =&amp;gt; DivX Plus Web Player
)
[9] =&amp;gt; stdClass Object
(
[description] =&amp;gt; Allows digital signing with Estonian ID cards
[filename] =&amp;gt; npesteid-firefox-plugin.dll
[name] =&amp;gt; EstEID Firefox plug-in
)
[10] =&amp;gt; stdClass Object
(
[description] =&amp;gt; Google Update
[filename] =&amp;gt; npGoogleUpdate3.dll
[name] =&amp;gt; Google Update
)
[11] =&amp;gt; stdClass Object
(
[description] =&amp;gt; Provides functionality for installing third-party
plug-ins
[filename] =&amp;gt; default_plugin
[name] =&amp;gt; Default Plug-in
)
[length] =&amp;gt; stdClass Object
(
)
[item] =&amp;gt; stdClass Object
(
[name] =&amp;gt; item
)
[namedItem] =&amp;gt; stdClass Object
(
[name] =&amp;gt; namedItem
)
[refresh] =&amp;gt; stdClass Object
(
[name] =&amp;gt; refresh
)
)
[nav] =&amp;gt; stdClass Object
(
[vendorSub] =&amp;gt;
[product] =&amp;gt; Gecko
[userAgent] =&amp;gt; Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2
(KHTML, like Gecko) Chrome/15.0.874.121 Safari/535.2
[language] =&amp;gt; en-US
[productSub] =&amp;gt; 20030107
[appVersion] =&amp;gt; 5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like
Gecko) Chrome/15.0.874.121 Safari/535.2
[onLine] =&amp;gt; 1
[platform] =&amp;gt; Win32
[vendor] =&amp;gt; Google Inc.
[appCodeName] =&amp;gt; Mozilla
[cookieEnabled] =&amp;gt; 1
[appName] =&amp;gt; Netscape
)
)
TIME-1323861098
IP- xxx.xxx.xxx.xxx
</pre>
<h2>Appendix 3</h2>
<p>SEC rule file for web server log monitoring (will work only for IPv4). Alerts the root user via email and suppresses alerts for one hours for the same IP address</p>
<pre class="brush: php">type=SingleWithSuppress
ptype=RegExp
pattern=^((?:[\d]{1,3}\.){3})\.[\d]) .+ GET /honey.png
desc=Honeypot picture file accessed from $1
action=pipe mail ‘%s’ mail root@localhost
window=3600</pre>
<h1>Bibliography</h1>
<p>1: Wikipedia, Honeypot (computing), 4 December 2011,<br />
<a href="http://en.wikipedia.org/wiki/Honeypot_(computing)" target="_blank">http://en.wikipedia.org/wiki/Honeypot_(computing)</a><br />
2: Risto Vaarandi, SEC man page, NA, <a href="http://simple-evcorr.sourceforge.net/man.html" target="_blank">http://simple-evcorr.sourceforge.net/man.html</a></p>
<p>The above post is written by: Predrag Tasevski, Robert Pallas, Kuuno Pärnoja, Mikheil Basilaia, Karl Düüna, Roman Stepanenko and Heliand Dema</p>
]]></content:encoded>
			<wfw:commentRss>http://predragtasevski.com/malware/honeypot-document/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Identify Possible Infection of Malware Into the Wireshark Capture File</title>
		<link>http://predragtasevski.com/malware/malware-wireshark-capture/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=malware-wireshark-capture</link>
		<comments>http://predragtasevski.com/malware/malware-wireshark-capture/#comments</comments>
		<pubDate>Thu, 09 Feb 2012 10:08:37 +0000</pubDate>
		<dc:creator>pece</dc:creator>
				<category><![CDATA[Malware]]></category>
		<category><![CDATA[capture file]]></category>
		<category><![CDATA[cyber security]]></category>
		<category><![CDATA[infection]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[online]]></category>
		<category><![CDATA[wireshark]]></category>

		<guid isPermaLink="false">http://predragtasevski.com/?p=330</guid>
		<description><![CDATA[INTRODUCTION The main goal of laboratory report is to identify possible infection of malware into the wireshark capture file. The report should highlight the following aspects: • Download https://sim.cert.ee/hw/download.pcap • Find malware download in this pcap and extract malware or &#8230; <a href="http://predragtasevski.com/malware/malware-wireshark-capture/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h1>INTRODUCTION</h1>
<p>The main goal of laboratory report is to identify possible infection of malware into the<br />
wireshark capture file. The report should highlight the following aspects:<br />
• Download <a href="https://sim.cert.ee/hw/download.pcap" target="_blank">https://sim.cert.ee/hw/download.pcap</a><br />
• Find malware download in this pcap and extract malware or malwares find out<br />
where malware was downloaded from.<br />
• What malware, malwares changes in system.<br />
• C&amp;C Names and address.<br />
• Document the process also where You found hints and how exactly You did it (you<br />
need to show Your thought and communication process &#8211; please write a summary of<br />
it.)<br />
• Write an incident report.<span id="more-330"></span><br />
Moreover, we have to consider the malware analysis report reminders, please refer<br />
to [1] or [2].<br />
Additional, analysis it is stated into the Analysis section, where we explain the<br />
techniques, filter tools, gather knowledge, links, etc. Structure of the laboratory report is<br />
first to present analysis with details information. Malware and infections description are<br />
described.<br />
Finally the conclusion made of all analysis will be concise in summary section.</p>
<h1>ANALYSIS</h1>
<p>To be able to open and use the above file, firstly we have to download the wireshark tool.<br />
Where the main goal and purpose for wireshark application is to analysis a network<br />
protocols from captured file. Therefore please refer to the following link: <a href="http://www.wireshark.org/" target="_blank">http://www.wireshark.org/</a><br />
Useful links for future use, please refer to [3], [4], [5] and [6]. On figure 1 it shows<br />
the Graphic Interface of Wireshark application with running filter: http protocol.</p>
<div id="attachment_331" class="wp-caption aligncenter" style="width: 594px"><img class="size-large wp-image-331" title="Illustration 1: Wireshark application, filter: http protocol" src="http://predragtasevski.com/wp-content/uploads/pic1-1024x553.png" alt="Illustration 1: Wireshark application, filter: http protocol" width="584" height="315" /><p class="wp-caption-text">Illustration 1: Wireshark application, filter: http protocol</p></div>
<p>However, from the figure 1 we can see that there is a lot of traffic generated by the<br />
user. Therefore we have to apply and additional filter rules, which will help and guide for<br />
better and easy analysis. As we go through each generated http protocol traffic we can<br />
conclude that the user generated and has been visiting different source, where can be<br />
potential threat for the organization and personal use with a different malicious code.</p>
<p>To be able to filter only the http protocols on port 80 with a header GET, we should<br />
use the following filter: http.request.method == &#8220;GET&#8221;. Where this filter will narrow down<br />
the results that are presented into the captured file. In spite of the filter above it helps a lot,<br />
yet there is still a lot of traffic generated, consequently we have to utilize an additional filter.</p>
<p>Another extremely useful wireshark option we used, was Analyze → Follow TCP<br />
Stream which shows communication between IP addresses in more readable and useful<br />
way: shows DNS name for the IP and if file was downloaded gives filetype and name.<br />
We discovered that IP address 79.137.237.34 belongs to accord-component.ru. When we<br />
accessed the site with various web browsers, all of them showed that it contained<br />
malware.</p>
<pre class="brush: php">
GET /serial/index.php HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET
CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
Connection: Keep-Alive
Host: accord-component.ru
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 30 Nov 2011 23:07:18
GMTContent-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/5.3.2
Content-Encoding: gzip
</pre>
<p>Another suspicious IP was 86.63.168.101, where from this IP address brought us to<br />
domain name zumlelao.com, but it was un-accessible from browsers. Wireshark showed the User downloaded file 4.exe from zumlelao.com.</p>
<pre class="brush: php">
GET /load.php?file=0
HTTP/1.1Accept: image/jpeg, application/x-ms-application, image/gif,
application/xaml+xml, image/pjpeg, application/x-ms-xbap, */*
Accept-Language: et
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET
CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
Accept-Encoding: gzip, deflate
Host: zumlelao.com
Connection: Keep-AliveHTTP/1.1 200 OK
Date: Wed, 30 Nov 2011 21:55:02
GMTServer: Apache/2
X-Powered-By: PHP/5.2.17
Cache-Control: public
Content-Disposition: attachment; filename=4.exe
Content-Transfer-Encoding: binary
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 10666
Keep-Alive: timeout=1, max=100
Connection: Keep-Alive
Content-Type: application/octet-stream
</pre>
<p>Additionally, we can always use an Find function, which will help as to identify<br />
certain traffic or site. Figure 2 demonstrated the usage of the Find function, accessible<br />
from menu Edit → Find.</p>
<div id="attachment_332" class="wp-caption aligncenter" style="width: 442px"><img class="size-full wp-image-332" title="Illustration 2: Wireshark, Find function" src="http://predragtasevski.com/wp-content/uploads/pic2.png" alt="Illustration 2: Wireshark, Find function" width="432" height="239" /><p class="wp-caption-text">Illustration 2: Wireshark, Find function</p></div>
<p>Other IP addresses that were generated/extracted first the ones with malware<br />
detected:79.137.237.34 -accord-component.ru; 86.63.168.101 zumlelao.com. Other IP&#8217;s<br />
are: 173.194.32.32 (33,34,41,50,51,52,58,59,60,63), 192.168.123.1, 193.184.164.159<br />
(174,176,185), 193.40.252.83, 193.88.71.156, 194.126.108.69 (70), 194.126.124.136,<br />
194.204.14.49, 195.222.15.74, 199.7.48.190, 209.85.173.95, 123.168.24.204 (209,221,225,229,235), 79.137.237.34, 80.252.91.41 (61), 69.171.228.11, 23.32.89.55, 23.32.99.172, 216.34.181.45 (48), 213.168.24.26, 90.190.148.34 (40), 86.63.168.101, 82.98.58.48, 81.19.238.61.</p>
<p>If we run or analysis the above domain names into the google we will automatic<br />
indicated that the zumlelao.com it is an before reported as a malware site and the second<br />
too. Therefore the analysis and the infection of details of malware are highlighted into the<br />
next section.</p>
<h1>INFECTION</h1>
<p>Indeed, the above captured file presents traffic generated by the user, that can be threat<br />
for the organization, home user, etc. As from the previous section demonstrates how to<br />
identify if the generated traffic has infected or has the user visit the malicious code sites.<br />
This section identifies the malicious code and displays their details.<br />
Moreover, the zumlelao.com host it is reported previous as malicious code site. For<br />
this purpose we gather the help from the following link: <a href="http://sopport.clean-mx.de/" target="_blank">http://sopport.clean-mx.de/</a>. Here is<br />
the reported malicious, suspicious code from the above host in the table bellow.</p>
<table border="1">
<tbody>
<tr>
<td><strong>URL</strong></td>
<td><strong>Virus name</strong></td>
<td><strong>IP Initial</strong></td>
<td><strong>Link</strong></td>
</tr>
<tr>
<td>http://zumlelao.com/oad.php?file=grabbers</td>
<td>0/40(0.0%) unknown_htm</td>
<td>86.63.168.101</td>
<td><a href="http://support.clean-mx.de/clean-mx/viruses?id=1108452" target="_blank">http://support.clean-mx.de/clean-mx/viruses?id=1108452</a></td>
</tr>
<tr>
<td>http://zumlelao.com/2.exe</td>
<td>13/40 (32.5%) TR/TDss.77.1</td>
<td>86.63.168.101</td>
<td><a href="http://support.clean-mx.de/clean-mx/viruses?id=1108438" target="_blank">http://support.clean-mx.de/clean-mx/viruses?id=1108438</a></td>
</tr>
<tr>
<td>http://zumlelao.com/load.php?file=0</td>
<td>20/40 (50%) TR/Crypt.XPACK.Gen3</td>
<td>86.63.168.101</td>
<td><a href="http://support.clean-mx.de/clean-mx/viruses?id=1108442" target="_blank">http://support.clean-mx.de/clean-mx/viruses?id=1108442</a></td>
</tr>
</tbody>
</table>
<p>Furthermore, figure 3 is proving the analysis made through the wireshark, were one<br />
of the above links has been access, for more details clink on the above link and points in a figure 3:A and B.</p>
<div id="attachment_333" class="wp-caption aligncenter" style="width: 594px"><img class="size-large wp-image-333" title="Illustration 3: Prove of generating traffic of following malware link: http://zumlelao.com/load.php? file=0 were B and A are proving the links and the IP initiation." src="http://predragtasevski.com/wp-content/uploads/pic3-1024x553.png" alt="Illustration 3: Prove of generating traffic of following malware link: http://zumlelao.com/load.php? file=0 were B and A are proving the links and the IP initiation." width="584" height="315" /><p class="wp-caption-text">Illustration 3: Prove of generating traffic of following malware link: http://zumlelao.com/load.php? file=0 were B and A are proving the links and the IP initiation.</p></div>
<p>Moreover, to get the file itself for analysis, we used Netresec&#8217;s Network Miner 2.1<br />
http://www.netresec.com/?page=NetworkMiner. In Files menu, it shows all packets as files.<br />
We uploaded 4.exe.octet-stream to virustotal.com &#8211; 30 Antivirus software identified as<br />
malware Virustotal link: <a href="http://www.virustotal.com/file-scan/report.html?id=d6ee8736cd2eae8571b193b28b59dff33e9607237f78b0888d69c70f241bb04b- 1323098398" target="_blank">http://www.virustotal.com/file-scan/report.html?id=d6ee8736cd2eae8571b193b28b59dff33e9607237f78b0888d69c70f241bb04b-<br />
1323098398</a><br />
MD5 : 94a7f6430510fe7314c1e746bad79bf4<br />
SHA1 : 69ab04c9c586a8cf07a00665e160a48260a2465e<br />
SHA256: d6ee8736cd2eae8571b193b28b59dff33e9607237f78b0888d69c70f241bb04b<br />
F-Secure identified malware as Trojan.Generic.KD.438472</p>
<p>Trojan.Generic.KD malwares usually are classified as Backdoors. It infects<br />
executable files in the system and its main goal is to make backdoor into the system. It<br />
changes registry. In some cases it can put payload on the infected system, slow it down<br />
and make internet browsing difficult and time consuming. Aim of the malware can be<br />
stealing information or gaining partial/full access of the victim&#8217;s system. On the other hand, Trojan.Generic.KD malwares are difficult to remove from infected computers.<br />
From VirusTotal analysis we can see that various antivirus software can discover<br />
and identify Trojan.Generic.KD.438472. Therefore one can remove malware by<br />
downloading antivirus software provided by F-Secure, Comodo, Microsoft, Sophos,<br />
Symantec, DrWeb, etc. Here is an example from Dr.Web how to delete Trojan.Generic.KD malware <a href="http://www.drwebhk.com/en/virus_removal/694829/Trojan.Generic.KD.53986.html" target="_blank">http://www.drwebhk.com/en/virus_removal/694829/Trojan.Generic.KD.53986.html</a><br />
For our case we downloaded Dr.Web CureIt (free edition for home PCs, which discovered<br />
the malware and removed it) &#8211; <a href="http://www.freedrweb.com/download+cureit/?nc=t&amp;lng=en" target="_blank">http://www.freedrweb.com/download+cureit/?nc=t&amp;lng=en</a>.<br />
Before continuing to disinfect the system, please read and understand the massage<br />
delivered through this forum: <a href="http://forums.majorgeeks.com/showthread.php?t=35407" target="_blank">http://forums.majorgeeks.com/showthread.php?t=35407</a>.</p>
<h1>SUMMARY</h1>
<p>Nowadays malicious codes, infection of the system is one of the highest vector of<br />
production work everyday of the organizations. Therefore, different approaches, advance<br />
analysis, troubleshooting, etc. has to be applicable and stated in every organization.<br />
Leaking of data, information, access of network (internal and external) can be very harmful for organization and even the home usage of computers. Therefore, this laboratory report main aim is to provide the reader to be able to conduct advance analysis of system and their identification of infection within the wireshark network analysis tool.</p>
<p>From the above sections in Analysis and in the Infection we have to follow the steps<br />
and links that will help us for a further work. Meanwhile, the captured generated traffic from the distributed file has indeed indicated that the system it is infected. Were as an prove we demonstrate an screen-shot, figure 3, that one of the infected link has been visited. Likewise, the system of this user is infected. Thus infection identified name is:<br />
TR/Crypt.XPACK.Gen3, where we do supply and the disinfecting stepwise solution with the above link.<br />
Closing, as there are many different ways, tools, process for analysing the malicious<br />
code behaviours in system this laboratory report is supplying the reader with advance and<br />
stepwise solution for identifying the infection of the system within advance network<br />
analysis wireshark application.</p>
<h1>WORKLOAD</h1>
<p>We made analysis on the virtual Windows 7 machine. For virtualization we used<br />
VirtualBox. During analysis each of group member did the same analysis to cross-<br />
reference the results.<br />
We basically used the following tools: Wireshark, Network Miner and <a href="http://virustotal.com" target="_blank">virustotal.com</a>.</p>
<h1>Bibliography</h1>
<p>1: Lenny Zeltser, Reverse-Engineering: Malware Analysis Tools and Techniques Training, 2011, <a href="http://zeltser.com/reverse-malware/" target="_blank">http://zeltser.com/reverse-malware/</a><br />
2: Lenny Zeltser, Malware analysis report reminders, 2011, <a href="http://zeltser.com/reverse- malware/malware-analysis-report-template.mm" target="_blank">http://zeltser.com/reverse-<br />
malware/malware-analysis-report-template.mm</a><br />
3: Kevin, Malware Analysis &amp; Malware Reverse Engineering, NA, <a href="http://technology- flow.com/articles/windows-malware-analysis/" target="_blank">http://technology-<br />
flow.com/articles/windows-malware-analysis/</a><br />
4: Chris Greer, Top 10 Wireshark Filters, April 2010,<br />
<a href="http://www.lovemytool.com/blog/2010/04/top-10-wireshark-filters-by-chris-greer.html" target="_blank">http://www.lovemytool.com/blog/2010/04/top-10-wireshark-filters-by-chris-greer.html</a><br />
5: Russ McRe, Security Analysis with Wireshar, November 2006<br />
6: Chief Banana, Using Wireshark filters for capturing malware, Marh 2011,<br />
<a href="http://securitybananas.com/?p=529" target="_blank">http://securitybananas.com/?p=529<br />
</a></p>
<p>The above post is written by Predrag Tasevski and Mikheil Basilaia</p>
<p>Shorter link: <a href="http://predragtasevski.com/?p=330">http://predragtasevski.com/?p=330</a></p>
]]></content:encoded>
			<wfw:commentRss>http://predragtasevski.com/malware/malware-wireshark-capture/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Virtual Machine Malware / Malicious Analysis</title>
		<link>http://predragtasevski.com/cybersecurity/virtual-machine-malware-malicious-analysis/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=virtual-machine-malware-malicious-analysis</link>
		<comments>http://predragtasevski.com/cybersecurity/virtual-machine-malware-malicious-analysis/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 18:54:11 +0000</pubDate>
		<dc:creator>pece</dc:creator>
				<category><![CDATA[Cyber Security]]></category>
		<category><![CDATA[Log Mining]]></category>
		<category><![CDATA[Malware]]></category>
		<category><![CDATA[malicious analysis]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[malware analysis]]></category>
		<category><![CDATA[virtual machine]]></category>
		<category><![CDATA[virtual machine analysis]]></category>

		<guid isPermaLink="false">http://predragtasevski.com/?p=307</guid>
		<description><![CDATA[INTRODUCTION The main goal of laboratory report is to identify possible infection of two Windows 7 virtual machine. Virtual machines presented by the lecture: Win 1 Win 2 The assignment is following: Find out what is infecting the machine win1 &#8230; <a href="http://predragtasevski.com/cybersecurity/virtual-machine-malware-malicious-analysis/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h1>INTRODUCTION</h1>
<p>The main goal of laboratory report is to identify possible infection of two Windows 7 virtual<br />
machine. Virtual machines presented by the lecture:</p>
<ul>
<li>Win 1</li>
<li>Win 2</li>
</ul>
<p>The assignment is following:</p>
<p>Find out what is infecting the machine win1</p>
<ul>
<li>Understand which way is the current malware dangerous to &#8220;your organisation&#8221;</li>
<li>If possible, do clean win1</li>
<li>Is win2 clean or it has problems, too?</li>
<li>If needed, do clean win2<span id="more-307"></span></li>
</ul>
<p>Additionally, deliverable questions should be visible:</p>
<ul>
<li>Summary &#8211; Your thoughts about the exercise. Please provide a short summary</li>
<li>Malware that infects machines</li>
<ul>
<li>Md5 hash &#8211; if it possible and if not, please explain, why.</li>
<li>Sha256 has -if it possible and if not, then please explain, why.</li>
<li>A description &#8211; in which way that malware is a threat to &#8220;You organization&#8221;</li>
</ul>
<li>Tools You used to find the infection(s)</li>
<li>Tools You used to clean machine(s)</li>
<li>Where You found hints and how exactly You did it (you need to show Your thought and communication process &#8211; please write a summary of it.)</li>
<li>How would you evaluate your partner.</li>
</ul>
<p>Moreover, we have to consider the malware analysis report reminders, please refer to [1] or [2].</p>
<p>Furthermore, each virtual machine will be analysed with different tools, in case to<br />
gather more information and solution for disinfecting process.<br />
Structure of the laboratory report is first to present each virtual machine with details information in section Virtual Machine&#8217;s, Each visualization is examined. Malware and disinfection process are described. Meanwhile in appendices, we explain what virtual  environment and tools we have used for this written report.<br />
Finally the conclusion made of all analysis will be concise in summary section.</p>
<h1>VIRTUAL MACHINE&#8217;s</h1>
<p>In this section each virtual machines are going to be examine in sub-sections, analysis  and additionally the disinfection solutions, etc. will be presented. The tools that are used for conducting the analysis are presented in the Tools section.</p>
<h2>Win1</h2>
<p>Intense detail information are highlighted bellow and MD5 sum for Win1 virtual box<br />
machine:<br />
OS: Ms Windows 7 Professional<br />
Version: 6.1.7601 Service Pack 1 Build 7601<br />
System type: 32 bit<br />
Computer name: DoeM<br />
Users Names:</p>
<ul>
<li>Jane Doe</li>
<li>Jhon Doe</li>
</ul>
<p>MD5 Sum: 6313cf7303de37ba62aadf5208b6ea78</p>
<h2>Analysis</h2>
<p>The analysis starts firstly from the observations, then with an supporting figures, sample of<br />
identification, are there any dependencies and in closer with summary of the analysis.<br />
From analysis with a different tools we came to conclusion that the above virtual<br />
image it is infected with some malicious code. Were certain tools have provides as an information that there is background accessing to network. However, this analysis it is not enough so therefore we will do more inside investigation to come-out with the hosts or network that the malicious code is trying to access, or an information that is shared.</p>
<p>To be able to identify the behaviour of a network we have used the Wireshark tool.<br />
Bellow are highlighted the steps: Network adapter type: NAT, logged in as: John Doe,<br />
additionally Wireshark run as Administrator. Upon the testing, the only user application<br />
open on WIN1 is Notepad. No additional network activities from log-in user, also no<br />
network activities from user on Host System. Wireshark, it detected suspicious traffic:</p>
<ol>
<li>Classification: BAD TCP (according to Wireshark coloring rules), Destination: 192.168.0.254 / 8.8.4.4 (Googne Public DNS) with Protocol: DNS; Info: Standard query A <em><strong>mamtumbochka766.ru</strong></em> / Standard query A <em><strong>followmego12.ru</strong></em> / Standart query A <em><strong>losokorot7621.ru</strong></em> / standard query A<em><strong> hidemyfass87111.ru</strong></em> /; Reason for classification as BAD TCP: Header checksum incorrect, maybe caused by &#8220;IP checksum offload&#8221;, Message: Bad Cheksum, Severity level: Error</li>
<li> As a response, WIN1 machine got UDP packet (according to Wireshark coloring rules); Protocol: DNS; Info: Standard query response, Sever failure.</li>
<li>Additionally, Wireshark detected another round of BAD TCP packets; Classification: BAD TCP; Destination: 195.226.218.135; Protocol: TCP; Port: 50530; Info: HTTP ACK (before that, WIN1 sent ACK message, got SYN ACK and this packet was an ACK). Where during HTTP session, WIN1 machine received the following linebased text data: <strong>i5eOnJKV57mp5biuqK+0tri0tbW+uK+0qeDr57mp5b29uL6pr7ypurm5vqng6+e 5qeU=</strong>; Then WIN1 received FIN ACK message from server and send ACK and FIN  ACK. Session was finished.</li>
</ol>
<p>The session was repeated once in 3 minutes and received line-based text data, for<br />
all sessions was the same. For illustration please refer to the following link for more details<br />
of pcap life of wireshark: <a href="http://bit.ly/mDdqAQ" target="_blank">http://bit.ly/mDdqAQ</a>.</p>
<p>Additional log files and screen shots are presented bellow during the analysis with<br />
other tools that are listed in the sections of tools.</p>
<div id="attachment_308" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-308 " title="TCPView tool, YGLA.ru access to domain" src="http://predragtasevski.com/wp-content/uploads/TCPView-300x225.png" alt="Illustration 1: TCPView tool, YGLA.ru access to domain" width="300" height="225" /><p class="wp-caption-text">Illustration 1: TCPView tool, YGLA.ru access to domain</p></div>
<p>Furthermore, log illustration of hijackThis tool:</p>
<pre class="brush: php">Logfile of Trend Micro HijackThis v2.0.4
Scan saved at 20:35:44, on 27.11.2011
Platform: Windows 7 SP1 (WinNT 6.00.3505)
MSIE: Internet Explorer v8.00 (8.00.7601.17514)
Boot mode: Normal
Running processes:
C:\Windows\system32\taskhost.exe
C:\Windows\system32\Dwm.exe
C:\Windows\Explorer.EXE
C:\Windows\System32\VBoxTray.exe
C:\Windows\system32\SearchProtocolHost.exe
C:\Windows\system32\taskmgr.exe
C:\Users\Jhon Doe\Desktop\HijackThis.exe
R1 - HKCU\Software\Microsoft\Internet Explorer\Main,Search Page =

http://go.microsoft.com/fwlink/?LinkId=54896

R0 - HKCU\Software\Microsoft\Internet Explorer\Main,Start Page = about:blank
R1 - HKLM\Software\Microsoft\Internet Explorer\Main,Default_Page_URL =

http://go.microsoft.com/fwlink/?LinkId=69157

R1 - HKLM\Software\Microsoft\Internet Explorer\Main,Default_Search_URL =

http://go.microsoft.com/fwlink/?LinkId=54896

R1 - HKLM\Software\Microsoft\Internet Explorer\Main,Search Page =

http://go.microsoft.com/fwlink/?LinkId=54896

R0 - HKLM\Software\Microsoft\Internet Explorer\Main,Start Page =

http://go.microsoft.com/fwlink/?LinkId=69157

R0 - HKLM\Software\Microsoft\Internet Explorer\Search,SearchAssistant =
R0 - HKLM\Software\Microsoft\Internet Explorer\Search,CustomizeSearch =</pre>
<pre class="brush: php">R0 - HKCU\Software\Microsoft\Internet Explorer\Toolbar,LinksFolderName =</pre>
<pre class="brush: php">F3 - REG:win.ini: load=C:\Users\JHONDO~1\LOCALS~1\Temp\5b17fff70008a4e8.exe
O4 - HKLM\..\Run: [VBoxTray] C:\Windows\system32\VBoxTray.exe
O23 - Service: FJOSKX - Sysinternals - www.sysinternals.com -
C:\Users\JHONDO~1\AppData\Local\Temp\FJOSKX.exe
O23 - Service: Remote Packet Capture Protocol v.0 (experimental) (rpcapd) - CACE
Technologies, Inc. - C:\Program Files\WinPcap\rpcapd.exe
O23 - Service: SUUKATRPY - Sysinternals - www.sysinternals.com -
C:\Users\JHONDO~1\AppData\Local\Temp\SUUKATRPY.exe
O23 - Service: VirtualBox Guest Additions Service (VBoxService) - Oracle Corporation -
C:\Windows\system32\VBoxService.exe</pre>
<p>Alternatively, we turn to Process Explorer and Process Monitor from Sysinternals. In<br />
spite of comprehensive information and some suspicious activities, these tools were<br />
unable to show direct link to malware. We analyzed some suspicious DLLs and .exe files,<br />
but all of them appeared to be legitimate Windows files. Also ee turned to Security Task<br />
Manager by Neuber Software where it discovered file 061afffa0005f9e5.exe in<br />
C:\Users\JHONDO~1\LOCALS~1\Temp folder. Usually malware runs itself or is hidden in<br />
Temp folder. So weird name and location give us enough reason to think it&#8217;s malware.<br />
Additional information provided by Security Task Manager: Company: Not provided;<br />
Type: Program. Hidden; Starts: when Windows starts and Registry: win.ini.</p>
<p>Meanwhile, for advance analysis we have conduct with clean boot which is<br />
explained into the KB article in the following link:<a href=" http://support.microsoft.com/kb/929135" target="_blank"> http://support.microsoft.com/kb/929135</a>.<br />
Now we run the wireshark analysis network tool, where no more suspicious network traffic<br />
is identified. This means that the malicious code is running from 3rd party applications and<br />
not from Microsoft services or process.</p>
<p>Likelihood, to be able to identify the malicious code, threads in virtual machine, we<br />
recommend to run an online free virus scanning. Thus process is done by ESET free<br />
online tool scanning, refer to the following link:<a href=" http://www.eset.com/us/online-scanner/" target="_blank"> http://www.eset.com/us/online-scanner/</a>.<br />
The aim of this step is to help to identify if the threads have been registered in to the virus<br />
signature database. If so, this will be a useful information and will assist to continue with<br />
analysis.</p>
<pre class="brush: php">Eset Online scanner, found 20 threads:</pre>
<pre class="brush: php">C:\$Recycle.Bin\S-1-5-21-1301155936-2652204530-896827088-1000\$RIZWMML\spyeye-
1.2.60\c39bb188f2ac6534e75c6d961b9a78a2 Win32/Spy.SpyEye.BY trojan cleaned
by deleting - quarantined
C:\$Recycle.Bin\S-1-5-21-1301155936-2652204530-896827088-1000\$RIZWMML\spyeye-</pre>
<pre class="brush: php">1.2.99\92bf8b3eb04be42f6aba05d6b97e8f25 Win32/Spy.SpyEye.BY trojan cleaned
by deleting - quarantined
C:\$Recycle.Bin\S-1-5-21-1301155936-2652204530-896827088-1000\$RIZWMML\spyeye-
1.3.10\21da6142e3cd3979b7ef122ee638c78f a variant of Win32/Kryptik.MKM trojan
cleaned by deleting - quarantined
C:\$Recycle.Bin\S-1-5-21-1301155936-2652204530-896827088-1000\$RIZWMML\spyeye-
1.3.25\7822bbf0c8ea3e9a75a19e954a39d6c9 Win32/Spy.SpyEye.CA trojan cleaned
by deleting - quarantined
C:\$Recycle.Bin\S-1-5-21-1301155936-2652204530-896827088-1000\$RIZWMML\spyeye-
1.3.31\2bed4bbed303c91e2169b2f32db46acb.exe Win32/Spy.SpyEye.CA trojan cleaned
by deleting - quarantined
C:\$Recycle.Bin\S-1-5-21-1301155936-2652204530-896827088-1000\$RIZWMML\spyeye-
1.3.32\1686b7e48871dd715336c732cfc32c1d Win32/Spy.SpyEye.CA trojan cleaned
by deleting - quarantined
C:\$Recycle.Bin\S-1-5-21-1301155936-2652204530-896827088-1000\$RIZWMML\spyeye-
1.3.34\b2c3acf99f68c42626cf345b74095d51 a variant of Win32/Spy.SpyEye.CA trojan
cleaned by deleting - quarantined
C:\$Recycle.Bin\S-1-5-21-1301155936-2652204530-896827088-1000\$R387J1S IRC/SdBot
trojan cleaned by deleting - quarantined
C:\$Recycle.Bin\S-1-5-21-1301155936-2652204530-896827088-1000\$R6TYLIY a variant of
Win32/Kryptik.KUQ trojan cleaned by deleting - quarantined
C:\$Recycle.Bin\S-1-5-21-1301155936-2652204530-896827088-1000\$R8Y8LWG Win32/Pepex.E
worm cleaned by deleting - quarantined
C:\$Recycle.Bin\S-1-5-21-1301155936-2652204530-896827088-1000\$RD4Q6CZ
Win32/AutoRun.IRCBot.FC worm cleaned by deleting - quarantined
C:\$Recycle.Bin\S-1-5-21-1301155936-2652204530-896827088-1000\$RI87EEE
Win32/AutoRun.KS worm cleaned by deleting - quarantined
C:\$Recycle.Bin\S-1-5-21-1301155936-2652204530-896827088-1000\$RIJ4S9U a variant of
Win32/Kryptik.KUQ trojan cleaned by deleting - quarantined
C:\$Recycle.Bin\S-1-5-21-1301155936-2652204530-896827088-1000\$ROFILPO probably a
variant of Win32/Autorun.MHBFUDT worm cleaned by deleting - quarantined
C:\$Recycle.Bin\S-1-5-21-1301155936-2652204530-896827088-1000\$RQNEZXA Win32/Pepex.F
worm cleaned by deleting - quarantined
C:\$Recycle.Bin\S-1-5-21-1301155936-2652204530-896827088-1000\$RU9MNXT IRC/SdBot
trojan cleaned by deleting - quarantined
C:\$Recycle.Bin\S-1-5-21-1301155936-2652204530-896827088-1000\$RY4NX2I IRC/SdBot
trojan cleaned by deleting - quarantined
C:\$Recycle.Bin\S-1-5-21-1301155936-2652204530-896827088-1000\$RY6CB6A
Win32/AutoRun.KS worm cleaned by deleting - quarantined
C:\Bios.Bin\Bios.Bin.exe a variant of Win32/Injector.FPL trojan cleaned by deleting -
quarantined
C:\Users\Public\Videos\Sample Videos\moos.exeIRC/SdBot trojan cleaned by deleting -
quarantined</pre>
<p>Each virus definition is presented bellow in the following table with the description<br />
link:</p>
<table border="1">
<tbody>
<tr>
<td><strong>Name of threads</strong></td>
<td><strong>Description links</strong></td>
</tr>
<tr>
<td>Win32/Spy.SpyEye.BY</td>
<td><a href="http://www.eset.eu/encyclopaedia/win32-spy-spyeye-btrojan- pincav-shd-backdoor" target="_blank">http://www.eset.eu/encyclopaedia/win32-spy-spyeye-btrojan- pincav-shd-backdoor</a></td>
</tr>
<tr>
<td>Win32/Kryptik.MKM</td>
<td>N/A</td>
</tr>
<tr>
<td>Win32/Spy.SpyEye.CA</td>
<td><a href="http://www.microsoft.com/security/portal/threat/Encyclopedia/ Entry.aspx?Name=Trojan%3AWin32%2FSpyeye" target="_blank">http://www.microsoft.com/security/portal/threat/Encyclopedia/ Entry.aspx?Name=Trojan%3AWin32%2FSpyeye</a></td>
</tr>
<tr>
<td>IRC/SdBot</td>
<td><a href="http://www.symantec.com/security_response/writeup.jsp? docid=2002-051312-3628-99" target="_blank">http://www.symantec.com/security_response/writeup.jsp? docid=2002-051312-3628-99</a></td>
</tr>
<tr>
<td>Win32/Kryptik.KUQ</td>
<td><a href="http://www.virustotal.com/file-scan/report.html? id=1025888a8be72a04cf0b576c65a9b2b13a7abaaa6b90124 e2c14b095f98edef7-1310416729" target="_blank">http://www.virustotal.com/file-scan/report.html? id=1025888a8be72a04cf0b576c65a9b2b13a7abaaa6b90124 e2c14b095f98edef7-1310416729</a></td>
</tr>
<tr>
<td>Win32/Pepex.E</td>
<td><a href="http://www.virustotal.com/file-scan/report.html? id=169ff0849ce6e055584d24cabc18637db9ae127c166f4309 147c457a4f410d9d-1303250955" target="_blank">http://www.virustotal.com/file-scan/report.html? id=169ff0849ce6e055584d24cabc18637db9ae127c166f4309 147c457a4f410d9d-1303250955</a></td>
</tr>
<tr>
<td>Win32/AutoRun.IRCBot.FC</td>
<td><a href="http://www.eset.eu/encyclopaedia/win32-autorun-ircbot-fcnet- worm-mytob-gvm-w32-gen-trojan-qhost-d?lng=en" target="_blank">http://www.eset.eu/encyclopaedia/win32-autorun-ircbot-fcnet- worm-mytob-gvm-w32-gen-trojan-qhost-d?lng=en</a></td>
</tr>
<tr>
<td>Win32/AutoRun.KS</td>
<td> <a href="http://www.eset.eu/encyclopaedia/win32_autorun_ks_sillyfdc _worm_fgj_dnn" target="_blank">http://www.eset.eu/encyclopaedia/win32_autorun_ks_sillyfdc</a><a href="http://www.eset.eu/encyclopaedia/win32_autorun_ks_sillyfdc _worm_fgj_dnn" target="_blank">_worm_fgj_dnn</a></td>
</tr>
<tr>
<td>Win32/Injector.FPL</td>
<td><a href="http://www.virustotal.com/file-scan/report.html? id=51591a4e9aed52a04bbd33c45f7111ae8b3af1051bf39e25 07940243962e7f25-1303564836" target="_blank">http://www.virustotal.com/file-scan/report.html? id=51591a4e9aed52a04bbd33c45f7111ae8b3af1051bf39e25 07940243962e7f25-1303564836</a></td>
</tr>
</tbody>
</table>
<p>From the above table we can come to the conclusive proof that total sum number of<br />
malicious code running in the virtual machine are 20, with an 9 different definitions of<br />
trojan, warms, etc. However, most of them were located in to the Recycle bin folder.<br />
Additionally to the analysing packets with Wireshark showed that Win1 has some malware, which sent and received some information over network without knowledge of the user. Destination IP addresses, names and port numbers were suspicious.</p>
<h2>Disinfection</h2>
<p>Indeed, this virtual machine it is infected. Therefore we have to perform an disinfection<br />
process. However, from the above table of the links it provides an solution and steps that<br />
should be followed for disinfection process. Either with an tool or steps for removing the<br />
malicious code. Also, we can remove the files with some additional tools that are available<br />
for free, for instance Eraser tool. Now that we know the exact location of each infected file<br />
it is much easier and simple to be able to delete, remove the files from our system.<br />
Although we could use the Eset scanner tool that we have performed previously.<br />
Nevertheless, to be sure and more save way is to do the removing process manually.</p>
<p>Therefore, recommendation for deleting the malicious code of all time from virtual<br />
machine is eraser tool. You need to configure task and which folders or files you specify to<br />
be removed. After the task was completed, restart the machine and now the system should be disinfected and additional we recommend to run the Eset online scanner free tool one more time, just in case in a meaner of your organization.</p>
<h2> Win2</h2>
<p>Intense detail information are highlighted bellow and MD5 sum for Win2 virtual box<br />
machine:<br />
OS: Ms Windows 7 Professional<br />
Version: 6.1.7601 Service Pack 1 Build 7601<br />
System type: 32 bit<br />
Computer name: DoeM<br />
Users Names:</p>
<ul>
<li>Jane Doe</li>
<li>Jhon Doe</li>
</ul>
<p>MD5 Sum: 155a5b9e8b842dff4aa5a7b4361113d3</p>
<h2>Analysis</h2>
<p>Despite the fact that Process Monitor, TCPView and other Sysinternals Suite analysis tools did not help us at all (also Wireshark did not detect any suspicious network activities), at this point, additionally registry changes were detected with CaptureBat tool, where the log file will be presented in figure 2. However by running the ESET online free scanner tool, it did detect in total three threads to our virtual machine, logs are presented bellow.</p>
<pre class="brush: php">Eset Online Scanner, found 3 threads:</pre>
<pre class="brush: php">C:\$Recycle.Bin\S-1-5-21-1301155936-2652204530-896827088-1001\$RKV8ZW1.exe
Win32/Duqu.A trojan
C:\Users\Jane\AppData\Local\Temp\0004fbd1.tmpa variant of Win32/Kryptik.VFI trojan
C:\Users\Jane\AppData\Local\Temp\b01dffe3001c4fe2.exe
Win32/TrojanDownloader.Agent.QXN trojan</pre>
<p>Threads are located in to the system directory of Jane user name. Additionally, there<br />
is an other malicious code located into the Recycle bin as we were able to detect into the<br />
previous analysis for Win1 virtual machine. In spite of fact that in previously scenario we<br />
had only a threads located into Recycle Bin, at this virtual environment we have as an local<br />
files. Therefore to be able to identify the above file and there integrity we have to sum the MD5 and SHA256 algorithms. For this action we are using an online tool winMd5Sum.</p>
<table border="1">
<tbody>
<tr>
<td><strong>File name</strong></td>
<td><strong>MD5Sum</strong></td>
<td><strong>SHA256</strong></td>
</tr>
<tr>
<td>C:\Users\Jane\AppData\<br />
Local\Temp\0004fbd1.tmp</td>
<td>aa17de9a17a58840b8\<br />
f3b3bd5412daee</td>
<td>6d242dbfec946dcacc90d624def\<br />
b073cb7d7bcc531c06d566933610fef\<br />
62f986</td>
</tr>
<tr>
<td>C:\Users\Jane\AppData\<br />
Local\Temp\b01dffe3001c4fe2.exe</td>
<td>dc88442c440a5fa5c5fa\<br />
449a2d0ab1e5</td>
<td>d9a874bf8d9f2f2ca803d38abd6\<br />
77ab51e77008b6cfbab37525dd28df7\<br />
1be107</td>
</tr>
</tbody>
</table>
<p>For advance analysis, we will run the MD5Sum into the <a href="http://virustotal.com">virustotal.com</a> search to<br />
identify the threads. Indeed, all of the above have been reported previously as a malware.<br />
Meanwhile, to gather better description of the above malicious codes we will search the<br />
definitions in the Eset database and descriptions provided in the following table.</p>
<table border="1">
<tbody>
<tr>
<td><strong>Thread name</strong></td>
<td><strong>Description</strong></td>
</tr>
<tr>
<td>Win32/Duqu.A</td>
<td><a title="http://blog.eset.com/2011/10/28/win32duqu-analysisthe- rpc-edition" href="http://blog.eset.com/2011/10/28/win32duqu-analysisthe- rpc-edition" target="_blank">http://blog.eset.com/2011/10/28/win32duqu-analysisthe-rpc-edition</a></td>
</tr>
<tr>
<td>Win32/Kryptik.VFI</td>
<td><a href="http://vil.nai.com/vil/content/v_683077.htm" target="_blank">http://vil.nai.com/vil/content/v_683077.htm</a></td>
</tr>
<tr>
<td>Win32/TrojanDownloader.Agent.QXN</td>
<td><a href="http://www.pcsafedoctor.com/Trojan/remove- Win32.TrojanDownloader.Agent.QNX.html" target="_blank">http://www.pcsafedoctor.com/Trojan/remove-Win32.TrojanDownloader.Agent.QNX.html</a></td>
</tr>
</tbody>
</table>
<div id="attachment_311" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-311" title="Illustration 2: CaptureBAT, win2, registry changes" src="http://predragtasevski.com/wp-content/uploads/capturebat-300x200.png" alt="Illustration 2: CaptureBAT, win2, registry changes" width="300" height="200" /><p class="wp-caption-text">Illustration 2: CaptureBAT, win2, registry changes</p></div>
<p>Figure 2 is just a part of the log files that were able to be capture of the CaptureBAT tool, as we can see form the above that many changes were effected over the registries. Therefore, we need to run either an registry system check or as we know the location of the malicious code, with OllyDbg we can run the files and inspect there behaviour and if they have any additionally affect over the memory dump, etc. presented in figure 3.</p>
<div id="attachment_312" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-312" title="Illustration 3: OllyDbg analysis, memory dump, system dll access, etc." src="http://predragtasevski.com/wp-content/uploads/ollydbg-300x201.png" alt="Illustration 3: OllyDbg analysis, memory dump, system dll access, etc." width="300" height="201" /><p class="wp-caption-text">Illustration 3: OllyDbg analysis, memory dump, system dll access, etc.</p></div>
<p>Nevertheless, because now we have the locations and the threads description it is<br />
next step to disinfected the system, yet it is still a big thread for the organization, etc.</p>
<h2>Disinfection</h2>
<p>As on the previously scenario, we recommend either to use the Eset online free scanner or to use in more convinced way the Eraser tool, for removing the malicious code from the<br />
machine forever. Furthermore, to just make sure that the above malicious code is<br />
removed, disinfected from our system still recommendations is to run the Eset tool for a<br />
second time, for double check the system.<br />
All the above files and threads could be a very harmful for the organization and for<br />
everyday production work. Therefore, advance analysis of the system it is always in hands<br />
to help us to protect our data, internet access, etc. of being leaked.</p>
<h2>Tools</h2>
<p>Tools that help for conducting the results are highlighted in this section. Those are just few<br />
of them that are available for this purpose. Nevertheless, we have use only the listed ones.<br />
Tools and downloadable links:</p>
<ul>
<li>CaptureBAT: <a href="http://www.honeynet.org/node/315" target="_blank">http://www.honeynet.org/node/315</a></li>
<li>Most of the tools that are used for this laboratory report are Sysinternals Suite: <a href="http://technet.microsoft.com/en-us/sysinternals/bb842062" target="_blank">http://technet.microsoft.com/en-us/sysinternals/bb842062</a></li>
<li>Advance report: HijaskThis: <a href="http://free.antivirus.com/hijackthis/" target="_blank">http://free.antivirus.com/hijackthis/</a></li>
<li>Wireshark: <a href="http://www.wireshark.org/" target="_blank">http://www.wireshark.org/</a></li>
<li>ESET Free Online Scanner:<a href=" http://www.eset.com/us/online-scanner/" target="_blank"> http://www.eset.com/us/online-scanner/</a></li>
<li>Eraser: <a href="http://www.heidi.ie/eraser/" target="_blank">http://www.heidi.ie/eraser/</a></li>
<li>Virustotal: <a href="http://www.virustotal.com/" target="_blank">http://www.virustotal.com/</a></li>
<li>Security Task Manager: <a href="http://neuber.com/taskmanager/index.html" target="_blank">http://neuber.com/taskmanager/index.html</a></li>
<li>OllyDbg v1.10: <a href="http://www.ollydbg.de/" target="_blank">http://www.ollydbg.de/</a></li>
<li>WinMD5Sum: <a href="http://www.nullriver.com/products/winmd5sum" target="_blank">http://www.nullriver.com/products/winmd5sum</a></li>
</ul>
<div>However, there are many other tools that can be used. Recent papers, tutorials can help us for further action, please refer to [3] [4] [5] [6].</div>
<div></div>
<div></div>
<h1>SUMMARY</h1>
<div>Nowadays malicious codes, infection of the system is one of the highest vector of production work everyday of the organizations. Therefore, different approaches, advance analysis, troubleshooting, etc. has to be applicable and stated in every organization.</div>
<div>
<p>Leaking of data, information, access of network (internal and external) can be very harmful<br />
for organization and even the home usage of computers. Therefore, this laboratory report<br />
main aim is to provide the reader to be able to conduct advance analysis of system and<br />
their disinfection.</p>
<p>From the two scenarios, virtual machine environments we came to final consistent conclusion that both of them are infected. Yet different threads were able to be found in the systems. However analysis is done by the short time of period. In each scenario in report provides an solutions how and what kind of actions should be considered for future disinfection of the system. Moreover, in next lines we are stating the summary of each infected machine.</p>
<p>Firstly, Win1 was infected with identified 20 threads, with other words in total of 9<br />
different definitions of trojan, malware, warms code. The definition of the threads were<br />
advance, where from the links provided in the table above, is stated that the few of them<br />
were playing very smart. By smart, we mean, that if they have noticed that wireshark,<br />
tcpviewer or other tools were running, the malicious code stops responding, so it was able<br />
to cover his identity, information leaks, etc. In addition, the malicious codes were located in<br />
to the Recycle bin folder, where we were not able to identify there MD5 sum or SHA256. If<br />
we want it to proceed in this step, we had to restore them from the bin folder and then<br />
identify them. Advance we identify the user that has spread the malicious code, user<br />
name: John Doe. Nevertheless, disinfecting process helped us to remove the code from<br />
the system and just in case we have run in second time the Eset online scanner tool.</p>
<p>Secondly, Win2 was indeed infected too. In spite of the scenario one, this was less<br />
infected. The total sum of the threads were 3. Each of them were supply by the<br />
administrator user account: Jane Doe. The location of the malicious code is located into<br />
the temp folders and one in a recycle bin directory. From the definitions links from the<br />
above table we can stated that they have try to attempt over the network to leak<br />
informations, registry changes and additional files are added to the system. However, all of<br />
them were harmful for our environment and therefore and disinfection steps were<br />
necessary. Additionally, the location of the files were accessible therefore we provide an<br />
addition MD5sum and SHA256 for each file, were it help us to identify them in<br />
<a href="http://virustotal.com" target="_blank">virustotal.com</a>.</p>
</div>
<div>
<p>Finally, the both virtual box were infected with different malicious code. Advance<br />
disinfection procedures were necessary to troubleshoot and find the solution to make the<br />
hence system for being able to use it in production. However, the threads were able to<br />
share, leak information and data, in advance were able to change the registry and even<br />
the system files. Therefore, we do recommend advance furthermore actions to be<br />
considered. Meanwhile, the list of the tools that is provided by this report will help the hence users and analysers to be able to identify the threads in a system and to perform an disinfection. Additional the tutorials, stepwise solutions were provided as a reference where can guide for more advance troubleshooting.</p>
<p>Closing, as there are many different ways, tools, process for analysing the malicious<br />
code behaviours in system this laboratory report is supplying the reader with advance and<br />
stepwise solution for identifying the infection of the system. The above procedure can be applied into real time, everyday working machine.</p>
<h1>WORKLOAD</h1>
<p>We analysed both Win1 and Win2 on our computers. Virtualization environment for both<br />
host systems were the same. Each of us analyzed Win1 and Win2. First we analyzed Win1 and then Win2. So the group analyzed each of Virtual Machines (Win1 and Win2) two times.<br />
In such way we cross-referenced the analysis results and got more reliable<br />
information about the system and its infection.</p>
<h1>APPENDIXES</h1>
<p>Appendix 1 is configuration of the virtual environment.</p>
<h2>APPENDIX 1</h2>
<p>Virtual environment: Oracle VirtualBox Version 4.1.2 r73507. Downloadable from the<br />
following link: <a href="https://www.virtualbox.org/wiki/Downloads" target="_blank">https://www.virtualbox.org/wiki/Downloads</a></p>
<h1>Bibliography</h1>
<p>1: Lenny Zeltser, Reverse-Engineering: Malware Analysis Tools and Techniques Training, 2011, <a href="http://zeltser.com/reverse-malware/" target="_blank">http://zeltser.com/reverse-malware/</a></p>
<p>2: Lenny Zeltser, Malware analysis report reminders, 2011, <a href="http://zeltser.com/reversemalware/malware-analysis-report-template.mm" target="_blank">http://zeltser.com/reversemalware/malware-analysis-report-template.mm</a>\</p>
<p>3: Lenny Zeltser, Introduction to malware Analysis, 2010, <a href="http://zeltser.com/reverse-malware/introto-malware-analysis.pdf" target="_blank">http://zeltser.com/reverse-malware/introto-malware-analysis.pdf</a></p>
<p>4: Michael Kassner, 10 ways to detect computer malware, 2009,</p>
<p><a href="http://www.techrepublic.com/blog/10things/10-ways-to-detect-computer-malware/970" target="_blank">http://www.techrepublic.com/blog/10things/10-ways-to-detect-computer-malware/970</a></p>
<p>5: Michael Kassner, 10 more ways to detect computer malware, 2009,<br />
<a href="http://www.techrepublic.com/blog/10things/10-more-ways-to-detect-computer-malware/1069" target="_blank">http://www.techrepublic.com/blog/10things/10-more-ways-to-detect-computer-malware/1069</a></p>
<p>6: Andrew Brandt, Security Tips: Identify Malware Hiding in Windows&#8217; System Folders, 2005,<br />
<a href="http://www.pcworld.com/article/120795-3/security_tips_identify_malware_hiding_in_windows_system_folders.html" target="_blank">http://www.pcworld.com/article/120795-3/security_tips_identify_malware_hiding_in_windows_system_folders.html</a></p>
<p>The above post is written by Predrag Tasevski and Mikheil Basilaia</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://predragtasevski.com/cybersecurity/virtual-machine-malware-malicious-analysis/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mobile Malware Analysis</title>
		<link>http://predragtasevski.com/malware/mobile-malware-analysis/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mobile-malware-analysis</link>
		<comments>http://predragtasevski.com/malware/mobile-malware-analysis/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 14:39:43 +0000</pubDate>
		<dc:creator>pece</dc:creator>
				<category><![CDATA[Malware]]></category>
		<category><![CDATA[cell phone]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[mobile malware analysis]]></category>
		<category><![CDATA[network crime]]></category>
		<category><![CDATA[phone]]></category>
		<category><![CDATA[phone games]]></category>
		<category><![CDATA[phone malware]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[sms]]></category>

		<guid isPermaLink="false">http://predragtasevski.com/?p=300</guid>
		<description><![CDATA[PURPOSE The goal of this post is to identify and analyze mobile malware file: mmc.jar. Thereby please follow the following steps for completing the task: Unpack the file (hint &#8211; using zip on .jar) Examine .class files using tool available here (local copies for Mac, Linux, Win) &#8230; <a href="http://predragtasevski.com/malware/mobile-malware-analysis/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h1>PURPOSE</h1>
<p>The goal of this post is to identify and analyze mobile malware file: <a href="https://sim.cert.ee/hw/mmc.jar" target="_blank">mmc.jar</a>. Thereby please follow the following steps for completing the task:</p>
<ul>
<li><span style="color: #000000; font-family: 'Times New Roman';">Unpack the file (hint &#8211; using zip on .jar)</span></li>
<li><span style="color: #000000;"><span style="font-family: 'Times New Roman';">Examine .class files using tool available </span></span><a href="http://java.decompiler.free.fr/?q=jdgui" target="_blank">here</a><span style="color: #000000;"><span style="font-family: 'Times New Roman';"> (local copies for </span></span><a href="https://sim.cert.ee/hw/jd-gui-0.3.3.osx.i686.dmg">Mac</a><span style="color: #000000;"><span style="font-family: 'Times New Roman';">, </span></span><a href="https://sim.cert.ee/hw/jd-gui-0.3.3.linux.i686.tar.gz">Linux</a><span style="color: #000000;"><span style="font-family: 'Times New Roman';">, </span></span><a href="https://sim.cert.ee/hw/jd-gui-0.3.3.windows.zip">Win</a><span style="color: #000000;"><span style="font-family: 'Times New Roman';">)</span></span></li>
<li><span style="color: #000000; font-family: 'Times New Roman';">Find code sending SMSes using &#8216;sms://&#8217; URI</span></li>
<li><span style="color: #000000; font-family: 'Times New Roman';">Calculate short number used in SM.send</span></li>
<li><span style="color: #000000; font-family: 'Times New Roman';">Finally for compiling the code use the developing tool <a href="http://www.eclipse.org/" target="_blank">Eclipse IDE</a>.</span></li>
</ul>
<div><span style="color: #000000;">Firstly, we are going to analysis the Java source code after decompilation. The accent is to find the code that is sending an SMSes using the &#8216;sms://&#8217; URL. After identifying the linking associated classes we have to compile the code to move toward to final results of URLs. For this purpose we are using the developing tool <a href="http://www.eclipse.org/downloads/" target="_blank">Eclipse IDE</a>.</span></div>
<div>Therefore, the results and the sent SMSes URLs are going to be presented into conclusion section. Which will complete the task and will yield the basic analysis of mobile malware file.<span id="more-300"></span></div>
<h1>ANALYSIS</h1>
<p>After running the decompiler tool we are examining and analyzing the Java source code. Whereby on the source code on the class M.class line 343 we have found the following source code:</p>
<pre class="brush: java">if ((i &gt;= 35) &amp;amp;amp;&amp;amp;amp; (SM.isSending != true) &amp;amp;amp;&amp;amp;amp; (i % 6 == 0) &amp;amp;amp;&amp;amp;amp; (f &lt; count_query)) {
  if (SM.GS()) f += 1;
   if (f == 1) {
            RS.L(rs);
            RS.L(&quot;Slide&quot;);
            rs = RS.j(&quot;Slide&quot;);
            game = RS.L(rs, Integer.toString((int)(System.currentTimeMillis() / 1000L)));
            RS.L(rs);
   }if (f &lt; count_query) {
  game = SM.send(&quot;sms://&quot; + ms[1][b], ms[2][b]); // sms://
  if (b == count_query) b = 1; else b += 1;
}</pre>
<div>The above code is associated with the class SM.class. With the following source code:</div>
<div>
<pre class="brush: java">public static int send(String s, String s1)
{
   if (isSending) return 0;
      new SM(s, s1);
   return -1;
}
public SM(String s, String s1) {
 success = false;
 isSending = true;
 this.destination = s;
 this.message = s1;
 try {
      Thread thread = new Thread(this);
      thread.start();
 }
 catch (Exception exception) {
 isSending = false;
}</pre>
<p>The above code is checking if the message and the destination is correct<br />
and if the message is sent. Coloration is more like the first public static method named <em>send</em> with the two string values of <em>s</em> and <em>s1</em>.<br />
All the above extraction was finished by JD-Gui version 0.3.3 and JD-Core version 0.6.0 and using the menu bar for search, with the criteria that will meet our needs.<br />
The bellow are executable results presented, done by eclipse after compiling the code:</p>
<pre class="brush: php">/0SIF|6XI8ULE|YNLD5QDA6WM|YJ90RL/+WPJDAFY2 DC3QJ/+3RKA/5YPA0MD-5QFD
while 7375/88600168904|7202/65510006691|1899/FTEME 1283|8385/88600168904|
1 16
2 33
3 49
4 66
7375 88600168904 //sms://7375
7202 65510006691 //sms://7202
1899 fteme 1283 //sms://1899
8385 88600168904 //sms://8385
decoded
36
7375 88600168904
42
7202 65510006691
48
1899 fteme 1283
54</pre>
<p>From the above presented results after compiling the code we have identify the number of SMSes URLs and in addition the exact URLs.</p>
<h1>CONCLUSION</h1>
<p>We live in a world were nowadays for everyday work, communication, etc. the most essentially tool is our mobile phones, smart phones, etc. We used them for communication, sending SMS, playing games, checking e-mails, social networking, bank transaction, etc. That is why today there are hundreds and rising everyday mobile malware files. We need to make sure what we are installing in our devices, what kind of games, applications, etc. Therefore, this post will help for a people who are interested to learn basic of how to analysis and identify malware files for mobile phones. However, this is only a basic, and a good guide to give you an idea of what kind of tools, applications you should have. This task is done only for a Java source code mobile malware game.</p>
<p>Furthermore, from the above section we have identify the number of SMSes that are sent and to what numbers. The total number of SMSes is 4 and sent to the following URLs:</p>
<p>sms://7375<br />
sms://7202<br />
sms://1899<br />
sms://8385</p>
<p>Finally, mobile malware is rising and it is about to explode, therefore users need education[1]. By delivering basic and advance mobile malware security awareness program we will have less malware attacks and better security policy into everyday mobile, smart phones usage.</p>
<h1>Bibliography</h1>
<p>[1] Chris Martin, Mobile malware is about to explode, users need education, 20 Jan. 2012, <a href="http://www.theinquirer.net/inquirer/opinion/2140338/mobile-malware-explode-users-education">http://www.theinquirer.net/inquirer/opinion/2140338/mobile-malware-explode-users-education</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://predragtasevski.com/malware/mobile-malware-analysis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Regular Expression</title>
		<link>http://predragtasevski.com/log-mining/regular-expression/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=regular-expression</link>
		<comments>http://predragtasevski.com/log-mining/regular-expression/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 14:08:33 +0000</pubDate>
		<dc:creator>pece</dc:creator>
				<category><![CDATA[Log Mining]]></category>
		<category><![CDATA[grep]]></category>
		<category><![CDATA[log mining]]></category>
		<category><![CDATA[regular expression]]></category>

		<guid isPermaLink="false">http://predragtasevski.com/?p=293</guid>
		<description><![CDATA[This post delivers solution of advance regular expression. In the following lines we describe the goal and the rules of the task, whereby follows with the working solution. Task Write a regular expression for matching the names which follow the following rules: 1) &#8230; <a href="http://predragtasevski.com/log-mining/regular-expression/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This post delivers solution of advance regular expression. In the following lines we describe the goal and the rules of the task, whereby follows with the working solution.</p>
<h1>Task</h1>
<p>Write a regular expression for matching the names which follow the following rules:<br />
1) Each name consists of one or more parts. If there are two or more parts, they are separated either with a single space (&#8221; &#8220;) or dash (&#8220;-&#8221;) character.<br />
2) Each name part must consist of letters only. The name part must begin with an upper-case letter which are followed by one or more lower-case letters. Each name part can  have an optional prefix which begins with an upper-case letter, followed by one or more lower-case letters.<span id="more-293"></span></p>
<h1>Solution</h1>
<p>^([A-Z][a-z]+([A-Z][a-z]+)?(\s|-))*[A-Z][a-z]+([A-Z][a-z]+)?$</p>
<p>For completing the task, we are dividing into several sub-tasks.</p>
<p>Firstly, we had to find expression, which satisfies the first requirement of the task: representing one or more parts, which can be separated either with space (“ “) or dash (“-”). Thereby, we can represent space and dash with the following expression (\s|-).</p>
<p>If the entry is just one legitimate part (without space or dash after), (\s|-) has 0 occurrences. Yet the entry may consist of many legitimate parts divided by spaces or dashes. The expression should be (\s|-)*.</p>
<p>As for the legitimate parts, we have to write expression considering second part of requirements.</p>
<p>Legitimate part should consist of letters only, begin with (only one) uppercase letter and followed by one or more lowercase letters. Legitimate part can have prefix beginning with (only one) uppercase letter, followed by one or more lowercase letters.</p>
<p>Therefore, [A-Z][a-z]+ represents the entry which begins uppercase letter and is followed by one or more lower case letters. In addition, to represent prefix, which occurs either 0 or 1 time, we will have the following expression: ([A-Z][a-z]+)?. Moreover, to represent the whole legitimate entry, we merge the two expressions (it does not matter whether prefix expression comes first) with: A-Z][a-z]+([A-Z][a-z]+)?. Thus with this expression we go back to (\s|-)* where putting [A-Z][a-z]+([A-Z][az]+)? into parentheses with (\s|-) and take * outside of parentheses (as this whole expression) legitimate part with either space or dash should be presented for 0 or more consecutive times.</p>
<p>(([A-Z][a-z]+([A-Z][a-z]+)?(\s|-))*</p>
<p>To be able to exclude entries, which end with “-”, we add expression of legitimate part. and add “^” and “$” respectively at the beginning and the end of expression, to mark the  beginning and an end of the string.</p>
<p>^(([A-Z][a-z]+([A-Z][a-z]+)?(|s|-))*([A-Z][a-z]+([A-Z][a-z]+)?$</p>
<p>Finally, we have the whole expression we have to test it (we have to put the expression in quotation marks).</p>
<p><strong>egrep &#8216;^([A-Z][a-z]+([A-Z][a-z]+)?(\s|-))*[A-Z][a-z]+([A-Z][a-z]+)?$&#8217; &lt;file_name&gt;</strong></p>
<p>The above solution is written by: Predrag Tasevski and Mikheil Basilaia</p>
]]></content:encoded>
			<wfw:commentRss>http://predragtasevski.com/log-mining/regular-expression/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Analyses of Malware Files</title>
		<link>http://predragtasevski.com/malware/analyses-of-malware-files/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=analyses-of-malware-files</link>
		<comments>http://predragtasevski.com/malware/analyses-of-malware-files/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 22:12:40 +0000</pubDate>
		<dc:creator>pece</dc:creator>
				<category><![CDATA[Malware]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[online]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://predragtasevski.com/?p=281</guid>
		<description><![CDATA[PURPOSE The main goal of laboratory report is to identify three analyses of malware files from the archive file send by the lecture. The archive contains 89 malware files. The way how we choice 3 files is by following algorithm: &#8230; <a href="http://predragtasevski.com/malware/analyses-of-malware-files/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h1>PURPOSE</h1>
<p>The main goal of laboratory report is to identify three analyses of malware files from the<br />
archive file send by the lecture. The archive contains 89 malware files. The way how we<br />
choice 3 files is by following algorithm:<br />
1. Soft them by name<br />
2. First use last number of your student code + your birthday day<br />
3. Second, generate random number from <a href="http://www.random.org/" target="_blank">http://www.random.org/</a> and only if it does not match first number use it for choosing the file<br />
4. Third, use random number generator again and if it does not match first or second<br />
number use it.<span id="more-281"></span><br />
Malware archive can be download from the following link:<br />
<a href="https://sim.cert.ee/hw/pahadus.zip" target="_blank">https://sim.cert.ee/hw/pahadus.zip</a></p>
<p style="text-align: center;"><strong>WARNING FILE CONTAINS LIVE VIRUSES</strong></p>
<p>Task that need to be complete for this laboratory assignment:<br />
• Pick your malware<br />
• Run your malware against 2 of next online analysis tools<br />
◦ <a href="http://www.virustotal.com/" target="_blank">http://www.virustotal.com/</a><br />
◦ <a href="http://camas.comodo.com/" target="_blank">http://camas.comodo.com/</a><br />
◦<a href=" http://www.threatexpert.com/submit.aspx" target="_blank"> http://www.threatexpert.com/submit.aspx</a><br />
• Find additional 2 online analysis tools where to analyse virus<br />
Things that should be presented in the laboratory report are:<br />
• Chosen numbers<br />
• General information about malware<br />
◦ name<br />
◦ md5<br />
◦ sha1<br />
• link to analysis result if it is possible<br />
• link to disinfecting instructions – if not possible explanation why it is not<br />
• Analysis tools – links<br />
• Your opinion about each analysis tool and comparison results.<br />
Firstly, we are going to analyse the chosen files in section Chosen files and each file<br />
with the above required information and detail analysis results, links to disinfecting<br />
instructions, analysis tools used for this purpose. Secondary, expression about each<br />
analysis tool used and comparison results will be presented in section Analysis. In<br />
addition, in section Appendixes its provides what virtual environment has been used for<br />
this laboratory report. Because we know that if we open this file in our real machine we will<br />
get infected. That is why we are using an Linux virtual environment.<br />
Furthermore, each file will be analysed with two different tools, in case to gather<br />
more information and solution for disinfecting process.<br />
Finally the conclusion made of all collected data will be concise in conclusion<br />
section.</p>
<h1>CHOSEN FILES</h1>
<p>Number of files are listed bellow and the name of the file that is going to be analysed:<br />
1. Number: 71; File name: sales.exe; Size: 454.7 KB<br />
2. Number: 57; File name: mgre.exe; Size: 61.4 KB<br />
3. Number: 60; File name: moos3.ee; Size: 91.6 KB</p>
<h2>FILE 1</h2>
<p>File name: sales.exe; Size: 454.7 KB; Number: 71.<br />
MD5: 093e72cbc78b46e977561c5874cfab4c<br />
SHA1 Hash: e79a730b01b6689c336138f39c79fbd2ea45b6c1<br />
SSDeep Hash: 12288:2Pqr7eKhHvZ3NSYqHMsD+vgp0pQe1lhJ:283vhN1qHMsD+Ip8QEz<br />
Links to analyse report:<br />
1. <a href="http://www.netscty.com/report/690/e12093ea-3ae7-4fac-a 218-5721b1aabded-347" target="_blank">http://www.netscty.com/report/690/e12093ea-3ae7-4fac-a 218-5721b1aabded-347</a><br />
2. <a href="http://www.virustotal.com/file-scan/report.html? id=6f47a1f72fa005900f40803ede1a2a55167e641011271b49543eef748ffcb5a1- 1318408947#" target="_blank">http://www.virustotal.com/file-scan/report.html?<br />
id=6f47a1f72fa005900f40803ede1a2a55167e641011271b49543eef748ffcb5a1-<br />
1318408947#</a><br />
The above malware file has been reported that is capable to send out e-mail<br />
message with the built in SMTP client engine. Second, it contains characteristics of<br />
Waledac, a worm that spreads by sending an e-mail containing links to copies of itself. And finally, creates a startup registry entry.<br />
Links provided, are demonstrating which anti virus software/application can<br />
disinfected the malware infection.<br />
Tools for analysing the malware are:<br />
1. Netscty – Online Sandbox: <a href="http://netscty.com/malware-tool" target="_blank">http://netscty.com/malware-tool</a><br />
2. Virustotal.com &#8211; <a href="http://www.virustotal.com/index.html" target="_blank">http://www.virustotal.com/index.html</a></p>
<h2>FILE 2</h2>
<p>File name: mgre.exe; Size: 61.4 KB; Number: 57.<br />
MD5: 1375a8e437db6acafe2b0419cfbff7ec<br />
SHA1:b48f702a5a0fa8558c278dd97ecfbd0d637fefd3<br />
SHA256: 89294d70e80547aac5b506915d2e8fc0309c0e578ab16fc9875c9a4668e63709<br />
Links to analyse report:<br />
1. <a href="http://camas.comodo.com/cgi-bin/submit? file=89294d70e80547aac5b506915d2e8fc0309c0e578ab16fc9875c9a4668e63709" target="_blank">http://camas.comodo.com/cgi-bin/submit?<br />
file=89294d70e80547aac5b506915d2e8fc0309c0e578ab16fc9875c9a4668e63709</a><br />
2. <a href="http://wepawet.iseclab.org/view.php? hash=1375a8e437db6acafe2b0419cfbff7ec&amp;type=js" target="_blank">http://wepawet.iseclab.org/view.php?<br />
hash=1375a8e437db6acafe2b0419cfbff7ec&amp;type=js</a><br />
From above analysed links we can conclude that the file creates keys, it changes values in registry, it change only one file, creates process called sample.exe and adds value to the modules.<br />
The links do not show any way of disinfecting the following malware file. My personal opinion of the above links is good that they can show you that this file is malware, but still they do not show you enough information. Which can help you for further instructions and actions that should be consider. Not even providing you an information or<br />
links which anti virus software can help you.<br />
Tools for analysing the malware are:<br />
1. Comodo Instant Malware Analysis &#8211; <a href="http://camas.comodo.com/" target="_blank">http://camas.comodo.com/</a><br />
2. Wepawe &#8211; <a href="http://wepawet.iseclab.org/" target="_blank">http://wepawet.iseclab.org/</a></p>
<h2>FILE 3</h2>
<p>File name: moos3.exe; Size: 91.6 KB; Number: 60.<br />
MD5: 4ddade6548142d5fd5b742f34b71e1da<br />
SHA-1: 5345bdd52591b0fcd8e9a81fed7a7b588e24a15d<br />
Links to analyse report:<br />
1. <a href="http://anubis.iseclab.org/? action=result&amp;task_id=13e22805d763a08d4d158904eae5e709d&amp;format=html" target="_blank">http://anubis.iseclab.org/?<br />
action=result&amp;task_id=13e22805d763a08d4d158904eae5e709d&amp;format=html</a><br />
2. <a href="http://www.threatexpert.com/report.aspx? md5=4ddade6548142d5fd5b742f34b71e1da" target="_blank">http://www.threatexpert.com/report.aspx?<br />
md5=4ddade6548142d5fd5b742f34b71e1da</a><br />
The malware file, contains characteristics of an identified security risk. Possible<br />
security risk is Backdoor.Agent.AJU [Backdoor.Agent.AJU]. The threat category is<br />
network-aware worm and malicious trojan horse. Its modifying file system, memory and<br />
registry. The origin of this malware indicates possible country, Russian Federation.<br />
From the reports we can conclude that most of the known anti virus software has hit<br />
of this malware infection and it can disinfected.<br />
Tools for analysing the malware are:<br />
1. Anubis: Analyzing Unknown Binaries &#8211; <a href="http://anubis.iseclab.org/" target="_blank">http://anubis.iseclab.org/</a><br />
2. ThreatExpert &#8211; <a href="http://www.threatexpert.com/" target="_blank">http://www.threatexpert.com/</a></p>
<h1>ANALYSIS</h1>
<p>The web tool that we have used to analysis three of random chosen files are listed bellow.<br />
Moreover, we will compare each one of those service, what kind of information they show,<br />
provide and do they supply with disinfected solution, if so how, and why not.<br />
1. Netscty – Online Sandbox: <a href="http://netscty.com/malware-tool" target="_blank">http://netscty.com/malware-tool</a><br />
2. Virustotal.com &#8211; <a href="http://www.virustotal.com/index.html" target="_blank">http://www.virustotal.com/index.html</a><br />
3. Comodo Instant Malware Analysis &#8211; <a href="http://camas.comodo.com/" target="_blank">http://camas.comodo.com/</a><br />
4. Wepawe &#8211; <a href="http://wepawet.iseclab.org/" target="_blank">http://wepawet.iseclab.org/</a><br />
5. Anubis: Analyzing Unknown Binaries &#8211; <a href="http://anubis.iseclab.org/" target="_blank">http://anubis.iseclab.org/</a><br />
6. ThreatExpert &#8211; <a href="http://www.threatexpert.com/" target="_blank">http://www.threatexpert.com/</a><br />
To compare our results from the above list of online analysing tools I have setup an<br />
score from 1 to 5 of each section. Where the highest score is better solution. With the<br />
following attributes:</p>
<table border="1">
<tbody>
<tr>
<td></td>
<td>Easy to use</td>
<td>Provides enough<br />
information</td>
<td>Disinfected<br />
information</td>
<td><strong>TOTAL</strong></td>
</tr>
<tr>
<td>Netscty</td>
<td>4</td>
<td>5</td>
<td>4</td>
<td><strong>13</strong></td>
</tr>
<tr>
<td>Virustotal.com</td>
<td>5</td>
<td>4</td>
<td>5</td>
<td><strong>14</strong></td>
</tr>
<tr>
<td>Comodo</td>
<td>5</td>
<td>3</td>
<td>2</td>
<td><strong>10</strong></td>
</tr>
<tr>
<td>Wepawe</td>
<td>4</td>
<td>1</td>
<td>1</td>
<td><strong>6</strong></td>
</tr>
<tr>
<td>Anubis</td>
<td>5</td>
<td>3</td>
<td>1</td>
<td><strong>9</strong></td>
</tr>
<tr>
<td>ThreatExpert</td>
<td>5</td>
<td>5</td>
<td>5</td>
<td><strong>15</strong></td>
</tr>
</tbody>
</table>
<p>The above table give as an perfect over view, which tool is easy to use, provides enough information, disinfected information and gain the highest mark.</p>
<h1>CONCLUSION</h1>
<p>I would like to generalize that from the above information we see that each online analysing tool has own means, criteria and different information to distribute. On the whole, some of them were not that easy and simple to use, yet they provide as with expectant information and disinfected solutions. Therefore, our succeeder for this test is ThreatExpert. But bear in mind that I have not measure and compare all the online tool-kits for analysing the files, just the ones listed in the previous section. For furthermore, please refer to the following article that was publish in 2010 by Lenny Zeltser [MalwareAnalysisToolkit].<br />
In summary, we found out that the chosen files are malware. Likewise, can harm<br />
our computer in different methods. Yet we got an information for some, for instance how to<br />
disinfected the computer. Therefore, we made a comparison table to scale the best online<br />
analysing tool for malware. Where total number is 6 tools, and different score rank. The first one is TheratExpert, secondly is Virustotal.com and the third is Netscty. Still all of mentioned tools score difference with one point.</p>
<h1>APPENDIXES</h1>
<p>Appendix 1 is configuration of the virtual environment.</p>
<h2>APPENDIX 1</h2>
<p>Virtual environment: Oracle VirtualBox Version 4.1.2 r73507. Downloadable from the<br />
following link: <a href="https://www.virtualbox.org/wiki/Downloads" target="_blank">https://www.virtualbox.org/wiki/Downloads</a><br />
Security Fedora 14 32 bit – Client: <a href="http://spins.fedoraproject.org/security/" target="_blank">http://spins.fedoraproject.org/security/</a><br />
• Base Memory: 512 MB<br />
• Acceleration: VT-x/AMD-V, Nested Paging<br />
• Display – Video memory: 12 MB<br />
• Storage: SATA Controller, Port 0: 8 GB<br />
• Network:<br />
◦ Adapter 1: Adapter 1: Parvirtualized Network (NAT)<br />
◦ Adapter 2: Adapter 2: Inter PRO/1000 MT Desktop (Host-only adapter,<br />
„VirtualBox Host- Only Enternet Adapter“)</p>
<h1>Bibliography</h1>
<p>Backdoor.Agent.AJU: ThreatExpert, ThreatExpert&#8217;s Statistics for Backdoor.Agent.AJU [PC Tools], 2011, <a href="http://www.threatexpert.com/threats/backdoor-agent-aju.html" target="_blank">http://www.threatexpert.com/threats/backdoor-agent-aju.html</a><br />
MalwareAnalysisToolkit: Lenny Zeltser, 5 Steps to Building a Malware Analysis Toolkit Using Free Tools, January 2010, <a href="http://zeltser.com/malware-analysis-toolkit/" target="_blank">http://zeltser.com/malware-analysis-toolkit/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://predragtasevski.com/malware/analyses-of-malware-files/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>IP Responsibility and abuse reporting procedure</title>
		<link>http://predragtasevski.com/attacks_cracking/ip-responsibility/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ip-responsibility</link>
		<comments>http://predragtasevski.com/attacks_cracking/ip-responsibility/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 09:08:46 +0000</pubDate>
		<dc:creator>pece</dc:creator>
				<category><![CDATA[Attacks And Cracking]]></category>
		<category><![CDATA[Malware]]></category>
		<category><![CDATA[attacks]]></category>
		<category><![CDATA[cyber security]]></category>
		<category><![CDATA[DDoS]]></category>
		<category><![CDATA[external IP]]></category>
		<category><![CDATA[Internet Protocol addressing systems]]></category>
		<category><![CDATA[IP addresses]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[online]]></category>
		<category><![CDATA[report abuse]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[security risk]]></category>

		<guid isPermaLink="false">http://predragtasevski.com/?p=262</guid>
		<description><![CDATA[PURPOSE The main goal of laboratory report is to identify the responsibilities for the IP addresses below and how we can make connection to them. IP addresses are randomly chosen by the lecture. IP addresses: 1. 69.163.171.238 2. 31.44.184.101 3. &#8230; <a href="http://predragtasevski.com/attacks_cracking/ip-responsibility/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h1>PURPOSE</h1>
<p>The main goal of laboratory report is to identify the responsibilities for the IP addresses<br />
below and how we can make connection to them. IP addresses are randomly chosen by<br />
the lecture.<br />
IP addresses:<br />
1. 69.163.171.238<br />
2. 31.44.184.101<br />
3. 188.72.228.69<br />
External IP that is used for purpose of this test is following: 193.40.244.0/255 1. <span id="more-262"></span>The ISP that provides this network is EENet2. Organization that is behind is Tallinn Technical University, Estonia. City location is Tallinn and the region is Harjumaa. The phone number of my ISP is: +372 73*****. The e-mail we should report abuse are: first persons that is in charge: Viktor Borisevitch (e-mail: **tor at cc.ttu.ee and phone number: +372-2-****46) and Andres Lepp (e-mail: l*** at cc.ttu.ee and phone number: +372 6 *****55). In addition, if we wont to submit an abuse we should use both persons of network administration and then we can submit and security incident on the following ISP e-mail: turvas@eeenet.ee [RIPE NCC].<br />
All in all, Method 1 and Appendix 1 describes the website, tools and application that<br />
are used to conduct this laboratory report. In addition, Method 2 and Appendix 2 will<br />
introduce website tools and databases where we can check if following IP&#8217;s have been<br />
reported before as abuse and security risk. Both methods are represented with answer<br />
and consequences confront in the result section.<br />
Finally the conclusion made of all collected data will be concise in conclusion section of this report.</p>
<h1>METHODS</h1>
<p>First method describes and demonstrates web tools that have been used to collect the needed information from the stated IP&#8217;s addresses. Second method is pointing out website tools and databases that can be applied if the IP has been reported previously as a abuse, spam or security threat.</p>
<h2>METHOD 1</h2>
<p>Firstly, we need to collect as much as we can details about the IP address. In Appendix 1<br />
is showing the wholly information of the IP&#8217;s, contact details, organization name, address,<br />
location, state, country, technicians contact, abuse phone number, abuse e-mail, etc.<br />
Depending on the location of IP we should make sure that not only we know the ISP<br />
or abuse contact details, but we should know national CERT 3 agency that is in charge too.<br />
Therefore, to collect the information we have used different web sites, agencies: [RIPE<br />
NCC][LACNIC][AfriNIC][APNIC][ARIN]. The above reference are agencies collected from<br />
IANA4. Authority responsible for global coordination of the Internet Protocol addressing<br />
systems [IANA].<br />
Moreover, to have more details about the route of the IP&#8217;s we are using command<br />
prompt in Windows 7 with the following command, where the results are presented in<br />
Appendix 2 section:</p>
<pre>tracert [0.0.0.0]</pre>
<p>To illustrate, the details information are presented in Result 1 section.</p>
<h2>METHOD 2</h2>
<p>After we have collected the wholly information about the concrete IP proposals, we should<br />
check if in addition those IP&#8217;s previously have been reported as abused, spam or security<br />
threat. To complete the following method we need to check concrete database system that is offering following service. First that crossed on web is [MalwareURL] which is dedicated to fighting malware, trojans and a multitude of other web-related threats. In addition, we can check if the IP addresses are listed in anti-spam databases. With other words blacklist check [MyIPAddress].</p>
<h1>RESULTS</h1>
<p>Results from Method 1 are presented in Result 1, further Method 2 is presented in Result<br />
2.</p>
<h2>RESULT 1</h2>
<p>For each IP are presented only the most important data details that we need to collect for<br />
our goal. In addition, full description and details are presented in Appendix 1. The tables<br />
bellow are illustrating the most important information that we should look-for. In addition,<br />
the highlighted lines are indicating the abuse e-mail box that should be send mail too.</p>
<p><strong>69.163.171.238</strong><br />
OrgName: New Dream Network, LLC<br />
Address: 417 Associated Rd.<br />
Address: PMB #257<br />
City: Brea<br />
StateProv: CA<br />
PostalCode: 92821<br />
Country: US</p>
<p>#technician in charge<br />
OrgTechName: Nagel, Mark<br />
OrgTechPhone: +1-714-706-4182<br />
OrgTechEmail: mna47-arin at dreamhost.com</p>
<p><strong><span style="background-color: yellow;">#abuse in charge</span></strong><br />
<strong><span style="background-color: yellow;">OrgAbuseName: DreamHost Abuse Team</span></strong><br />
<strong><span style="background-color: yellow;">OrgAbusePhone: +1-714-706-4182</span></strong><br />
<strong><span style="background-color: yellow;">OrgAbuseEmail: abuse  at dreamhost.com</span></strong></p>
<p><center>Table 1</center><br />
<strong>31.44.184.101</strong><br />
person: Chris Burns<br />
address: Building 4<br />
address: City West Office Park<br />
address: Gelderd Road<br />
address: Leeds LS12 6LX<br />
address: England<br />
phone: +44-208-901-2332<br />
<strong><span style="background-color: yellow;">#abuse e-mail: </span></strong><br />
<strong><span style="background-color: yellow;">abuse-mailbox: abuse at laveconetworks.co.uk</span></strong></p>
<p><center>Table 2</center><br />
<strong>88.72.228.69</strong><br />
role: Mannesmann Arcor Network Operation Center<br />
address: Arcor AG &amp; Co. KG<br />
address: Department TBS<br />
address: Otto-Volger-Str. 19<br />
address: D-65843 Sulzbach/Ts.<br />
address: Germany<br />
phone: +49 6196 523 0864<br />
<strong><span style="background-color: yellow;">#abuse e-mail </span></strong><br />
<strong><span style="background-color: yellow;">abuse-mailbox: abuse at arcor-ip.de</span></strong></p>
<p><center>Table 3</center><br />
However, now that we know the abuse e-mail, phone number and contact person<br />
details, still is this information enough for us. If we look in details all of the IP&#8217;s are from different countries. Therefore we need to find what is the national CERT agency contact details. First table is based in USA, therefore we need to use their reporting system, which is locate in the following link: <a href="http://www.us-cert.gov/" target="_blank">http://www.us-cert.gov/</a> . Second table is UK, the national CERT agency link: <a href="http://www.ukcert.org.uk" target="_blank">www.ukcert.org.uk</a>. Third table is based in Germany, the CERT agency link: <a href="http://www.cert-verbund.de/" target="_blank">http://www.cert-verbund.de/</a>.</p>
<p>From the routing trace we can conclude that the first IP and the third respond and it<br />
did not miss route trace, where in the second IP, 31.44.184.101 there is miss route trace.<br />
That is why we will run this IP address to Method 2. Despite the fact, still we will run the<br />
rest of IP&#8217;s in the Method 2, to be trusted that are not in the abuse list.</p>
<h2>RESULT 2</h2>
<p>Next step is to attempt to search the IP address to check if they have been previously<br />
report as a abuse, trojan, malware, security threat, etc.<br />
To check and verify the security status we are using the service available<br />
[MalwareURL]. Where results for 69.163.171.238 and 88.72.228.69 are with status that<br />
have not been previously reported as abuse. On the other hand, 31.44.184.101 IP address is detected as an security threat before. More details are presented in Appendix 3. Where is demonstrating that the /404.php?type=stats&amp;affid=531&amp;subid=03&amp;iruns has been reported as malicious URL and it is in a blacklist of Google, MyWOT, etc.<br />
Not only that it is listed in the malware database list, but also if we double check on<br />
service [MyIPAddress] that the 31.44.184.101 IP address is listed in few blacklist which is<br />
assess by DNSBL5.</p>
<h1>CONCLUSION</h1>
<p>In conclusion, I would like to reiterate that the concrete IP&#8217;s that we analysis in this report<br />
are demonstrating the process and methods that should be done in future to detect, report<br />
abuse, malware, threat, trojan, security risk, etc. Where we should gather the detail<br />
information, and to whom to turn the abuse. To be precise that are not in blacklist, spam<br />
list, etc.<br />
In spite of following IP&#8217;s: 69.163.171.238 and 88.72.228.69, from performing<br />
methods and delivering results are safe and secure, still think can be exploited in easy<br />
manners. The opposite, IP address 31.44.184.101 it has been already report infected as<br />
malicious code from few blacklist providers. When checking the DNS, host name is linking to UK company that deals with IP Transit. For further information please check the<br />
following link: <a href="http://www.laveconetworks.co.uk/" target="_blank">http://www.laveconetworks.co.uk/</a>.<br />
In general, hope that laboratory report and the analyse will help to anyone else to<br />
guide them for future use.</p>
<h1>APPENDIXES</h1>
<p>Appendix 1 is list of details collected from service. Appendix 2 is trace route details. Where Appendix 3 is the result collected from the black list database.<br />
Because of large content please download [<a href="http://predragtasevski.com/wp-content/uploads/Predrag_Tasevski_Lab3_Report_IP_responsibility.pdf" target="_blank">PDF</a>]</p>
<h1>Bibliography</h1>
<p>RIPE NCC: RIPE NCC, Data &amp; Tools, 2011, <a href="https://www.ripe.net/data-tools" target="_blank">https://www.ripe.net/data-tools</a><br />
LACNIC: Internet Address Registry for Latin America and the Caribbean, REGISTRATION SERVICES , , <a href="http://lacnic.net/cgi-bin/lacnic/whois?lg=EN" target="_blank">http://lacnic.net/cgi-bin/lacnic/whois?lg=EN</a><br />
AfriNIC: AfriNIC LTD, Query the AfriNIC Whois Database, 2011, <a href="http://www.afrinic.net/cgi-bin/whois" target="_blank">http://www.afrinic.net/cgi-bin/whois</a><br />
APNIC: APNIC, APNIC &#8211; Query the APNIC Whois Database, 2011, <a href="http://wq.apnic.net/apnic-bin/whois.pl" target="_blank">http://wq.apnic.net/apnic-bin/whois.pl</a><br />
ARIN: ARIN, WHOIS-RWS, 2011, <a href="http://whois.arin.net" target="_blank">http://whois.arin.net</a><br />
IANA: IANA, Number Resources, 2011, <a href="http://www.iana.org/numbers/" target="_blank">http://www.iana.org/numbers/</a><br />
MalwareURL: The MalwareURL Team, The MalwareURL Team, 2011,<br />
<a href="http://www.malwareurl.com" target="_blank">http://www.malwareurl.com</a><br />
MyIPAddress: What Is My IP Address, Blacklist Check, 2011,<br />
<a href="http://whatismyipaddress.com/blacklist-check" target="_blank">http://whatismyipaddress.com/blacklist-check</a></p>
<h1>Footnotes:</h1>
<p>1 I will not show my own IP address<br />
2 EENet &#8211; <a href="http://www.eenet.ee/EENet/" target="_blank">http://www.eenet.ee/EENet/</a><br />
3 CERT – Computer Emergency Response Team<br />
4 IANA – Internet Assigned Numbers Authority &#8211; <a href="http://www.iana.org/" target="_blank">http://www.iana.org/</a><br />
5 DNSBL – Domain Name System Blacklist</p>
<p>* Changed on purpose, to disclose the exposure</p>
]]></content:encoded>
			<wfw:commentRss>http://predragtasevski.com/attacks_cracking/ip-responsibility/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Script Kiddie</title>
		<link>http://predragtasevski.com/cybersecurity/script-kiddie/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=script-kiddie</link>
		<comments>http://predragtasevski.com/cybersecurity/script-kiddie/#comments</comments>
		<pubDate>Thu, 20 Oct 2011 12:23:18 +0000</pubDate>
		<dc:creator>pece</dc:creator>
				<category><![CDATA[Attacks And Cracking]]></category>
		<category><![CDATA[Cyber Security]]></category>
		<category><![CDATA[Simulation of Attacks and Defense]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[attacks]]></category>
		<category><![CDATA[cyber security]]></category>
		<category><![CDATA[DDoS]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[script kiddie]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[server attack]]></category>
		<category><![CDATA[wordpress attack]]></category>

		<guid isPermaLink="false">http://predragtasevski.com/?p=238</guid>
		<description><![CDATA[PURPOSE &#38; SCENARIO The goal of this laboratory test is to make effort to attack server and to deface website. Here is the scenario: your client is worried about some stuff posted on a blog. They ask You to take &#8230; <a href="http://predragtasevski.com/cybersecurity/script-kiddie/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h1>PURPOSE &amp; SCENARIO</h1>
<p>The goal of this laboratory test is to make effort to attack server and to deface website.<br />
Here is the scenario: your client is worried about some stuff posted on a blog. They ask You to take care of it. They have a throwaway &#8220;script kiddie”[Script kiddie] in a third world country, who will mount the attack so You don&#8217;t need to worry about hiding the attackers identity.<br />
Therefore, we need to devise a way to attack wordpress (default installation) based<br />
site to render it unusable (page view times over 60 seconds). Attack resources: one PC with Microsoft Windows XP, a script kiddie, internet connection of 2Mbit/s. In addition, server has to stay down for two days and script kiddie has up to 1 day to set up the attack.<span id="more-238"></span><br />
For scenario above their three different proposals from the fallow students. Each<br />
proposal is described in section Proposals and their effectiveness, installation process and the evaluation of the efficient use of available resources.<br />
Firstly, easy solution for limiting the internet connection of 2Mbit/s by Oracle<br />
VirtualBox configuration manager. Secondly, the bandwidth capacity of the connection and their performance is measured by vnstat1 for graphs to display our utilization. The steps are vivid on section Methods.<br />
Finally, providing measurement results with different proposals will help us to<br />
identify the most beneficial proposal for above scenario, declared in Conclusion section.<br />
Moreover, after each attack, test the virtual server environment is restarted, because of the affective situation that server after attack needs time to recover.</p>
<h1>METHODS</h1>
<p>Because of requirements of our scenario we need to limit the internet connection of 2<br />
Mbit/s and to provide graphs that can help as with the measurement results to conclude which proposals is more competent. Therefore, Method 1 is describing the step how we limited the connection bandwidth and Method 2 providing as solution how to setup that can help you in measuring the speed and the bandwidth.</p>
<h2>METHOD 1</h2>
<p>For limiting the internet traffic of the server we have to do the following steps in command prompt. The following solution is gathered from Manual of Oracle Virtualbox, Chapter 8 [User Manual].<br />
Limiting VirtualBox – virtual environment speed of network interface:</p>
<pre>VBoxManage modifyvm "[name of virtualbox]" --nicspeed2 2048</pre>
<p>Where you need to replace name of virtual box with real one, and specie which<br />
network interface adapter you wont to limited. In the above illustration is only second<br />
network adapter affected and then you set the limitation, in our case is 2 Mbit/s.<br />
Furthermore, to make sure that the result have been effective please use the<br />
following command:</p>
<pre>VBoxManage showvminfo "[name of virtualbox]"</pre>
<p>Results and information important to be aware refer to Appendix 1.</p>
<h2>METHOD 2</h2>
<p>We are going to install an application that will help us to gather a visual graphs of traffic manipulation of script kiddie. The application is vnstat.<br />
In the server virtual environment in command prompt please type the following<br />
command:<br />
sudo apt-get install vnstat<br />
Next step is to select which interface should be monitored and create graphs. In our<br />
case is eth1, which is second network interface. For furthermore detailed installation<br />
process please refer to the following link:<br />
<a href="http://www.4geeksfromnet.com/2009/04/graphical-bandwidth-monitor-for-ubuntu.html" target="_blank">http://www.4geeksfromnet.com/2009/04/graphical-bandwidth-monitor-for-ubuntu.html</a><br />
To check if the installation process is finished please use your browser, as shown in<br />
illustration 1 and on the address bar type: <a href="http://192.168.56.102/vnstat" target="_blank">http://192.168.56.102/vnstat</a></p>
<div id="attachment_239" class="wp-caption aligncenter" style="width: 310px"><a href="http://predragtasevski.com/wp-content/uploads/script1.png"><img class="size-medium wp-image-239" title="script1" src="http://predragtasevski.com/wp-content/uploads/script1-300x155.png" alt="" width="300" height="155" /></a><p class="wp-caption-text">Illustration 1: Vnstat PHP interface</p></div>
<h1 style="text-align: left;">PROPOSALS</h1>
<p style="text-align: left;">The three proposals are following and described in each different section and their results. The main measure goal which is going to grate for kiddie script is: easy to use instructions, the most efficient use of available resources and can the script be up to 1 day attacking.<br />
Moreover, the results will be provided with two different graphs in period of 5<br />
minutes attack and 10 minutes attack. Which would guide us to compare which kiddie<br />
script has performed the attack more in force.</p>
<h1 style="text-align: left;">PROPOSAL 1</h1>
<p style="text-align: left;">This is the first proposal and the installation process instruction:<br />
Script kiddie uses a little program to connection flood the WordPress installation! The program uses Apache autobench to take the site down in seconds.<br />
Guide for the scipt Kiddie:<br />
1. Download the program from <a href="http://enos.itcollege.ee/~avein/anti2.rar" target="_blank">http://enos.itcollege.ee/~avein/anti2.rar</a><br />
2. Unpack and run AntiXakkerv2.0.exe<br />
3. Enter the address for wordpress site and press the button</p>
<p style="text-align: left;"><a href="http://predragtasevski.com/wp-content/uploads/script2.png"><img class="aligncenter size-medium wp-image-240" title="script2" src="http://predragtasevski.com/wp-content/uploads/script2-300x135.png" alt="" width="300" height="135" /></a>Above script did no run/work on the VirtualMachine Windows XP. Therefore, from the<br />
same author we have other solution:<br />
1. Download <a href="http://enos.itcollege.ee/%7Eavein/anti.exe" target="_blank">http://enos.itcollege.ee/~avein/anti.exe</a>, save in Desktop<br />
2. Open Start menu, select run and type &#8220;cmd&#8221; into the box and press enter<br />
3. Drag anti.exe file to the black box (commandline) , select the box and type the address of your server ( eg. www.delfi.ee ) after the anti.exe<br />
<a href="http://predragtasevski.com/wp-content/uploads/script3.png"><img class="aligncenter size-medium wp-image-241" title="script3" src="http://predragtasevski.com/wp-content/uploads/script3-300x64.png" alt="" width="300" height="64" /></a>For example, if the address for your webserver is 192.168.56.101 type the following :<br />
anti.exe 192.168.56.101<br />
4. Press enter and the site will go down very soon :=)<br />
P.S. This is lightweight version tat doesnot use much bandwith and is targeted against a bug in apache server :)</p>
<h2 style="text-align: left;">RESULT 1</h2>
<p style="text-align: left;">After running the first proposal we can see that the script kiddie does attack the server, but the server was reachable after a bit long delay, but still we could access to the wordpress.<br />
Here are some results graphs.<br />
1. 5 minutes attack</p>
<div id="attachment_242" class="wp-caption aligncenter" style="width: 310px"><a href="http://predragtasevski.com/wp-content/uploads/script4.png"><img class="size-medium wp-image-242" title="script4" src="http://predragtasevski.com/wp-content/uploads/script4-300x127.png" alt="" width="300" height="127" /></a><p class="wp-caption-text">Illustration 2: Proposal 1, 5 min, traffic graph</p></div>
<p style="text-align: left;">2. 10 minutes attack</p>
<div id="attachment_243" class="wp-caption aligncenter" style="width: 310px"><a href="http://predragtasevski.com/wp-content/uploads/script5.png"><img class="size-medium wp-image-243" title="script5" src="http://predragtasevski.com/wp-content/uploads/script5-300x127.png" alt="" width="300" height="127" /></a><p class="wp-caption-text">Illustration 3: Proposal 1, 10 min, traffic graph</p></div>
<p style="text-align: left;">On the one hand the script kiddie did attack the server, but on the other hand the<br />
server was still accessible. I&#8217;d like to conclude by stating that the above script did not meet our needs, and it did not stop, bring down the response time of the server.</p>
<h2 style="text-align: left;">PROPOSAL 2</h2>
<p style="text-align: left;">Second proposal and the installation process:<br />
1. You (Script kiddie) download the file from <a href="http://share.ee/x49176f" target="_blank">http://share.ee/x49176f</a><br />
• You will get an warning message, but you continue to download anyway<br />
• In chrome it looks like this</p>
<p style="text-align: left;"><a href="http://predragtasevski.com/wp-content/uploads/script6.png"><img class="aligncenter size-medium wp-image-244" title="script6" src="http://predragtasevski.com/wp-content/uploads/script6-300x31.png" alt="" width="300" height="31" /></a>2. Execute the file<br />
• Will get a warning but continue<br />
• Will look something like this<br />
<a href="http://predragtasevski.com/wp-content/uploads/script7.png"><img class="aligncenter size-medium wp-image-245" title="script7" src="http://predragtasevski.com/wp-content/uploads/script7-300x229.png" alt="" width="300" height="229" /></a>3. Insert the URL to attack and define how long you want to attack<br />
• Will look like<br />
<a href="http://predragtasevski.com/wp-content/uploads/script8.png"><img class="aligncenter size-medium wp-image-246" title="script8" src="http://predragtasevski.com/wp-content/uploads/script8-300x132.png" alt="" width="300" height="132" /></a><a href="http://predragtasevski.com/wp-content/uploads/scritp9.png"><img class="aligncenter size-medium wp-image-247" title="scritp9" src="http://predragtasevski.com/wp-content/uploads/scritp9-300x133.png" alt="" width="300" height="133" /></a>4. Enjoy<br />
The script is basic vbscript that will overwhelm the server by as many connections that are required to keep the server down for as long as you define.<br />
The above script did not work on the laboratory performance, because it had an<br />
code error. Therefore, for this proposal we are not able to provide you with the result<br />
graphs.<a href="http://predragtasevski.com/wp-content/uploads/scritp9.png"><br />
</a></p>
<h2 style="text-align: left;">PROPOSAL 3</h2>
<p style="text-align: left;">Third proposal and the installation process is listed below:<br />
There is a free and very easy Denial of service script written in PHP, called Keep-Dead (Version 1.14). You can download it from the following link: <a href="http://www.esrun.co.uk/blog/wp-content/uploads/2011/03/Keep-Dead.zip" target="_blank">http://www.esrun.co.uk/blog/wp-content/uploads/2011/03/Keep-Dead.zip</a><br />
It is developed for a research purpose, but still we can use it for our scenario. The good think is primarily meant for use via the terminal; although it will also work if launched via the browser.<br />
1. Unpack the Keep-Dead.zip<br />
2. Open in notepad or any other text/script editor<br />
• On line #26 change the $target_url = “http://www.example.com/wordpress/?s=%rand%&#8221;; to our targeted wordpress blog. We can stop even certain page or post in wordpres or use of %rand% for a random value to be automatically generated for each individual request • You can change the maximum number of requests to be made on line #32<br />
• Changeable is maximum number of requests to be made per connection #37, etc.<br />
3. After setting the setting of our needs save the file.<br />
4. And in terminal you need to run the following script: php –e keep-dead.php or if you run a xamp or other webserver it is possible to run the script from your browser.<br />
5. You can terminate the script by pressing CTRL+C in terminal console or stop/close the browser.<br />
For more information or video tutorials please refer to the following link: <a href="http://www.esrun.co.uk/blog/keep-alive-dos-script/" target="_blank">http://www.esrun.co.uk/blog/keep-alive-dos-script/</a></p>
<p style="text-align: left;">If we follow the above steps we can perform our scenario 3 to make the server to stay down for two days or even more.<br />
There many ways to keep the server down for two days, this script for me is kind of easy usable. In addition, the author had provide and more details with following content: In addition of my proposal pls install the following script: <a href="http://windows.php.net/downloads/releases/php-5.3.8-nts-Win32-VC9-x86.msi" target="_blank">http://windows.php.net/downloads/releases/php-5.3.8-nts-Win32-VC9-x86.msi</a><br />
in the installation process in the section of Select Web Server you wish to setup please chose Do not setup a web server -&gt; Next click on the PHP small narrow down icon and select Entire future will be installed on local hard drive (second option) -&gt; Next -&gt;Install<br />
The results and graphs of the above proposal are demonstrated in the next section.<br />
This is the script that actually does the job and it keeps the server down until the script is down.</p>
<h2 style="text-align: left;">RESULT 3</h2>
<p style="text-align: left;">Test results are following:<br />
1. 5 minutes attack</p>
<div id="attachment_248" class="wp-caption aligncenter" style="width: 310px"><a href="http://predragtasevski.com/wp-content/uploads/script10.png"><img class="size-medium wp-image-248" title="script10" src="http://predragtasevski.com/wp-content/uploads/script10-300x128.png" alt="" width="300" height="128" /></a><p class="wp-caption-text">Illustration 4: Proposal 3, 5 min, traffic graph</p></div>
<p style="text-align: left;">2. 10 minutes attack</p>
<div id="attachment_249" class="wp-caption aligncenter" style="width: 310px"><a href="http://predragtasevski.com/wp-content/uploads/script11.png"><img class="size-medium wp-image-249" title="script11" src="http://predragtasevski.com/wp-content/uploads/script11-300x127.png" alt="" width="300" height="127" /></a><p class="wp-caption-text">Illustration 5: Proposal 3, 10 min, traffic graph</p></div>
<p style="text-align: left;">A case in point is that from the above graphs we can see that the server does get<br />
more traffic and it does get attacked by the script kiddie. Illustration 6, bellow<br />
demonstrated that actually the server is down, is not responding any more to requests.</p>
<div id="attachment_250" class="wp-caption aligncenter" style="width: 310px"><a href="http://predragtasevski.com/wp-content/uploads/script12.png"><img class="size-medium wp-image-250" title="script12" src="http://predragtasevski.com/wp-content/uploads/script12-300x129.png" alt="" width="300" height="129" /></a><p class="wp-caption-text">Illustration 6: Proposal 3, server down after trying to reach the blog</p></div>
<h1 style="text-align: left;">CONCLUSION</h1>
<p style="text-align: left;">There are three points that we should consider and to see which proposal was more<br />
accurate and it did the job that was required in the scenario.<br />
First I would like to start with rating from 1 to 5 each proposal. Higher score present better results. Which is proving our destination to hold down the server for longer then one day. The bellow table demonstrates which proposal has succeed.</p>
<table dir="LTR" width="458" cellspacing="0" cellpadding="4">
<colgroup>
<col width="105" />
<col width="106" />
<col width="106" />
<col width="105" /></colgroup>
<tbody>
<tr valign="TOP">
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0.04in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in;" width="105"></td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0.04in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in;" width="106">
<p align="JUSTIFY"><span style="font-family: Arial,sans-serif;">Proposal 1</span></p>
</td>
<td style="border-top: 1px solid #000000; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0.04in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in;" width="106">
<p align="JUSTIFY"><span style="font-family: Arial,sans-serif;">Proposal 2</span></p>
</td>
<td style="border: 1px solid #000000; padding: 0.04in;" width="105">
<p align="JUSTIFY"><span style="font-family: Arial,sans-serif;">Proposal 3</span></p>
</td>
</tr>
<tr valign="TOP">
<td style="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in;" width="105">
<p align="JUSTIFY"><span style="font-family: Arial,sans-serif;">Easy installation</span></p>
</td>
<td style="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in;" width="106">
<p align="JUSTIFY"><span style="font-family: Arial,sans-serif;">5</span></p>
</td>
<td style="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in;" width="106">
<p align="JUSTIFY"><span style="font-family: Arial,sans-serif;">5</span></p>
</td>
<td style="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0.04in;" width="105">
<p align="JUSTIFY"><span style="font-family: Arial,sans-serif;">4</span></p>
</td>
</tr>
<tr valign="TOP">
<td style="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in;" width="105">
<p align="JUSTIFY"><span style="font-family: Arial,sans-serif;">Server down</span></p>
</td>
<td style="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in;" width="106">
<p align="JUSTIFY"><span style="font-family: Arial,sans-serif;">3</span></p>
</td>
<td style="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in;" width="106">
<p align="JUSTIFY"><span style="font-family: Arial,sans-serif;">1</span></p>
</td>
<td style="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0.04in;" width="105">
<p align="JUSTIFY"><span style="font-family: Arial,sans-serif;">5</span></p>
</td>
</tr>
<tr valign="TOP">
<td style="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in;" bgcolor="#e6e6e6" width="105">
<p align="JUSTIFY"><span style="font-family: Arial,sans-serif;"><strong>TOTAL</strong></span></p>
</td>
<td style="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in;" bgcolor="#e6e6e6" width="106">
<p align="JUSTIFY"><span style="font-family: Arial,sans-serif;"><strong>8</strong></span></p>
</td>
<td style="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: none; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0in;" bgcolor="#e6e6e6" width="106">
<p align="JUSTIFY"><span style="font-family: Arial,sans-serif;"><strong>6</strong></span></p>
</td>
<td style="border-top: none; border-bottom: 1px solid #000000; border-left: 1px solid #000000; border-right: 1px solid #000000; padding-top: 0in; padding-bottom: 0.04in; padding-left: 0.04in; padding-right: 0.04in;" bgcolor="#e6e6e6" width="105">
<p align="JUSTIFY"><span style="font-family: Arial,sans-serif;"><strong>9</strong></span></p>
</td>
</tr>
</tbody>
</table>
<p>On the scoring rate 3 of server down is means that the server was down, but after<br />
few seconds was retrievable. Where the highest score 5 means that the server was not retrievable during this proposal test until we shutdown or cancel the process of script kiddie. In addition, the Proposal 3 due to a code error was not able to perform attack, that is why it is graded with server down score of 1. Therefore, our winner for this laboratory test is Proposal 3 with script kiddie Keep-dead.<br />
The next issue that I would like to focus is to the network speed, tested with other<br />
tool bmon2 which manifests that the speed limit of the bandwidth did not go over the 2<br />
Mbit/s.<br />
In conclusion, the above proposals are nice and good example to have an view of<br />
how and with what tools we should perform script kiddie techniques. How to shutdown access to a server. On the whole, it show as how to use tools and methods of measuring the bandwidth of network and how to limit the transfer in comfortable way.</p>
<h1>APPENDIXES</h1>
<p>Appendix 1 is connected with the Method 1, which highlighted points are illustration on<br />
what information we should check, to clarify that the virtual environment has limitation of the network interface. Where Appendix 2 is for installation process of Ubuntu Server 10.04 LTS and wordpress, mysql installation.</p>
<h2>APPENDIX 1</h2>
<pre>Name: ubuntu-server
Guest OS: Ubuntu
UUID: fe16451a-f8b1-4ceb-bb90-8650d08c3c0e
Config file: C:\Users\predrag\Documents\Master_CyberSecurity\VirtualBox VMs\
ubuntu-server\ubuntu-server.vbox
Snapshot folder: C:\Users\predrag\Documents\Master_CyberSecurity\VirtualBox VMs\
ubuntu-server\Snapshots
Log folder: C:\Users\predrag\Documents\Master_CyberSecurity\VirtualBox VMs\
ubuntu-server\Logs
Hardware UUID: fe16451a-f8b1-4ceb-bb90-8650d08c3c0e
Memory size: 512MB
Page Fusion: off
VRAM size: 12MB
CPU exec cap: 100%
HPET: off
Chipset: piix3
Firmware: BIOS
Number of CPUs: 1
Synthetic Cpu: off
CPUID overrides: None
Boot menu mode: message and menu
Boot Device (1): Floppy
Boot Device (2): DVD
Boot Device (3): HardDisk
Boot Device (4): Not Assigned
ACPI: on
IOAPIC: off
PAE: off
Time offset: 0 ms
RTC: UTC
Hardw. virt.ext: on
Hardw. virt.ext exclusive: off
Nested Paging: on
Large Pages: on
VT-x VPID: on
State: running (since 2011-10-11T11:26:30.089000000)
Monitor count: 1
3D Acceleration: off
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address:
Teleporter Password:
Storage Controller Name (0): IDE Controller
Storage Controller Type (0): PIIX4
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0): 2
Storage Controller Port Count (0): 2
Storage Controller Bootable (0): on
Storage Controller Name (1): SATA Controller
Storage Controller Type (1): IntelAhci
Storage Controller Instance Number (1): 0
Storage Controller Max Port Count (1): 30
Storage Controller Port Count (1): 1
Storage Controller Bootable (1): on
SATA Controller (0, 0): C:\Users\predrag\Documents\Master_CyberSecurity\VirtualB
ox VMs\ubuntu-server\ubuntu-server.vdi (UUID: bf4c167a-ec0a-42fa-915f-2ffbe2fd66
fb) NIC 1: MAC: 0800274572ED, Attachment: NAT, Cable connected: on, Trace:
off (file: none), Type: 82540EM, <span style="color: #ff0000;">Reported speed: 2 Mbps</span>, Boot priority: 0, Prom
isc Policy: deny
NIC 1 Settings: MTU: 0, Socket (send: 64, receive: 64), TCP Window (send:64, re
ceive: 64) NIC 2: MAC: 0800270858EA, Attachment: Host-only Interface 'VirtualBox
Host-Only Ethernet Adapter', Cable connected: on, Trace: off (file: none), Type:
82540EM, <span style="color: #ff0000;">Reported speed: 2 Mbps</span>, Boot priority: 0, Promisc Policy: deny
NIC 3: disabled
NIC 4: disabled
NIC 5: disabled
NIC 6: disabled
NIC 7: disabled
NIC 8: disabled
Pointing Device: USB Tablet
Keyboard Device: PS/2 Keyboard
UART 1: disabled
UART 2: disabled
Audio: enabled (Driver: DSOUND, Controller: AC97)
Clipboard Mode: Bidirectional
Video mode: 640x480x0
VRDE: disabled
USB: enabled
USB Device Filters: &lt;none&gt;
Available remote USB devices: &lt;none&gt;
Currently Attached USB Devices: &lt;none&gt;
Shared folders: &lt;none&gt;
VRDE Connection: not active
Clients so far: 0
Guest: Configured memory balloon size: 0 MB
OS type: Ubuntu
Additions run level: 0
Guest Facilities: No active facilities.</pre>
<h2>APPENDIX 2</h2>
<p>● Installation media: Ubuntu 10.04 LTS 32bit iso image;<br />
● HW: Virtualbox, 1CPU 32bit, 512MB RAM, 8GB HD (dynamic allocation);<br />
● NIC1 NAT;<br />
● NIC2 host only (for ssh and http access from host);<br />
● Language used in installation process: English and country Estonia;<br />
● Keyboard Layout English;<br />
● Hostname: pece<br />
● Partition methods: Guided, use entire disk<br />
● Username: pece<br />
● no http proxy<br />
● Default applications<br />
● sudo apt-get install lamp phpmyadmin<br />
● wget -c <a href="http://wordpress.org/latest.tar.gz" target="_blank">http://wordpress.org/latest.tar.gz</a><br />
● tar xvjf latest.tar.gz<br />
● sudo cp wordpress /var/www/wordpress<br />
● sudo nano /var/www/wordpress/wp-config.php Change the settings to your needs</p>
<h1>Bibliography</h1>
<p>Script kiddie: Wikipedia, Script Kiddie, October 2011, <a href="http://en.wikipedia.org/wiki/Script_kiddie" target="_blank">http://en.wikipedia.org/wiki/Script_kiddie</a><br />
User Manual: Oracle Corporation, User Manual, 2004-2011,<br />
<a href="http://www.virtualbox.org/manual/ch08.html" target="_blank">http://www.virtualbox.org/manual/ch08.html</a></p>
<h2>Footnotes:</h2>
<p>1 vnstat &#8211; <a href="http://humdi.net/vnstat/" target="_blank">http://humdi.net/vnstat/</a></p>
<p>2 Bmon &#8211; <a href="http://www.infradead.org/~tgr/bmon/" target="_blank">http://www.infradead.org/~tgr/bmon/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://predragtasevski.com/cybersecurity/script-kiddie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cost of DDoS, leak of credit card numbers, infected machine and spam</title>
		<link>http://predragtasevski.com/attacks_cracking/costofddoscreditcardspam/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=costofddoscreditcardspam</link>
		<comments>http://predragtasevski.com/attacks_cracking/costofddoscreditcardspam/#comments</comments>
		<pubDate>Thu, 13 Oct 2011 09:51:13 +0000</pubDate>
		<dc:creator>pece</dc:creator>
				<category><![CDATA[Attacks And Cracking]]></category>
		<category><![CDATA[Malware]]></category>
		<category><![CDATA[Simulation of Attacks and Defense]]></category>
		<category><![CDATA[attacks]]></category>
		<category><![CDATA[credit card numbers]]></category>
		<category><![CDATA[cyber security]]></category>
		<category><![CDATA[DDoS]]></category>
		<category><![CDATA[defence]]></category>
		<category><![CDATA[infected machine]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[malware]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[online]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://predragtasevski.com/?p=227</guid>
		<description><![CDATA[PURPOSE The main goal of laboratory report is to identify the costs of nowadays most known attack  DDOS, leak of credit card numbers, infected machine and never the less sending spam for 1 000 000 (one million) people. There are few &#8230; <a href="http://predragtasevski.com/attacks_cracking/costofddoscreditcardspam/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h1>PURPOSE</h1>
<p>The main goal of laboratory report is to identify the costs of nowadays most known attack  DDOS, leak of credit card numbers, infected machine and never the less sending spam for 1 000 000 (one million) people. There are few points that should be presented:</p>
<ul>
<li>Where did we discovered the information (links or sources)</li>
<li>What kind of source of communication we used, for instance: instant messing, ICQ, IRC, which contact we have gather the information</li>
<li>What are the prices for the above attacks.<span id="more-227"></span></li>
</ul>
<p>First of all, we must bear in mind that collecting the above information it is presented<br />
to a numerous affected sources ( i.e. Website, news, forums, IRC chat,etc.). By visiting the source can lead you to a virus, trojan, malicious code, malware, etc. Which can damage your system. Therefore, we are going to use virtual environment to find our demands. In addition, we will use different languages and different search engines.</p>
<p>Construction of report is separated by tasks section. Where each section is<br />
presented with the source, communication type and the costs of the service. In addition, in<br />
Appendix 1 we give the configuration of virtual environment.</p>
<p>Finally the conclusion made of all collected data will be concise in conclusion<br />
section.</p>
<h1>TASKS</h1>
<p>Following list is the numeration of the tasks:</p>
<ol>
<li>DDoS</li>
<li>Credit Card Numbers</li>
<li>Infected Machines</li>
<li>Spam for 1 000 000 people</li>
</ol>
<h2>TASK 1</h2>
<div>
<p>Source where we can find information about the cost of DDoS attacks are provided in<br />
Russian most known [Hackzone] forum. This is the source will give as more of the<br />
answers. But again be careful when you accessing this site. It is on your own risk.</p>
<p>From the following link we received an information about DDoS attacks: [HackzoneDDoS]. With the following translated statement:</p>
<address><em>The average price of service from $ 50 per day. Depends on the complexity of the</em><br />
<em>attacked site. Methods of payment accepted via WebMoney. The network is practically</em><br />
<em>around the clock!</em><br />
<em>• Commands:</em><br />
<em>http / https / icmp / post / syn / udp /</em><br />
<em>Price:</em><br />
<em>Day from $ 50</em><br />
<em>Week from $ 350</em><br />
<em>From $ 1200 per month</em><br />
<em>(Prices may change depending of type and timing of orders on the complexity of the</em><br />
<em>attacked site)</em><br />
<em>Demo test for 5-10 minutes.</em><br />
<em>Contact:</em><br />
<em>Icq :20-**-29</em><br />
<em>Inspections completed:</em><br />
<em>hack-world.org</em><br />
<em>www.xaker.name</em><br />
<em>forum.xaknet.ru</em><br />
<em>Most of the DDoS attack service are around per day $ 50, here is an other source</em><br />
<em>and contact details:</em><br />
<em>Contact details :</em><br />
<em>Icq:22-**-327</em><br />
<em>Icq:875-**3</em><br />
<em>E-mail:anti**os@jab**r.ru</em></address>
<p>The above information is from the following link:<a href="http://www.hackzone.ru/forum/open/id/15608/" target="_blank">http://www.hackzone.ru/forum/open/id/15608/</a>. Other sources that can be found are with<br />
the following links:<a href=" http://www.hackzone.ru/forum/open/id/16067/" target="_blank"> http://www.hackzone.ru/forum/open/id/16067/</a> and <a href="http://www.hackzone.ru/forum/open/id/17187/" target="_blank">http://www.hackzone.ru/forum/open/id/17187/</a></p>
<p>As we stated above that the price is from $50 per day and it goes until $350 per<br />
month and so on.</p>
<h2>TASK 2</h2>
<p>The number of credit cards leaked in the web are numerous amount. The prices are not<br />
that high as people expected. For card that comes from European country is the highest<br />
price and for the other are much cheaper.<br />
Here some information from the following link, leak from <a href="http://www.hackzone.ru/memb/view/name/Support_BM/" target="_blank">Support_BM Originar</a><br />
source is in Russian language, so for this report is translated to English. From the source<br />
[CartNumber].</p>
<address><em>At the moment there is only us, ca, cvv.</em><br />
<em>Databases are updated every 2-3 days, Walid varies from 75 to 90%.</em><br />
<em>Price:</em><br />
<em>us visa, mc cvv = $ 1.5</em><br />
<em>us amex, diss = $ 1.5</em><br />
<em>us without vbv \ mksk = $ 2</em><br />
<em>us not tied and PayPal = $ 2</em><br />
<em>EU = $ 6-9</em><br />
<em>World = $ 3-6</em><br />
<em>CIS is not and never will.</em><br />
<em>Sorted by: bean = $ 1</em><br />
<em>Sample on any other criterion = +0.5 $</em><br />
<em>Sampling only on the following criteria: bin, judge, state, city, type, zip.</em><br />
<em>WARNING! I do not select &#8220;No vbv&#8221;, &#8220;No attachment to the paypal&#8221;, &#8220;Give me a map that</em><br />
<em>would be held there now and then.&#8221;</em><br />
<em>Terms and conditions of service provision:</em><br />
<em>1. Replacement non valid within 48 hours of purchase.</em><br />
<em>2. I only 04/05/51 Declined, Hold-Call, check only CCN + EXP + CVV</em><br />
<em>3. On messages such as &#8220;Here?&#8221; &#8220;Hi, how are&#8221; probably will not answer.</em><br />
<em>4. Money Beg do not.</em><br />
<em>5. Do not change the board, check it before selling.</em><br />
<em>6. I believe only their own way, proven in battle, checker, so your results, another checker, and so do not pay attention.</em></address>
<address><em>7. Using my service, you automatically agree with everything stated in this post.</em></address>
<address><em>8. Reserve the right to refuse service to anyone, without explanation.</em></address>
<address><em>9. I am not responsible for the account balances card-holders.</em><br />
<em>10. I do not give advice on the use of the material.</em><br />
<em>11. Do not keep a bazaar talks about the reductions.</em><br />
<em>12. I do not care where you do not go away if you gave Checker Walid Walid means.</em></address>
<address><em>Card format:</em><br />
<em>Credit Card Number | CVV2 | ??Exp.date | Name | Address Line | City | State | Zip Code |</em><br />
<em>Country | Phone (Not Always) | Email Address (not always)</em><br />
<em>Attention! Before you knock a replacement non valid, make sure that all the provided</em><br />
<em>maps not valid if none of these cards will be found a valid card and a replacement will be</em><br />
<em>denied.</em><br />
<em>Learn to appreciate their own and other people&#8217;s time, get a checker, and live happily ever</em><br />
<em>after.</em><br />
<em>Contact the seller checker can provide for everyone.</em><br />
<em>I accept payment only WMZ and LibertyReserve</em><br />
<em>My WMID has 70BL, as well as on-demand in icq give links to many reviews.</em><br />
<em>Contact:</em><br />
<em>ICQ: 604000**0</em><br />
<em>JID: ***nager@thes**ure.biz</em><br />
<em>Posted 13.10.2010 13:45:51 (8 days 18 hours 31 minutes 59 seconds)</em></address>
<p>Other source that cross is from Russian banks Alfa debit or others the price from<br />
$175. Source is published by contact details: Jabber: v**yt@exp**it.im, ICQ: 25**165,<br />
Skype: V**yt_. On the following link:<a href="http://lab-one.net/showthread.php?t=664" target="_blank"> http://lab-one.net/showthread.php?t=664</a></p>
<h2>TASK 3</h2>
</div>
<div>
<p>Nowadays it is not hard to find an infected machine/computer. Because most of the user<br />
PC&#8217;s are based with operating system Windows and are most of them infected. I have try<br />
so hard to find infected machine price, but until today, I did not come up with any good<br />
source. Therefore, I would like if it is possible to add this source and discuss this source<br />
and information with the fellow students.</p>
</div>
<h2>TASK 4</h2>
<div>
<p>Spamming for one million people it sounds impossible, but still out there someone is<br />
offering this service. Here is from Kazakhstan source with the following information,<br />
translated in English:</p>
<address><em>E-mail newsletter:</em><br />
<em>1 post = 1 m., minimum order 10 000 posts.</em><br />
<em>For large orders &#8211; big discounts!</em><br />
<em>At present there is action: 10 000 tenge, we send 20 000 messages.</em><br />
<em>+ Action: 50 000 tenge, we send your letter to 360 000 email ardesov in Almaty, send 3</em><br />
<em>times in one month!</em><br />
<em>The action is over, send a time.</em><br />
<em>E-mail database:</em><br />
<em>In Almaty:</em><br />
<em>60 000 LEGAL Address &#8211; Almaty Yuredicheskie email addresses, the entire directory guide</em><br />
<em>&#8220;our town&#8221; and directory site &#8220;Samruk Kazyna&#8221;</em><br />
<em>430 000 &#8211; private address Almaty residents collected via mail search agent criteria:</em><br />
<em>country, city, gender, age.</em><br />
<em>Throughout Kazakhstan:</em><br />
<em>240 000 &#8211; LEGAL person Kazakhstan LLP, Ltd., Inc., Ltd., etc. collected from various</em><br />
<em>references such as &#8220;yellow pages&#8221; &#8220;compass&#8221; etc.</em><br />
<em>3.4 million &#8211; individuals, all of Kazakhstan. &#8211; Collected through the mail search agent</em><br />
<em>criteria: country, city, gender, age.</em><br />
<em>P.S. you can build a base of email addresses to any city in Kazakhstan, or any other city in</em><br />
<em>any other country, can you give us the criteria and we will collect your base, an example of</em><br />
<em>criteria:</em><br />
<em>I try, the city, Age, sex, online, not online.</em><br />
<em>P.S. Legal mailings are engaged for 3 years, dispatching more than 5 years.</em><br />
<em>To Order: +7-701-1**5575, +7 (727) -329-61-**.</em><br />
<em>E-mail: d**z@i**ox.ru</em></address>
<p>Indeed, for 10 000 KZT = 67.45 USD and the amount of message send are 20 000<br />
spam. Then the price for one million spam is 3.372.5 USD without discount. The above<br />
links is from the following source [Rassilka.kz].</p>
<h1>CONCLUSION</h1>
<p>I would like to generalize that from the above information we see that for any service that<br />
we looked for, it has a price. Value that are different in other countries and currencies. Yet,<br />
before you start this research make sure that you are not using your local machine.<br />
Likewise, I have used an virtual environment to be able to collect all the above data.<br />
Because the sites, forums, links, etc. are infected with malicious code, or can be easily<br />
traceable.<br />
In summary, we utter gather as much as possible different sources and different<br />
prices. Most expensive is the spam for one million people, second is DDoS attacks and<br />
never the last is to gain an credit card numbers from different countries and different price.<br />
For more info please refer to following source [QuinStreet Inc] why I have chose Russia as<br />
the main source.</p>
<h1>APPENDIXES</h1>
<p>Appendix 1 is configuration of the virtual environment.</p>
<h2>APPENDIX 1</h2>
<p>Virtual environment: Oracle VirtualBox Version 4.1.2 r73507. Downloadable from the<br />
following link: https://www.virtualbox.org/wiki/Downloads<br />
Security Fedora 14 32 bit – Client: http://spins.fedoraproject.org/security/<br />
• Base Memory: 512 MB<br />
• Acceleration: VT-x/AMD-V, Nested Paging<br />
• Display – Video memory: 12 MB<br />
• Storage: SATA Controller, Port 0: 8 GB<br />
• Network:<br />
◦ Adapter 1: Adapter 1: Parvirtualized Network (NAT)<br />
◦ Adapter 2: Adapter 2: Inter PRO/1000 MT Desktop (Host-only adapter, „VirtualBox Host- Only Enternet Adapter“)</p>
<h1>Bibliography</h1>
<p>Hackzone: HackZone.ru, Forum, 2011, <a href="http://www.hackzone.ru/" target="_blank">http://www.hackzone.ru/</a><br />
HackzoneDDoS: Master_DDoS, Качественный DDoS Сервис, ,<br />
<a href="http://www.hackzone.ru/forum/open/id/17387/" target="_blank">http://www.hackzone.ru/forum/open/id/17387/</a><br />
CartNumber: Support_BM, Качественный US\EU\WORLD картон, 2011,<br />
<a href="http://www.hackzone.ru/forum/open/id/14936/" target="_blank">http://www.hackzone.ru/forum/open/id/14936/</a><br />
Rassilka.kz: kamondimon, E-mail рассылки!, 2011, <a href="http://rassilka.kz/rassilki-rassilka-kz/47-e-mailrassylki.html" target="_blank">http://rassilka.kz/rassilki-rassilka-kz/47-e-mailrassylki.html</a><br />
QuinStreet Inc: Paul Rubens, Understanding the Russian Hacker Underground, Aug 13, 2010,<br />
<a href="http://www.enterprisenetworkingplanet.com/netsecur/article.php/3898601/Understanding-the-Russian-Hacker-Underground.htm" target="_blank">http://www.enterprisenetworkingplanet.com/netsecur/article.php/3898601/Understanding-the-Russian-Hacker-Underground.htm</a></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://predragtasevski.com/attacks_cracking/costofddoscreditcardspam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 1.313 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-02-21 19:39:04 -->

