<?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/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>Michalis Michalos </title>
	<atom:link href="https://www.michalos.net/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.michalos.net</link>
	<description>SecOps, DFIR &#38; Threat Intelligence</description>
	<lastBuildDate>Tue, 23 Jul 2024 19:41:17 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.1</generator>

<image>
	<url>https://i0.wp.com/www.michalos.net/wp-content/uploads/2023/05/logo.png?fit=32%2C32&#038;ssl=1</url>
	<title>Michalis Michalos </title>
	<link>https://www.michalos.net</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">219528326</site>	<item>
		<title>Five reasons to start using Microsoft Defender Threat Intelligence (Basic)</title>
		<link>https://www.michalos.net/2024/07/23/five-reasons-to-start-using-microsoft-defender-threat-intelligence-basic/</link>
					<comments>https://www.michalos.net/2024/07/23/five-reasons-to-start-using-microsoft-defender-threat-intelligence-basic/#respond</comments>
		
		<dc:creator><![CDATA[cyb3rmik3]]></dc:creator>
		<pubDate>Tue, 23 Jul 2024 19:41:17 +0000</pubDate>
				<category><![CDATA[Advanced Hunting]]></category>
		<category><![CDATA[Cyber Threat Intelligence]]></category>
		<category><![CDATA[Microsoft Defender Threat Intelligence]]></category>
		<category><![CDATA[Microsoft Defender XDR]]></category>
		<category><![CDATA[Microsoft Security]]></category>
		<category><![CDATA[Microsoft Sentinel]]></category>
		<category><![CDATA[cyber threat intelligence]]></category>
		<category><![CDATA[microsoft azure]]></category>
		<category><![CDATA[microsoft security]]></category>
		<category><![CDATA[mitre att&ck]]></category>
		<guid isPermaLink="false">https://www.michalos.net/?p=541</guid>

					<description><![CDATA[Introduction The Threat Intelligence (TI) principle has grown by a lot, over the past 15 years. It is still a developing field, cultivating a mentality of building threat-informed defenses. Threat Intelligence is the Threat information that has been aggregated, transformed, analyzed, interpreted, or enriched to provide the necessary context for decision-making processes. NIST In order [&#8230;]]]></description>
										<content:encoded><![CDATA[
<ul class="wp-block-list">
<li>Introduction</li>



<li>Curated feed with IoCs</li>



<li>Threat Analytics</li>



<li>Tracked Threat Actors (with tools &amp; vulnerabilities)</li>



<li>Intel Explorer, your contextualized daily news feed</li>



<li>Intel projects</li>



<li>A bonus reason to consider</li>



<li>Closing remarks</li>
</ul>



<h3 class="wp-block-heading">Introduction</h3>



<p>The Threat Intelligence (TI) principle has grown by a lot, over the past 15 years. It is still a developing field, cultivating a mentality of building threat-informed defenses.</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>Threat Intelligence is the Threat information that has been aggregated, transformed, analyzed, interpreted, or enriched to provide the necessary context for decision-making processes.</p>
<cite><a href="https://csrc.nist.gov/glossary/term/threat_intelligence" target="_blank" rel="noreferrer noopener">NIST</a></cite></blockquote>



<p>In order to materialize the principle of TI, the Threat Intelligence Lifecycle framework comes handy. </p>



<figure class="wp-block-image aligncenter size-full is-resized"><img data-recalc-dims="1" fetchpriority="high" decoding="async" width="1000" height="877" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-2.png?resize=1000%2C877&#038;ssl=1" alt="" class="wp-image-556" style="width:400px" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-2.png?w=1000&amp;ssl=1 1000w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-2.png?resize=300%2C263&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-2.png?resize=768%2C674&amp;ssl=1 768w" sizes="(max-width: 1000px) 100vw, 1000px" /><figcaption class="wp-element-caption">The Threat Intelligence Lifecycle (Flashpoint)</figcaption></figure>



<p>The steps presented above, require not only human effort and relevant to field expertise, but also tools to support the associated operations. While each organization is unique, and hence the lifecycle can be materialized in many different ways, so are the tools that can be used accordingly.</p>



<p>It&#8217;s been some time since Microsoft has introduced Microsoft Defender Threat Intelligence (MDTI) to help organizations, support their TI lifecycle. Here are 5 reasons you should consider start using and operationalizing MDTI.</p>



<h3 class="wp-block-heading">1. Curated feed with IoCs</h3>



<p>First thing to consider, is taking into advantage MDTI connector in <strong>Microsoft Sentinel</strong>, as it provides a curated feed of indicators of compromise (IoCs) that you can ingest in your SIEM. Apart from the IoCs, connector comes along with <strong>Analytics rules</strong> templates that you may use to build detections using the <em>ThreatIntelligenceIndicator</em><strong> </strong>table.</p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" decoding="async" width="1024" height="646" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-6.png?resize=1024%2C646&#038;ssl=1" alt="" class="wp-image-582" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-6.png?resize=1024%2C646&amp;ssl=1 1024w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-6.png?resize=300%2C189&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-6.png?resize=768%2C484&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-6.png?w=1473&amp;ssl=1 1473w" sizes="(max-width: 1000px) 100vw, 1000px" /></figure>



<p>You may use the following KQL query, to identify the number of IoCs present in your Sentinel, by <strong>ThreatType</strong>.</p>



<pre class="wp-block-code"><code>ThreatIntelligenceIndicator
| summarize Count=count() by ThreatType</code></pre>



<p>The MDTI feed is being updated automatically, so you won&#8217;t need to do anything further and don&#8217;t forget, <em>ThreatIntelligenceIndicator</em> is at your disposal for custom KQL queries of your own.</p>



<h3 class="wp-block-heading">2. Threat Analytics</h3>



<p>If you have found yourself asking, &#8220;Where should I begin with to lower my exposure?&#8221; or &#8220;How am I protected based on specific TTPs or TAs?&#8221; then you should familiarize yourself with Threat Analytics. This blade brings a library of <strong>Latest threats</strong>, <strong>High impact threats</strong> and <strong>Highest exposure threats</strong> and how these categories affect your infrastructure.</p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" decoding="async" width="1024" height="508" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-8.png?resize=1024%2C508&#038;ssl=1" alt="" class="wp-image-593" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-8.png?resize=1024%2C508&amp;ssl=1 1024w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-8.png?resize=300%2C149&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-8.png?resize=768%2C381&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-8.png?w=1356&amp;ssl=1 1356w" sizes="(max-width: 1000px) 100vw, 1000px" /></figure>



<p>In the main blade you can filter through threats, whether an alert is associated, which assets are impacted the relevant exposure level, whether there are any misconfigured or vulnerable devices and lastly, the report type of the threat. </p>



<p>Threat types, are also presented in the initial blade:</p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="175" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-10.png?resize=1024%2C175&#038;ssl=1" alt="" class="wp-image-595" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-10.png?resize=1024%2C175&amp;ssl=1 1024w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-10.png?resize=300%2C51&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-10.png?resize=768%2C131&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-10.png?w=1484&amp;ssl=1 1484w" sizes="(max-width: 1000px) 100vw, 1000px" /></figure>



<p>Now the juicy part is within the Threats where you have access to an assessment of your environment based on the filtering presented above, including the threat&#8217;s report which unfolds what the threat is all about. Last tab reflects to <strong>Recommended actions</strong>, if you are vulnerable to the specific threat then you will get instructions on how to remediate your assets, eliminating the exposure to the threat.</p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="471" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-9.png?resize=1024%2C471&#038;ssl=1" alt="" class="wp-image-594" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-9.png?resize=1024%2C471&amp;ssl=1 1024w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-9.png?resize=300%2C138&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-9.png?resize=768%2C354&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-9.png?resize=1536%2C707&amp;ssl=1 1536w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-9.png?w=1540&amp;ssl=1 1540w" sizes="(max-width: 1000px) 100vw, 1000px" /></figure>



<p>Another handy feature of threat analytics, is the <strong>Email notification settings</strong>. When new Threats emerge you can set up a built-in automation to receive notifications. You may choose to get everything, you can also receive tailored emails, based on Tags (Tool or technique, Vulnerability etc) and Report types (Ransomware, Extortion, Phishing etc).</p>



<p>Threat analytics is a great tool if you want to lower your exposure risks and keep up to date with current TTPs which are automatically being assessed to your environment.</p>



<h3 class="wp-block-heading">3. Tracked Threat Actors (with tools &amp; vulnerabilities)</h3>



<p>This part will get you acquainted with most prominent Threat Actors (TAs) accompanied with a fruitful set of contextualized information including:</p>



<ul class="wp-block-list">
<li>Source/Region of Origin</li>



<li>Targets (Industries)</li>
</ul>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="366" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-3.png?resize=1024%2C366&#038;ssl=1" alt="" class="wp-image-567" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-3.png?resize=1024%2C366&amp;ssl=1 1024w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-3.png?resize=300%2C107&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-3.png?resize=768%2C275&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-3.png?w=1523&amp;ssl=1 1523w" sizes="(max-width: 1000px) 100vw, 1000px" /></figure>



<p>Independently, you may also retrieve information about:</p>



<ul class="wp-block-list">
<li>Tools</li>



<li>Vulnerabilities</li>
</ul>



<p>While Basic MDTI does not connect all the dots between these three elements (TAs, Tools &amp; Vulnerabilities), you can still take into consideration which TAs are highly likely to target your organization and build better defenses against them. Don&#8217;t forget, utilizing <a href="https://attack.mitre.org/groups/" target="_blank" rel="noreferrer noopener">Groups</a> and <a href="https://attack.mitre.org/software/" target="_blank" rel="noreferrer noopener">Software</a> by MITRE ATT&amp;CK will significantly enhance your intelligence capacity as well.</p>



<h3 class="wp-block-heading">4. Intel Explorer, your contextualized daily news feed</h3>



<figure class="wp-block-image size-large is-resized"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="731" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image.png?resize=1024%2C731&#038;ssl=1" alt="" class="wp-image-550" style="width:650px;height:auto" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image.png?resize=1024%2C731&amp;ssl=1 1024w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image.png?resize=300%2C214&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image.png?resize=768%2C548&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image.png?w=1075&amp;ssl=1 1075w" sizes="(max-width: 1000px) 100vw, 1000px" /></figure>



<p>You will probably already have a list of news sites to enjoy day&#8217;s first coffee. Keeping up with news and developments, is not easy given the huge amount of information circulating. If you happen to have a curated bookmark folder of intelligence news sites, MDTI offers a daily advanced feed which will help:</p>



<ul class="wp-block-list">
<li>Keep track of latest cybersecurity developments and TTPs.</li>



<li>Advanced and high confident analysis of TTPs.</li>



<li>Search articles based on MITRE ATT&amp;CK context.</li>



<li>If available and provided by Microsoft, download related indicators of compromise (IoCs) and</li>



<li>Easily share articles through email or URL.</li>
</ul>



<p>Within the article content, Microsoft will provide -wherever available- <strong>Detections and Hunting Queries</strong>, it will relate <strong>MDE Antivirus</strong> signatures associated with the TTPs described in the article, include <strong>Recommendations </strong>and will also append the related <strong>References</strong>.</p>



<figure class="wp-block-image size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="779" height="380" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-1.png?resize=779%2C380&#038;ssl=1" alt="" class="wp-image-551" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-1.png?w=779&amp;ssl=1 779w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-1.png?resize=300%2C146&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-1.png?resize=768%2C375&amp;ssl=1 768w" sizes="(max-width: 779px) 100vw, 779px" /></figure>



<p>If you want to keep up with current news, you also get the option to distinguish which articles have been published since your last visit. Don&#8217;t worry about that, you get this information automatically by the relevant notification provided.</p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="408" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-11.png?resize=1024%2C408&#038;ssl=1" alt="" class="wp-image-599" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-11.png?resize=1024%2C408&amp;ssl=1 1024w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-11.png?resize=300%2C120&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-11.png?resize=768%2C306&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-11.png?w=1226&amp;ssl=1 1226w" sizes="(max-width: 1000px) 100vw, 1000px" /></figure>



<h3 class="wp-block-heading">5. Intel projects</h3>



<p>Imagine working on an investigation, collecting IoCs and other information. Wouldn&#8217;t you want to collect per investigation the set of findings that you are looking into? This is where Intel Projects comes in. You can use the Intel Projects as a cyber threat intelligence workbench where you can save IoCs while you pivot through your investigation.</p>



<figure class="wp-block-image size-large is-resized"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="377" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-4.png?resize=1024%2C377&#038;ssl=1" alt="" class="wp-image-575" style="width:650px;height:auto" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-4.png?resize=1024%2C377&amp;ssl=1 1024w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-4.png?resize=300%2C110&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-4.png?resize=768%2C283&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-4.png?w=1510&amp;ssl=1 1510w" sizes="(max-width: 1000px) 100vw, 1000px" /></figure>



<p>Following you can go to your Intel Project and have an overview of all <strong>Artifacts </strong>collected and associated with your investigation. You can also Download Artifacts from the Intel Project and also, contextualize your investigation by using Tags.</p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="489" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-5.png?resize=1024%2C489&#038;ssl=1" alt="" class="wp-image-581" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-5.png?resize=1024%2C489&amp;ssl=1 1024w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-5.png?resize=300%2C143&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-5.png?resize=768%2C367&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-5.png?w=1382&amp;ssl=1 1382w" sizes="(max-width: 1000px) 100vw, 1000px" /></figure>



<p>Keep in mind that in Basic MDTI, you may create a total of 5 Intel Projects which unfortunately, can&#8217;t share with other team members.</p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="364" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-7.png?resize=1024%2C364&#038;ssl=1" alt="" class="wp-image-588" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-7.png?resize=1024%2C364&amp;ssl=1 1024w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-7.png?resize=300%2C107&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-7.png?resize=768%2C273&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-7.png?resize=1536%2C547&amp;ssl=1 1536w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-7.png?w=1540&amp;ssl=1 1540w" sizes="(max-width: 1000px) 100vw, 1000px" /></figure>



<h3 class="wp-block-heading">A bonus reason to consider</h3>



<p>Intel explorer comes with the capacity of <strong>Search</strong>. Unfortunately, in the Basic license of MDTI the results are quite limited, but, if you are working on a case with recent malicious infrastructure configuration, you will most probably get fruitful results for your investigation as you get 14 days of history for some of the intelligence provided such as Components for IP addresses or&#8230;</p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="470" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-12.png?resize=1024%2C470&#038;ssl=1" alt="" class="wp-image-601" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-12.png?resize=1024%2C470&amp;ssl=1 1024w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-12.png?resize=300%2C138&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-12.png?resize=768%2C353&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-12.png?w=1491&amp;ssl=1 1491w" sizes="(max-width: 1000px) 100vw, 1000px" /></figure>



<p>&#8230; DNS resolutions for domains.</p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="436" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-13.png?resize=1024%2C436&#038;ssl=1" alt="" class="wp-image-602" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-13.png?resize=1024%2C436&amp;ssl=1 1024w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-13.png?resize=300%2C128&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-13.png?resize=768%2C327&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/image-13.png?w=1532&amp;ssl=1 1532w" sizes="(max-width: 1000px) 100vw, 1000px" /></figure>



<p>Also, you may include results from search, into your Intel projects as mentioned before simply by selecting <strong>Add to project</strong>.</p>



<h3 class="wp-block-heading">Closing remarks</h3>



<p>While MDTI Basic license comes with limited capacity, it is undeniably a valuable resource to consider operationalizing in your daily tasks and incorporating it in your TI processes. </p>



<figure class="wp-block-image size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="620" height="465" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/oprah-you-get-threat-intelligence.jpg?resize=620%2C465&#038;ssl=1" alt="" class="wp-image-611" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/oprah-you-get-threat-intelligence.jpg?w=620&amp;ssl=1 620w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/07/oprah-you-get-threat-intelligence.jpg?resize=300%2C225&amp;ssl=1 300w" sizes="(max-width: 620px) 100vw, 620px" /></figure>



<p><a href="https://www.microsoft.com/en-us/security/blog/2021/07/12/microsoft-to-acquire-riskiq-to-strengthen-cybersecurity-of-digital-transformation-and-hybrid-work/" target="_blank" rel="noreferrer noopener">RiskIQ&#8217;s acquisition by Microsoft</a> back in 2021 seems to be paying off by providing a highly competitive product of threat intelligence <strong>giving the tools for both beginners and intermediate users to be aware, to identify and address emerging and highly-impact threats</strong>.</p>



<p>Have you been using MDTI Basic? If yes, what do you think?</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.michalos.net/2024/07/23/five-reasons-to-start-using-microsoft-defender-threat-intelligence-basic/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">541</post-id>	</item>
		<item>
		<title>Keeping an eye on WSL through Microsoft Defender for Endpoint</title>
		<link>https://www.michalos.net/2024/06/25/keeping-an-eye-on-wsl-through-microsoft-defender-for-endpoint/</link>
					<comments>https://www.michalos.net/2024/06/25/keeping-an-eye-on-wsl-through-microsoft-defender-for-endpoint/#respond</comments>
		
		<dc:creator><![CDATA[cyb3rmik3]]></dc:creator>
		<pubDate>Tue, 25 Jun 2024 13:38:21 +0000</pubDate>
				<category><![CDATA[Advanced Hunting]]></category>
		<category><![CDATA[Microsoft Azure]]></category>
		<category><![CDATA[Microsoft Defender for Endpoint]]></category>
		<category><![CDATA[Microsoft Defender XDR]]></category>
		<category><![CDATA[Microsoft Security]]></category>
		<category><![CDATA[Microsoft Sentinel]]></category>
		<category><![CDATA[kql]]></category>
		<category><![CDATA[kusto query language]]></category>
		<category><![CDATA[microsoft azure]]></category>
		<category><![CDATA[microsoft security]]></category>
		<guid isPermaLink="false">https://www.michalos.net/?p=463</guid>

					<description><![CDATA[Introduction The days that Microsoft considered Linux a cancer, have been long gone. Microsoft&#8217;s strategy has not only embraced Linux, but developed groundwork to provide the necessary means for open source projects to flourish, leaving behind the early 2000&#8217;s rivalries. With that said, Microsoft introduced Windows Subsystem for Linux&#160;(WSL) in 2016, allowing Windows users to [&#8230;]]]></description>
										<content:encoded><![CDATA[
<ul class="wp-block-list">
<li>Introduction</li>



<li>Identify endpoints that run WSL and/or MDE plug-in</li>



<li>MDE plug-in deployment</li>



<li>Let&#8217;s go hunt!</li>



<li>Considerations</li>



<li>Closing remarks</li>
</ul>



<h3 class="wp-block-heading">Introduction</h3>



<p>The days that Microsoft considered Linux a cancer, have been long gone. Microsoft&#8217;s strategy has not only embraced Linux, but developed groundwork to provide the necessary means for open source projects to flourish, leaving behind the early 2000&#8217;s rivalries. With that said, Microsoft introduced <strong>Windows Subsystem for Linux</strong>&nbsp;(<strong>WSL</strong>) in 2016, allowing Windows users to run a Linux environment without the need of a separate system, or VM. </p>



<figure class="wp-block-image size-full is-resized"><img data-recalc-dims="1" loading="lazy" decoding="async" width="720" height="480" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/06/microsoftloveslinux.jpg?resize=720%2C480&#038;ssl=1" alt="Microsoft loves Linux." class="wp-image-477" style="width:650px;height:auto" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/06/microsoftloveslinux.jpg?w=720&amp;ssl=1 720w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/06/microsoftloveslinux.jpg?resize=300%2C200&amp;ssl=1 300w" sizes="(max-width: 720px) 100vw, 720px" /><figcaption class="wp-element-caption">Microsoft <img src="https://s.w.org/images/core/emoji/15.0.3/72x72/2764.png" alt="❤" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Linux.</figcaption></figure>



<p>As we already know, with new features like this, new attack paths come along. There are some stories already of exploited WSL by threat actors. It&#8217;s no secret that the WSL operates as a semi-independent environment given for example that Windows users are not associated with the users of WSL. Microsoft recently added a Defender for Endpoint plug-in to monitor and protect WSL environments and this is what this blog is all about.</p>



<h3 class="wp-block-heading">Identify endpoints that run WSL and/or MDE plug-in</h3>



<p>First things first, let&#8217;s identify endpoints that users run WSL with the following KQL:</p>



<pre class="wp-block-code"><code>DeviceProcessEvents
| where ActionType has "ProcessCreated"
| where ProcessVersionInfoOriginalFileName has "wsl.exe"
| where ProcessVersionInfoFileDescription has "Windows Subsystem for Linux"
| summarize by DeviceName</code></pre>



<p>You can also identify which of your endpoints already have the MDE plug-in:</p>



<pre class="wp-block-code"><code>DeviceTvmSoftwareInventory
| where SoftwareName has "microsoft_defender_for_endpoint_plug-in_for_wsl"
| summarize by DeviceName</code></pre>



<p>Joining forces from the queries above, you can identify endpoints running WSL but don&#8217;t have the plug-in installed:</p>



<pre class="wp-block-code"><code>let WSLDevices = DeviceProcessEvents
| where ActionType has "ProcessCreated"
| where ProcessVersionInfoOriginalFileName has "wsl.exe"
| where ProcessVersionInfoFileDescription has "Windows Subsystem for Linux"
| project DeviceName;
WSLDevices
    | join kind=leftanti (DeviceTvmSoftwareInventory
    | where SoftwareName has "microsoft_defender_for_endpoint_plug-in_for_wsl"
    | project DeviceName
) on DeviceName</code></pre>



<div class="wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex">
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="https://github.com/cyb3rmik3/KQL-threat-hunting-queries/" target="_blank" rel="noreferrer noopener">Find out more KQL queries here</a></div>
</div>



<h3 class="wp-block-heading">MDE plug-in deployment</h3>



<p>MDE plug-in deployment is straightforward, and includes 3 steps:</p>



<ul class="wp-block-list">
<li>Download the Windows Subsystem for Linux 2 (plug-in).</li>



<li>Deploy it at the endpoint.</li>



<li>Check your Assets, you will find a <strong>WSL2</strong> tagged device same Device Name as your WSL host.</li>
</ul>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="547" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/05/image.png?resize=1024%2C547&#038;ssl=1" alt="" class="wp-image-464" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/05/image.png?resize=1024%2C547&amp;ssl=1 1024w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/05/image.png?resize=300%2C160&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/05/image.png?resize=768%2C410&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/05/image.png?resize=1536%2C821&amp;ssl=1 1536w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/05/image.png?w=1692&amp;ssl=1 1692w" sizes="(max-width: 1000px) 100vw, 1000px" /><figcaption class="wp-element-caption">Download the Windows Subsystem for Linux 2 (plug-in) from Onboarding blade.</figcaption></figure>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="780" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/06/image.png?resize=1024%2C780&#038;ssl=1" alt="" class="wp-image-469" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/06/image.png?resize=1024%2C780&amp;ssl=1 1024w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/06/image.png?resize=300%2C229&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/06/image.png?resize=768%2C585&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/06/image.png?w=1134&amp;ssl=1 1134w" sizes="(max-width: 1000px) 100vw, 1000px" /><figcaption class="wp-element-caption">Making sure everything is up and running as expected.</figcaption></figure>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="189" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/06/image-1.png?resize=1024%2C189&#038;ssl=1" alt="" class="wp-image-494" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/06/image-1.png?resize=1024%2C189&amp;ssl=1 1024w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/06/image-1.png?resize=300%2C55&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/06/image-1.png?resize=768%2C142&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/06/image-1.png?w=1375&amp;ssl=1 1375w" sizes="(max-width: 1000px) 100vw, 1000px" /><figcaption class="wp-element-caption">Endpoint that runs WSL and a new endpoint reflecting the WSL instance tagged as <strong>WSL2</strong>.</figcaption></figure>



<h3 class="wp-block-heading">Let&#8217;s go hunt!</h3>



<p>After experimenting with WSL and pivoting using KQL, the following tables (<span style="text-decoration: underline;">at my lab</span>) are being fed with data:</p>



<ul class="wp-block-list">
<li>DeviceNetworkInfo</li>



<li>DeviceInfo</li>



<li>DeviceNetworkEvents</li>



<li>DeviceFileEvents</li>



<li>DeviceProcessEvents</li>



<li>DeviceEvents</li>



<li>DeviceTvmSoftwareEvidenceBeta</li>



<li>DeviceTvmInfoGathering</li>



<li>DeviceTvmSecureConfigurationAssessment</li>



<li>DeviceTvmSoftwareInventory</li>



<li>ExposureGraphNodes</li>
</ul>



<figure class="wp-block-image aligncenter size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="500" height="500" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/06/got-some-tables-to-work-with.jpg?resize=500%2C500&#038;ssl=1" alt="" class="wp-image-496" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/06/got-some-tables-to-work-with.jpg?w=500&amp;ssl=1 500w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/06/got-some-tables-to-work-with.jpg?resize=300%2C300&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/06/got-some-tables-to-work-with.jpg?resize=150%2C150&amp;ssl=1 150w" sizes="(max-width: 500px) 100vw, 500px" /></figure>



<p><strong>DeviceNetworkEvents</strong>, <strong>DeviceFileEvents </strong>and <strong>DeviceProcessEvents</strong> can provide fruitful data for threat hunting and detection opportunities. Rest of the tables, are useful too to build cases.</p>



<p>Commencing with the <strong>Advanced Hunting</strong>, it is preferable to hunt within the tables only for endpoints that are <strong>WSL2 </strong>tagged. This will be more precise and will reduce the noise from the command lines of your environment.</p>



<p>A simple hunt to begin with could be the following, looking for reconnaissance  activity:</p>



<pre class="wp-block-code"><code>let WSLSuspicousList = dynamic(&#91;"whoami", "uname", "find", "grep", "cron -l", "/etc/shadow", "/etc/passwd", "/etc/sudoers", "w"]); 
let TimeFrame = 30d; // Choose the best timeframe for your investigation
DeviceInfo
    | where RegistryDeviceTag has "WSL2"
    | project DeviceId
| join ( DeviceProcessEvents
    | where Timestamp > ago(TimeFrame)
    | where ActionType == "ProcessCreated"
    | where ProcessCommandLine has_any (WSLSuspicousList)
    | project TimeGenerated, WSLDeviceID = DeviceId, DeviceName, FileName, FolderPath, ProcessId, ProcessCommandLine, AccountDomain, AccountName
    )
on $left.DeviceId == $right.WSLDeviceID
| sort by TimeGenerated desc</code></pre>



<p>Within the dynamic data declared, you may choose to hunt for further options based on your requirements. For example, a keywords list looking for privilege escalation commands would look like:</p>



<pre class="wp-block-code"><code>let WSLSuspicousList = dynamic(&#91;"chmod", "sudo", "-su", "acl", "chown", "adduser", "addgroup", "usermod", "passwd"]);</code></pre>



<p><strong>DeviceFileEvents </strong>is fruitful as well, as it allows detection of suspicious file creation. The following KQL query for example, would help identify suspicious creation of files in /etc for persistence:</p>



<pre class="wp-block-code"><code>let LinuxPerSuspicousCommands = dynamic(&#91;"/etc/ld.so.conf.d/", "/etc/cron.d/", "/etc/sudoers.d/", "/etc/rc.d/init.d/", "/etc/systemd/system/","/usr/lib/systemd/system/"]);
let TimeFrame = 30d; // Choose the best timeframe for your investigation
DeviceInfo
    | where RegistryDeviceTag has "WSL2"
    | project DeviceId
| join ( DeviceFileEvents
    | where Timestamp > ago(TimeFrame)
    | where ActionType == "FileCreated"
    | where FolderPath has_any (LinuxPerSuspicousCommands)
    | project TimeGenerated, WSLDeviceID = DeviceId, DeviceName, FileName, FolderPath
    )
on $left.DeviceId == $right.WSLDeviceID
| sort by TimeGenerated desc</code></pre>



<p>Query inspired by this <a href="https://www.elastic.co/guide/en/security/current/suspicious-file-creation-in-etc-for-persistence.html" target="_blank" rel="noreferrer noopener">hunting </a>rule.</p>



<p><strong>DeviceNetworkEvents</strong> can also help hunting. However, during the tests performed, I noticed a shift in <strong>ActionType </strong>results. While in regular results you would expect ConnectionSuccess, ConnectionAcknowledged or DnsConnectionInspected etc, DeviceNetworkEvents for WSL at least for the time tested, does not provide that fruitful results. Hence, I would be wary on pivoting through the <strong>ActionType </strong>column and stay focused on more common schema data such as <strong>RemoteIP</strong>, <strong>RemotePort </strong>etc. </p>



<h3 class="wp-block-heading">Considerations</h3>



<h4 class="wp-block-heading">Host threat hunting</h4>



<p>Given that it is common for users with elevated privileges to be working with WSL, it won&#8217;t be a surprise if threat actors might try to take this into advantage. The following query, will assist in hunting for suspicious WSL invoking. Apart from what can be detected within the instance of WSL, keep an eye on the host as well.</p>



<pre class="wp-block-code"><code>let WSLHostSuspicousList = dynamic(&#91;"curl", "/etc/shadow", "/etc/passwd", "cat", "--system", "root", "-e", "--exec", "bash", "/mnt/c/"]); 
let TimeFrame = 30d; // Choose the best timeframe for your investigation
DeviceProcessEvents
    | where Timestamp > ago(TimeFrame)
    | where InitiatingProcessFileName has "wsl.exe"
    | where ProcessCommandLine has_any (WSLHostSuspicousList)
    | project TimeGenerated, DeviceId, DeviceName, FileName, FolderPath, ProcessId, ProcessCommandLine, AccountDomain, AccountName
    | sort by TimeGenerated desc </code></pre>



<p>Query inspired by this <a href="https://www.elastic.co/guide/en/security/current/suspicious-execution-via-windows-subsystem-for-linux.html" target="_blank" rel="noreferrer noopener">hunting </a>rule.</p>



<h4 class="wp-block-heading">Isolation</h4>



<p>Don&#8217;t try to isolate the WSL, you can&#8217;t! If any of your hunts turn into detection, you will have to make sure to isolate the endpoint that reflects the host, and not the WSL-tagged endpoint.</p>



<h4 class="wp-block-heading">Device table searches and automations</h4>



<p>As you probably have figured out from the blog, having two devices with the same DeviceName, but different DeviceId could be troublesome. It requires some extra effort to differentiate those devices and build queries for the devices you actually want. Taking this one step further, this requires some extra effort when it comes to automations also.</p>



<h4 class="wp-block-heading">Visible asset</h4>



<p>If you don&#8217;t see your WSL device immediately, don&#8217;t worry, it will eventually come up. This might be the case when you are using the WSL occasionally and not in a daily basis. </p>



<h3 class="wp-block-heading">Closing remarks</h3>



<figure class="wp-block-image aligncenter size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="584" height="427" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/06/look-at-me-wsl-meme.jpg?resize=584%2C427&#038;ssl=1" alt="" class="wp-image-527" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/06/look-at-me-wsl-meme.jpg?w=584&amp;ssl=1 584w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/06/look-at-me-wsl-meme.jpg?resize=300%2C219&amp;ssl=1 300w" sizes="(max-width: 584px) 100vw, 584px" /></figure>



<p>WSL by itself is a blind spot within your endpoints and can be used to elevate access, build persistence even -as seen in the wild- be used straight from CnC mechanisms and threat actors. The WSL plug-in sheds light on this blind spot and allows building a monitoring capacity which combined with the rest of Defender XDR and Sentinel ecosystem can further fortify this attack vector.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.michalos.net/2024/06/25/keeping-an-eye-on-wsl-through-microsoft-defender-for-endpoint/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">463</post-id>	</item>
		<item>
		<title>Operationalizing MITRE ATT&#038;CK with Microsoft Security (Part 2)</title>
		<link>https://www.michalos.net/2024/03/25/operationalizing-mitre-attck-with-microsoft-security-part-2/</link>
					<comments>https://www.michalos.net/2024/03/25/operationalizing-mitre-attck-with-microsoft-security-part-2/#respond</comments>
		
		<dc:creator><![CDATA[cyb3rmik3]]></dc:creator>
		<pubDate>Mon, 25 Mar 2024 07:22:35 +0000</pubDate>
				<category><![CDATA[Advanced Hunting]]></category>
		<category><![CDATA[Microsoft Azure]]></category>
		<category><![CDATA[Microsoft Security]]></category>
		<category><![CDATA[Microsoft Sentinel]]></category>
		<category><![CDATA[kql]]></category>
		<category><![CDATA[kusto query language]]></category>
		<category><![CDATA[microsoft azure]]></category>
		<category><![CDATA[microsoft security]]></category>
		<category><![CDATA[microsoft sentinel]]></category>
		<category><![CDATA[mitre att&ck]]></category>
		<guid isPermaLink="false">https://www.michalos.net/?p=169</guid>

					<description><![CDATA[It has been some time since Part 1 of this blog has been posted, you may find it here. First part, focused mainly on the benefits and how to operationalize MITRE ATT&#38;CK at Microsoft Defender XDR while this blog will focus on Microsoft Sentinel. Table of contents Part 2: Microsoft Sentinel Analytics The first, and [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>It has been some time since Part 1 of this blog has been posted, you may find it <a href="https://www.michalos.net/2023/05/29/operationalizing-mitre-attck-with-microsoft-security-part-1/" data-type="link" data-id="https://www.michalos.net/2023/05/29/operationalizing-mitre-attck-with-microsoft-security-part-1/">here</a>. First part, focused mainly on the benefits and how to operationalize MITRE ATT&amp;CK at Microsoft Defender XDR while this blog will focus on Microsoft Sentinel.</p>



<h4 class="wp-block-heading">Table of contents</h4>



<ul class="wp-block-list">
<li>Analytics</li>



<li>Hunting</li>



<li>The MITRE ATT&amp;CK blade</li>



<li>Workbooks</li>



<li>KQL queries</li>



<li>Closing remarks</li>
</ul>



<h3 class="wp-block-heading">Part 2: Microsoft Sentinel</h3>



<h4 class="wp-block-heading">Analytics</h4>



<p>The first, and probably most fundamental place to begin with MITRE ATT&amp;CK in Microsoft Sentinel is the <strong>Analytics </strong>blade. Eventually, all incidents&#8217; mapping will be based on the contextualization of the Tactics and Techniques configured per rule here. Below, is the look and feel for the out-of-the-box templates, provided by Microsoft where Tactics and Techniques are present.</p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="485" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image.png?resize=1024%2C485&#038;ssl=1" alt="" class="wp-image-433" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image.png?resize=1024%2C485&amp;ssl=1 1024w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image.png?resize=300%2C142&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image.png?resize=768%2C364&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image.png?w=1428&amp;ssl=1 1428w" sizes="(max-width: 1000px) 100vw, 1000px" /></figure>



<p>Choosing a template will also provide you with details about the mapping.</p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="403" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-1.png?resize=1024%2C403&#038;ssl=1" alt="" class="wp-image-434" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-1.png?resize=1024%2C403&amp;ssl=1 1024w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-1.png?resize=300%2C118&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-1.png?resize=768%2C302&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-1.png?w=1537&amp;ssl=1 1537w" sizes="(max-width: 1000px) 100vw, 1000px" /></figure>



<p>Of course, before creating your Active analytics rule, by clicking Create rule, you can review the Tactics and Techniques in order to map your Tactics and Techniques of preference.</p>



<p>Triggering a simple Analytics rule, will provide the following Alert and relevant Security Incident that for the built-in &#8220;TI map File Hash to DeviceFileEvents Event&#8221; as an example has Impact as a pre-configured Tactic.</p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="371" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-3.png?resize=1024%2C371&#038;ssl=1" alt="" class="wp-image-439" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-3.png?resize=1024%2C371&amp;ssl=1 1024w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-3.png?resize=300%2C109&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-3.png?resize=768%2C278&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-3.png?resize=1536%2C556&amp;ssl=1 1536w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-3.png?w=1560&amp;ssl=1 1560w" sizes="(max-width: 1000px) 100vw, 1000px" /></figure>



<h4 class="wp-block-heading">Hunting</h4>



<p>Next place to look into, is the <strong>Hunting </strong>blade. Hunting also incorporates MITRE ATT&amp;CK to contextualize queries that you build and use for threat hunting.</p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="476" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-2.png?resize=1024%2C476&#038;ssl=1" alt="" class="wp-image-435" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-2.png?resize=1024%2C476&amp;ssl=1 1024w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-2.png?resize=300%2C140&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-2.png?resize=768%2C357&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-2.png?w=1434&amp;ssl=1 1434w" sizes="(max-width: 1000px) 100vw, 1000px" /></figure>



<p>Apart from the general categorization, which you may notice on top, each query is also contextualized based on Tactics and Techniques. Queries here can be used to build <strong>Hunts</strong>, a complete hunting capacity that can be used along known frameworks such as <a href="https://medium.com/@chemiron2020/threat-hunting-and-threat-hunting-frameworks-bb56fd10a701" data-type="link" data-id="https://medium.com/@chemiron2020/threat-hunting-and-threat-hunting-frameworks-bb56fd10a701" target="_blank" rel="noreferrer noopener">TaHiTI or PEAK</a>. </p>



<p>Each Hunt then builds its own queries&#8217; MITRE ATT&amp;CK map, bringing together individualized capacity for your intelligence.</p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="385" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-4.png?resize=1024%2C385&#038;ssl=1" alt="" class="wp-image-441" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-4.png?resize=1024%2C385&amp;ssl=1 1024w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-4.png?resize=300%2C113&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-4.png?resize=768%2C289&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-4.png?w=1463&amp;ssl=1 1463w" sizes="(max-width: 1000px) 100vw, 1000px" /></figure>



<h4 class="wp-block-heading">The MITRE ATT&amp;CK blade</h4>



<p>Having built your queries in Analytics and the Hunting blade, is the way to ingest your relevant framework capacity at the <strong>MITRE ATT&amp;CK</strong> blade and the heatmap provided by Microsoft Sentinel.</p>



<p>There are some things to consider here, as the heatmap can be built by incorporating various information. You may choose between Active and Simulated coverage. By default, you may use the <strong>Active</strong> detections, this will build a heatmap of the active and currently deployed query rules you use either they fall under the <strong>Scheduled</strong>, <strong>Near-real-time (NRT)</strong> or <strong>Anomaly </strong>category. On the other hand, you can enrich the heatmap by <strong>Simulated </strong>rules which include <strong>Analytics</strong> rule templates, <strong>Hunting</strong> queries and <strong>Anomaly </strong>rules. You may also find used the <strong>Legend</strong>, a gradual coloring for each Tactic and Technique based on the rules engaged.</p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="405" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-5.png?resize=1024%2C405&#038;ssl=1" alt="" class="wp-image-443" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-5.png?resize=1024%2C405&amp;ssl=1 1024w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-5.png?resize=300%2C119&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-5.png?resize=768%2C304&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-5.png?w=1522&amp;ssl=1 1522w" sizes="(max-width: 1000px) 100vw, 1000px" /></figure>



<p>It&#8217;s important to remember that Active queries, are actually running at the moment and any Security Alert and Security incident raised provided that the query has been associated with the relevant Tactics and Techniques, contributes to the MITRE ATT&amp;CK heatmap. Simulated queries reflects the same idea deriving from templates and the Hunting blade but they contribute to the heatmap <strong>as a capacity you my have over the MITRE ATT&amp;CK framework</strong>, rather than actual coverage. Thus, for each Tactic and Technique, you can distinguish each category.</p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="306" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-6.png?resize=1024%2C306&#038;ssl=1" alt="" class="wp-image-444" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-6.png?resize=1024%2C306&amp;ssl=1 1024w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-6.png?resize=300%2C90&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-6.png?resize=768%2C230&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-6.png?w=1285&amp;ssl=1 1285w" sizes="(max-width: 1000px) 100vw, 1000px" /></figure>



<p>Another tool that can be used here is the the <a href="https://github.com/Azure/Azure-Sentinel/tree/a8e7b542f7bdaae09040757d46d55830fa81c31b/Tools/ExtractMITRE" data-type="link" data-id="https://github.com/Azure/Azure-Sentinel/tree/a8e7b542f7bdaae09040757d46d55830fa81c31b/Tools/ExtractMITRE" target="_blank" rel="noreferrer noopener">ExtractMITRE</a>, in case you want the heatmap information exported and used from your Cyber Threat Intelligence team for various purposes including reporting etc.</p>



<h4 class="wp-block-heading">Workbooks</h4>



<p>Last, but not least, Microsoft Sentinel comes with an out-of-the-box <strong>Workbook</strong> template that maps detections coverage across the MITRE ATT&amp;CK framework. It also comes with a set of heatmaps based on cloud platforms including Azure, Microsoft Entra ID and more.</p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="757" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-7.png?resize=1024%2C757&#038;ssl=1" alt="" class="wp-image-447" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-7.png?resize=1024%2C757&amp;ssl=1 1024w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-7.png?resize=300%2C222&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-7.png?resize=768%2C568&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/03/image-7.png?w=1117&amp;ssl=1 1117w" sizes="(max-width: 1000px) 100vw, 1000px" /></figure>



<h4 class="wp-block-heading">KQL Queries</h4>



<p>As with Part 1, a relevant KQL query for Microsoft Sentinel providing information about Techniques associated with Security Alerts, can be found below.</p>



<pre class="wp-block-code"><code>SecurityAlert
// Define timerange
| where TimeGenerated &gt; ago(30d)
| where isnotempty(Techniques)
| mvexpand todynamic(Techniques) to typeof(string)
| summarize AlertCount = dcount(SystemAlertId) by Techniques
| sort by AlertCount desc
// Define graphic
| render piechart </code></pre>



<h4 class="wp-block-heading">Closing remarks</h4>



<p>The capacity of operationalizing MITRE ATT&amp;CK in Microsoft Defender XDR but especially in Microsoft Sentinel, has grown significantly providing lots of capabilities for Threat Hunters and Cyber Threat Intelligence Analysts. By understanding the approach in Microsoft Sentinel along with Active and Simulated coverage, a Hunter or an Analyst could take advantage of a well disciplined path to build threat-informed defenses. Deriving from the above though, the journey of operationalizing MITRE ATT&amp;CK begins in the queries, where Tactics and Techniques must be claimed.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.michalos.net/2024/03/25/operationalizing-mitre-attck-with-microsoft-security-part-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">169</post-id>	</item>
		<item>
		<title>Isolated an Endpoint? Automate tag adding and notifications</title>
		<link>https://www.michalos.net/2024/02/20/isolated-an-endpoint-automate-tag-adding-and-notifications/</link>
					<comments>https://www.michalos.net/2024/02/20/isolated-an-endpoint-automate-tag-adding-and-notifications/#respond</comments>
		
		<dc:creator><![CDATA[cyb3rmik3]]></dc:creator>
		<pubDate>Tue, 20 Feb 2024 21:34:44 +0000</pubDate>
				<category><![CDATA[Advanced Hunting]]></category>
		<category><![CDATA[Microsoft Azure]]></category>
		<category><![CDATA[Microsoft Defender for Endpoint]]></category>
		<category><![CDATA[Microsoft Defender XDR]]></category>
		<category><![CDATA[Microsoft Security]]></category>
		<category><![CDATA[Microsoft Sentinel]]></category>
		<category><![CDATA[kql]]></category>
		<category><![CDATA[kusto query language]]></category>
		<category><![CDATA[microsoft azure]]></category>
		<category><![CDATA[microsoft security]]></category>
		<guid isPermaLink="false">https://www.michalos.net/?p=380</guid>

					<description><![CDATA[If you are part of a big organization, you might need to reach out to some colleagues and teams, in case you isolate an endpoint. An end user will probably reach out to your help desk in order to identify if there is an issue with her/his endpoint. Hence, you may want to spare some [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>If you are part of a big organization, you might need to reach out to some colleagues and teams, in case you isolate an endpoint. An end user will probably reach out to your help desk in order to identify if there is an issue with her/his endpoint. Hence, you may want to spare some time of back and forth of emails or direct messages.</p>



<p>On the other hand, if you are part of a team, and most importantly if you are working remotely, you might want to have direct access to which of your endpoints are isolated. In this case, a tag which can also be used for filtering, could do the job.</p>



<p>Following, we will deploy a Logic App, which runs a KQL query identifying which endpoints have been isolated, and will automatically add a tag and send a notification email to your help desk.</p>



<figure class="wp-block-image aligncenter size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="420" height="427" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-8.png?resize=420%2C427&#038;ssl=1" alt="" class="wp-image-408" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-8.png?w=420&amp;ssl=1 420w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-8.png?resize=295%2C300&amp;ssl=1 295w" sizes="(max-width: 420px) 100vw, 420px" /></figure>



<p>Before building the Logic App, first step is to define the KQL query, which will identify which endpoints have been isolated. Following thorough investigation, once you isolate an endpoint the registry changes below take place and hence, provide us with a detection opportunity.</p>



<pre class="wp-block-code"><code>DeviceRegistryEvents
| where ActionType == "RegistryValueSet"
| where RegistryKey == @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Advanced Threat Protection"
| where RegistryValueType == "Dword"
| where RegistryValueName == "DisableEnterpriseAuthProxyValueToRestoreAfterIsolation"
| where RegistryValueData == "1"
| where PreviousRegistryValueName == "DisableEnterpriseAuthProxyValueToRestoreAfterIsolation"
| project Timestamp, DeviceId, DeviceName</code></pre>



<p>Now that we know the KQL query, we can build the Logic App. </p>



<figure class="wp-block-image size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="731" height="909" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-9.png?resize=731%2C909&#038;ssl=1" alt="" class="wp-image-411" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-9.png?w=731&amp;ssl=1 731w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-9.png?resize=241%2C300&amp;ssl=1 241w" sizes="(max-width: 731px) 100vw, 731px" /></figure>



<p>Once the Deployment is complete, click at <strong>Go to resource</strong> and from the Logic App page, choose the <strong>Logic app designer</strong> from the left pane. Click on <strong>Add a trigger</strong>, search for <strong>Recurrence</strong>, click on it and select how often you would like to check for isolated endpoints and also, choose your Time zone.</p>



<figure class="wp-block-image size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="977" height="465" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-2.png?resize=977%2C465&#038;ssl=1" alt="" class="wp-image-386" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-2.png?w=977&amp;ssl=1 977w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-2.png?resize=300%2C143&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-2.png?resize=768%2C366&amp;ssl=1 768w" sizes="(max-width: 977px) 100vw, 977px" /></figure>



<p>Then, under Recurrence step, click on the + sign and then click <strong>Add an action</strong>.</p>



<figure class="wp-block-image aligncenter size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="334" height="163" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-3.png?resize=334%2C163&#038;ssl=1" alt="" class="wp-image-387" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-3.png?w=334&amp;ssl=1 334w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-3.png?resize=300%2C146&amp;ssl=1 300w" sizes="(max-width: 334px) 100vw, 334px" /></figure>



<p>Then search for &#8220;run query&#8221; and from the results below, choose <strong>Run query and list results</strong>. Insert <strong>Subscription</strong>, <strong>Resource Group</strong>, <strong>Resource Type</strong> (Log Analytics Workspace) and <strong>Resource Name</strong>, just as your Sentinel. Then insert the query mentioned above.</p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="603" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-4.png?resize=1024%2C603&#038;ssl=1" alt="" class="wp-image-388" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-4.png?resize=1024%2C603&amp;ssl=1 1024w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-4.png?resize=300%2C177&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-4.png?resize=768%2C452&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-4.png?w=1274&amp;ssl=1 1274w" sizes="(max-width: 1000px) 100vw, 1000px" /></figure>



<p>Now add a new action, search for &#8220;tag machine&#8221; and under Microsoft Defender ATP, choose <strong>Machines &#8211; Tag machine</strong>. Follow the steps below and choose the proper tag for your environment.</p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="450" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-10.png?resize=1024%2C450&#038;ssl=1" alt="" class="wp-image-413" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-10.png?resize=1024%2C450&amp;ssl=1 1024w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-10.png?resize=300%2C132&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-10.png?resize=768%2C337&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-10.png?w=1385&amp;ssl=1 1385w" sizes="(max-width: 1000px) 100vw, 1000px" /></figure>



<p>Add a new action, search for &#8220;send an email&#8221; and choose <strong>Send an email (V2)</strong>. Now here, based on your operations, choose the <strong>Recipients</strong>, a suitable <strong>Subject</strong>, any <strong>Advanced parameters</strong> and also the <strong>Importance</strong>.</p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="481" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-12.png?resize=1024%2C481&#038;ssl=1" alt="" class="wp-image-415" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-12.png?resize=1024%2C481&amp;ssl=1 1024w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-12.png?resize=300%2C141&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-12.png?resize=768%2C361&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-12.png?resize=1536%2C721&amp;ssl=1 1536w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-12.png?w=1644&amp;ssl=1 1644w" sizes="(max-width: 1000px) 100vw, 1000px" /></figure>



<p>Since I have already build Logic Apps, I already have a connection with my mailbox to send notifications. You can choose <strong>Change connection</strong> to select any mailbox from your environment you want to send notifications from.</p>



<p>Click at <strong>Save </strong>and your Logic App, <strong>is ready</strong>.</p>



<p>Now, let&#8217;s test our Logic App. Isolate an endpoint and wait a few minutes, KQL query will take a few minutes to return results. Then trigger the Logic App by clicking at <strong>Run </strong>at the Logic App options ribbon.</p>



<figure class="wp-block-image size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="576" height="224" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-13.png?resize=576%2C224&#038;ssl=1" alt="" class="wp-image-417" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-13.png?w=576&amp;ssl=1 576w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-13.png?resize=300%2C117&amp;ssl=1 300w" sizes="(max-width: 576px) 100vw, 576px" /></figure>



<p>If everything has worked as expected, you should be able to filter at your Devices in Defender XDR by &#8220;Isolated&#8221; as tag and also, you should have received a relevant email notification.</p>



<figure class="wp-block-image aligncenter size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="455" height="144" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-14.png?resize=455%2C144&#038;ssl=1" alt="" class="wp-image-419" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-14.png?w=455&amp;ssl=1 455w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-14.png?resize=300%2C95&amp;ssl=1 300w" sizes="(max-width: 455px) 100vw, 455px" /></figure>



<figure class="wp-block-image aligncenter size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="671" height="250" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-15.png?resize=671%2C250&#038;ssl=1" alt="" class="wp-image-420" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-15.png?w=671&amp;ssl=1 671w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/02/image-15.png?resize=300%2C112&amp;ssl=1 300w" sizes="(max-width: 671px) 100vw, 671px" /></figure>



<p>You can also automate reversing tag adding, and sending a relevant notification that an endpoint has been removed from isolation by building a similar Logic App and choosing <strong>Remove </strong>instead of Add in the Machine &#8211; Tag machine step, and changing the wording at the notification email. Most importantly, you will need to replace the KQL query as well, with the following.</p>



<pre class="wp-block-code"><code>DeviceRegistryEvents
| where ActionType == "RegistryValueDeleted"
| where PreviousRegistryKey == @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Advanced Threat Protection"
| where RegistryValueType == "None"
| where PreviousRegistryValueData == "1"
| where PreviousRegistryValueName == "DisableEnterpriseAuthProxyValueToRestoreAfterIsolation"
| project Timestamp, DeviceId, DeviceName</code></pre>



<p>I hope you enjoyed this blog!</p>



<p>EDIT 29/2/2024: Big shout out to <a href="https://www.verboon.info/" target="_blank" rel="noreferrer noopener">Alex Verboon</a> for his constructive feedback.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.michalos.net/2024/02/20/isolated-an-endpoint-automate-tag-adding-and-notifications/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">380</post-id>	</item>
		<item>
		<title>Harnessing threat intelligence using externaldata operator</title>
		<link>https://www.michalos.net/2024/01/22/harnessing-threat-intelligence-using-externaldata-operator/</link>
					<comments>https://www.michalos.net/2024/01/22/harnessing-threat-intelligence-using-externaldata-operator/#respond</comments>
		
		<dc:creator><![CDATA[cyb3rmik3]]></dc:creator>
		<pubDate>Mon, 22 Jan 2024 18:30:06 +0000</pubDate>
				<category><![CDATA[Advanced Hunting]]></category>
		<category><![CDATA[Cyber Threat Intelligence]]></category>
		<category><![CDATA[Microsoft Defender XDR]]></category>
		<category><![CDATA[Microsoft Security]]></category>
		<category><![CDATA[Microsoft Sentinel]]></category>
		<category><![CDATA[cyber threat intelligence]]></category>
		<category><![CDATA[kql]]></category>
		<category><![CDATA[kusto query language]]></category>
		<category><![CDATA[microsoft defender xdr]]></category>
		<category><![CDATA[microsoft security]]></category>
		<guid isPermaLink="false">https://www.michalos.net/?p=351</guid>

					<description><![CDATA[Having a Threat Intelligence Platform (TIP) to maintain Indicators of Compromise (IoCs) is somewhat a standard these days. However, not all organizations use a TIP such as MISP, but this shouldn&#8217;t prevent anyone from using threat intelligence feeds for hunting, especially when it comes to Microsoft Defender XDR. Table of Contents What are threat intelligence [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Having a Threat Intelligence Platform (TIP) to maintain Indicators of Compromise (IoCs) is somewhat a standard these days. However, not all organizations use a TIP such as MISP, but this shouldn&#8217;t prevent anyone from using threat intelligence feeds for hunting, especially when it comes to Microsoft Defender XDR.</p>



<h4 class="wp-block-heading">Table of Contents</h4>



<ul class="wp-block-list">
<li>What are threat intelligence (TI) feeds and why should I consider using them?</li>



<li>How can the externaldata operator help harness threat feeds?</li>



<li>What kind of files are supported?</li>



<li>How can I use the externaldata operator?</li>



<li>Actual examples of externaldata operator, harnessing threat feeds
<ul class="wp-block-list">
<li>Domains</li>



<li>IPs</li>



<li>File hashes</li>



<li>Keywords</li>
</ul>
</li>



<li>Further resources to consider</li>



<li>Closing remarks</li>
</ul>



<h3 class="wp-block-heading">What are threat intelligence (TI) feeds and why should I consider using them?</h3>



<p>Threat Intelligence (TI) feeds are streams of information and data often curated in some form of context (i.e. IPs, hashes or categories such specific malware, etc.) and they provide actionable insights about potential attacks  cybersecurity threats and risks. </p>



<p>More and more organizations decide to use TI feeds in order to keep defenses up to date and also, be prepared for emerging threats.</p>



<h3 class="wp-block-heading">How can the externaldata operator help harness threat feeds?</h3>



<p>According to Microsoft documentation:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p><em>The&nbsp;</em><em><code>externaldata</code></em><em>&nbsp;operator returns a table whose schema is defined in the query itself, and whose data is read from an external storage artifact, such as a blob in Azure Blob Storage or a file in Azure Data Lake Storage.</em></p>
<cite><a href="https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/externaldata-operator?pivots=azuredataexplorer" data-type="link" data-id="https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/externaldata-operator?pivots=azuredataexplorer">e</a><a href="https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/externaldata-operator?pivots=azuredataexplorer" data-type="link" data-id="https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/externaldata-operator?pivots=azuredataexplorer" target="_blank" rel="noreferrer noopener">xternaldata operato</a><a href="https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/externaldata-operator?pivots=azuredataexplorer" data-type="link" data-id="https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/externaldata-operator?pivots=azuredataexplorer">r</a></cite></blockquote>



<p>In simple words, you may have a file of data that interests you, and based on the structure and the data itself, you can build a new table with curated aggregation based on your needs.</p>



<p>For example, the following query will build a table by taking into account a json file, the ip_address and url_status fields but leaving outside any entries where url_status is offline.</p>



<figure class="wp-block-image size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="516" height="404" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/image-2.png?resize=516%2C404&#038;ssl=1" alt="" class="wp-image-359" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/image-2.png?w=516&amp;ssl=1 516w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/image-2.png?resize=300%2C235&amp;ssl=1 300w" sizes="(max-width: 516px) 100vw, 516px" /></figure>



<h3 class="wp-block-heading">What kind of files are supported?</h3>



<p>Most common files that can be used include <strong>TXT</strong>, <strong>CSV </strong>and <strong>JSON </strong>files, however Microsoft documentation indicates that over a dozen of filetypes can be leveraged through externaldata operator including ORC, Parquet, PSV, RAW and others. Also, compressed files are supported through the formats of gzip and zip.</p>



<p>In order to test data before ingestion, the following validators can be used, per format whether it&#8217;s CSV or JSON.</p>



<ul class="wp-block-list">
<li>CSV:&nbsp;<a href="http://csvlint.io/">http://csvlint.io/</a></li>



<li>JSON:&nbsp;<a href="https://jsonlint.com/">https://jsonlint.com/</a></li>
</ul>



<h3 class="wp-block-heading">How can I use the externaldata operator?</h3>



<p>Before you start, there are three parameters that need to be defined.</p>



<figure class="wp-block-table"><table><thead><tr><td><strong>Name</strong></td><td><strong>Type</strong></td><td><strong>Description</strong></td></tr></thead><tbody><tr><td><em>columnName</em>,&nbsp;<em>columnType</em></td><td>string</td><td>A list of column names and their types. This list defines the schema of the table.</td></tr><tr><td><em>storageConnectionString</em></td><td>string</td><td>A&nbsp;<a href="https://learn.microsoft.com/en-us/azure/data-explorer/kusto/api/connection-strings/storage-connection-strings">storage connection string</a>&nbsp;of the storage artifact to query.</td></tr><tr><td><em>propertyName</em>,&nbsp;<em>propertyValue</em></td><td>string</td><td>A list of optional&nbsp;<a href="https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/externaldata-operator?pivots=azuredataexplorer#supported-properties">supported properties</a>&nbsp;that determines how to interpret the data retrieved from storage.</td></tr></tbody></table><figcaption class="wp-element-caption">externaldata parameters</figcaption></figure>



<p>The above, can be depicted in the query below with actually defined parameters. ColumnName refers to which data will be aggregated from the data source, storageConnection depicts the data source and propertyName and propertyValue define specific intrepretation options for the data.  </p>



<figure class="wp-block-image size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="735" height="291" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/image-3.png?resize=735%2C291&#038;ssl=1" alt="" class="wp-image-365" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/image-3.png?w=735&amp;ssl=1 735w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/image-3.png?resize=300%2C119&amp;ssl=1 300w" sizes="(max-width: 735px) 100vw, 735px" /></figure>



<h3 class="wp-block-heading">Actual examples of externaldata operator, harnessing threat feeds</h3>



<p>You may find many categories of threat feed data available, some might be the most obvious such as IPs, file hashes, domains etc. and some other might include less popular data type but equally valuable for your organization, in case you want to go threat hunting such as keywords, CVEs and more. You may also want to maintain your own threat feeds, probably by using your own hosting provider or a GitHub repo. Just remember to follow a file type supported by externaldata operator.</p>



<h4 class="wp-block-heading">Domains</h4>



<p>The following query, will detect inbound emails in Defender XDR which match the domains provided from a threat feed.</p>



<pre class="wp-block-code"><code>let domainList = externaldata(domain: string) &#91;@"https://raw.githubusercontent.com/tsirolnik/spam-domains-list/master/spamdomains.txt"] with (format="txt"); // Change the text file to whatever you want
let excludedDomains = datatable(excludeddomain :string)  // Add as many domains you would like to exclude
 &#91;"domain1.tld",
  "domain2.tld",
  "domain3.tld"];   
let Timeframe = 1d; // Choose the best timeframe for your investigation
let SuspiciousEmails = EmailEvents
    | where Timestamp &gt; ago(Timeframe)
    | where EmailDirection == "Inbound"
    | extend EmailDomain = tostring(split(SenderMailFromAddress, '@')&#91;1])
    | join kind=inner (domainList) on $left.EmailDomain == $right.domain
    | where not(EmailDomain in (&#91;'excludedDomains']))
    | project Timestamp, NetworkMessageId, SenderMailFromAddress, SenderFromAddress, SenderDisplayName, RecipientEmailAddress, EmailDomain, domain, Subject, LatestDeliveryAction;
SuspiciousEmails
    | join (EmailEvents
    | project NetworkMessageId
)on NetworkMessageId
    | sort by Timestamp desc</code></pre>



<p>Source: <a href="https://github.com/cyb3rmik3/KQL-threat-hunting-queries" target="_blank" rel="noreferrer noopener">github/cyb3rmik3</a></p>



<h4 class="wp-block-heading">IPs</h4>



<p>The following query will check in Sentinel whether any successful sign ins have taken place from any of the IPs provided in the threat feeds.</p>



<pre class="wp-block-code"><code>let BlockList = (externaldata(ip:string)
&#91;@"https://rules.emergingthreats.net/blockrules/compromised-ips.txt",
@"https://raw.githubusercontent.com/stamparm/ipsum/master/levels/5.txt",
@"https://cinsscore.com/list/ci-badguys.txt",
@"https://infosec.cert-pa.it/analyze/listip.txt",
@"https://feodotracker.abuse.ch/downloads/ipblocklist_recommended.txt"
]
with(format="csv")
| where ip matches regex "(^(25&#91;0-5]|2&#91;0-4]&#91;0-9]|&#91;01]?&#91;0-9]&#91;0-9]?)\\.(25&#91;0-5]|2&#91;0-4]&#91;0-9]|&#91;01]?&#91;0-9]&#91;0-9]?)\\.(25&#91;0-5]|2&#91;0-4]&#91;0-9]|&#91;01]?&#91;0-9]&#91;0-9]?)\\.(25&#91;0-5]|2&#91;0-4]&#91;0-9]|&#91;01]?&#91;0-9]&#91;0-9]?)$)"
| distinct ip
);
SigninLogs
| where IPAddress in (BlockList)
| where ResultType == "0"</code></pre>



<p>Source: <a href="https://www.kustoking.com/using-external-ip-lists-in-azure-sentinel/" target="_blank" rel="noreferrer noopener">KustoKing</a></p>



<h4 class="wp-block-heading">File hashes</h4>



<p>The following query will detect if any SHA256 hashes are present from a threat feed providing file hashes for Emotet malware.</p>



<pre class="wp-block-code"><code>let Emotetsha256 = externaldata(sha256: string)&#91;@"https://githubraw.com/Cisco-Talos/IOCs/main/2022/11/Emotet_parents.txt"] with (format="txt", ignoreFirstRecord=True);
DeviceFileEvents
| where SHA256 in (Emotetsha256)
| project Timestamp, FileName, SHA256, DeviceName, InitiatingProcessCommandLine, InitiatingProcessFileName, InitiatingProcessAccountDomain, InitiatingProcessAccountName</code></pre>



<p>Source: <a href="https://github.com/Bert-JanP/Hunting-Queries-Detection-Rules/" target="_blank" rel="noreferrer noopener">Bert-JanP</a></p>



<h4 class="wp-block-heading">Keywords</h4>



<p>The following query has been crafted to utilize the ProcessVersionInfoCompanyName table with a threat feed created by installing and testing corresponding tools.</p>



<pre class="wp-block-code"><code>let RMMSoftware = externaldata(RMMSoftware: string)&#91;@"https://raw.githubusercontent.com/cyb3rmik3/Hunting-Lists/main/rmm-software.csv"] with (format="csv", ignoreFirstRecord=True);
let ExclDevices = datatable(excludeddev :string)  // Add as many devices you would like to exclude
 &#91;"DeviceName1",
  "DeviceName2",
  "DeviceName3"];
let Timeframe = 7d; // Choose the best timeframe for your investigation
DeviceProcessEvents
    | where Timestamp &gt; ago(Timeframe)
    | where ProcessVersionInfoCompanyName has_any (RMMSoftware)
    | where not(DeviceName in (&#91;'ExclDevices']))
    | project Timestamp, DeviceName, ActionType, FileName, FolderPath, ProcessVersionInfoCompanyName, ProcessVersionInfoProductName, ProcessCommandLine, AccountName, InitiatingProcessAccountName, InitiatingProcessFileName, InitiatingProcessCommandLine
    | sort by Timestamp desc</code></pre>



<p>Source: <a href="https://github.com/cyb3rmik3/KQL-threat-hunting-queries" target="_blank" rel="noreferrer noopener">github/cyb3rmik3</a></p>



<p>The list could go on, but the idea is that, sky is the limit. You can build queries for almost anything you want or harness threat feeds out there to hunt and detect within your Microsoft ecosystem.</p>



<h3 class="wp-block-heading">Further resources to consider</h3>



<ul class="wp-block-list">
<li>Over the last year I have been experimenting with queries and lists I found useful. You may find them at my GitHub repos, <a href="https://github.com/cyb3rmik3/KQL-threat-hunting-queries" target="_blank" rel="noreferrer noopener">KQL threat hunting queries</a> and <a href="https://github.com/cyb3rmik3/Hunting-Lists">Hunting Lists</a>.</li>



<li>Bert-Jan has crafted <a href="https://github.com/Bert-JanP/Open-Source-Threat-Intel-Feeds" target="_blank" rel="noreferrer noopener">a curated list</a> of Threat Intelligence feeds that can be used to empower defenses in Microsoft Defender XDR. Plus, queries included.</li>



<li>Our community contributed repository of KQL queries at <a href="https://www.kqlsearch.com/" target="_blank" rel="noreferrer noopener">kqlsearch</a> has a ton of relevant queries, I bet some will meet your needs, or at least give you an idea to build your own query.</li>



<li>As always, <a href="https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/externaldata-operator?pivots=azuredataexplorer" target="_blank" rel="noreferrer noopener">Microsoft&#8217;s documentation</a> provides great insights and also, a lot of options to pivot further for anything that concerns you.</li>
</ul>



<h3 class="wp-block-heading">Closing remarks</h3>



<p>Being able to ingest threat intelligence feeds and empower your defenses, is a process that should be thoroughly evaluated, described and contextualized. While this blog has elaborated that with proper query building, you may harness almost any threat feed to hunt, it is important to remember that threat intelligence is meant to be scoped. In simple words, this means that you should only ingest threat intelligence that fits your organization&#8217;s requirements.</p>



<p>Happy hunting!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.michalos.net/2024/01/22/harnessing-threat-intelligence-using-externaldata-operator/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">351</post-id>	</item>
		<item>
		<title>Five (plus one) notable cyber attacks in Greece during 2023</title>
		<link>https://www.michalos.net/2024/01/04/five-plus-one-notable-cyber-attacks-in-greece-during-2023/</link>
					<comments>https://www.michalos.net/2024/01/04/five-plus-one-notable-cyber-attacks-in-greece-during-2023/#respond</comments>
		
		<dc:creator><![CDATA[cyb3rmik3]]></dc:creator>
		<pubDate>Thu, 04 Jan 2024 21:18:31 +0000</pubDate>
				<category><![CDATA[Cyber Threat Intelligence]]></category>
		<category><![CDATA[cyber threat intelligence]]></category>
		<category><![CDATA[ddos]]></category>
		<category><![CDATA[greece]]></category>
		<category><![CDATA[mitre att&ck]]></category>
		<category><![CDATA[threat intelligence landscape]]></category>
		<guid isPermaLink="false">https://www.michalos.net/?p=231</guid>

					<description><![CDATA[Advanced Persistent Threats (APTs), cybercriminals and hacktivists conducted a plethora of cyber attacks including ransomware and DDoS attacks cherishing an interesting threat landscape for Greece throughout 2023. As developed for 2022, following you will find a report of five (plus one this year!) notable cyber attacks in Greece with information derived from publicly accessible reports [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Advanced Persistent Threats (APTs), cybercriminals and hacktivists conducted a plethora of cyber attacks including ransomware and DDoS attacks cherishing an interesting threat landscape for Greece throughout 2023. As <a href="https://www.michalos.net/2023/01/14/five-notable-cyberattacks-in-greece-during-2022/" data-type="link" data-id="https://www.michalos.net/2023/01/14/five-notable-cyberattacks-in-greece-during-2022/">developed for 2022</a>, following you will find a report of five (plus one this year!) notable cyber attacks in Greece with information derived from publicly accessible reports and OSINT sources.</p>



<h4 class="wp-block-heading">Table of Contents</h4>



<ul class="wp-block-list">
<li>Greek national high school exams site DDoS attack</li>



<li>Papaki.gr cyber attack</li>



<li>TurkHackTeam DDoS attacks</li>



<li>APT29 attacks Embassies in Greece</li>



<li>Zimbra zero-day attack on Greek government agency</li>



<li>Anonymous Collective DDoS attacks</li>



<li>Further interesting facts
<ul class="wp-block-list">
<li>Hellenic Federation of Enterprises (SEV) statistics</li>



<li>National Cyber Security Index (NCSI) Score</li>



<li>National Cyber Security Agency</li>



<li>National Intelligence Service (NIS) Annual Report</li>
</ul>
</li>



<li>Closing remarks</li>
</ul>



<h3 class="wp-block-heading">Greek national high school exams site DDoS attack</h3>



<p>Candidates for final exams in high schools in Greece, were welcomed to establishments with an unpleasant surprise as at the first two days of the exams, the exam subjects distribution website was inaccessible due to a cyber attack.</p>



<blockquote class="twitter-tweet"><p lang="en" dir="ltr">Greece&#39;s Education Ministry Faces Unprecedented Cyber Attack Targeting High School Exam Platform <a href="https://t.co/NEp3Fefpal">https://t.co/NEp3Fefpal</a><a href="https://twitter.com/hashtag/greece?src=hash&amp;ref_src=twsrc%5Etfw">#greece</a> <a href="https://twitter.com/hashtag/greek?src=hash&amp;ref_src=twsrc%5Etfw">#greek</a> <a href="https://twitter.com/hashtag/greekcitytimes?src=hash&amp;ref_src=twsrc%5Etfw">#greekcitytimes</a> <a href="https://t.co/rEjIJmT7LD">pic.twitter.com/rEjIJmT7LD</a></p>&mdash; Greek City Times (@greekcitytimes) <a href="https://twitter.com/greekcitytimes/status/1663579883568771073?ref_src=twsrc%5Etfw">May 30, 2023</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>



<p>Given the very recent national elections, the cyber attack has gained a lot of attention and controversy, to the point of discussing that this DDoS attack might haven&#8217;t been an actual cyber attack, but just a failure following high demand of resources. In light of this, I have prepared a detailed <a href="https://www.michalos.net/2023/06/05/an-osint-analysis-of-the-greek-school-exams-site-ddos-attack/" target="_blank" rel="noreferrer noopener">OSINT analysis of the Greek school exams site DDoS attack</a>, proving that this attack, indeed took place. Another issue raised, and analyzed in my blog, reflects whether the attribution from Greek authorities to <a href="https://flashpoint.io/intelligence-101/killnet/" target="_blank" rel="noreferrer noopener">Killnet</a> is valid or not, where eventually there aren&#8217;t any hard evidence that the notorious group is involved.</p>



<h3 class="wp-block-heading">Papaki.gr cyber attack</h3>



<p><a href="http://Papaki.gr" target="_blank" rel="noreferrer noopener">Papaki.gr</a>, a prominent Greek domain registrar of over 350.000 domains and member of <a href="http://team.blue" target="_blank" rel="noreferrer noopener">team.blue</a> brands, <a href="https://www.papaki.com/blog/2023/07/27/mh-eksousiodothmeni-prosvasi/" target="_blank" rel="noreferrer noopener">announced on July 27th</a> that an unauthorized access to their systems has been identified. While details of the cyber attack haven&#8217;t been released, Papaki informed that most probably two clients were affected but be that as it may, all clients should consider their following information as compromised:</p>



<ul class="wp-block-list">
<li>Credentials and information including phone numbers, addresses and other PII of clients.</li>



<li>Billing information (Invoices etc).</li>



<li>Domain information (Administrator&#8217;s, owner&#8217;s information etc).</li>



<li>Other options available to domain administrators (Domain settings etc).</li>
</ul>



<p>No further information has been uncovered about the TTPs or the Threat Actors (TAs) behind this attack, but it gained a place in this blog due to its potential impact.</p>



<h3 class="wp-block-heading">TurkHackTeam DDoS attacks</h3>



<p>On the occasion of <a href="https://en.wikipedia.org/wiki/Victory_Day_(Turkey)" target="_blank" rel="noreferrer noopener">Turkey&#8217;s Victory Day</a>, in August 30th, <a href="https://malpedia.caad.fkie.fraunhofer.de/actor/turkhackteam" target="_blank" rel="noreferrer noopener">TurkHackTeam</a> announced that it will be conducting cyber attacks for several days, hitting critical infrastructure of Greece. The following websites have been announced as targets at their Telegram channel.  </p>



<figure class="wp-block-image size-large is-resized"><img data-recalc-dims="1" loading="lazy" decoding="async" width="888" height="1024" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_134721_telegram684749524741040025.jpg?resize=888%2C1024&#038;ssl=1" alt="" class="wp-image-293" style="width:360px" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_134721_telegram684749524741040025.jpg?resize=888%2C1024&amp;ssl=1 888w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_134721_telegram684749524741040025.jpg?resize=260%2C300&amp;ssl=1 260w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_134721_telegram684749524741040025.jpg?resize=768%2C886&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_134721_telegram684749524741040025.jpg?w=1080&amp;ssl=1 1080w" sizes="(max-width: 888px) 100vw, 888px" /><figcaption class="wp-element-caption">TurkHackTeam announcing cyber attacks towards Greece.</figcaption></figure>



<figure class="wp-block-image is-resized"><img data-recalc-dims="1" loading="lazy" decoding="async" width="542" height="1024" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_134740_telegram4085861363072939800.jpg?resize=542%2C1024&#038;ssl=1" alt="" class="wp-image-294" style="width:380px" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_134740_telegram4085861363072939800.jpg?resize=542%2C1024&amp;ssl=1 542w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_134740_telegram4085861363072939800.jpg?resize=159%2C300&amp;ssl=1 159w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_134740_telegram4085861363072939800.jpg?resize=768%2C1450&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_134740_telegram4085861363072939800.jpg?resize=813%2C1536&amp;ssl=1 813w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_134740_telegram4085861363072939800.jpg?w=1059&amp;ssl=1 1059w" sizes="(max-width: 542px) 100vw, 542px" /><figcaption class="wp-element-caption">Announcement of successful attacks.</figcaption></figure>



<figure class="wp-block-table"><table><tbody><tr><td><strong>August 30th</strong></td><td><strong>September 1st</strong></td><td><strong>September 3rd</strong></td></tr><tr><td>Ioannina University</td><td>National and Kapodistrian University of Athens</td><td>Municipality of Thessaloniki</td></tr><tr><td>Greek Ministry of National Defense</td><td>Aristotle University of Thessaloniki</td><td>Municipality of Larisa</td></tr><tr><td>Greek Navy</td><td>University of Crete</td><td>Municipality of Komotini</td></tr><tr><td>Greek Natural Gas Company</td><td>University of Patras</td><td>Thasos Municipality</td></tr><tr><td>Greek Airlines SkyExpress</td><td>University of Thessaloniki Macedonia</td><td>Municipality of Trikala</td></tr><tr><td>Popular Telecom Internet Provider</td><td>University of West Macedonia in Greece</td><td>Metropolitan Hospital</td></tr><tr><td></td><td>International University of Greece</td><td>Mediterraneo Hospital</td></tr><tr><td></td><td>Greek University American College</td><td>Papageorgiou Hospital</td></tr><tr><td></td><td>Crete Institute of Technological Education</td><td>Venizeleio-Pananeio General Hospital</td></tr><tr><td></td><td>Mediterranean University of Greece</td><td>Euromedica Hospital</td></tr></tbody></table><figcaption class="wp-element-caption">DDoS attack between August 30th and September 3rd.</figcaption></figure>



<p>Interestingly, in their last day of attacks, their message included &#8220;<em>Our attacks will be on the oppressor&#8217;s</em>&#8221; indicating a political motive for their attacks.</p>



<p>Further attacks took place after September 3rd, however in a far more lower intensity, which ended in September 13th including an e-shop database dump, further disruption attacks and surprisingly, some CCTV cameras exposure.</p>



<figure class="wp-block-image size-large is-resized"><img data-recalc-dims="1" loading="lazy" decoding="async" width="556" height="1024" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_135341_telegram6172869492475885799.jpg?resize=556%2C1024&#038;ssl=1" alt="" class="wp-image-295" style="width:380px" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_135341_telegram6172869492475885799.jpg?resize=556%2C1024&amp;ssl=1 556w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_135341_telegram6172869492475885799.jpg?resize=163%2C300&amp;ssl=1 163w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_135341_telegram6172869492475885799.jpg?resize=768%2C1415&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_135341_telegram6172869492475885799.jpg?resize=834%2C1536&amp;ssl=1 834w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_135341_telegram6172869492475885799.jpg?w=1080&amp;ssl=1 1080w" sizes="(max-width: 556px) 100vw, 556px" /><figcaption class="wp-element-caption">Exposed CCTV Cameras announced by TurkHackTeam.</figcaption></figure>



<h3 class="wp-block-heading">APT29 attacks Embassies in Greece</h3>



<p>On November 14th, the National Cyber Security Coordination Center (NCSCC) of Ukraine <a href="https://www.rnbo.gov.ua/files/2023_YEAR/CYBERCENTER/november/APT29%20attacks%20Embassies%20using%20CVE-2023-38831%20-%20report%20en.pdf">released a report</a>, indicating that embassies situated in Greece, have been targeted from <a href="https://socradar.io/apt-profile-cozy-bear-apt29/" data-type="link" data-id="https://socradar.io/apt-profile-cozy-bear-apt29/" target="_blank" rel="noreferrer noopener">APT29</a>. APT29 is affiliated with Russia&#8217;s Foreign Intelligence Service (SVR).</p>



<p>NCSCC supports that this attack, had political motives as APT29 might tried to gather intelligence concerning Azerbaijan&#8217;s strategic activities. It&#8217;s noteworthy that all countries targeted, Italy, Romania and Greece, maintain significant political and economic ties with Azerbaijan.</p>



<p>APT29 leveraged a newly discovered vulnerability in WinRAR, identified as<br><a href="https://nvd.nist.gov/vuln/detail/CVE-2023-38831" target="_blank" rel="noreferrer noopener">CVE-2023-38831</a>, to facilitate their intrusion.</p>



<p>Last, but not least, apart from the embassies in Greece, the prominent ISP Cosmote (OTENET) has also been targeted within the same campaign.</p>



<blockquote class="twitter-tweet"><p lang="en" dir="ltr"><img src="https://s.w.org/images/core/emoji/15.0.3/72x72/1f6a8.png" alt="🚨" class="wp-smiley" style="height: 1em; max-height: 1em;" /> APT29 attacks Embassies using CVE-2023-38831 <img src="https://s.w.org/images/core/emoji/15.0.3/72x72/1f6a8.png" alt="🚨" class="wp-smiley" style="height: 1em; max-height: 1em;" /> <br><br>Our latest report unravels meticulously orchestrated cyberattacks of <a href="https://twitter.com/hashtag/APT29?src=hash&amp;ref_src=twsrc%5Etfw">#APT29</a> targeting embassies across <a href="https://twitter.com/hashtag/Europe?src=hash&amp;ref_src=twsrc%5Etfw">#Europe</a>, including Italy, Greece, Romania, and Azerbaijan.<br><br><img src="https://s.w.org/images/core/emoji/15.0.3/72x72/1f4d6.png" alt="📖" class="wp-smiley" style="height: 1em; max-height: 1em;" /> Read the Full Report Here: <a href="https://t.co/J2nvypnv1h">https://t.co/J2nvypnv1h</a> <br><br>1/4 <a href="https://t.co/80P3oSuWrq">pic.twitter.com/80P3oSuWrq</a></p>&mdash; НКЦК (@ncsccUA) <a href="https://twitter.com/ncsccUA/status/1724428624441299124?ref_src=twsrc%5Etfw">November 14, 2023</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>



<h3 class="wp-block-heading">Zimbra zero-day attack on Greek government agency</h3>



<p>In June 2023, <a href="https://blog.google/threat-analysis-group/zimbra-0-day-used-to-target-international-government-organizations/" target="_blank" rel="noreferrer noopener">Google’s Threat Analysis Group (TAG) discovered an in-the-wild 0-day exploit</a> targeting Zimbra Collaboration, now patched as&nbsp;<a href="https://wiki.zimbra.com/wiki/Zimbra_Security_Advisories" target="_blank" rel="noreferrer noopener">CVE-2023-37580</a>. The initial in-the-wild discovery of the 0-day vulnerability was a campaign targeting a government organization in Greece.</p>



<figure class="wp-block-image size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="777" height="645" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/image-1.png?resize=777%2C645&#038;ssl=1" alt="" class="wp-image-329" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/image-1.png?w=777&amp;ssl=1 777w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/image-1.png?resize=300%2C249&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/image-1.png?resize=768%2C638&amp;ssl=1 768w" sizes="(max-width: 777px) 100vw, 777px" /></figure>



<p>TAG doesn&#8217;t name which government organization has been targeted, also no attribution has taken place with regards to which TA was behind the attack. OSINT information from <a href="https://www.shodan.io/search/facet?query=zimbra+country%3A%22GR%22&amp;facet=org" target="_blank" rel="noreferrer noopener">Shodan</a>, suggests that a lot of organizations use Zimbra in Greece, including government bodies. Hence, it is difficult to narrow down results and guess which organization might have been affected. While there are no, to little information about this attack, it deserves a place here given its complexity and sophistication.</p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="538" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/threatlandscapegreece.png?resize=1024%2C538&#038;ssl=1" alt="" class="wp-image-309" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/threatlandscapegreece.png?resize=1024%2C538&amp;ssl=1 1024w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/threatlandscapegreece.png?resize=300%2C158&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/threatlandscapegreece.png?resize=768%2C403&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/threatlandscapegreece.png?w=1200&amp;ssl=1 1200w" sizes="(max-width: 1000px) 100vw, 1000px" /><figcaption class="wp-element-caption">Zimbra Email Servers in Greece, publicly accessible information by SHODAN.</figcaption></figure>



<h3 class="wp-block-heading">Anonymous Collective DDoS attacks</h3>



<p>On December 7th, Anonymous Collective announced they will be targeting Greek Government entities as well as companies, banks and others, following Greece&#8217;s supporting of Israel at their war with Palestine.</p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="656" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/img_20240103_173831_1318703485959237615701.jpg?resize=1024%2C656&#038;ssl=1" alt="" class="wp-image-297" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/img_20240103_173831_1318703485959237615701.jpg?resize=1024%2C656&amp;ssl=1 1024w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/img_20240103_173831_1318703485959237615701.jpg?resize=300%2C192&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/img_20240103_173831_1318703485959237615701.jpg?resize=768%2C492&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/img_20240103_173831_1318703485959237615701.jpg?w=1200&amp;ssl=1 1200w" sizes="(max-width: 1000px) 100vw, 1000px" /><figcaption class="wp-element-caption">Anonymous Collective announcing OpGreece.</figcaption></figure>



<p>The politically-driven attacks of Anonymous led to the disruption of prominent companies from public and private sector:</p>



<ul class="wp-block-list">
<li>ose.gr, Hellenic Railway Organization, the Greek national railway company which owns, maintains and operates all railway infrastructure in Greece.</li>



<li>elta.gr, The&nbsp;Hellenic Post S.A., the state-owned provider of&nbsp;postal&nbsp;services (also, ransomed in 2022 by Vice Society).</li>



<li>depa.gr, Public Gas Corporation of Greece, the&nbsp;natural gas&nbsp;supply company of&nbsp;Greece.</li>



<li>coralacademy.gr, SHELL&#8217;s retail training platform.</li>



<li>elin.gr, ELINOIL one of the most dynamic energy groups in Greece, with a nationwide network of 580 petrol stations.</li>
</ul>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image"><img data-recalc-dims="1" loading="lazy" decoding="async" width="552" height="1024" data-id="301" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223432_telegram6684841291321773275.jpg?resize=552%2C1024&#038;ssl=1" alt="" class="wp-image-301" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223432_telegram6684841291321773275.jpg?resize=552%2C1024&amp;ssl=1 552w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223432_telegram6684841291321773275.jpg?resize=162%2C300&amp;ssl=1 162w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223432_telegram6684841291321773275.jpg?resize=768%2C1424&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223432_telegram6684841291321773275.jpg?resize=829%2C1536&amp;ssl=1 829w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223432_telegram6684841291321773275.jpg?w=1079&amp;ssl=1 1079w" sizes="(max-width: 552px) 100vw, 552px" /><figcaption class="wp-element-caption">Attacks announcement and first victim, ose.gr</figcaption></figure>



<figure class="wp-block-image"><img data-recalc-dims="1" loading="lazy" decoding="async" width="739" height="1024" data-id="299" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223447_telegram274025250377676261.jpg?resize=739%2C1024&#038;ssl=1" alt="" class="wp-image-299" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223447_telegram274025250377676261.jpg?resize=739%2C1024&amp;ssl=1 739w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223447_telegram274025250377676261.jpg?resize=217%2C300&amp;ssl=1 217w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223447_telegram274025250377676261.jpg?resize=768%2C1064&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223447_telegram274025250377676261.jpg?w=1080&amp;ssl=1 1080w" sizes="(max-width: 739px) 100vw, 739px" /><figcaption class="wp-element-caption">elta.gr</figcaption></figure>



<figure class="wp-block-image"><img data-recalc-dims="1" loading="lazy" decoding="async" width="567" height="1024" data-id="302" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223511_telegram9044849925643323114.jpg?resize=567%2C1024&#038;ssl=1" alt="" class="wp-image-302" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223511_telegram9044849925643323114.jpg?resize=567%2C1024&amp;ssl=1 567w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223511_telegram9044849925643323114.jpg?resize=166%2C300&amp;ssl=1 166w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223511_telegram9044849925643323114.jpg?resize=768%2C1387&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223511_telegram9044849925643323114.jpg?resize=851%2C1536&amp;ssl=1 851w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223511_telegram9044849925643323114.jpg?w=1080&amp;ssl=1 1080w" sizes="(max-width: 567px) 100vw, 567px" /></figure>



<figure class="wp-block-image"><img data-recalc-dims="1" loading="lazy" decoding="async" width="576" height="1024" data-id="300" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223527_telegram8907069958526129443.jpg?resize=576%2C1024&#038;ssl=1" alt="" class="wp-image-300" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223527_telegram8907069958526129443.jpg?resize=576%2C1024&amp;ssl=1 576w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223527_telegram8907069958526129443.jpg?resize=169%2C300&amp;ssl=1 169w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223527_telegram8907069958526129443.jpg?resize=768%2C1365&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223527_telegram8907069958526129443.jpg?resize=864%2C1536&amp;ssl=1 864w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223527_telegram8907069958526129443.jpg?w=1080&amp;ssl=1 1080w" sizes="(max-width: 576px) 100vw, 576px" /><figcaption class="wp-element-caption">depa.gr</figcaption></figure>



<figure class="wp-block-image"><img data-recalc-dims="1" loading="lazy" decoding="async" width="594" height="1024" data-id="303" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223547_telegram4112556941706334537.jpg?resize=594%2C1024&#038;ssl=1" alt="" class="wp-image-303" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223547_telegram4112556941706334537.jpg?resize=594%2C1024&amp;ssl=1 594w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223547_telegram4112556941706334537.jpg?resize=174%2C300&amp;ssl=1 174w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223547_telegram4112556941706334537.jpg?resize=768%2C1323&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223547_telegram4112556941706334537.jpg?resize=891%2C1536&amp;ssl=1 891w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223547_telegram4112556941706334537.jpg?w=1080&amp;ssl=1 1080w" sizes="(max-width: 594px) 100vw, 594px" /><figcaption class="wp-element-caption">coralacademy.gr</figcaption></figure>



<figure class="wp-block-image"><img data-recalc-dims="1" loading="lazy" decoding="async" width="576" height="1024" data-id="304" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223602_telegram6661746533838406705.jpg?resize=576%2C1024&#038;ssl=1" alt="" class="wp-image-304" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223602_telegram6661746533838406705.jpg?resize=576%2C1024&amp;ssl=1 576w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223602_telegram6661746533838406705.jpg?resize=169%2C300&amp;ssl=1 169w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223602_telegram6661746533838406705.jpg?resize=768%2C1365&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223602_telegram6661746533838406705.jpg?resize=864%2C1536&amp;ssl=1 864w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/screenshot_20240103_223602_telegram6661746533838406705.jpg?w=1080&amp;ssl=1 1080w" sizes="(max-width: 576px) 100vw, 576px" /><figcaption class="wp-element-caption">elin.gr</figcaption></figure>
</figure>



<p>Interestingly, Anonymous Collective have made two false statements that can easily be debunked. First, referring to the Hellenic Railway Organization website, which was stated that it was down for over 14 hours (pic. 3). However, the website was accessible from Greece far more early and as such, there should probably be a geofencing protection present a few hours after the attack.</p>



<blockquote class="twitter-tweet"><p lang="en" dir="ltr">Anonymous Collective support that their first target, <a href="https://t.co/KhnZI7LvYW">https://t.co/KhnZI7LvYW</a> is still down.<br><br>However, there seems to be some sort of Geofencing protection enabled as the website is accessible from <img src="https://s.w.org/images/core/emoji/15.0.3/72x72/1f1ec-1f1f7.png" alt="🇬🇷" class="wp-smiley" style="height: 1em; max-height: 1em;" />.<a href="https://twitter.com/hashtag/OpGreece?src=hash&amp;ref_src=twsrc%5Etfw">#OpGreece</a> <a href="https://twitter.com/hashtag/ThreatIntel?src=hash&amp;ref_src=twsrc%5Etfw">#ThreatIntel</a> <a href="https://twitter.com/hashtag/CTI?src=hash&amp;ref_src=twsrc%5Etfw">#CTI</a> <a href="https://t.co/bu7uODfIL4">https://t.co/bu7uODfIL4</a> <a href="https://t.co/tgflLMCDue">pic.twitter.com/tgflLMCDue</a></p>&mdash; Michalis Michalos (@Cyb3rMik3) <a href="https://twitter.com/Cyb3rMik3/status/1732993856474321136?ref_src=twsrc%5Etfw">December 8, 2023</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>



<p>The second, referred to SHELL&#8217;s retail training platform. </p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>There is 2 login pages that shell stations use to order gas or petrol.</p>
<cite>Anonymous Collective</cite></blockquote>



<p>This statement is also false, both websites that were taken down are being used for training purposes. </p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="348" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/image.png?resize=1024%2C348&#038;ssl=1" alt="https://rea.coralacademy.gr/" class="wp-image-326" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/image.png?resize=1024%2C348&amp;ssl=1 1024w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/image.png?resize=300%2C102&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/image.png?resize=768%2C261&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/image.png?resize=1536%2C522&amp;ssl=1 1536w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2024/01/image.png?w=1900&amp;ssl=1 1900w" sizes="(max-width: 1000px) 100vw, 1000px" /><figcaption class="wp-element-caption">https://rea.coralacademy.gr/</figcaption></figure>



<h3 class="wp-block-heading">Further interesting facts</h3>



<h4 class="wp-block-heading">Hellenic Federation of Enterprises (SEV) statistics</h4>



<p>Hellenic Federation of Enterprises (SEV) <a href="https://www.sev.org.gr/arthografia_mme/10-vimata-gia-kyvernoasfaleia-stis-epicheiriseis/" target="_blank" rel="noreferrer noopener">provided interesting statistics</a> with regards to Greek small and medium businesses (SMBs). They stated that:</p>



<ul class="wp-block-list">
<li>40% of the SMBs strategically focus on digital transformation.</li>



<li>4 out of 10 SMBs that have suffered a data leak, terminated their operations.</li>



<li>57% of SMBs that suffered a cyber attack raised their prices to address the restoration costs.</li>



<li>6,9% of Greek businesses (vs 25,5% in the EU) reviewed their strategy and digital security policies during the last 12 months.</li>
</ul>



<h4 class="wp-block-heading">National Cyber Security Index (NCSI) Score</h4>



<p>Greece enjoys the 7th place within the <a href="https://ncsi.ega.ee/country/gr_2022/" target="_blank" rel="noreferrer noopener">National Cyber Security Index (NCSI)</a>. However, there is space for improvement with regards to community as it has 0 points in <em>Operational support of volunteers in cyber crises</em> as well as at <em>Public cyber threat reports are published annually</em>.</p>



<h4 class="wp-block-heading">National Cyber Security Authority</h4>



<p>Following the undeniable rise in cyber attacks in Greece over the past years, the <a href="https://www.thenationalherald.com/greece-setting-up-national-cybersecurity-agency-to-battle-hackers/" target="_blank" rel="noreferrer noopener">Greek Government will soon proceed and create the National Cyber Security Authority</a>, as part of the Ministry of Digital Governance. The legislative discussion about the Authority, is taking place is this blog is written.</p>



<h4 class="wp-block-heading">National Intelligence Service (NIS) Annual Report</h4>



<p>For the first time, National Intelligence Service (NIS) has published an <a href="https://www.nis.gr/downloads/news/annual-report-2023.11.21-gr.pdf" target="_blank" rel="noreferrer noopener">annual report</a> including information about Cybersecurity and New Technologies. </p>



<h3 class="wp-block-heading">Closing remarks</h3>



<p><a href="https://www.enisa.europa.eu/publications/enisa-threat-landscape-2023" target="_blank" rel="noreferrer noopener">ENISA Threat Landscape 2023</a> report indicates that the most prevailing threats are ransomware and DDoS attacks. The fact that no ransomware attack is mentioned here, doesn&#8217;t mean that no relevant prominent attacks haven&#8217;t taken place. Amongst 2023 victims were, <a href="https://www.redpacketsecurity.com/lockbit-3-0-ransomware-victim-byte-gr/" target="_blank" rel="noreferrer noopener">Byte Computer</a>, a 30-year old ICT integrator which was ransomed by Lockbit, then <a href="https://www.redpacketsecurity.com/vice-ransomware-victim-neptune-lines-2/" target="_blank" rel="noreferrer noopener">Neptune Lines</a>, a carrier of 21 vessels ransomed by Vice Society (an acquainted TA to Greece) and the <a href="https://www.redpacketsecurity.com/lockbit-3-0-ransomware-victim-aegean-gr/" target="_blank" rel="noreferrer noopener">University of Aegean</a>, which was ransomed by Lockbit. Also, Greece&#8217;s state property company, <a href="https://twitter.com/daphnenews/status/1724722755138929087" target="_blank" rel="noreferrer noopener">ETAD was hit by ransomware</a> but no information has been disclosed.</p>



<p>Greek threat landscape had it all in 2023. Publicly accessible information presented in this blog indicate a shift towards disruption and espionage, demonstrating that Greece has been made a prominent target for politically and ideologically motivated hacktivists and state-sponsored threat groups. Greek state&#8217;s decision to develop a National Cyber Security Authority is a significant move, that sheds optimism for the future of our country&#8217;s cyber resilience. However, more needs to be done other than this, including nurturing a community to share, discuss and develop intelligence.</p>



<p>Happy new year! </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.michalos.net/2024/01/04/five-plus-one-notable-cyber-attacks-in-greece-during-2023/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">231</post-id>	</item>
		<item>
		<title>Detecting RMM tools using Microsoft Defender for Endpoint</title>
		<link>https://www.michalos.net/2023/11/27/detecting-rmm-tools-using-microsoft-defender-for-endpoint/</link>
					<comments>https://www.michalos.net/2023/11/27/detecting-rmm-tools-using-microsoft-defender-for-endpoint/#respond</comments>
		
		<dc:creator><![CDATA[cyb3rmik3]]></dc:creator>
		<pubDate>Mon, 27 Nov 2023 11:30:52 +0000</pubDate>
				<category><![CDATA[Advanced Hunting]]></category>
		<category><![CDATA[Microsoft 365 Defender]]></category>
		<category><![CDATA[Microsoft Defender for Endpoint]]></category>
		<category><![CDATA[Microsoft Security]]></category>
		<category><![CDATA[kql]]></category>
		<category><![CDATA[kusto query language]]></category>
		<category><![CDATA[microsoft 365 defender]]></category>
		<category><![CDATA[microsoft security]]></category>
		<category><![CDATA[mitre att&ck]]></category>
		<guid isPermaLink="false">https://www.michalos.net/?p=242</guid>

					<description><![CDATA[Introduction It&#8217;s no secret that Remote Monitoring and Management (RMM) software is being used by Threat Actors (TAs) for lateral movement and to establish command and control (C2). The Cybersecurity and Infrastructure Security Agency (CISA), National Security Agency (NSA), and Multi-State Information Sharing and Analysis Center (MS-ISAC), released a joint Cybersecurity Advisory (CSA), highlighting the [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">Introduction</h3>



<p>It&#8217;s no secret that Remote Monitoring and Management (RMM) software is being used by Threat Actors (TAs) for lateral movement and to establish command and control (C2). The Cybersecurity and Infrastructure Security Agency (CISA), National Security Agency (NSA), and Multi-State Information Sharing and Analysis Center (MS-ISAC), released a <a href="https://www.cisa.gov/news-events/cybersecurity-advisories/aa23-025a" target="_blank" rel="noreferrer noopener">joint Cybersecurity Advisory (CSA)</a>, highlighting the malicious use of legitimate RMM software.</p>



<p>Red Canary has also shed some light on the malicious use of RMM software in <a href="https://redcanary.com/blog/rmm-software/" target="_blank" rel="noreferrer noopener">recent blogs</a>, emphasizing on the importance of detecting relevant activity given that:</p>



<ul class="wp-block-list">
<li>RMM software doesn&#8217;t require extensive technical knowledge to be used.</li>



<li>RMM software has been used in supply chain attacks. </li>
</ul>



<p>Adding to the above:</p>



<ul class="wp-block-list">
<li>It&#8217;s possible that companies lack effective monitoring mechanisms to identify questionable activity via remote management technologies. Because of this oversight gap, attackers may be able to go unnoticed.</li>



<li>The attack surface grows as more remote management technologies are used by enterprises to support distant work or streamline operations. This allows TAs to have greater opportunities identify and take advantage of vulnerabilities.</li>
</ul>



<h3 class="wp-block-heading">Detection Considerations</h3>



<p>With a ton of RMM software out there, utilizing a dozen of techniques, including different console connection methods, it seems impossible to prepare a common hypothesis for a highly effective analytic.</p>



<p>On the other hand, RMM software is widely used from enterprises for common operation procedures. Given the establishment of work-from-home or work-from-everywhere after Covid19 outbreak, remote support software has been fundamental to streamline operations for IT teams throughout the world.</p>



<p>Be that as it may, by experimenting with RMMs and Microsoft Defender for Endpoint (MDE) a common ground can be identified to build a relatively high precision analytic.</p>



<h3 class="wp-block-heading">Detection Opportunities</h3>



<p>First things first, let&#8217;s have a look at the pyramid of pain.</p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="648" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2023/11/0105-CS-Pyramid-Graphic.png?resize=1024%2C648&#038;ssl=1" alt="" class="wp-image-259" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2023/11/0105-CS-Pyramid-Graphic.png?resize=1024%2C648&amp;ssl=1 1024w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2023/11/0105-CS-Pyramid-Graphic.png?resize=300%2C190&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2023/11/0105-CS-Pyramid-Graphic.png?resize=768%2C486&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2023/11/0105-CS-Pyramid-Graphic.png?resize=1536%2C972&amp;ssl=1 1536w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2023/11/0105-CS-Pyramid-Graphic.png?resize=2048%2C1295&amp;ssl=1 2048w" sizes="(max-width: 1000px) 100vw, 1000px" /><figcaption class="wp-element-caption"><a href="https://www.criticalstart.com/threat-detection-and-the-pyramid-of-pain/" target="_blank" rel="noreferrer noopener">Criticalstart</a></figcaption></figure>



<p>It is needless to say that building analytics, should primarily aim as higher as possible so that it would provide concrete and efficient results. Recently surfaced Trend Micro&#8217;s publication &#8220;Analysis on legit tools abused in human operated ransomware&#8221; is a great resource to deep dive into artifacts from RMM tools that could help build queries looking from file names, to network connections and security event logs.</p>



<div data-wp-interactive="core/file" class="wp-block-file"><object data-wp-bind--hidden="!state.hasPdfPreview"  class="wp-block-file__embed" data="https://www.michalos.net/wp-content/uploads/2023/11/JSAC2023_1_1_yamashige-nakatani-tanaka_en1.pdf" type="application/pdf" style="width:100%;height:320px" aria-label="Embed of JSAC2023_1_1_yamashige-nakatani-tanaka_en1."></object><a id="wp-block-file--media-e43b0fc5-c96a-4839-aa7f-24c62f55c61b" href="https://www.michalos.net/wp-content/uploads/2023/11/JSAC2023_1_1_yamashige-nakatani-tanaka_en1.pdf">JSAC2023_1_1_yamashige-nakatani-tanaka_en1</a><a href="https://www.michalos.net/wp-content/uploads/2023/11/JSAC2023_1_1_yamashige-nakatani-tanaka_en1.pdf" class="wp-block-file__button wp-element-button" download aria-describedby="wp-block-file--media-e43b0fc5-c96a-4839-aa7f-24c62f55c61b">Download</a></div>



<h4 class="wp-block-heading">KQL Queries to keep an eye on</h4>



<ul class="wp-block-list">
<li><a href="https://github.com/lawndoc" data-type="link" data-id="https://github.com/lawndoc" target="_blank" rel="noreferrer noopener">CJ May</a> has developed a great query that sinkholes domains used by RMM software which you may find <a href="https://www.kqlsearch.com/query/Undocumentedrmm&amp;clmny2yk4001t5i6wsz1o9981" target="_blank" rel="noreferrer noopener">here</a>.</li>



<li>Daniel Card has also collected filenames from RMM software which are used in <a href="https://www.kqlsearch.com/query/Find%20Rmm%20Processes&amp;clmnyai1o00005ip4gm8dlvyr" target="_blank" rel="noreferrer noopener">this query</a>.</li>
</ul>



<h3 class="wp-block-heading">What about MDE?</h3>



<p>I decided to try and run some of the most prominent RMM tools based on Red Canary&#8217;s reports and try and find common ground for good detection analytics. I came across many tables that collect artifacts towards this, including:</p>



<ul class="wp-block-list">
<li>DeviceNetworkEvents (Domains and IPs)</li>



<li>DeviceNetworkEvents along with SslConnectionInspected ActionType (Certificates used for communication)</li>



<li>DeviceProcessEvents (Filenames and file hashes)</li>
</ul>



<p>But one that caught my eye, was the following:</p>



<figure class="wp-block-image size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="541" height="442" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2023/11/image-1.png?resize=541%2C442&#038;ssl=1" alt="" class="wp-image-265" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2023/11/image-1.png?w=541&amp;ssl=1 541w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2023/11/image-1.png?resize=300%2C245&amp;ssl=1 300w" sizes="(max-width: 541px) 100vw, 541px" /></figure>



<p>Software running in Windows has hardcoded <strong>ProcessVersionInfoCompanyName </strong>and <strong>ProcessVersionInfoProductName </strong>on it. Hence, it seems that we might not be on top of the Pyramid of Pain, but we are very close. After running a dozen of RMM tools locally, I came down to <a href="https://github.com/cyb3rmik3/Hunting-Lists/blob/main/rmm-software.csv">this</a> artifact collection which can be used along with the following query to detect for RMM activity. </p>



<pre class="wp-block-code"><code>let RMMSoftware = externaldata(RMMSoftware: string)&#91;@"https://raw.githubusercontent.com/cyb3rmik3/Hunting-Lists/main/rmm-software.csv"] with (format="csv", ignoreFirstRecord=True);
let ExclDevices = datatable(excludeddev :string)  // Add as many devices you would like to exclude
 &#91;"DeviceName1",
  "DeviceName2",
  "DeviceName3"];
let Timeframe = 7d; // Choose the best timeframe for your investigation
DeviceProcessEvents
    | where Timestamp &gt; ago(Timeframe)
    | where ProcessVersionInfoCompanyName has_any (RMMSoftware)
    | where not(DeviceName in (&#91;'ExclDevices']))
    | project Timestamp, DeviceName, ActionType, FileName, FolderPath, ProcessVersionInfoCompanyName, ProcessVersionInfoProductName, ProcessCommandLine, AccountName, InitiatingProcessAccountName, InitiatingProcessFileName, InitiatingProcessCommandLine
    | sort by Timestamp desc   </code></pre>



<p>Check out this, and further queries at <a href="https://github.com/cyb3rmik3" target="_blank" rel="noreferrer noopener">my Github repo</a>.</p>



<p><mark style="background-color:#F6F6F6" class="has-inline-color">The query above reflects the tests with RMM tools I have done so far, this is an ongoing project and I will be updating the hunting list accordingly.</mark></p>



<h4 class="wp-block-heading">Bonus query</h4>



<p>MDE already tracks some RMM tools as suspicious and hence, it raises an alert. Taking into account the <a href="https://attack.mitre.org/techniques/T1219/" data-type="link" data-id="https://attack.mitre.org/techniques/T1219/" target="_blank" rel="noreferrer noopener">MITRE ATT&amp;CK T1229</a> technique, you can identify whether a relevant alert has been raised in your environment.</p>



<pre class="wp-block-code"><code>AlertInfo
| where Timestamp &gt; ago(30d) // Define timerange
| where AttackTechniques contains "T1219" // Reference: https://attack.mitre.org/techniques/T1219/</code></pre>



<h3 class="wp-block-heading">Closing remarks</h3>



<p>RMM tools have been going under the radar given that its legitimate software and who would have thought that TAs would use it? But hey, why make things complicated when they can be so simple?</p>



<figure class="wp-block-image size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="500" height="626" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2023/11/rmm-c2-malware.jpg?resize=500%2C626&#038;ssl=1" alt="" class="wp-image-271" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2023/11/rmm-c2-malware.jpg?w=500&amp;ssl=1 500w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2023/11/rmm-c2-malware.jpg?resize=240%2C300&amp;ssl=1 240w" sizes="(max-width: 500px) 100vw, 500px" /></figure>



<p>While MDE offers detection opportunities for RMM tools, and it&#8217;s always good to know what&#8217;s moving in your environment, you should also consider hardening this kind of posture in further ways as well. Proxies, UAC, firewall communication, deep packet inspection, just to name a few.</p>



<p>Happy hunting!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.michalos.net/2023/11/27/detecting-rmm-tools-using-microsoft-defender-for-endpoint/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">242</post-id>	</item>
		<item>
		<title>Investigating initial access in compromised email accounts using Microsoft 365 Defender</title>
		<link>https://www.michalos.net/2023/10/03/investigating-initial-access-in-compromised-email-accounts-using-microsoft-365-defender/</link>
					<comments>https://www.michalos.net/2023/10/03/investigating-initial-access-in-compromised-email-accounts-using-microsoft-365-defender/#respond</comments>
		
		<dc:creator><![CDATA[cyb3rmik3]]></dc:creator>
		<pubDate>Tue, 03 Oct 2023 12:39:31 +0000</pubDate>
				<category><![CDATA[Advanced Hunting]]></category>
		<category><![CDATA[Microsoft 365 Defender]]></category>
		<category><![CDATA[Microsoft Defender for Office 365]]></category>
		<category><![CDATA[Microsoft Security]]></category>
		<category><![CDATA[advanced hunting]]></category>
		<category><![CDATA[incident response]]></category>
		<category><![CDATA[kql]]></category>
		<category><![CDATA[kusto query language]]></category>
		<category><![CDATA[microsoft 365 defender]]></category>
		<category><![CDATA[microsoft defender for office 365]]></category>
		<category><![CDATA[microsoft security]]></category>
		<guid isPermaLink="false">https://www.michalos.net/?p=225</guid>

					<description><![CDATA[Introduction Fortra recently released a report indicating that business email compromise (BEC) attacks are at their zenith. Why not? As ENISA mentions in its 2022 Threat Landscape Report, financially motivated threat actors find it far more easier to perform a Man-in-The-Middle (MiTM) through an account take over rather than preparing and conducting sophisticated malware attacks [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h3 class="wp-block-heading">Introduction</h3>



<p>Fortra recently released <a href="https://www.tripwire.com/state-of-security/business-email-compromise-statistics" target="_blank" rel="noreferrer noopener">a report</a> indicating that business email compromise (BEC) attacks are at their zenith. Why not? As ENISA mentions in its <a href="https://www.enisa.europa.eu/publications/enisa-threat-landscape-2022" target="_blank" rel="noreferrer noopener">2022 Threat Landscape Report</a>, financially motivated threat actors find it far more easier to perform a Man-in-The-Middle (MiTM) through an account take over rather than preparing and conducting sophisticated malware attacks and then going into extortion and negotiations.</p>



<p>Microsoft has been following BEC attacks and reported in its <a rel="noreferrer noopener" href="https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RW15yVe" data-type="link" data-id="https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RW15yVe" target="_blank">May 2023 Cyber Signals</a>, that they investigate 156.000 BEC attempts daily, while they have taken down 417,678 throughout May 2022 to April 2023.</p>



<p>Having said that, it is crucial to comprehend the importance of being able to detect and respond in these kinds of attacks. A good overview for incident response about BEC attacks, can be found <a href="https://github.com/PwC-IR/Business-Email-Compromise-Guide" data-type="link" data-id="https://github.com/PwC-IR/Business-Email-Compromise-Guide" target="_blank" rel="noreferrer noopener">here</a> by PwC.</p>



<p>Within this blog, we will discuss how can someone investigate initial access, given that a mailbox has been compromised through a phishing attack. Some good reads to help understand detections, incident response and mitigations:</p>



<figure class="wp-block-embed is-type-wp-embed is-provider-microsoft-security-blog wp-block-embed-microsoft-security-blog"><div class="wp-block-embed__wrapper">
<blockquote class="wp-embedded-content" data-secret="JMeFE0jmuH"><a href="https://www.microsoft.com/en-us/security/blog/2023/06/08/detecting-and-mitigating-a-multi-stage-aitm-phishing-and-bec-campaign/">Detecting and mitigating a multi-stage AiTM phishing and BEC campaign</a></blockquote><iframe loading="lazy" class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  title="&#8220;Detecting and mitigating a multi-stage AiTM phishing and BEC campaign&#8221; &#8212; Microsoft Security Blog" src="https://www.microsoft.com/en-us/security/blog/2023/06/08/detecting-and-mitigating-a-multi-stage-aitm-phishing-and-bec-campaign/embed/#?secret=LrtNJUlhue#?secret=JMeFE0jmuH" data-secret="JMeFE0jmuH" width="500" height="282" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
</div></figure>



<figure class="wp-block-embed is-type-wp-embed is-provider-microsoft-security-blog wp-block-embed-microsoft-security-blog"><div class="wp-block-embed__wrapper">
<blockquote class="wp-embedded-content" data-secret="ifxctiacrI"><a href="https://www.microsoft.com/en-us/security/blog/2022/07/12/from-cookie-theft-to-bec-attackers-use-aitm-phishing-sites-as-entry-point-to-further-financial-fraud/">From cookie theft to BEC: Attackers use AiTM phishing sites as entry point to further financial fraud</a></blockquote><iframe loading="lazy" class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  title="&#8220;From cookie theft to BEC: Attackers use AiTM phishing sites as entry point to further financial fraud&#8221; &#8212; Microsoft Security Blog" src="https://www.microsoft.com/en-us/security/blog/2022/07/12/from-cookie-theft-to-bec-attackers-use-aitm-phishing-sites-as-entry-point-to-further-financial-fraud/embed/#?secret=8YvFijsIOJ#?secret=ifxctiacrI" data-secret="ifxctiacrI" width="500" height="282" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
</div></figure>



<h3 class="wp-block-heading">Detection opportunities</h3>



<p>Microsoft 365 Defender and Microsoft Defender for Office 365 through Advanced Hunting provide some insightful tables that could help detect the initial access especially for phishing emails. Following, four queries are provided to help towards investigating this attack path.</p>



<h4 class="wp-block-heading">Review recent attachments</h4>



<p>The following query will list all emails received on the Timeframe specified that haven&#8217;t been blocked and have an attachment. This will help analysts get an overview of the email attachments recently received that might rise suspicions.</p>



<pre class="wp-block-code"><code>let CompromizedEmailAddress = ""; // Insert the email address of the compromised email address
let Timeframe = 2d; // Choose the best timeframe for your investigation
let EmailInformation = EmailEvents
    | where RecipientEmailAddress == CompromizedEmailAddress
    | where Timestamp &gt; ago(Timeframe)
    | where DeliveryAction != "Blocked"
    | where AttachmentCount != "0"
    | project Timestamp, NetworkMessageId, SenderMailFromAddress, SenderFromAddress, SenderDisplayName, ThreatNames;
EmailInformation
    | join (EmailAttachmentInfo
    | project NetworkMessageId, FileName, FileType, FileSize
) on NetworkMessageId
| sort by Timestamp desc</code></pre>



<h4 class="wp-block-heading">Review recent UrlClickEvents</h4>



<p>The following query will help identify emails with URLs inline, where the user took action and clicked any of them and the URL wasn&#8217;t blocked.</p>



<pre class="wp-block-code"><code>let CompromizedEmailAddress = ""; // Insert the email address of the compromised email address
let Timeframe = 2d; // Choose the best timeframe for your investigation
let EmailInformation = EmailEvents
    | where RecipientEmailAddress == CompromizedEmailAddress
    | where Timestamp &gt; ago(Timeframe)
    | where UrlCount != "0"
    | project Timestamp, NetworkMessageId, SenderMailFromAddress, SenderFromAddress, SenderDisplayName, ThreatNames;
EmailInformation
    | join (UrlClickEvents
    | where ActionType != "ClickBlocked"
    | where Workload == "Email"
    | project Timestamp, Url, IPAddress, NetworkMessageId
) on NetworkMessageId
| sort by Timestamp desc </code></pre>



<h4 class="wp-block-heading">Suspicious email detected after delivery</h4>



<p>The following query will present email details that have been identified as suspicious after delivery.</p>



<pre class="wp-block-code"><code>let CompromizedEmailAddress = ""; // Insert the email address of the compromised email address
let Timeframe = 2d; // Choose the best timeframe for your investigation
let EmailInformation = EmailEvents
    | where RecipientEmailAddress == CompromizedEmailAddress
    | where DeliveryAction != "Blocked"
    | project Timestamp, NetworkMessageId, SenderMailFromAddress, SenderFromAddress, SenderDisplayName, ThreatNames;
EmailInformation
    | join (EmailPostDeliveryEvents 
    | where ThreatTypes != ""
    | project Timestamp, NetworkMessageId, Action, ActionType, ActionTrigger, ActionResult, DeliveryLocation, ThreatTypes, DetectionMethods
) on NetworkMessageId
| sort by Timestamp desc </code></pre>



<h4 class="wp-block-heading">Suspicious subject keywords</h4>



<p>Having gone through <a rel="noreferrer noopener" href="https://github.com/PwC-IR/Business-Email-Compromise-Guide" data-type="link" data-id="https://github.com/PwC-IR/Business-Email-Compromise-Guide" target="_blank">PwC BEC incident response playbook</a>, there is a set of keywords included that could be found in email&#8217;s subject, that could potentially be correlated to phishing emails. This query will most probably return a lot of false/positives, however it could potentially return results significant enough to go through.</p>



<pre class="wp-block-code"><code>let CompromizedEmailAddress = ""; // Insert the email address of the compromised email address
let Timeframe = 2d; // Choose the best timeframe for your investigation
let SuspiciousKeywords = dynamic(&#91; // as provided by PwC BEC Playbook
    @"Request",
    @"Reconfirm Password",
    @"Account Alert",
    @"Confirmation",
    @"Account Reset",
    @"Payments",
    @"Reminder",
    @"Confidential",
    @"You Recieved",
    @"Voice Messages",
    @"Hello",
    @"Voicemail from",
    @"Immediate Response",
    @"Voic(e)Message",
    @"Urgent",
    @"VM from",
    @"Action Required",
    @"Audio Message",
    @"Account Suspended",
    @"Voice Recording Available",
    @"Password Reset",
    @"Received Fax Document",
    @"Sign-in attempt",
    @"Bill Invoice"]);
EmailEvents 
| where RecipientEmailAddress == CompromizedEmailAddress
| where Timestamp > ago(Timeframe)
| where Subject has_any (SuspiciousKeywords)
| where DeliveryAction == "Delivered"
| project Timestamp, SenderMailFromAddress, SenderFromAddress, SenderDisplayName, SenderMailFromDomain, SenderFromDomain, SenderIPv4, AttachmentCount, UrlCount, LatestDeliveryAction
| sort by Timestamp desc </code></pre>



<h3 class="wp-block-heading">Summary</h3>



<p>The queries above could cover a significant effort to investigate initial access for BEC attacks after an account has been compromised. Having said that, the investigation queries focus mainly on phishing attacks as the preliminary attack. Of course -as with all queries- they should be tested and fine tuned upon your environment to meet your needs and expectations.</p>



<p>You can check <a href="https://github.com/cyb3rmik3/KQL-threat-hunting-queries" target="_blank" rel="noreferrer noopener">my GitHub</a> to find further KQL queries that might be of your interest, also, drop me a line on <a href="https://twitter.com/Cyb3rMik3" data-type="link" data-id="https://twitter.com/Cyb3rMik3" target="_blank" rel="noreferrer noopener">X</a> if you have any comments.</p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.michalos.net/2023/10/03/investigating-initial-access-in-compromised-email-accounts-using-microsoft-365-defender/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">225</post-id>	</item>
		<item>
		<title>Remotely restart endpoints using MDE live response</title>
		<link>https://www.michalos.net/2023/07/31/remotely-restart-endpoints-using-mde-live-response/</link>
					<comments>https://www.michalos.net/2023/07/31/remotely-restart-endpoints-using-mde-live-response/#respond</comments>
		
		<dc:creator><![CDATA[cyb3rmik3]]></dc:creator>
		<pubDate>Mon, 31 Jul 2023 06:03:28 +0000</pubDate>
				<category><![CDATA[Microsoft 365 Defender]]></category>
		<category><![CDATA[Microsoft Defender for Endpoint]]></category>
		<category><![CDATA[Microsoft Security]]></category>
		<category><![CDATA[incident response]]></category>
		<category><![CDATA[microsoft 365 defender]]></category>
		<category><![CDATA[microsoft security]]></category>
		<category><![CDATA[powershell]]></category>
		<guid isPermaLink="false">https://www.michalos.net/?p=202</guid>

					<description><![CDATA[If you haven&#8217;t familiarized yourself with Microsoft Defender for Endpoint live response, this is a simple exercise to perform a live response while using the scripts library and storing a simple and straightforward PowerShell script that restarts the endpoint, something that is not available through Microsoft 365 Defender portal. What is live response? Live response [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>If you haven&#8217;t familiarized yourself with Microsoft Defender for Endpoint live response, this is a simple exercise to perform a live response while using the scripts library and storing a simple and straightforward PowerShell script that restarts the endpoint, something that is not available through Microsoft 365 Defender portal.</p>



<h3 class="wp-block-heading">What is live response?</h3>



<p>Live response allows security analysts to connect to an endpoint using a remote shell connection. It provides the means to perform in-depth investigations and materialize incident response actions.</p>



<p>Live response includes collecting forensic data, running scripts, sending suspicious entities for analysis, remediating threats, and proactively hunting for emerging threats.</p>



<p>Amongst others, you can:</p>



<ul class="wp-block-list">
<li>Run basic and advanced commands to do investigative work on a device.</li>



<li>Download files such as malware samples and outcomes of PowerShell scripts.</li>



<li>Download files in the background.</li>



<li>Upload a PowerShell script or executable to the library and run it on a device from a tenant level.</li>



<li>Take or undo remediation actions.</li>
</ul>



<h3 class="wp-block-heading">Step 1 &#8211; Create the PowerShell script</h3>



<p>Unless you use any fancy text editor, simply open Notepad, insert the following script and save it as &#8220;Restart-Computer.ps1&#8221;.</p>



<pre class="wp-block-code"><code>Restart-Computer -Force</code></pre>



<p>This script will skip the default confirmation and will proceed to restart the endpoint.</p>



<h3 class="wp-block-heading">Step 2 &#8211; Commence a live response session</h3>



<figure class="wp-block-image size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="692" height="467" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2023/07/live-response_01.png?resize=692%2C467&#038;ssl=1" alt="" class="wp-image-206" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2023/07/live-response_01.png?w=692&amp;ssl=1 692w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2023/07/live-response_01.png?resize=300%2C202&amp;ssl=1 300w" sizes="(max-width: 692px) 100vw, 692px" /></figure>



<p>Navigate at the endpoint&#8217;s page and choose &#8220;Initiate Live Response Session&#8221;. Then, click on &#8220;Upload file to library&#8221;. Choose the script created at Step 1, add a distinctive description and click &#8220;Confirm&#8221;.</p>



<figure class="wp-block-image size-large"><img data-recalc-dims="1" loading="lazy" decoding="async" width="1024" height="468" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2023/07/live-response_02.png?resize=1024%2C468&#038;ssl=1" alt="" class="wp-image-207" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2023/07/live-response_02.png?resize=1024%2C468&amp;ssl=1 1024w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2023/07/live-response_02.png?resize=300%2C137&amp;ssl=1 300w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2023/07/live-response_02.png?resize=768%2C351&amp;ssl=1 768w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2023/07/live-response_02.png?w=1437&amp;ssl=1 1437w" sizes="(max-width: 1000px) 100vw, 1000px" /></figure>



<p>If you type &#8220;library&#8221; at the command prompt you should be able to see the file you uploaded with the following information:</p>



<ul class="wp-block-list">
<li>Filename</li>



<li>Description</li>



<li>Date/Time uploaded</li>
</ul>



<h3 class="wp-block-heading">Step 3 &#8211; Run the script</h3>



<p>Now that you know your library content, you may run your script by using the following command:</p>



<pre class="wp-block-code"><code>run Restart-Computer.ps1</code></pre>



<p>If everything worked as expected, your endpoint should be restarting.</p>



<h3 class="wp-block-heading">Bonus Step &#8211; Verify restart</h3>



<p>If you would like to be a step ahead, you may verify the endpoint&#8217;s restart action simply by creating and uploading a new PowerShell file with the following script in content:</p>



<pre class="wp-block-code"><code>systeminfo | find "System Boot Time"</code></pre>



<p>Save it as &#8220;Restart-Computer-Verify.ps1&#8221;, upload it in the library and run it. You should be able to the result as per below.</p>



<figure class="wp-block-image size-full"><img data-recalc-dims="1" loading="lazy" decoding="async" width="759" height="226" src="https://i0.wp.com/www.michalos.net/wp-content/uploads/2023/07/live-response_03.png?resize=759%2C226&#038;ssl=1" alt="" class="wp-image-211" srcset="https://i0.wp.com/www.michalos.net/wp-content/uploads/2023/07/live-response_03.png?w=759&amp;ssl=1 759w, https://i0.wp.com/www.michalos.net/wp-content/uploads/2023/07/live-response_03.png?resize=300%2C89&amp;ssl=1 300w" sizes="(max-width: 759px) 100vw, 759px" /></figure>



<h3 class="wp-block-heading">Key takeaways</h3>



<p></p>



<ul class="wp-block-list">
<li>Microsoft Defender for Endpoint live response is a powerful tool and this is a simple exercise to familiarize with the environment and the capability to run PowerShell scripts.</li>



<li>I wouldn&#8217;t recommend adding scripts that are not necessary, in order to keep your library &#8220;clean&#8221; with the tools you need in case you commence an actual live response action.</li>



<li>Always make sure you test and verify your scripts before adding them to your regular operations (and in your library of course) as it would be catastrophic to try and response while troubleshooting your scripts at the same time.</li>
</ul>



<h3 class="wp-block-heading">References</h3>



<ul class="wp-block-list">
<li><a href="https://learn.microsoft.com/en-us/microsoft-365/security/defender-endpoint/live-response?view=o365-worldwide" target="_blank" rel="noreferrer noopener">Investigate entities on devices using live response</a></li>



<li><a href="https://learn.microsoft.com/en-us/microsoft-365/security/defender-endpoint/live-response-command-examples?view=o365-worldwide" data-type="URL" data-id="https://learn.microsoft.com/en-us/microsoft-365/security/defender-endpoint/live-response-command-examples?view=o365-worldwide">Live response command examples</a></li>
</ul>
]]></content:encoded>
					
					<wfw:commentRss>https://www.michalos.net/2023/07/31/remotely-restart-endpoints-using-mde-live-response/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">202</post-id>	</item>
		<item>
		<title>The absolute beginner&#8217;s guide for hunting with KQL</title>
		<link>https://www.michalos.net/2023/06/21/the-absolute-beginners-guide-for-hunting-with-kql/</link>
					<comments>https://www.michalos.net/2023/06/21/the-absolute-beginners-guide-for-hunting-with-kql/#respond</comments>
		
		<dc:creator><![CDATA[cyb3rmik3]]></dc:creator>
		<pubDate>Wed, 21 Jun 2023 19:53:18 +0000</pubDate>
				<category><![CDATA[Advanced Hunting]]></category>
		<category><![CDATA[Microsoft Azure]]></category>
		<category><![CDATA[Microsoft Security]]></category>
		<category><![CDATA[Microsoft Sentinel]]></category>
		<category><![CDATA[kql]]></category>
		<category><![CDATA[kusto query language]]></category>
		<category><![CDATA[microsoft 365 defender]]></category>
		<category><![CDATA[microsoft azure]]></category>
		<category><![CDATA[microsoft security]]></category>
		<category><![CDATA[mitre att&ck]]></category>
		<category><![CDATA[threat detection]]></category>
		<category><![CDATA[threat hunting]]></category>
		<guid isPermaLink="false">https://www.michalos.net/?p=173</guid>

					<description><![CDATA[Building queries for Microsoft 365 Defender or Microsoft Sentinel could be challenging, especially when there are complex requirements which obligate mazelike table data. Be that as it may, it is important to keep a set of simple queries handy to be used immediately in case threat hunting or detecting is required to take place. As [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>Building queries for Microsoft 365 Defender or Microsoft Sentinel could be challenging, especially when there are complex requirements which obligate mazelike table data.</p>



<p>Be that as it may, it is important to keep a set of simple queries handy to be used immediately in case threat hunting or detecting is required to take place.</p>



<p>As presented through the query below, it is important to remember that KQL queries are build upon a simple principle: <strong>choose data &#8211; filter &#8211; present</strong>. </p>



<pre class="wp-block-code"><code>SigninLogs                              // Choose table
| TimeGenerated &gt;= ago(7d)              // Set timeframe 
| where RiskLevelDuringSignIn == 'none' // Filter
| summarize Count = count() by city     // Summarize
| sort by Count desc                    // Sort
| take 5                                // Select</code></pre>



<p><a href="https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/sentinel/kusto-overview.md" data-type="URL" data-id="https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/sentinel/kusto-overview.md" target="_blank" rel="noreferrer noopener">Reference</a></p>



<p>Before diving into the queries, please consider visiting my <a href="https://github.com/cyb3rmik3/KQL-threat-hunting-queries" data-type="URL" data-id="https://github.com/cyb3rmik3/KQL-threat-hunting-queries" target="_blank" rel="noreferrer noopener">GitHub repo</a> where I store queries built for many purposes including threat hunting and detecting.</p>



<h3 class="wp-block-heading">Destination IP (with Port) or URL</h3>



<p>If you are worried that endpoints might have contacted an IP (probably a CnC server) or a phishing URL, the following queries will do the job, just provide the IP address or the URL accordingly.</p>



<pre class="wp-block-code"><code>DeviceNetworkEvents 
| where RemoteIP == "insert destination IPv4 address here"
// optional filter if you want to define destination port as well
// | where RemotePort == "insert destination port number here"

DeviceNetworkEvents 
| where RemoteUrl has "insert URL here"</code></pre>



<h3 class="wp-block-heading">Email sender</h3>



<p>If you are investigating a possible malware delivery through email, you can choose between SenderFromAddress, SenderIPv4 and SenderMailFromAddress to identify the spread of emails to other mailboxes:</p>



<ul class="wp-block-list">
<li>SenderFromAddress is the email address in the FROM header, which is visible to email recipients on their email clients</li>



<li>SenderIPv4 is the sending server&#8217;s IP address</li>



<li>SenderMailFromAddress is the email address in the MAIL FROM header, also known as the envelope sender or the Return-Path address</li>
</ul>



<pre class="wp-block-code"><code>EmailEvents
// Choose one or more of the following options to detect malicious email deliveries
| where SenderFromAddress has "insert sender email here"
| where SenderIPv4 == "insert sending server IP here"
| where SenderMailFromAddress has "insert envelope sender email here"</code></pre>



<h3 class="wp-block-heading">Email attachment</h3>



<p>If you already know the SHA256 hash of a malicious email attachment, the following query will detect relevant email deliveries.</p>



<pre class="wp-block-code"><code>EmailAttachmentInfo
| where SHA256 == "insert SHA256 hash here"</code></pre>



<h3 class="wp-block-heading">Local user sign in</h3>



<p>If you are looking for a sign in activity in a local host based on a user or the host, the following query will do the job.</p>



<pre class="wp-block-code"><code>DeviceLogonEvents
// Choose to see local sign ins by host, or by username
// If you know the exact device name, you may use "has" instead of "contains"
| where DeviceName contains "insert part of device name here" 
| where AccountName == "insert the username here"</code></pre>



<h3 class="wp-block-heading">Cloud user sign in</h3>



<p>There are cases where you might need to look into suspicious sign ins, an IP address or a source country accessing your Microsoft Cloud environment could be an incident precursor.</p>



<pre class="wp-block-code"><code>AADSignInEventsBeta 
| where IPAddress == "insert suspicious IP address here"
// To choose the Country, insert the ISO 3166 country code &#91;https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes]
| where Country == "insert ISO country code"</code></pre>



<h3 class="wp-block-heading">File hash</h3>



<p>If you need to search for a specific file hash, whether you have SHA256, SHA1 or MD5, you can use the following query to hunt.</p>



<pre class="wp-block-code"><code>DeviceFileEvents
// Replace SHA256 with SHA1 or MD5, depending on what you have available
| where SHA256 == "insert hash here"</code></pre>



<h3 class="wp-block-heading">Process injection</h3>



<p>If you have a clue of a malicious activity involving process injection, or if you would like to hunt following a report you might have gone through, the following query could help you in your quest.</p>



<pre class="wp-block-code"><code>DeviceProcessEvents 
| where InitiatingProcessParentFileName contains "insert filename here"
| where InitiatingProcessFileName contains "insert filename here"</code></pre>



<h3 class="wp-block-heading">Closing remarks</h3>



<p>The queries above, are the absolute basics. You can also consider others as well as fundamentals, but that depends on your environment setup. These queries should be on the back of your head for some quick searches, in case you are into some incident analysis and hunting. They could also be saved at your &#8220;Saved Queries&#8221; tab at Microsoft 365 Defender Advanced Hunting blade.</p>



<p>Hunting is a continuous process which involves a framework for development and consists of elements such as your environment, your risks, your possible attackers etc. You may find more on how to approach a framework like this, at my <a rel="noreferrer noopener" href="https://github.com/cyb3rmik3/KQL-threat-hunting-queries" data-type="URL" data-id="https://github.com/cyb3rmik3/KQL-threat-hunting-queries" target="_blank">GitHub repo</a> where I present both Microsoft&#8217;s and MITRE ATT&amp;CK methodology.</p>



<p>Good luck hunting!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.michalos.net/2023/06/21/the-absolute-beginners-guide-for-hunting-with-kql/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">173</post-id>	</item>
	</channel>
</rss>
