<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ruben on Medium]]></title>
        <description><![CDATA[Stories by Ruben on Medium]]></description>
        <link>https://medium.com/@Landon234?source=rss-9ccdd3111d60------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*eDgnj-7oYf1V1lOV.jpg</url>
            <title>Stories by Ruben on Medium</title>
            <link>https://medium.com/@Landon234?source=rss-9ccdd3111d60------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 00:09:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Landon234/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Microsoft’s 2023 Secure Boot Certificates update]]></title>
            <link>https://medium.com/@Landon234/microsofts-secure-certificates-update-ae175dba64fc?source=rss-9ccdd3111d60------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae175dba64fc</guid>
            <category><![CDATA[it-support]]></category>
            <category><![CDATA[microsoft]]></category>
            <category><![CDATA[secure-boot]]></category>
            <dc:creator><![CDATA[Ruben]]></dc:creator>
            <pubDate>Tue, 27 Oct 2026 00:23:44 GMT</pubDate>
            <atom:updated>2026-10-27T00:24:08.481Z</atom:updated>
            <content:encoded><![CDATA[<p>In Secure boot the DBX is a revocation list saying don’t trust such certificates. If you add stuff to their older certificates won’t work. In 2026 Microsoft emphasied. That they were not going to be adding the old 2011 certs to the DBX block list. For now it’s a push to make secure boot work with 2023 Certs. Also Windows update would only update fully if your bios supported it. So you had to also update your BIOS to a version that would support the change. Your older computers would still boot and work they just would not get future secure boot updates.</p><p>Some IT departments actually started adding DBX revocations to unsupported computers. Which is a big no no. You are better off replacing your computers to versions that support newer certs. Just because you add a 2011 certificate revocation to DBX. Does not mean you are protected against future rootkit attacks. They would follow guides such as this one <a href="https://support.microsoft.com/en-us/servicing/os/secure-boot/2020/12/microsoft-guidance-for-applying-secure-boot-dbx-update-kb4575994">https://support.microsoft.com/en-us/servicing/os/secure-boot/2020/12/microsoft-guidance-for-applying-secure-boot-dbx-update-kb4575994</a> Which lead to more problems with booting and computers not working well. The only good way is to update your Bios to a version that supports 2023 certs. If you bios is too old then you really only have one choice which is to replace your computers.</p><p>Checking that link today it looks like Microsoft even deprecated that article saying feature updates will take care of that stuff in the future. For now Microsoft is not adding updates to the DBX. Eventually it will happen might be in a year or couple years. But the timeline is to eventually make it so only 2023 and newer certs work with secure boot. Windows 11 may not ever get the DBX. Might be something introduced in Windows 12 where you can only boot with 2023 and newer secure boot certificates. Microsoft has said computers that don’t support 2023 won’t be receiving the updates, and won’t have the DBX updates applied. They will still be able to boot. You just won’t get newer security updates for secure boot area. The computer will still get other security and feature updates.</p><p>Since it was such a big deal Microsoft did a ask Microsoft event on the secure boot change. here’s a link to that event <a href="https://techcommunity.microsoft.com/event/windowsevents/ask-microsoft-anything-secure-boot---june-2026/4522056">https://techcommunity.microsoft.com/event/windowsevents/ask-microsoft-anything-secure-boot---june-2026/4522056</a></p><p>Secure Boot relies on several firmware databases:</p><ul><li><strong>PK (Platform Key)</strong>: Establishes platform ownership and controls changes to Secure Boot policy.</li><li><strong>KEK (Key Exchange Key)</strong>: Authorizes updates to Secure Boot signature databases.</li><li><strong>db (Allowed signatures)</strong>: Contains certificates and hashes trusted for booting.</li><li><strong>dbx (Forbidden signatures)</strong>: Contains revoked certificates and hashes that must not be allowed to boot.</li></ul><p>A quick recap of what issues will occur if you manually do DBX updates. May end up revoking vulnerable bootloaders signed by the old Windows Production PCA 2011 certificate. Older UEFI implementations can mishandle database updates. If your firmware trusts only the older 2011 certificates, manually installing a newer DBX does not automatically add the 2023 certificates needed for the transition. DBX update doesn’t update PK, KEK, or DB. Which usually requires a Bios firmware update or a computer that already is running with newer Bios supporting 2023 certs. You could end up with a system that has new revocations but lacks the updated trust configuration needed for future boot components.</p><p>Let’s say you actually did do a DBX manual update. You now can have such serious issues shown below.</p><ul><li>No newer BIOS update from the manufacturer or BIOS update causes a crash.</li><li>Firmware that cannot properly handle the new certificate configuration.</li><li>BitLocker recovery prompts after changes to the boot environment.</li><li>No usable recovery USB because its bootloader is also affected by the revocation.</li></ul><p>As of now you shouldn’t even be following guides to do manual DBX updates. Probably why Microsoft retired that one article link. People kept causing more problems by manually doing DBX update. Also there are guides on manually applying the 2023 certs. If your BIOS doesn’t support 2023 certs then there is no point in manually applying the updates. You will still be vulnerable to rootkits. Microsoft can’t update areas of your bios to support 2023 certs. That is up to your computer manufacturer. Some of them aren’t even releasing BIOS updates for some older models. If you don’t have secure boot on then none of this even applies to you. Your computer will still boot and function. However having secure boot off exposes you to sever security risks. Most likely Microsoft will make the next Windows to be secure boot only, with no 2011 certificate support. In those case you won’t be able to install with secure boot off. But we will see they haven’t released any date for a Windows 12 release.</p><p>To find out if your computer gets the Bios update refer to the manufacturers guides. For Lenovo computers the link is <a href="https://support.lenovo.com/us/en/solutions/ht518129">https://support.lenovo.com/us/en/solutions/ht518129</a> While this link is for HP business computers <a href="https://support.hp.com/us-en/document/ish_13070353-13070429-16">https://support.hp.com/us-en/document/ish_13070353-13070429-16</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae175dba64fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What I dislike about the current state of IT Field]]></title>
            <link>https://medium.com/@Landon234/what-i-dislike-about-the-current-state-of-it-field-476d07f67428?source=rss-9ccdd3111d60------2</link>
            <guid isPermaLink="false">https://medium.com/p/476d07f67428</guid>
            <category><![CDATA[information-technology]]></category>
            <category><![CDATA[it-support]]></category>
            <dc:creator><![CDATA[Ruben]]></dc:creator>
            <pubDate>Mon, 26 Oct 2026 23:29:46 GMT</pubDate>
            <atom:updated>2026-10-26T23:29:46.622Z</atom:updated>
            <content:encoded><![CDATA[<p>I have over 10 years of experience in the tech field doing a wide variety of tasks. The changes in the field have made it much harder to support clients. Below I will be giving some reasons for why I am so frustrated with this field.</p><h3>Bios unable to reflash to same version</h3><p>Around 2021 we started seeing more rootkits for Windows 10 and 11. There were proof of concepts out from security researchers around 2013. But it wasn’t around 2021 when we saw rootkit attacks out in the wild. Lojax, mosaic regressor, and blacklotus are some of the examples. Around this same time period we saw computer manufacturers locking down BIOS. Preventing reflashing and installing older versions.</p><p>The 2010’s is when the concepts root of trust, secure computing, uefi, and secure boot was gaining traction. However the computer manufacturers took a long time to implement these features. To this day its a lopsided implementation. With some of these newer rootkits you might need to clear tpm and secure boot keys, reflash bios, and then full reinstall of Windows OS just to remove the rootkit. NIST and other experts came out with guidelines that BIOS rollback should be blocked. And this was baked into BIOS by some manufacturers like Lenovo. By default they had a setting that blocked reflashing which could be disabled to allow reflashing. The BIOS has for a long time had other features to prevent users from tampering with it. One very old feature is BIOS passwords.</p><p>However that wasn’t enough and alot of manufacturers moved to blocking BIOS rollbacks. Since around 2020 Lenovo has made it so even disabling rollback in BIOS doesn’t work. You try running a BIOS installer and it will tell you it can’t rollback because it’s already on the current version. They have even gone so far as to remove older BIOS versions from their websites. This has been very frustrating for Tech Support. In cases where a reflash might be needed to cleanup malware, you are stuck without that option. In other cases a new firmware update might cause issues later, but now you can’t rollback. On newer computers the BIOS update will make a backup during install, in case something happens. Which can prevent cases that could have led to a bricked computer during install. However as mentioned earlier after the BIOS install you can no longer rollback. This was done for security reasons. But it can hinder you in cases of rootkit infection or BIOS update causing performance issues.</p><p>Your left with a final option of going into Bios and clearing Uefi and Secure boot. Now with the 2023 Windows Secure boot updates in 2026. Depending on how old the computer is the bios may not be fully updated. So you could have issues where clearing secure boot keys will cause computer to have boot issues. Rare but a possible problem. Microsoft says that for now if Bios can’t support it the secure boot update won’t fully complete. Computers will still boot and no DBX updates are being added. Eventually Bios manufacters will add revocations to DBX. And Windows will do the same. Which means an older Bios rollback will cause boot issues. Other potential problem could be if a newer Bios is implemented in such a poor way, where clearing secure boot to factory default just boots 2011 keys.</p><h3>Windows Install Setup Process</h3><p>With Windows 11 Install there was an ability to create a local user. The feature of using oobe\bypassnro helped in cases of no internet connection. There were several reasons why I would use that feature. I had issues where a windows driver update caused so much issues. That I had to do a OS reinstall, make sure no internet connection was on to block Microsoft updates. Windows is notorious for installing driver updates automatically. Then I would install an older driver versions or an updated one from the computer manufacturer. Finally I would have to make sure Windows was set not to install driver updates. Sometimes it doesn’t work and Windows update will eventually overwrite that driver. So you have to use various workaround and setting changes just to allow a specific driver to stick.</p><p>Microsoft in 2025 announced that they would be getting rid of the oobe\bypassnro option eventually. That you would be forced to have a internet connection during Install. And local user account is blocked, Only Microsoft accounts are allowed during setup. This has caused so many issues with test machines in VM’s. For those I don’t want to use a Microsoft account and prefer local user accounts. At some smaller clients they prefer workgroups with shared user accounts. Local user accounts are much easier to reset, if an employee leaves. Microsoft has made it so easy for users to tie their local personal Microsoft account to a PC. Which makes a whole other mess for tech support to work with. If said employee leaves it is now much harder to gain access to that machine, especially if a user used their personal Microsoft account to bitlocker encrypt that computer.</p><h3>Pushed towards Intune and Cloud</h3><p>The push wasn’t as big in the 2016’s towards Intune and Azure cloud. But since around 2025 Microsoft has aggressively pushed toward cloud and Intune adoption. When I worked at a managed service provider we had alot of smaller clients. 5–10 employees that preferred on prem deployments with one server or workgroup only. The cloud costs were just too much for them. Larger clients preferred the lower cost they saw with on prem and using scripts like powershell or on prem RMM tools they had.</p><p>Microsoft got rid of cheaper options like small business server OS. Around 2014 it was end of life. Though some companies were still using it. Server essentials was the replacement but has been quietly phased out around 2019. With essentials you couldn’t use Exchange on prem. You had to use Office 365. Anyone who has dealt with CAL licensing knows how much of a mess it was for on prem client. Larger clients could easily move costwise to cloud. Cheaper options like small business bundled those CAL licenses. Which was much easier for small clients to deal with. By the way Microsoft’s push away from small business server. Is why smaller clients have moved to services like Google workspace. Guess your idea of forcing everyone to go Office 365 didn’t work out so well.</p><p>If your using Office 365 and Azure alot more control over devices is possible using Intune. However it costs alot of money compared to third party tools that can manage computers. Sure being only Azure AD joined blocks attacks that hacking tool like responder uses. As well as kerberoasting and golden ticket. But the cost is so huge to move towards only Azure AD join and Intune. That not alot of smaller companies want to make such a push. Which forces them to move to cloud only or adopt a more Shadow IT infrastructure.</p><h3>Shadow IT</h3><p>The last place I worked at was a medium size corporation. And Shadow IT was still rampant there. It comes down to executives and management. If they aren’t pushing against it. There isn’t much you can do as Tech Support. And if you go behind their backs you will very quickly be let go. It was very frustrating having to deal with this. In school your taught why standardization is needed and computers locked down. Yet in reality I saw a lot of companies having Shadow IT. Employees using their personal Onedrive to store company data. And Employees using software without getting the IT department involved. Yet they would call us for issues that happened. Expecting us to quickly resolve their issues.</p><p>On one hand Shadow IT can make teams more fluid, adapt more easily, and get things done faster. But that’s only to a certain degree. In the long term it creates data silos, duplicate work, and communication breakdowns. It significantly makes it harder for IT teams to provide effective support because it involves the use of unauthorized tools and services that fall outside the organization’s official technology infrastructure. These tools often operate without IT’s knowledge, leading to a lack of visibility, control, and standardization. As a result, IT cannot monitor or secure these systems, troubleshoot issues, or ensure compliance with company policies and regulatory requirements. Shadow IT also introduces security risks, integration challenges, and inconsistent user experiences, ultimately increasing the complexity of the IT environment and reducing the organization’s overall ability to maintain a secure, efficient, and supportable technology ecosystem.</p><h3>Microsoft Cloud Security features forced on users</h3><p>Azure has a great feature that will block accounts if atypical travel is detected. This used to require a higher level 365 subscription account, and could be turned off. Microsoft decided to push this feature on all accounts. On one hand it is great but some companies use a special account for scan to email from copiers. The same account is used on lots of copiers. This has been a common setup method. But now it isn’t possible. As atypical travel feature will block scan to email.</p><p>Microsoft wants to push users towards SMTP relay or direct send. These require adding static IP’s to either your SPF or connector, depending on setup method you choose. Depending on setup port 25 outbound is required. Well guess what Azure by default blocks port 25 outbound for VM’s. Unless you have a very special account, which most tenants aren’t going to have or even get approval. Microsoft is very picky about allowing port 25 exceptions. For atypical travel you can add static IP’s. But with clients who have lots of locations and multiple IP address’s. This isn’t a good solution for them. By the way even ISP’s block port 25 nowadays. And the best Office 365 solution to work with port 587 is smtp client submission. Well Office 365 as mentioned earlier is forcing all clients to have atypical travel protection permanently on. So now these clients are forced to do this, or use a third party smtp relay service. Which will cost more money. And Microsoft refuses to allow you to have an account that opts out of atypical travel. They don’t even have a feature where it learns the IP’s used and automatically adds them as safe. Then allowing you a way to turn it on after a learning period. Eventually Microsoft will force oAuth for smtp client submission. Well most older copiers don’t support that feature. Even nowadays depending on the Copier model it might only support SMTP. It will take a long time for most copiers to have oauth smtp authentication as a feature. So for now most companies just use third party smtp senders as its a much simpler solution, but a costlier solution.</p><h3>Rapid AI Adoption without IT involvement</h3><p>With Gen X and Millennial generations being majority in workplaces now. There has been a trend towards relying less on IT. You see this with the huge Shadow IT problems. Gen Z not so much as they will ask more questions, especially very basic questions. Which is reasonable since most schools cut out basic computer skills training in curriculums. On the other hand management in most companies, has cut out spending on training. Even in my previous IT jobs, I only got about a week of training and was expected to figure everything else out on my own. Ask too many questions and you are let go. So they have a trend nowadays of hiring less Gen Z.</p><p>Back to my point here: lots of employees are using AI without letting IT or management even know. There are certain workflows where AI just isn’t needed. Yet in some cases, employees are uploading internal company data and asking AI to do basic tasks like “show me monthly growth” or “remove duplicates in this data” — things that could easily be done in Excel with basic to intermediate skills. Yet the users themselves refuse to even learn such basic Excel skills. And mangement doesn’t want to spend on the training.</p><p>Yet because AI is more conversational, many people reach for it instead of learning the tools they already have. That creates unnecessary risks. The issue isn’t that AI is inherently unsafe; it’s that employees may expose sensitive company information to external services when the same result could have been achieved locally using Excel, Power Query, or other approved business tools. Organizations need clear policies on when AI adds value and when traditional tools are the better choice, along with training so employees can make informed decisions.</p><p>The risks also depend on which AI service employees are using. Free consumer AI tools may not provide the administrative controls, data governance, or compliance features that organizations require. If employees upload confidential documents, customer information, financial records, or proprietary business data without approval, they may violate company policies or regulatory obligations. By contrast, enterprise AI platforms are designed with business security in mind, offering features such as centralized administration, identity and access management, audit logs, encryption, and contractual commitments about how customer data is handled. Many enterprise offerings also provide options that prevent customer data from being used to train the provider’s public models. While enterprise AI does not eliminate the need for sound security practices, it gives organizations significantly greater control over how sensitive information is accessed, processed, and protected.</p><p>However, many organizations — particularly small and mid-sized businesses — are hesitant to invest in enterprise AI platforms. Unlike large enterprises such as Amazon or Walmart, they often operate with tighter IT budgets and must carefully prioritize spending. Technology investments are frequently viewed as cost centers, making it difficult to justify additional licensing fees for enterprise AI, especially during periods of economic uncertainty and pressure to reduce operating expenses. As a result, some employees may turn to free consumer AI tools because they are readily available, even if those tools lack the security, governance, and administrative controls that an organization would prefer for handling business data.</p><p>A final point is the rise of AI agents that do more than answer questions or generate content. These systems are designed to take actions on a user’s behalf, such as managing emails, scheduling meetings, responding to messages, researching information, or completing workflows across multiple applications. Products such as Marblism and similar AI assistant platforms demonstrate how users can delegate tasks that previously required direct human involvement.</p><p>This creates potential security concerns, as an AI agent could modify company files on network shares, send inappropriate or unauthorized emails, or take other actions that impact business operations. If an AI agent is compromised, attackers could potentially exploit that access to perform malicious activities, such as deleting files, spreading malware, or deploying ransomware.</p><p>A growing challenge is that these AI tools are often being adopted outside of traditional IT oversight. As younger generations of employees, including many Gen X and Millennial workers, increasingly rely less on IT support and seek self-service solutions, organizations may face greater difficulty maintaining visibility and control over how AI tools are being used.</p><p>I have experienced situations where users contact IT expecting immediate administrative access to AI tools or platforms they want to use. In these cases, I explain that elevated access requires a formal request, proper documentation, and review with management to ensure the tool aligns with security policies and business requirements.</p><p>Some users become frustrated with the approval process and choose to pursue alternative methods of gaining access without IT involvement. This creates a significant challenge for organizations because it can lead to unmanaged AI adoption, reduced visibility, and increased security risks. Without proper governance, IT teams may be unaware of what tools are being used, what data is being shared, or what permissions have been granted.</p><h3>Job Titles not reflecting job tasks</h3><p>It’s interesting how there was such a big cry for Cybersecurity careers in the 2010&#39;s. Yet once massive AI adoption came in late 2020&#39;s. Companies have refused to build out Cybersecurity departments. Cybersecurity hiring has massively gone down. One medium size business I was analyzing grew from 800 employees to 2000. They expanded rapidly over 5 years opening well over 10 more locations. Yet they kept their IT department at the same size. Only focusing on building out AI and outsourcing IT tasks. Sure they saved money but eventually got hit with Ransomware. Ironically it was their outsourced MSP that got hacked and they in return. If they had a decent Cybersecurity department with Threat Hunters they most likely would have recovered. Management at such companies thinks their Insurance will save them. After all the massive attacks in the past decade. Insurance is actually not paying out as much anymore or refusing to pay you out. Yet a lot of companies refuse to grow their IT departments right now. Another thing they will do is dump high level Cybersecurity tasks on Tech Support. Then blame them for issues instead of accepting that they the management are to blame.</p><p>One of the things I personally witnessed was that I kept gaining more certificates. Learning more while not getting any title promotions. I did Network admin, Cybersecurity, and System administrator tasks. Without a change in payment. I was paid just enough to not leave, but expected to do tasks that usually would pay more money. On top of it the department didn’t hire more employees, yet kept giving us more responsibilities. The interesting thing is the field has moved to making such tasks part of the daily tasks that Tech Support personal do. Unfortunately in such a tough white collar job market, Employers have more leverage. Around 2023 I was seeing tech support jobs in Seattle paying around $30 an hour start. Now 2026 I see jobs where its around $20–26 an hour start, with all those higher expectation levels. The other thing is those job titles can keep you stuck. Your office job title might be Tech Support. But even though you have massive Cybersecurity or Sysadmin experience. Potential employers will overlook you. Some people actually end up having to lie on their resume just to get more job opportunities.</p><h3>Users Solving problems on their own using AI</h3><p>With the massive outsourcing that has been done. The quality of IT support sucks at those places. Employees at big organizations will call support and end up having their issues not fully resolved. The thing is places like India have alot of techs that just pass exams. They are good at memorizing information. But Their Abstract and Critical thinking skills suck. There are reasons why such Generalizations tend to be true. Just because you can pass an IT exam or know tons of Leetcode, doesn’t mean you can solve problems well. Especially in IT support you have to know the systems well that you are supporting. Also these employers that outsource don’t care. They care more about saving money.</p><p>So users end up using AI to solve their problems. At first it was just asking questions on sites like Chatgpt. Nowadays you can run AI agents on your computer that will analyze it and fix the problems. Problem is IT is kept out of the loop. Whatever changes have been done aren’t documented. Many times the fix doesn’t work, and more problems are created. So IT Support ends up having to spend more time fixing your problems. That’s if you even are able to get your ticket escalated to higher level support. It might just stay at lower level for a long time.</p><p>One Client I talked with learned that their outsourced IT department for lower levels. Kept closing tickets and marking as resolved. Yet issues kept being reopened and not escalated. It turned out the lower level techs were just following a script and not even trying to really solve their problems. Which can make sense. An outsourced company will be under constant pressure to meet quotas and follow strict procedures, they have little incentive to investigate issues beyond the standard troubleshooting steps.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=476d07f67428" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PDF Preview no longer working after October Windows 11 Update Fix]]></title>
            <link>https://medium.com/@Landon234/pdf-preview-no-longer-working-after-october-windows-11-update-fix-41985d89e616?source=rss-9ccdd3111d60------2</link>
            <guid isPermaLink="false">https://medium.com/p/41985d89e616</guid>
            <category><![CDATA[kb5066835]]></category>
            <category><![CDATA[pdf-preview]]></category>
            <category><![CDATA[windows-11]]></category>
            <dc:creator><![CDATA[Ruben]]></dc:creator>
            <pubDate>Fri, 31 Oct 2025 15:48:40 GMT</pubDate>
            <atom:updated>2025-10-31T15:48:40.528Z</atom:updated>
            <content:encoded><![CDATA[<p>October security update cause pdf preview to no longer work. The update in particular looks to be KB5066835. I will be going over various fixes that I have tried. The only two that work is added the site to trusted sites, and the registry preview setting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/383/1*ZFC7QogZksF30227q8MEdw.png" /></figure><h3>Easiest fix unblock file manually</h3><p>If you right click the file and go into properties, there is a file unblock option. Easiest for individual files, but for folders with tons of files it won’t work so well. You could script it but that still doesn’t work out that well. Especially if it’s a corporate network share having stuff uploaded to it all the time. Note this won’t work for all files. It worked on local files for me. But on network shares even after unblocking file I still couldn’t preview some of them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/386/1*_zTM7-BFP4RF94RXvnz01A.png" /></figure><h3>Internet options trusted site fix</h3><p>I tried a fix where you go into internet options -&gt; local intranet -&gt; sites -&gt; advanced. Make sure require https for all sites in zone is unchecked. Add the network folder path there for example \\barboo.com\ then click close and ok to save.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/405/1*Ij_6VhOafcA6R-BmDnqRhw.png" /></figure><p>That didn’t work so I tried adding it to trusted sites. By the way you can only add a domain to one zone. Didn’t need to reboot or restart Windows explorer PDF preview started working. I think since it’s a domain path with a .com and my computer is in a workgroup. Windows treats it as internet zone instead of local intranet zone. That’s why adding it to local intranet didn’t work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/355/1*Zoj6bZUjFcWb_I4v4QnlxA.png" /></figure><h3>Do not preserve zone info in attachments group policy setting</h3><p>This setting is found under User Configuration -&gt; Administrative Templates -&gt; Windows Components -&gt; Attachment Manager. it’s called “Do not preserve zone information in file attachments” . This setting did not work for me. I even tried copying the pdf file from network share to my Downloads folder. The file still had mark of web giving me option to unblock the file. This setting only works when your downloading attachments from browser or saving them from Outlook.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*WgcR_ZAJ9JnC9NIpMPxSpA.png" /></figure><p>Keep in mind the path of how your files are being created and uploaded. If you have users downloading attachments then copying them to a network share. This setting will work to keep those files unblocked. So even if they get copied to network share you won’t have file blocked warning. This policy is dangerous in that it can expose you more to malicious attachments, since the mark of web is gone and there won’t be a warning for users. Of course you might get warning somewhere else. For example if you block scripts in PDF’s by policy, they will get a prompt in Adobe.</p><p>Also the new update makes it so even if the file is unblocked you still won’t be able to preview it. Until you go into internet options and add network share to trusted sites. This is an issue I ran into with workgroup computers. If it’s domain joined you might not have that issue, as it may already be part of trusted sites. Unless the FQDN of share is different domain than your AD FQDN.</p><h3>Workgroup user copies trusted file to domain network share</h3><p>It depends on the settings of your DFS or file share server. In my test I copied a trusted file to the network share. And pdf preview didn’t work.</p><p>No option to unblock it after I copied it to network share. But it still doesn’t work in preview and gives me the following warning. I even checked the file and didn’t see any zone information on the file. So there must be something else that treats it as a different location or something.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/364/1*qyhFst4f-8aHuiVNDBk_5g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/286/1*x2HUbeVxyeQXCOkC_jar8w.png" /></figure><h3>Adobe thumbnail preview</h3><p>This suggestion doesn’t work because the setting is to do with an entirely different item. Which is the thumbnail of the file. By default Explorer shows thumbnail of program such as Adobe. By enabling this feature you will see preview of pdf content in thumbnail. To do this go to Adobe reader then click preferences -&gt; general -&gt; check Enable PDF thumbnail. Next in File Explorer change view to show medium, large, or extra large icons. For some this could be an alternative to using preview pane.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/478/1*IyUEVk5JPnfF_bGEHImMJQ.png" /></figure><h3>Turn off enhanced security</h3><p>This one did not work for me. It might have to do more with Adobe program itself and how it opens PDF’s. If you have issues opening PDF due to security issues, this would help in those cases. Here we have the Explorer preview not working, which this setting doesn’t fix.</p><p>Go to preferences -&gt; security (enhanced) -&gt; uncheck Enable Enhanced Security</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*JcTgEfNfJCsWwmcf1xqb_w.png" /></figure><h3>Show preview handlers in preview pane</h3><p>This did not work for me it made it so preview pane would say no preview available. Some users said it worked for them. I tried changing my default pdf viewer to edge and preview still didn’t work. To change this setting in File Explorer go to -&gt; options -&gt; view tab</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/388/1*tdDpbWf3u-MMAE3UBlJKPw.png" /></figure><h3>Using another PDF viewer</h3><p>Will not fix this issue as it’s a Windows setting causing the issue. I tried xpdfReader, set it as default pdf reader, and still had the same issues.</p><h3>180F registry Internet Zones fix</h3><p>This registry key below cannot be found in internet options. It’s called “Allow previewing and custom thumbnails of OpenSearch query results in Windows Explorer” Setting this to 0 does fix PDF preview issue but it is a security risk. The preview files option can be used to steal NTLM hashes and execute malicious code silently. This fix would allow all files to be previewed including ones downloaded from internet zones. Adding network share to trusted sites works better. Because you only allow one location to allow previews which is the network share.</p><p>[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3]</p><p>“180F”=dword:00000000</p><p><a href="https://textslashplain.com/2025/10/20/windows-shell-previews/">https://textslashplain.com/2025/10/20/windows-shell-previews/</a></p><p><a href="https://learn.microsoft.com/en-us/previous-versions/troubleshoot/browsers/security-privacy/ie-security-zones-registry-entries">https://learn.microsoft.com/en-us/previous-versions/troubleshoot/browsers/security-privacy/ie-security-zones-registry-entries</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41985d89e616" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Smaller Malware Analysis Network Layout]]></title>
            <link>https://medium.com/@Landon234/smaller-malware-analysis-network-layout-2888c845914f?source=rss-9ccdd3111d60------2</link>
            <guid isPermaLink="false">https://medium.com/p/2888c845914f</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[network-security]]></category>
            <category><![CDATA[malware-lab]]></category>
            <dc:creator><![CDATA[Ruben]]></dc:creator>
            <pubDate>Mon, 18 Aug 2025 23:19:50 GMT</pubDate>
            <atom:updated>2025-08-18T23:19:50.802Z</atom:updated>
            <content:encoded><![CDATA[<p>If your just going to run malware for a small amount of time. Then just having 3 VLAN’s would be fine. One Vlan is your local LAN, second Vlan is malware LAN on Proxmox, and third Vlan is mangement LAN of Proxmox. Add firewall rules either on Proxmox or another device like dietpi physical router or Pfsense VM to block LAN to LAN communication, and just NAT traffic. You could also use two VLAN’s one for malware side, and the other for your local LAN.</p><p>Another thing to keep in mind is that in Proxmox separate bridges can’t talk to each other by default at layer 2. The same is true for Vmware vSphere; two switches are isolated by default at layer 2. If your not going to be running malware for that long. It probably is okay to just use separate switches in your hypervisor. Adding a VLAN to just malware LAN will help isolate it further. Below is what our layout will look like.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/1*C35WzilAEY_pe1Nw9StCTA.png" /></figure><h3>ProxMox Setup</h3><p>We can start by creating a bridge in our Hypervisor. I’m using Proxmox so I went to Network -&gt; create -&gt; new linux bridge -&gt; click create. Make sure VLAN aware is checked. This new option will make the Linux bridge act like a layer 3 switch and trunk port. Leaving it unchecked makes the linux bridge act like a dumb switch. VM’s can still talk to each other but Vlan isolation isn’t solid, data can leak. Plus you need a physical port connected to bridge if it isn’t set to Vlan aware. I will make another article going over what happens with this checked and unchecked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*aMDMzRXanCOAuS86UgG-dA.png" /></figure><p>Next I will create 3 VM’s. Proxmox VM is created with 2 NIC’s one is my bridge going to local Lan through Vlan 6. The second one is the Vlan 7 bridge we had made. I set boot to SeaBIOS since Uefi didn’t work even with secure boot disabled. You don’t need to set VLAN tags inside Linux server or pfsense since our VM’s are Vlan tagged in settings. The Wan interface on Pfsense will be the connection to Vlan 6. While the Lan interface will be our Linux bridge we made that uses Vlan 7.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*YtekjVH_LZlw8cmfPQWpYA.png" /></figure><p>Pfense doesn’t work as well with OpenVPN profiles. It does have an option to setup a VPN which might work well with other VPNs. For this demonstration we will use a Linux VM that will be our OpenVPN client. I setup a Ubuntu 24 server with a Nic connected to Vlan 6 which goes out to local network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*JrU2Vt2M4AS_ClVY2lgVrg.png" /></figure><p>I set the Ubuntu server to use 192.168.1.3 IP address</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*7OSwYX0kAxtTneKkv4zylA.png" /></figure><p>Pfsense by default does a good job blocking traffic on WAN side. Also once you add the block rules I show. It will block traffic to any private subnet. For this setup I will leave reserved networks checked. But if you want to allow access to web gui over WAN interface on Pfsense you will need to uncheck these and add a firewall rule to allow web gui access on WAN. It’s preferable not to have web gui access on side facing malware Lan to limit attack surface on firewall.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1bF8c5V7L7YQwUX76wA9Xg.png" /></figure><p>The great thing about Pfsense is the Web Gui allows fast configuration setup such as the DHCP server below setup on the LAN interface</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*qMwR8QXhfE8TI-fn3kvdSg.png" /></figure><p>Now in our test Windows VM we have set the Nic to connect to Vlan 7 bridge and we can see that a ping to google works. Next we can try to ping the Linux router at 192.168.1.3 which works by default.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/1*mfm5NKX8RxMADlKYkUJ49w.png" /></figure><p>What we need to do now is block LAN connections from the Malware Lan. We only want them to go out to Internet. Go into Pfsense -&gt; Firewall -&gt; Aliases -&gt; choose Networks for type. Create the Alias below with the 3 private class subnets and click save.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*f5f6mXsFF7WZcnUdsE2aRg.png" /></figure><p>Now go into Firewall -&gt; rules -&gt; LAN -&gt; click on add with up arrow. Select block for action. And set the Alias you made earlier as destination. Finally click save and apply</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NBxfpXqojUuxsHELxcJ-ng.png" /></figure><p>As we can see a ping to internet works, while a ping to the Linux server at 192.168.1.3 doesn’t work. The server has port 22 open. So I did a nmap scan which shows no ports open. Keep in mind Nmap will say online because we used option -Pn to skip the ping discovery scan.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/773/1*dMgthHiOwyD5vZrUXhkEag.png" /></figure><p>This is the end of setup for Pfsense setup. Since my demonstration will focus more on OpenVPN server. I am leaving these default rules on in LAN side. Keep in mind if you disable the anti-lockout rule below on Lan you will lose Web gui access. To allow Web gui on Wan you will need to enable Wan access in Wan firewall rules area, and configure a couple other areas. The rules below the PrivateSubnets Lan subnets should be left on. Or else you won’t be able to ping out to the internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*up_RjMjRYX6Oq5W2sJJlbQ.png" /></figure><h3>OpenVPN Setup</h3><p>In Aws I chose a Ubuntu EC2 server instance. In order to allow OpenVPN to work you will need to allow inbound in security group port 1194 and 443 for the VM on public side.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zn9tySb2Mlm9GvfR2i9k-w.png" /></figure><p>After that sign into your server instance. Download the openvpn script from <a href="https://github.com/angristan/openvpn-install?tab=readme-ov-file">https://github.com/angristan/openvpn-install?tab=readme-ov-file</a> and run the installer</p><pre>curl -O https://raw.githubusercontent.com/angristan/openvpn-install/master/openvpn-install.sh<br>chmod +x openvpn-install.sh<br>sudo ./openvpn-install.sh</pre><p>When you run the shell script it will ask for the IP address put in your public IP address of your EC2 instance. Choose all defaults and eventually press enter to start install.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*sUPMCPg4ST_mBxwJewUexg.png" /></figure><p>After install happens you will be able to generate the client. For mine i chose testuser. Choose defaults for the rest and install should finish telling you where files are saved. You should now have a testuser.ovpn file which you will need to copy to the Linux server in Proxmox.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/1*JsdZbX80SESouklzKo1wcA.png" /></figure><p>Now on our Linux server in Proxmox we need to enable network routing by editing /etc/sysctl.conf and uncommenting the line <strong>net.ipv4.ip_forward = 1 </strong>Finally run <strong>sudo sysctl -p</strong> to apply it</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*8_W7qoL314QqicP_I2mgAQ.png" /></figure><p>Run the commands below to install Openvpn and install the profile you copied</p><pre>sudo apt update<br>sudo apt install openvpn<br># create directory to store you ovpn file *Note might already be created<br>sudo mkdir -p /etc/openvpn/client<br>sudo cp your-profile.ovpn /etc/openvpn/client/client.conf<br># commented out is what to do if you set a username password pair<br># add your username and password to the file below<br># sudo nano /etc/openvpn/client/credentials<br># update client.conf to include credentials<br># auth-user-pass /etc/openvpn/client/credentials<br># secure the file<br># sudo chmod 600 /etc/openvpn/client/credentials<br></pre><p>Start openvpn service and enable it. Finally verify that you are getting a public ip from VPN provider. As we can see below I am getting the public IP of my Ec2 instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*u9p1UHudtw-Y9ti8EMGCqQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/928/1*GjhV-ClltCK9pXcV8w_XtA.png" /></figure><p>Final step on Linux router is to setup iptables to do NAT routing out through NAT tunnel. run <strong>sudo apt install iptables-persistent</strong> to be able to save iptables rules on reboot.</p><pre>sudo iptables -t nat -A POSTROUTING -o tun0 -s 192.168.1.0/24 -j MASQUERADE<br>sudo iptables -A FORWARD -i ens18 -o tun0 -s 192.168.1.0/24 -j ACCEPT<br>sudo iptables -A FORWARD -i tun0 -o ens18 -d 192.168.1.0/24 -j ACCEPT<br>sudo netfilter-persistent save</pre><p>Go to the Pfsense firewall and change it’s default gateway to point to Linux router 192.168.1.3. You will need to go to system-&gt;routing-&gt;gateways. In there edit Wan gateway to be 192.168.1.3 -&gt; click save and then apply</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*B28U7D285sQyRdoMff2cBA.png" /></figure><p>Finally test it on your Windows VM. Below we can see dnsleak is showing my EC2 as public ip and DNS servers as google ones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bpAgdilbSDmnjpfMQhsdQQ.png" /></figure><p>Another test is a tracert from the Windows VM. As shown below the first one was before OpenVPN setup. I did blur closer hops out from my ISP for privacy reasons. The second tracert is showing the path going out through our OpenVPN setup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*GATIKgmoAd4P_PiaW3xLcw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*J6xC_NvlLvFu6YsmZ0Dlrw.png" /></figure><h3>Closing thoughts</h3><p>There are rules you can apply to the Pfsense to block icmp to the firewall itself. The same can be done to the Linux router through iptables. This will make it so a tracert will show request timed out. This can help you hide your network topology further from Malware. Keep in mind if your Linux router reboots there might be a race condition before the OpenVPN is connected. This may leak data as the Linux router might be routing through your ISP before OpenVPN kicks in. To fix this you can setup boot scripts to delay routing until OpenVPN connects. The final consideration is DNS leaking. At no point should any of your routers or firewalls that Malware LAN uses be having DNS set to your ISP as this will leak data out. Pfsense and Linux router DNS set to another DNS like 8.8.8.8 helps. Plus the OpenVPN connection hides your ISP to the Malware LAN. They will only be able to trace out through your tunnel.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2888c845914f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Malware will define and dynWindows API]]></title>
            <link>https://medium.com/@Landon234/why-malware-will-define-and-dynwindows-api-0af2edc4ee41?source=rss-9ccdd3111d60------2</link>
            <guid isPermaLink="false">https://medium.com/p/0af2edc4ee41</guid>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[windows-api]]></category>
            <category><![CDATA[reverse-engineering]]></category>
            <dc:creator><![CDATA[Ruben]]></dc:creator>
            <pubDate>Tue, 05 Aug 2025 05:45:21 GMT</pubDate>
            <atom:updated>2025-08-05T05:45:21.084Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why Malware will define and dynamically load Windows API</h3><p>When looking at source code of malware or even red team tools like Metasploit you will come across dynamically loaded Windows apis. There in the code will also be headers defining Windows API structures but using their own names for it. Take for example the code below that defines the structure for Windows MessageBoxA but gives it a different name. <a href="https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-messageboxa">https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-messageboxa</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*4RoZcTXAktkJrl69nlS4wA.png" /></figure><p>This example below in c++ creates a typedef ptMessageBoxA and uses LoadLibraryA and GetProcAddress to dynamically load it. Once we get the memory object we can pass our pMessageBoxA and since the structure matches we are able to print out a message box.</p><pre>#include &lt;Windows.h&gt;<br>#include &lt;iostream&gt;<br><br>// Define the function pointer type for MessageBoxA<br>typedef int (WINAPI* ptMessageBoxA)(<br>    HWND hWnd,<br>    LPCSTR lpText,<br>    LPCSTR lpCaption,<br>    UINT uType<br>);<br><br>int main() {<br>    // Step 1: Load the DLL<br>    HMODULE hUser32 = LoadLibraryA(&quot;user32.dll&quot;);<br>    if (!hUser32) {<br>        std::cerr &lt;&lt; &quot;Failed to load user32.dll&quot; &lt;&lt; std::endl;<br>        return 1;<br>    }<br><br>    // Step 2: Get the function address<br>    ptMessageBoxA pMessageBoxA = (ptMessageBoxA)GetProcAddress(hUser32, &quot;MessageBoxA&quot;);<br>    if (!pMessageBoxA) {<br>        std::cerr &lt;&lt; &quot;Failed to get MessageBoxA address&quot; &lt;&lt; std::endl;<br>        FreeLibrary(hUser32);<br>        return 1;<br>    }<br><br>    // Step 3: Call the function via pointer<br>    pMessageBoxA(NULL, &quot;Hello from dynamically loaded MessageBoxA!&quot;, &quot;Dynamic API Call&quot;, MB_OK | MB_ICONINFORMATION);<br><br>    // Step 4: Free the library (optional but good practice)<br>    FreeLibrary(hUser32);<br><br>    return 0;<br>}</pre><p>In Binary Ninja in the triage section we don’t see the import for messagebox or user32.dll. Microsoft recommends to use the API. Because it is much cleaner, easier to debug, safer, and more optimized by the compiler. There are legit cases to dynamically load like this. Version compatibility since the function might not be available on all Windows versions. But you can run into issues since you will be doing alot more of the work yourself. Another reason is to reduce dependencies so you don’t need to link a DLL directly. In turn providing more portability for your app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*ASivcVIwoFXRRpt1cTUNbw.png" /></figure><p>In this example we use the Windows api call. In the binary ninja screen we can see that messagebox user32.dll is in the imports section.</p><pre>#include &lt;Windows.h&gt;<br><br>int main() {<br>    // Direct, statically linked call to MessageBoxA<br>    MessageBoxA(<br>        NULL,                               // No owner window<br>        &quot;Hello from statically linked MessageBoxA!&quot;, // Message text<br>        &quot;Static API Call&quot;,                  // Caption<br>        MB_OK | MB_ICONINFORMATION          // OK button + info icon<br>    );<br><br>    return 0;<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/951/1*XR3cm7lx1WESMMJMF5OY8w.png" /></figure><p>This is why malware will use dynamic loading of API calls. It makes it much harder to statically analyze the malware. The imports section won’t show the API call. You will need to either trace LoadLibrary/GetProcAddress manually or look for string references in static analysis. Another option is to dynamically run the malware to find out that it makes such a call. This is why when you look at the call to GetProcAddress as shown below you will see that MessageBoxA is called. The image below is of the messagebox example that resolves api call dynamically.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TNoGI_mwJY1HgwM_C8ACFQ.png" /></figure><p>Malware will take this even further and hash the API names. This way you won’t even see the raw string “MessageBoxA” sent to GetProcAddress. Other techniques include XOR encoded strings decrypted in memory. Another option is inline assembly or syscall which avoids GetProcAddress. Reflective DLL loading from memory leaving no disk artifacts to analyze. Final option is Shellcode like PE parsing where you have fully manual export walking. In this final case LoadLibrary and GetProcAddress won’t be used. Import Address Table (IAT) is empty or minimal. And obvious string references are either replaced with hashes or encrypted blobs. At that point you will have to dynamically analyze such a malware. Either in a sandbox or debugger like x64dbg.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0af2edc4ee41" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reverse Engineering Tip Function Signatures]]></title>
            <link>https://medium.com/@Landon234/reverse-engineering-tip-function-signatures-feb3c195c859?source=rss-9ccdd3111d60------2</link>
            <guid isPermaLink="false">https://medium.com/p/feb3c195c859</guid>
            <category><![CDATA[binary-ninja]]></category>
            <category><![CDATA[reverse-engineering]]></category>
            <dc:creator><![CDATA[Ruben]]></dc:creator>
            <pubDate>Sat, 19 Jul 2025 02:58:35 GMT</pubDate>
            <atom:updated>2025-07-19T02:58:35.256Z</atom:updated>
            <content:encoded><![CDATA[<p>I have the sample code below that adds calc to the registry. In Windows different functions of the API will have different signatures. However when your writing your code typically the name will be used. In RegOpenKeyExW we see that samDesired is set to KEY_SET_VALUE. In RegSetValueExW we see that REG_SZ is used for dwType. The API docs will typically show you what name to use for these. To find the numbers you would have to look at the header files. This isn’t as easy to find on Microsoft&#39;s site. I did find it on other sites like codemachine but it might not be as accurate. Because they might be showing a different SDK than what you are reversing.</p><pre>#include &lt;windows.h&gt;<br>#include &lt;iostream&gt;<br><br>int main() {<br>    HKEY hKey;<br>    LPCWSTR runKeyPath = L&quot;Software\\Microsoft\\Windows\\CurrentVersion\\Run&quot;;<br>    LPCWSTR valueName = L&quot;MyCalc&quot;;<br>    LPCWSTR exePath = L&quot;C:\\Windows\\System32\\calc.exe&quot;;  // Or dynamic path if needed<br><br>    // Open the Run key for current user with write permissions<br>    LONG result = RegOpenKeyExW(HKEY_LOCAL_MACHINE, runKeyPath, 0, KEY_SET_VALUE, &amp;hKey);<br>    if (result != ERROR_SUCCESS) {<br>        std::wcerr &lt;&lt; L&quot;Failed to open registry key. Error code: &quot; &lt;&lt; result &lt;&lt; std::endl;<br>        return 1;<br>    }<br><br>    // Set the new value<br>    result = RegSetValueExW(<br>        hKey,<br>        valueName,<br>        0,<br>        REG_SZ,<br>        reinterpret_cast&lt;const BYTE*&gt;(exePath),<br>        (lstrlenW(exePath) + 1) * sizeof(wchar_t)<br>    );<br><br>    if (result != ERROR_SUCCESS) {<br>        std::wcerr &lt;&lt; L&quot;Failed to set registry value. Error code: &quot; &lt;&lt; result &lt;&lt; std::endl;<br>        RegCloseKey(hKey);<br>        return 1;<br>    }<br><br>    std::wcout &lt;&lt; L&quot;Successfully added calc.exe to startup.&quot; &lt;&lt; std::endl;<br><br>    RegCloseKey(hKey);<br>    return 0;<br>}</pre><p>One way to find the values is if you are in Visual Studio IDE. By right clicking the value and clicking go to definition. You will then be taken to the definition value. Below we can see that KEY_SET_VALUE will use the number 2 from the winnt.h header file. And REG_SZ is a 1ul which in assembly would show up as a 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/351/1*R3LfrfYQLNATya2_1AiZAg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*uvf1vCxCS97D17l3LOu6EQ.png" /></figure><p>On of the great things about IDA is they have a database of these signatures they call it FLIRT. You will typically see what the function parameter is in comments as shown below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*aJ8wFffQk0Znukk84KR5xA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/376/1*Mpb3asUxCnGq5bcZUvpq5A.png" /></figure><p>By default IDA had loaded type library for SDK Win 7 so it just shows dwType and the number 1. You can either manually define it as REG_SZ registry item or use correct type library and then choose the correct one. This can also be scripted this link shows you how to manually rename them in IDA <a href="https://hex-rays.com/blog/igors-tip-of-the-week-99-enums">https://hex-rays.com/blog/igors-tip-of-the-week-99-enums</a></p><p>Below we see that in Binary Ninja by default we just see the numbers and don’t even see a comment like IDA does by default.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1JBmB1GfHDgAPFa6Fs4q0w.png" /></figure><p>One way is to right click that area and add a comment</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/465/1*vCZawGzRp5go-3CbSNlNpg.png" /></figure><p>Another way is if Binary Ninja was able to load the info such as through the PDB for that exe. This might not work on stripped binaries. Below I have chosen the High Level IL view which shows that it knows what the enum names are.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rSBTAOUCzfYK2CYrjq5Rcg.png" /></figure><p>If you double click on the function name for example RegOpenKeyExW it will take you to that area and you can see that Binary ninja was able to find what the function signature for this is. If it couldn’t find it you can manually edit it and add what the parameters would be and enum values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5LvQQlkglran3G-cJZbp_w.png" /></figure><p>Another option is plugins such as BN-Types or TypeLib they will automatically import the API function signatures and automatically annotate it for you. Similar to how IDA’s FLIRT and type libraries do.</p><p>The last option is to right click the value and in display as choose enum or just select the value and press M. Here we see that REG_SAM_FLAGS has a enum definiton that matches with KEY_SET_VALUE as value 2. You can also manually set enum definition or import one from a type library.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*_JTbG8seQHl-SphhpGwntg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*pHRYP0QMTaQp2CG5OqOGnw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=feb3c195c859" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Malware Analysis Network Part 4]]></title>
            <link>https://medium.com/@Landon234/malware-analysis-network-part-4-1adeb136094f?source=rss-9ccdd3111d60------2</link>
            <guid isPermaLink="false">https://medium.com/p/1adeb136094f</guid>
            <category><![CDATA[malware-analysis-network]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[network-security]]></category>
            <dc:creator><![CDATA[Ruben]]></dc:creator>
            <pubDate>Tue, 17 Jun 2025 06:18:18 GMT</pubDate>
            <atom:updated>2025-06-17T06:19:29.608Z</atom:updated>
            <content:encoded><![CDATA[<p>Below is an overview of what my network looks like. The dietpi router is blocking lan to lan communication. Except for specific traffic between VLAN 5 and 99. The reason I added so many layers is because I will be running malware for a long time weeks to months. This raises your risk of something like VM escape much higher. I will post another article about a more smaller setup if you are just running malware for a short time. It is practically impossible that your first stage will be a VM escape. At this time burning a zero day like that would be like giving free gold away. Any attacker using a zero day like that will wait for a while and make sure the traces can be cleaned up. So that’s why I think a smaller network setup or even just running it in a VM with no network access will be fine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/840/1*eYI_Q4X2mi8b69QJYSnWMQ.png" /></figure><p>Below is what network setup on Proxmox looks like. I wasn’t able to get Pfsense vpn over openvpn to work so I had to deploy a Ubuntu VM which is routing and connected to an openvpn server on Aws I setup. The AWS side is a EC2 Ubuntu VM with openvpn setup. You could get rid and just use Pfsense but eventually a traceroute will show your ISP address. Also you should block ICMP to your routers that way each hop in traceroute will show timed out. This will make it much harder for an attacker to know they are behind a networking with multiple layer of NAT. traceroute will still show your first gateway hop on the list even if you block ICMP to first gateway.</p><p>The Pfsense NATs Vlan 7 and 8 out through Vlan 6. Vlan 6 interface is set as WAN on Pfsense. I did have to allow private IP’s on WAN or else Pfsense would drop that traffic. This doesn’t mean traffic can talk to devices behind Pfsense on Lan subnets. The Pfsense just routes traffic out through Vlan 6 NAT. Meaning unless you create a port forward on Pfsense WAN side devices past Vlan 6 won’t be able to talk to devices inside Vlan 7 or Vlan 8.</p><p>The Pfsense then routes traffic to a Ubuntu Linux router that has a openvpn tunnel to AWS. Nftables rules are set to just NAT traffic from Pfsense out the tunnel. Don’t allow any other communication and traffic to router input side is blocked including ICMP. This means that Pfsense can’t SSH or even ping the openvpn router. Traffic from Vlan 7 or 8 is now routing out to the internet over a separate public IP address. This has effectively hidden the malware LAN from finding out what my actual home ISP is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*2iBFNWomK2GR4lORaLL6wA.png" /></figure><h3>Attack Paths</h3><p>Let’s start going over attack paths. The best way to think about this is assume a breach in an area, and what paths can be taken. Vlan 7 and Vlan 8 are on the same bridge but seperate VLAN’s. Vlan 7 has a physical interface used for a physical malware machine connected straight to it. No physical interface is shared so an exploit on interface won’t leak anything. But if a VM escape or bridge attack happens Vlan 8 or VM itself will be compromised. One way to protect yourself is make the VM’s and network interfaces hide what hypervisor they are running.</p><p>The reason I made a VLAN 8 is for for my logging servers. Also Samba has a vfs_worm feature. Which is client only and fine for my situation it makes any data written to share read only after some time. This means I can setup a script in my Malware Vlan 7 to copy the Sysmon deleted files folder to this share. Pfsense has firewall rules only allowing SMB access to my Linux samba share, and ports to my ELK logging server. The idea was to add another layer 3 protection layer. Keep in mind an attacker in Vlan 7 could still exploit Vlan 8 VM’s through the open ports. Be it a ELK server exploit over the port used for sending logs or SMB port. So you could just leave it all in one Vlan and get rid of Vlan 8. But the great thing about having this extra layer is PfSense is a stateful firewall and this extra layer can add logging. So if a compromise is happening against the other Vlan we can potentially catch it sooner.</p><p>The pfsense has firewall rules blocking any access to the private subnets. This is any class a, b, or c network. Of course I have more explicit rules above. Allowing Vlan 7 to send SMB and logs to Vlan 8 network. Pfsense web gui needs to be allowed so we could allow it on Vlan 6 or Vlan 8. Vlan 8 is a bit riskier because Vlan 7 does have more of an attack path to Vlan 8. Having the web gui on Vlan 6 would mean an attacker in Vlan 7 now needs to attack over the routing protocol itself or any services open on Pfsense like DNS or SSH. My pfsense has DHCP and DNS off for Vlan 7 and 8. No SSH access from Vlan 7 or 8. Besides in most malware subnets you would have a Windows server providing DHCP and DNS services. Reason being to make it more realistic to what a typical corporate network environment looks like.</p><p>Okay so an attacker in Vlan 7 has either the VM escape path. An exploit against network layer on Proxmox either through bridge or physical NIC. A path to Vlan 8 but once there you have the Pfsense you need to get through. The Pfsense itself is pretty locked down. Most common exploits against Pfsense and other network devices are against the web interfaces. The other attack path is the networking layer. Pfsense doesn’t have DHCP or DNS services accessible so in that case your left with compromising the routing protocol itself. Very rare and practically impossible for most if not all Malware you would come across.</p><p>If my Pfsense router was compromised it can’t access any services on the openvpn router besides just send packets out to the internet over it. In that case it would either have to VM escape or exploit routing protocol. Layer 2 would allow it to maybe MITM attack but that would just get you to the dietpi router. The dietpi router has a static arp entry for it’s default gateway and advanced routing security set in Linux kernel sysctl.conf. Another protection would be adding static arp entries on the other Vlans that dietpi has access to.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*xd075hVB0mnn_rIj_LCh9g.png" /></figure><p>VM escape, dietpi, or openvpnrouter will allow attacker to now find out what my ISP is. They will still need to compromise my ISP router which has VLAN 5 subnet and Wifi subnet separated. Most common exploit is the web interface but Vlan 5 on ISP router has no web access or ssh access. So they would have to exploit something like DNS, DHCP, routing protocol. Layer 2 would be MITM or broadcast attacks to get switch to be a hub. The switch has features to block such attacks and disable the port. There is also port security and mac address limit. Which makes such attacks even harder. The switch doesn’t have DAI which would be even better to protect against layer 2 attacks.</p><h3>Protecting against Attack Paths</h3><p>I’m running Security Onion with the dietpi port mirrored on Vlan 99. After a couple weeks of running some Malware I didn’t see any malicious traffic hitting my Security Onion. Which would have meant an attacker had escaped Malware Vlan 7 and was now on Vlan 6 or 99. And if I did it most likely would have alerted me soon enough to shut everything down. A VM escape still means you need to change VM data which just is not enough time for an attacker. Of course you could put Security Onion on a separate physical machine from your Proxmox server. Giving you another layer in case VM escape happens.</p><p>Make sure that DHCP and DNS is not being used from your ISP router. Any traffic hitting my dietpi is NATd out Vlan 5. Even if my ISP DNS or DHCP was compromised from dietpi side reverse traffic wouldn’t come back. They would have to compromise dietpi itself to be able to get past the NAT and firewall rules to talk on Vlan 5. The only path they have is routing protocol itself. Any devices in Vlan 6, 7, 8 or 99 are not using the ISP DNS so any leaks of who my ISP is prevented. And I am protected against DNS exploits as well.</p><p>You could run something like AIDE for integrity monitoring. But so much areas get written and saved on hypervisor. It was easier for me to have a backup with hashes. Specifically of any VM’s and config settings I really needed. Then I would after running Malware for a while format and wipe proxmox server. Reinstall OS and reload from a backup. Wipe my dietpi router and switch and reload saved configurations. For most if not all cases this is sufficient to protect you. Of course if you are running environments with insane malware. Where VM escape will happen. You should probably have a dedicated ISP, separate computers to connect to hypervisors, and everything afterwards is destroyed or reused by formatting and loading from backups. Most if not all the malware you will run these methods I outlined will work just fine. The wiping Proxmox and network devices will get rid of any rootkits that may have been installed. Also on the hypervisor have a tight chain of trust for UEFI secure boot. Or just clear TPM, UEFI, and reload bios firmware. Then reinstall your Proxmox OS.</p><p>Also keep in mind your computer that is used to connect to hypervisor or network devices could get compromised. For example a VM escape on Proxmox happens. Next malware exploit code is loaded to run when you login through the web gui. To prevent this use a temporary OS preferably running in memory. Or have highest Windows protection settings such as application whitelisting that way even a zeroday exploit won’t be able to do much.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1adeb136094f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Malware Analysis network lab setup part 3 Proxmox Setup]]></title>
            <link>https://medium.com/@Landon234/malware-analysis-network-lab-setup-part-3-proxmox-setup-b1110d0fcaf3?source=rss-9ccdd3111d60------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1110d0fcaf3</guid>
            <category><![CDATA[proxmox]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[it-networking]]></category>
            <dc:creator><![CDATA[Ruben]]></dc:creator>
            <pubDate>Tue, 17 Jun 2025 04:31:57 GMT</pubDate>
            <atom:updated>2025-06-17T04:31:57.535Z</atom:updated>
            <content:encoded><![CDATA[<h3>Firewall</h3><p>On the proxmox side I setup a firewall and applied it at whole datacenter level only allowing access from subnets on vlan 5 and vlan 99. Of course the dietpi router blocks access to vlan 99. Anyone on my insecure Vlan 6 won’t be able to connect. The source is a IPset which allows me to edit and change it in the future much easier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1022/1*YGlHIkSYpg7HddNIS3HxLQ.png" /></figure><h3>Network</h3><p>There are two ways to set this up. You have a separate bridge with a NIC and you connect to switch at a access only port for that specific VLAN. The other way is more better if you don’t have enough ports and want to share one. You set a Linux bridge as vlan aware. Set a VLAN interface for management and add IP there. Remove IP from Linux bridge that way it’s only set on your vlan interface. And on your guest VM’s set the nic as Linux bridge and specify tag. The physical port connected to switch will be in trunk mode.</p><p>For example port 5 is the one used with tagged VLANs 6 and 99. Acceptable frame VLAN only, PVID is blackhole, and untagged VLANs set to none. This mitigate against VLAN hopping. And allows you to share one NIC on physical Proxmox server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kh0s_2su_NFC3OdfnRj3HQ.png" /></figure><p>*Note don’t set a Linux VLAN on host because it doesn’t need to communicate with VMs on VLAN 6. My host doesn’t need to communicate on that VLAN 6. Especially when insecure traffic will be on there. Below is what my Network settings look like. The OVS bridge will have other nics connected to it and will be for internal network malware will be ran on. You can’t set OVS bridge as Vlan aware like a Linux bridge. Because open switch by default is Vlan aware but it uses ports instead of setting it on bridge. VM’s have a vlan tag set on them which will set it on the interface VM uses. The vm interface on host will typically show as a tap interface on bridge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*7qouXySzKpvlWvIalh9rUw.png" /></figure><p>You could connect your physical machines that will run malware to your switch port. Set it as access only and use port security to limit any mac flooding. And set storm control to limit broadcast, unicast, or unknown unicast traffic. But in my case I will have the Pfsense firewall on Vlan 6. While any physical computers will connect to NICs on Proxmox host on another separate bridge in an entirely different VLAN. Reason being I want to keep it as separate as possible from my Network switch.</p><p>I’ll use a physical computer to run malware (to avoid issues with VM detecting malware). I setup a separate OVS Linux bridge and separate NICs on host connect to that bridge. This will keep the layer 2 and below more separate. On Proxmox will be my AD servers and other Windows machines. Which at that point the hackers won’t care as they will most likely be progressing to launching ransomware and the initial foothold was where they were avoiding VM detection.</p><p>Below we can see an OVSBridge with a VM and physical interface set to VLAN tag 7. The host has no IP same as bridge as we don’t want communication there. Now our malicious traffic is isolated from any other VLANs or switch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*K8vSuwNibPgFcS1x6eKFIQ.png" /></figure><h3>Firewall</h3><p>We need the Insecure Vlan 7 to be able to send data out to the internet. So we could have had access at VLAN 6 done. But I want to keep that layer 2 away from switch and add another path they need to compromise if they want to attack the switch stack. Below is what my Pfsense firewall NIC config looks like the Wan side is Vlan 6 which is being NATd out through dietpi router. The ovs bridge is where our malicous traffic will be which is Vlan 7.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*WkcV9wXcJk3gbTJnuGNdcQ.png" /></figure><p>I did setup a security onion VM on the management vlan with a second OVS bridge which was set to do port mirror. Depending on the nic’s you have you might not be able to pass through one nic at a time. My NIC card couldn’t do that so I had to make a manual OVS mirror. Which on a reboot would dissapear and need to be recreated. Below we see 2 OVS bridges vmbr2 is a physical interface that is a port mirror on netgear. The port mirror source port is the dietpi physical interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/382/1*-6vvuH_8Z-QSN3UsYbBFYQ.png" /></figure><p>You will also want to disable firewall on the VM interface and proxmox bridge. In the proxmox server itself take note of interface name of VM interface that is attached to the port mirror bridge. Below mine was tap117i1 interface on Security Onion VM. The command below creates the mirror but it doesn’t persist after reboots. This link goes over someone else setting up a port mirror <a href="https://andrewhofmans.com/blog/how-to/mirrored-ports-with-open-vswitch/">https://andrewhofmans.com/blog/how-to/mirrored-ports-with-open-vswitch/</a></p><pre>sudo ovs-vsctl -- --id=@enp1s0f1 get port enp1s0f1 \<br>  -- --id=@tap117i1 get port tap117i1 \<br>  -- --id=@mirror create Mirror name=mirror0 select-dst-port=@enp1s0f1 select-src-port=@enp1s0f1 output-port=@tap117i1 \<br>  -- set Bridge vmbr2 mirrors=@mirror</pre><p>So now my Security Onion has visibility to the traffic exiting and entering the dietpi router. I did this to just give me more of a layer to detect any traffic that starts trying to breach my safer network like Vlan 5.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1110d0fcaf3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Malware Analysis network lab setup part 2 switch]]></title>
            <link>https://medium.com/@Landon234/malware-analysis-network-lab-setup-part-2-switch-cc36a58dbe5c?source=rss-9ccdd3111d60------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc36a58dbe5c</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[network-security]]></category>
            <dc:creator><![CDATA[Ruben]]></dc:creator>
            <pubDate>Sun, 04 May 2025 05:16:22 GMT</pubDate>
            <atom:updated>2025-05-04T18:23:32.516Z</atom:updated>
            <content:encoded><![CDATA[<p>I bought a netgear gs108tv3 switch to use for my vlans setup. First things first is to prevent Vlan attacks we don’t want anything on vlan 1. The switch doesn’t let you disable it but we can create a black hole vlan 999 and put unused ports there. Below I have made 4 vlans 5,6,99, and 999</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*2LMzZAit0yFyrDSWdJDnIQ.png" /></figure><p>Below is the ports config I used. The PVID is set to 999 which is my blackhole vlan. This helps mitigate Vlan attacks. For the ports with PVID vlan 5 I did not set acceptable frame to untagged. Because with that setting 802.1q tagged frames are still forwarded (page 137 GS108Tv3 manual). The netgear is tricky in that port g4-g6 show PVID 999, but they are not a member of 999. Untagged VLAN is also set to None. Ingress filtering means only VLAN’s that are members will be allowed on those ports. And with acceptable frame set to VLAN only on those ports untagged vlan traffic will be discarded. This is a very good setup for the ports g4-g6 which are trunk ports. It will prevent attacks like Vlan double tagging. I don’t use dynamic trunking so that won’t be an issue here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M2KQflisv98vs8p9rIypiA.png" /></figure><p>Management IP has also been set on another vlan 5. This way devices on VLAN 6 or 99 can’t reach it. And IPv6 management turned off.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/383/1*q5Y_CPxYI21zbrICHJnNTg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/544/1*4rEvq6ewPIZgHV6JvsbFsQ.png" /></figure><h3>Change DNS</h3><p>I changed DNS to 8.8.8.8 if you want to use one for monitoring or some other secure one like Cisco Umbrella DNS you can change to it here. I am not using my ISP DNS to add another layer in case switch gets compromised.</p><h3>Block LLDP, UPnP, and Discovery</h3><p>We want to make it much harder for attackers to find and attack this switch. One way that makes it much easier is having LLDP and UPnP setup. There have also been numerous attacks against routers and switches that used these protocols. Most exploits I have seen use LLDP, UPnP, or any other similar services to compromise routers, access points, or switches. By blocking this you make it much harder to exploit the switch.</p><p>Turning off Switch Discovery as this tends to send out too much information on the network. By having this on an attacker could find out more information about the switch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*7ZA3UkUYpQ2tXyACxp3kKQ.png" /></figure><p>With this one you will see SSDP packets on network and when you get to the rootDesc.xml page in a browser you can get various information about the switch. Such as the model and firmware. Definitely something we don’t want attackers to find out. So it’s best to leave it turned off.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*7vzZiGQkGVD6ey-6nUfWgA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*Wjep86dHKdMFtjnFBsSZAA.png" /></figure><p>I also turned off LLDP as it sends out information we don’t want attackers to see. For example below we can see what the management IP is. Of course my management VLAN is separated. Testing I didn’t notice LLDP traffic on other VLAN’s.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*-ZcMvKiuAhnm602gut_5ZA.png" /></figure><p>There are various LLDP settings here even an option to not advertise management IP address. But it is a potential area to be exploited so will leave it turned off.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tDeZQ3oqTkYgbbCQYNcpHA.png" /></figure><h3>Turn off HTTP Access and SSH</h3><p>I first generated the HTTPS self signed certificate and then turned off HTTP access. There are alot of exploits out that target the web interface. So you could disable both and leave only SSH on. Or put HTTPS on a different port. With SSH you also have option to set it on a different port and use a SSH key to sign in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*a0hw1KkRI7h3gPZHsN5VGw.png" /></figure><h3>Routing and ACLs</h3><p>I ended up using the raspberry pi running dietpi as a router with nftables. I had so much issues getting the ACLs to work. Even a new firmware update and reboot didn’t work. They supposedly apply inbound but even explicit blocking LAN to LAN didn’t work. Also when you enable routing by default all traffic is allowed VLAN to VLAN. I also did not want the switch to have SVI on my insecure VLAN 6. By not setting one it makes it much harder to attack switch. They would first have to compromise the router or the switch at layer 2 or lower.</p><h3>Management Access</h3><p>The switch does have ability for RADIUS and port authentication. This requires more setup and in my setup not really necessary. The protocol access control is nice in that you can control access to switch. Here I only allow VLAN 5 access to http and https.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3aiQwKbWD8PUVftsZh9bFg.png" /></figure><p>What I don’t like is how service type only allow these choices. No way to explicitly block UPnP or other access to switch itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/664/1*uP3QMqxsI6-HAVYNjavLSg.png" /></figure><h3>DOS, Storm control, &amp; port security</h3><p>The problem with the DOS settings is a trigger disables the port and you have to manually enable. It’s also a global setting and just general traffic was triggering multiple ones. Port security is nice and once I finish my proxmox setup side of the network. Will enable a limit on how many MAC address’s can be seen on a port. That way mac flooding can be blocked. Storm control is tricky in that you have to monitor your network and see what thresholds for unicast and broadcast are fine. I will be using a PF Sense firewall on proxmox side so will leave this off.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc36a58dbe5c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Malware Analysis network lab setup part 1 nftables]]></title>
            <link>https://medium.com/@Landon234/proxmox-malware-analysis-network-lab-setup-part-1-ff43d5e302e4?source=rss-9ccdd3111d60------2</link>
            <guid isPermaLink="false">https://medium.com/p/ff43d5e302e4</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[homelab]]></category>
            <category><![CDATA[malware-analysis]]></category>
            <category><![CDATA[network-security]]></category>
            <dc:creator><![CDATA[Ruben]]></dc:creator>
            <pubDate>Mon, 28 Apr 2025 21:54:28 GMT</pubDate>
            <atom:updated>2025-04-28T21:57:56.041Z</atom:updated>
            <content:encoded><![CDATA[<p>I bought the netgear gs108tv3 switch thinking I could use the advanced features like ACL’s and routing. I ran into some serious issues with the acl rules not working. At one point the new firmware even had a bug where my previously created named acl vlan5 would error out upon an edit. Saying you can’t use that in the name, so I had to use vlan-5 for the name. But still had issues with acl’s not applying. I know they apply inbound only but even with the right rules catching a subnet didn’t work. I opened a support ticket but netgears only advice was reinstall firmware and format to factory default. Which didn’t fix the issues I kept having.</p><p>The Gui was also very clunky but I guess you get what you pay for it’s a $80 smart managed switch. I ended up using a firewall to do router on a stick for routing my vlans. I used a raspberry pi with dietpi installed and use nftables to do the routing. Below is what my setup looks like my isp router allows me to create 2 separated subnets that can’t talk to each other.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/571/1*lJDvdieU_-hcFTN8c8ZUWg.png" /></figure><p>On the dietpi router you will need to edit /etc/network/interfaces and add the vlans. Below is what mine looks like. don’t use dietpi-config because it doesn’t give options to set subinterfaces. We also want it to be a router so run this command to permanently make it a router <strong>echo “net.ipv4.ip_forward=1” | sudo tee -a /etc/sysctl.conf</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/549/1*qM1YlKYsQLw6vVoCcUjkgw.png" /></figure><p>Next install nftables below is a sample config I made. The forward rules block lan to lan communication between vlan subnets. I use ssh port forwarding when I connect to the dietpi router. Once connected on my client I just put <a href="https://localhost:8006/">https://localhost:8006</a> and access the proxmox web management interface that way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1011/1*2CtfgtmoWaiOs_yNJLwsQA.png" /></figure><p><strong>ip saddr 192.168.0.242 ip daddr 192.168.5.4 ct state established, related accept</strong> is what allows the ssh port forwarding to work. and only allows that back to the dietpi router. the last rule drops all packets from subnets 192.168.0.0/23 which is vlan 6 and vlan 99 from talking to input chain of dietpi router. I also don’t want devices in vlan 5 being able to ping 192.168.0.1 and 192.168.1.1 interfaces of dietpi router.</p><p>Instead of blocking vlan 5 from talking to vlan 99. You could change the rules in forwarding chain and allow communication. On vlan 5 devices you would have to either change the gateway or add a static route for 192.168.0.0/23 to 192.168.5.4 Another option is to add a reverse port forwarding rule. That way on vlan 5 you can type in <a href="https://192.168.5.4:8006/">https://192.168.5.4:8006</a> and that will get forwarded to proxmox server vlan 99 at <a href="https://192.168.0.20:8006/">https://192.168.0.20:8006</a> I didn’t like that because the proxmox server will see that a connection is made from a vlan 5 device. It does make it easier for devices on vlan 5. They don’t need to add any routes since the router forwards port 8006 to 192.168.0.20:8006</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*wBrxn7B6xnhd5772GBfYhg.png" /></figure><p>If that Proxmox server was compromised it would know that here is a device on vlan 5 I can focus on attacking. I also don’t want vlan 99 or 6 talking to vlan 5 since I will be running malware on vlan 6. VM escape is very rare but worst case scenario I want to make it harder for a malicious attacker to get to vlan 5 which is my trusted vlan. With how i’m doing it a forward over ssh is just temporary during my ssh connection to the router. Also when I connect to web interface of proxmox it will just see a connection from 192.168.0.1. You would have to compromise dietpi router to even see that there is a vlan 5 subnet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NknTu7LQUJTv7q2wQAVZ8g.png" /></figure><p>If my proxmox host was compromised they would then run a traceroute to check what routes are available. They would get this info which doesn’t even show the second route to 192.168.5.4 -&gt; 192.168.5.1 -&gt; then internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*Gg3YQAnQGoGMOIF_TjBh8A.png" /></figure><p>I also set the nftables to NAT anything from 192.168.0.0/23 which is vlan 6 and 99 through 192.168.5.4. This adds an additional layer that attacker has to get past. If I did not NAT I would have a problem since ISP router also has a Lan with 192.168.0.0/24 subnet. Any traffic from dietpi locally connected route 192.168.0.0/24 going out to internet would come into ISP router and show source 192.168.0.0/24 and the ISP router would have issues routing it back. It may even send some data to devices on it’s locally connected 192.168.0.0/24 subnet. If you were to not use NAT you would have to change vlan 99 subnet to something other than 192.168.0.0/24 and add routes on ISP router side to be able to reach those other vlans. I don’t want my ISP router to have routes to vlan 6 or 99. So NAT works for my situation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ff43d5e302e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>