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

<channel>
	<title>ransom ware Archives - Wiredwolf Canada</title>
	<atom:link href="https://catastrophe.wiredwolf.com/tag/ransom-ware/feed/" rel="self" type="application/rss+xml" />
	<link>https://catastrophe.wiredwolf.com/tag/ransom-ware/</link>
	<description></description>
	<lastBuildDate>Sat, 12 May 2018 00:07:24 +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>Hardening RDP Security &#8211; Logon Auditing</title>
		<link>https://catastrophe.wiredwolf.com/hardening-rdp-security-logon-auditing/</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Thu, 10 May 2018 20:20:02 +0000</pubDate>
				<category><![CDATA[Microsoft Server]]></category>
		<category><![CDATA[Microsoft Workstation]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[audit]]></category>
		<category><![CDATA[Network Security]]></category>
		<category><![CDATA[ransom ware]]></category>
		<category><![CDATA[ransomware]]></category>
		<category><![CDATA[RDP]]></category>
		<category><![CDATA[security]]></category>
		<guid isPermaLink="false">http://catastrophe.wiredwolf.com/?p=14489</guid>

					<description><![CDATA[<p>If you don't care about the story that's ok - just skip down to the Logon Auditing section. Recently I had a client contact me. Their primary application is Oracle-based and was no longer functioning.  I quickly logged into the server and discovered immediately that it was hit with a Ransomware bug. The whole server  [...]</p>
<p>The post <a href="https://catastrophe.wiredwolf.com/hardening-rdp-security-logon-auditing/">Hardening RDP Security &#8211; Logon Auditing</a> appeared first on <a href="https://catastrophe.wiredwolf.com">Wiredwolf Canada</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If you don&#8217;t care about the story that&#8217;s ok &#8211; just <a href="#logon_auditing">skip down to the Logon Auditing section</a>.</p>
<p>Recently I had a client contact me. Their primary application is Oracle-based and was no longer functioning.&nbsp; I quickly logged into the server and discovered immediately that it was hit with a Ransomware bug. The whole server was encrypted.</p>
<p>I didn&#8217;t even bother trying to investigate.&nbsp; I shut the server down immediately and started the process of a full recovery.&nbsp; That&#8217;s when I discovered that the Ransomware had also encrypted all of the local backups &#8211; not just for this server, but all backups for all systems.</p>
<p>Fortunately, I always push for redundant off-site backups.&nbsp; In this case Acronis Cloud to the rescue.&nbsp; It took about 4 hours but the server was fully restored to a time prior to the hack.&nbsp; In that four hour period I did some investigation.</p>
<ol>
<li>The account that I found logged in was named &#8220;admin&#8221;.&nbsp; I confirmed that this account did not exist in Active Directory, therefore it was a local account to the server.</li>
<li>The server was using a custom RDP port, but that port was open to the public because there are third party Oracle specialists who occasionally have to service this system.</li>
</ol>
<p>I wasn&#8217;t too worried about the admin account returning (though I did check) since it was a fully recovery, but I did review the local accounts. I still am not certain how the hackers got in, but I&#8217;m suspecting it was a man-in-the-middle RDP brute-force attack.</p>
<p>Anyway, long story short, the custom RDP port was restricted (no more public access) along with any other open server, and the server was restored fully with no real harm done.</p>
<p>However, this is only part of the story.&nbsp; Over the past few weeks I&#8217;ve been encountering issues with other client networks being attacked.&nbsp; Users are being locked out, sometimes instantaneously after having their passwords changed.&nbsp; The security logs on the DC&#8217;s showed the same thing &#8211; a roughly 15 minute period where an unknown system (usually came up as MSTSC) was attempting to brute-force the the password.</p>
<p>This ended up presenting a whole field of frustration.&nbsp; Microsoft Security Logs do not appear to record much in the way of relevant information.&nbsp; It showed the username, usually without the domain, but not always, and MSTSC as the &#8216;Workstation&#8217;.&nbsp; Since there is no system on the network named MSTSC I could only surmise that these were RDP attempts.&nbsp; But to which system?&nbsp; Several workstations have custom RDP ports open to the public.</p>
<p>After some searching I came up with a plan.</p>
<ol>
<li>I need to see where the attacks are coming from and hopefully block them.&nbsp; Are the attacks from a compromised PC on the network or from the outside?&nbsp; To do this, I need to see what traffic is coming in on the router.&nbsp; This will be a different blog entry.&nbsp; Most of my clients have SonicWALL routers and as I discovered SonicWALL routers do not log Firewall Rule Hits.&nbsp; I did find a way to monitor the traffic, but it wasn&#8217;t directly obvious so I&#8217;ll blog how to get monitoring working on SonicWALL routers.</li>
<li>I need to start monitoring the DC for invalid login attempts.&nbsp; That&#8217;s what this blog entry is all about.</li>
<li>I need to be notified when attacks are happening.</li>
<li>I need to start pro-actively blocking the attacks.&nbsp; I&#8217;m actually still looking for a solution for this.</li>
</ol>
<p>So, monitoring the DC turned out to be an exercise in frustration. The Security Logging cannot be adjusted or adapted to provide more information.&nbsp;</p>
<p><strong>TCPView</strong></p>
<p>A solution that I found proposed was to run TCPview.&nbsp; Which I did and found it to be less than helpful.&nbsp; For one thing, TCPview, while a fantastic tool, is also a bit of a pig, like most network monitoring utilities, and the overworked DC had issues running the program.&nbsp; It&#8217;s also a reactive solution &#8211; you have to know the attack is happening to know to use the tool.</p>
<p><strong id="logon_auditing">RDPGuard</strong></p>
<p>I tried installing RDPGuard.&nbsp; This is another excellent utility (Trial for 30 days only though) but discovered that unless the attacks were directed against the server itself, it wasn&#8217;t really going to help source the attack.&nbsp; The attacks were against the workstations, not the servers, so while it functioned as expected, it didn&#8217;t really help.</p>
<p><strong>Microsoft Network Manager</strong></p>
<p>I installed the Microsoft Network Manager 3.4 and configured it for parsing Windows TCP captures.&nbsp; However, this isn&#8217;t ideal either as again, this is a reactive solution that is based around extensive network monitoring, which is also a bit of a pig, and unless you capture huge amounts of data to parse, it&#8217;s window is too small.&nbsp; Capturing even 5 minutes of data can be more than 1 GB of logging.&nbsp; I did manage to run a capture while an attack was happening but was unable to determine exactly what protocol I should be monitoring.&nbsp; I read that I should filter using ProtocolName == &#8220;NRPC&#8221; but that showed absolutely nothing.</p>
<p><strong>Logon Auditing</strong></p>
<p>Logon Auditing is a good idea regardless of whether you are having issues or not.&nbsp; All administrators should know if user accounts are being accessed incorrectly, even if only to know which users are having trouble logging in.&nbsp; Administrators shouldn&#8217;t be waiting for accounts to get locked out to determine if there&#8217;s an issue.&nbsp; An issue could be there without getting to that stage.</p>
<p>This is the process I use to set up auditing:</p>
<ol>
<li>GPO &#8211; Default Domain Controllers Policy<br />
(Click on the thumbnails to get the full picture)<br />
<a href="https://catastrophe.wiredwolf.com/wp-content/uploads/2018/05/DDCP-1.png"><img decoding="async" class="alignnone size-thumbnail wp-image-14494" src="https://catastrophe.wiredwolf.com/wp-content/uploads/2018/05/DDCP-1-150x150.png" alt="" width="150" height="150" srcset="https://catastrophe.wiredwolf.com/wp-content/uploads/2018/05/DDCP-1-66x66.png 66w, https://catastrophe.wiredwolf.com/wp-content/uploads/2018/05/DDCP-1-100x100.png 100w, https://catastrophe.wiredwolf.com/wp-content/uploads/2018/05/DDCP-1-150x150.png 150w" sizes="(max-width: 150px) 100vw, 150px" /></a>&nbsp;<a href="https://catastrophe.wiredwolf.com/wp-content/uploads/2018/05/DDCP-2.png"><img decoding="async" class="alignnone size-thumbnail wp-image-14495" src="https://catastrophe.wiredwolf.com/wp-content/uploads/2018/05/DDCP-2-150x150.png" alt="" width="150" height="150" srcset="https://catastrophe.wiredwolf.com/wp-content/uploads/2018/05/DDCP-2-66x66.png 66w, https://catastrophe.wiredwolf.com/wp-content/uploads/2018/05/DDCP-2-100x100.png 100w, https://catastrophe.wiredwolf.com/wp-content/uploads/2018/05/DDCP-2-150x150.png 150w, https://catastrophe.wiredwolf.com/wp-content/uploads/2018/05/DDCP-2-300x300.png 300w" sizes="(max-width: 150px) 100vw, 150px" /></a></li>
<li>GPO &#8211; Default Domain Policy<br />
<a href="https://catastrophe.wiredwolf.com/wp-content/uploads/2018/05/DDP-1.png"><img decoding="async" class="alignnone size-thumbnail wp-image-14496" src="https://catastrophe.wiredwolf.com/wp-content/uploads/2018/05/DDP-1-150x150.png" alt="" width="150" height="150" srcset="https://catastrophe.wiredwolf.com/wp-content/uploads/2018/05/DDP-1-66x66.png 66w, https://catastrophe.wiredwolf.com/wp-content/uploads/2018/05/DDP-1-100x100.png 100w, https://catastrophe.wiredwolf.com/wp-content/uploads/2018/05/DDP-1-150x150.png 150w, https://catastrophe.wiredwolf.com/wp-content/uploads/2018/05/DDP-1-300x300.png 300w" sizes="(max-width: 150px) 100vw, 150px" /></a></li>
<li>Download/Install <a href="https://www.netwrix.com/account_lockout_examiner.html" target="_blank" rel="noopener">Netwrix Account Lockout Examiner</a></li>
<li>Configure Account Lockout Examiner
<ol>
<li>File &#8211;&gt; Settings</li>
<li>Managed Objects &#8211; Edit &#8211; set to All DC&#8217;s</li>
<li>Notifications &#8211; Send notifications to a monitored email address and provide the SMTP server configuration (server and port)<br />
&#8211; does not do authenticated SMTP</li>
<li>Add all users you want to monitor &#8211; including Administrator and Guest<br />
(I just add every user &#8211; you just know it&#8217;s the one you&#8217;re not watching that&#8217;s being hacked)</li>
</ol>
</li>
</ol>
<p>That&#8217;s it.&nbsp; Wait for emails to come in or check on it regularly.&nbsp; It runs as a service so even if the console is not running it&#8217;s still collecting data and sending notifications.</p>
<p>By turning on the Password Lockout settings hackers only get 10 attempts before the account is locked out for (at least) 15 minutes.&nbsp; With enforced password complexity requirements, this would make brute force attacks pretty difficult.</p>
<p>The post <a href="https://catastrophe.wiredwolf.com/hardening-rdp-security-logon-auditing/">Hardening RDP Security &#8211; Logon Auditing</a> appeared first on <a href="https://catastrophe.wiredwolf.com">Wiredwolf Canada</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
