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

<channel>
	<title>Sophos XDR: Hướng dẫn tạo Query để kiểm tra số phiên Remote Desktop đã được truy cập trong N ngày gần nhất &#8211; Thegioifirewall</title>
	<atom:link href="https://thegioifirewall.com/tag/sophos-xdr-huong-dan-tao-query-de-kiem-tra-so-phien-remote-desktop-da-duoc-truy-cap-trong-n-ngay-gan-nhat/feed/" rel="self" type="application/rss+xml" />
	<link>https://thegioifirewall.com</link>
	<description>Tường lửa bảo vệ doanh nghiệp, trung tâm thông tin và giá cả</description>
	<lastBuildDate>Sun, 31 Oct 2021 18:17:08 +0000</lastBuildDate>
	<language>vi</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://thegioifirewall.com/wp-content/uploads/vacif_icon-150x150.png</url>
	<title>Sophos XDR: Hướng dẫn tạo Query để kiểm tra số phiên Remote Desktop đã được truy cập trong N ngày gần nhất &#8211; Thegioifirewall</title>
	<link>https://thegioifirewall.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Sophos XDR: Hướng dẫn tạo Query để kiểm tra số phiên Remote Desktop đã được truy cập trong N ngày gần nhất</title>
		<link>https://thegioifirewall.com/sophos-xdr-huong-dan-tao-query-de-kiem-tra-so-phien-remote-desktop-da-duoc-truy-cap-trong-n-ngay-gan-nhat/</link>
					<comments>https://thegioifirewall.com/sophos-xdr-huong-dan-tao-query-de-kiem-tra-so-phien-remote-desktop-da-duoc-truy-cap-trong-n-ngay-gan-nhat/#respond</comments>
		
		<dc:creator><![CDATA[TrungNghia]]></dc:creator>
		<pubDate>Fri, 29 Oct 2021 03:04:00 +0000</pubDate>
				<category><![CDATA[Endpoint Detection & Response (EDR)]]></category>
		<category><![CDATA[Sophos XDR]]></category>
		<category><![CDATA[Sophos XDR: Hướng dẫn tạo Query để kiểm tra số phiên Remote Desktop đã được truy cập trong N ngày gần nhất]]></category>
		<guid isPermaLink="false">https://www.thegioifirewall.com/?p=12968</guid>

					<description><![CDATA[1.Mục đích bài viết Thegioifirewall sẽ hướng các bạn sử dụng tính năng Live Discover của Sophos Central để tạo query kiểm tra số phiên Remote Desktop đã được truy cập trong N ngày gần nhất. 2.Sơ đồ mạng Chi tiết sơ đồ mạng: Đường truyền internet được kết nối tại port 2 của thiết [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>1.Mục đích bài viết</strong></h2>



<p class="wp-block-paragraph">Thegioifirewall sẽ hướng các bạn sử dụng tính năng Live Discover của Sophos Central để tạo query kiểm tra số phiên Remote Desktop đã được truy cập trong N ngày gần nhất.</p>



<h2 class="wp-block-heading"><strong>2.Sơ đồ mạng</strong></h2>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="328" src="https://thegioifirewall.com/wp-content/uploads/Drawing1-11-1024x328.png" alt="" class="wp-image-12838" srcset="https://thegioifirewall.com/wp-content/uploads/Drawing1-11-1024x328.png 1024w, https://thegioifirewall.com/wp-content/uploads/Drawing1-11-300x96.png 300w, https://thegioifirewall.com/wp-content/uploads/Drawing1-11-768x246.png 768w, https://thegioifirewall.com/wp-content/uploads/Drawing1-11-1536x493.png 1536w, https://thegioifirewall.com/wp-content/uploads/Drawing1-11.png 1540w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph"><strong>Chi tiết sơ đồ mạng:</strong></p>



<ul class="wp-block-list"><li>Đường truyền internet được kết nối tại port 2 của thiết bị tường lửa Sophos Firewall với IP 10.150.30.106.</li><li>Lớp mạng LAN được cấu hình tại port 1 của thiết bị tường lửa Sophos XG Firewall với IP 172.16.16.16/24 và được cấu hình DHCP Server để cấp phát IP cho các thiết bị kết nối vào.</li><li>Trong mạng LAN chúng ta sẽ có máy chủ WIN-V3N9Q4OC2GG với IP 172.16.16.19/24 và đã được cài đặt Sophos Endpoint.</li></ul>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="258" src="https://thegioifirewall.com/wp-content/uploads/13-33-1024x258.png" alt="" class="wp-image-12839" srcset="https://thegioifirewall.com/wp-content/uploads/13-33-1024x258.png 1024w, https://thegioifirewall.com/wp-content/uploads/13-33-300x76.png 300w, https://thegioifirewall.com/wp-content/uploads/13-33-768x193.png 768w, https://thegioifirewall.com/wp-content/uploads/13-33-1536x387.png 1536w, https://thegioifirewall.com/wp-content/uploads/13-33-2048x516.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading"><strong>3.Tình huống cấu hình</strong></h2>



<p class="wp-block-paragraph">Chúng ta sẽ tạo query và chạy query này trên máy chủ WIN-V3N9Q4OC2GG để kiểm tra số phiên Remote Desktop trong N ngày gần nhất.</p>



<h2 class="wp-block-heading"><strong>4.Các bước cấu hình</strong></h2>



<ul class="wp-block-list"><li><span style="color: initial;">Tạo query.</span></li></ul>



<h2 class="wp-block-heading"><strong>5.Hướng dẫn cấu hình</strong></h2>



<h3 class="wp-block-heading"><strong>5.1.Tạo query</strong></h3>



<p class="wp-block-paragraph">Để tạo query các bạn vào Threat Analysis Center &gt; Live Discover.</p>



<p class="wp-block-paragraph">Đầu tiên chúng ta sẽ bật Designer Mode.</p>



<p class="wp-block-paragraph">Sau đó chúng ta nhấn Create new query để tạo query mới.</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="358" src="https://thegioifirewall.com/wp-content/uploads/12-37-1024x358.png" alt="" class="wp-image-12848" srcset="https://thegioifirewall.com/wp-content/uploads/12-37-1024x358.png 1024w, https://thegioifirewall.com/wp-content/uploads/12-37-300x105.png 300w, https://thegioifirewall.com/wp-content/uploads/12-37-768x268.png 768w, https://thegioifirewall.com/wp-content/uploads/12-37-1536x536.png 1536w, https://thegioifirewall.com/wp-content/uploads/12-37-2048x715.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Bảng tạo query hiện ra chúng ta sẽ nhập vào các thông tin như sau:</p>



<ul class="wp-block-list"><li>Query Name: đặt tên cho query này là List of RDP Sessions in last N Days.</li><li>Category: chọn Device.</li><li>Source: chọn Live Endpoint và chọn Windows (Lưu ý với tùy chọn này thì yêu cầu máy tính hoặc máy chủ phải có kết nối internet mới có thể query).</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="403" src="https://thegioifirewall.com/wp-content/uploads/1-53-1024x403.png" alt="" class="wp-image-12969" srcset="https://thegioifirewall.com/wp-content/uploads/1-53-1024x403.png 1024w, https://thegioifirewall.com/wp-content/uploads/1-53-300x118.png 300w, https://thegioifirewall.com/wp-content/uploads/1-53-768x302.png 768w, https://thegioifirewall.com/wp-content/uploads/1-53-1536x604.png 1536w, https://thegioifirewall.com/wp-content/uploads/1-53-2048x806.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<ul class="wp-block-list"><li>Tại ô SQL chúng ta nhập vào đoạn code dưới đây.</li></ul>



<pre class="wp-block-code"><code>SELECT
 datetime(time,'unixepoch') 'Date-Time',
 (strftime('%s','now')-time)/(3600*24) 'Days ago' ,eventid, 'TS Remote' AS Source,
JSON_EXTRACT(data, '$.UserData.Param1') AS Name,
JSON_EXTRACT(data, '$.UserData.Param2') AS Source_Machine_Network,
JSON_EXTRACT(data, '$.UserData.Param3') AS Source_IP
FROM sophos_windows_events
WHERE source = 'Microsoft-Windows-TerminalServices-RemoteConnectionManager/Operational' AND
 eventid = 1149 AND
 time &gt; strftime('%s', 'now', '-$$Days to look back from now$$ days');</code></pre>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="152" src="https://thegioifirewall.com/wp-content/uploads/2-50-1024x152.png" alt="" class="wp-image-12974" srcset="https://thegioifirewall.com/wp-content/uploads/2-50-1024x152.png 1024w, https://thegioifirewall.com/wp-content/uploads/2-50-300x44.png 300w, https://thegioifirewall.com/wp-content/uploads/2-50-768x114.png 768w, https://thegioifirewall.com/wp-content/uploads/2-50-1536x227.png 1536w, https://thegioifirewall.com/wp-content/uploads/2-50-2048x303.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<ul class="wp-block-list"><li>Tại Variable editor chúng ta nhấn Add variable để thêm thông số ngày như hình sau.</li><li>Tại Enter value to use when query run các bạn nhập số ngày vào ô này, ví dụ các bạn kiểm tra xem trong 10 ngày gần nhất tính từ lúc bạn chạy query thì có bao nhiêu phiên Remote Desktop đã truy cập đến máy chủ này.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="127" src="https://thegioifirewall.com/wp-content/uploads/3-54-1024x127.png" alt="" class="wp-image-12972" srcset="https://thegioifirewall.com/wp-content/uploads/3-54-1024x127.png 1024w, https://thegioifirewall.com/wp-content/uploads/3-54-300x37.png 300w, https://thegioifirewall.com/wp-content/uploads/3-54-768x95.png 768w, https://thegioifirewall.com/wp-content/uploads/3-54-1536x190.png 1536w, https://thegioifirewall.com/wp-content/uploads/3-54-2048x253.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<ul class="wp-block-list"><li>Tại Device selector chúng ta chọn máy chủ WIN-V3N9Q4OC2GG đã được cài đặt Sophos Endpoint và nhấn Query.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="391" src="https://thegioifirewall.com/wp-content/uploads/4-55-1024x391.png" alt="" class="wp-image-12971" srcset="https://thegioifirewall.com/wp-content/uploads/4-55-1024x391.png 1024w, https://thegioifirewall.com/wp-content/uploads/4-55-300x114.png 300w, https://thegioifirewall.com/wp-content/uploads/4-55-768x293.png 768w, https://thegioifirewall.com/wp-content/uploads/4-55-1536x586.png 1536w, https://thegioifirewall.com/wp-content/uploads/4-55-2048x781.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Đợi vài giây thì kết quả query sẽ hiển thị ra tài khoản admin1 mà chúng ta vừa tạo kèm theo thời gian tạo.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="133" src="https://thegioifirewall.com/wp-content/uploads/5-51-1024x133.png" alt="" class="wp-image-12982" srcset="https://thegioifirewall.com/wp-content/uploads/5-51-1024x133.png 1024w, https://thegioifirewall.com/wp-content/uploads/5-51-300x39.png 300w, https://thegioifirewall.com/wp-content/uploads/5-51-768x100.png 768w, https://thegioifirewall.com/wp-content/uploads/5-51-1536x199.png 1536w, https://thegioifirewall.com/wp-content/uploads/5-51-2048x266.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Với tính năng Live Discover và đoạn query này, nó giúp chúng ta có thể kiểm tra được có bao nhiêu phiên Remote Desktop trong một khoảng thời gian xác định.</p>



<p class="wp-block-paragraph">Từ đó giúp chúng ta có xác định được nguy cơ hacker đang âm thầm chiếm quyền của máy chủ.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://thegioifirewall.com/sophos-xdr-huong-dan-tao-query-de-kiem-tra-so-phien-remote-desktop-da-duoc-truy-cap-trong-n-ngay-gan-nhat/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
