Brian's Virtually Useful Blog

Brian's Virtually Useful Blog

Notes on virtualization, storage and servers, and whatever else turned out to be useful. Posts from 2008 to 2026.

Will this wave of AI-discovered vulnerabilities ever pass?

November 24, 2026

Lately it seems like every day there's a new headline: an AI system finds an unauthenticated remote code execution flaw in some piece of software used by much of the world. The question from the server room to the board room is the same: is this the new normal, or a wave that breaks?

My view: it passes. This is a one-time cleanup of a huge backlog, and the conditions that created the backlog are changing.

Why now

We've run business-critical software for roughly 30 years, and much of it has grown more complex with every release, integration and acquisition. The flaws that remain are the hard ones. They only appear when several components interact in just the wrong way, and finding them means deeply understanding how thousands of lines of code work together. Traditional testing tools caught the obvious failures, not these.

Models can read a whole subsystem, trace untrusted input to a dangerous sink, and write a working trigger. That's a senior researcher's job at near-zero marginal cost. These aren't new bug classes. They're the old ones, finally harvested at scale.

PHP is the example. It's a sprawling runtime: decades of features, extensions and platform-specific behavior, running a large share of the web. In October, PHP2Shell (CVE-2026-109618 and CVE-2026-109619) showed the cost. Both let an unauthenticated attacker run code on the server with a single request, before any application code executes. One comes from out-of-memory handling that leaves request data half-initialized. The other comes from request state that survives after its memory is freed and is then reused by the next request on the same worker. Wiz Research, which credits AI models with helping find and exploit them, says the flaws had been hidden in the code for more than a decade, and that one researcher finished in a week what would have taken a world-class team months. Amazon Threat Intelligence logged an exploitation attempt in its honeypots on October 17, four days before public disclosure.

A month later, on November 19, PHP shipped a second, unrelated batch of critical fixes, most rated 9.2 out of 10. Different bugs, same lesson: the cause isn't sloppiness, it's surface area. One flaw in a runtime this widely deployed lands on every site that runs it.

Why it recedes

  • The backlog is a stock, not a flow. Every bug fixed is one fewer. Discovery yields the shallow bugs first, then returns diminish, the same curve we saw when fuzzing scaled up.
  • AI review shifts left. The model that audits shipped code will gate new code in CI. Once the check is cheap and mandatory, whole classes of defects stop reaching production.
  • The platform improves. Memory-safe languages and hardware mitigations cut exploitability, and AI lowers the cost of rewriting the riskiest components.

The counterargument

It's also an arms race, and breaking is faster than fixing. Attackers get the same models, and they don't wait for disclosure: Amazon's honeypots saw a PHP2Shell attempt four days early. A patch still needs testing, rollout and humans. Bulletproof code isn't a realistic goal, so the durable answer is resilience over perfection:

  • Simpler, smaller-surface components. Fewer ways in means fewer bugs to find.
  • Segmentation and zero trust. One bug should be an incident, not a breach.
  • Recoverability. Assume compromise and make restore fast and boring.

The long tail is the hard part. A small business or personal site can't run AI audits on its stack. Expect them to lean on managed platforms and edge protection, which become the default rather than a luxury.

For leaders

Treat this as a bounded program with a finish line: shrink time-to-patch, put AI review in the pipeline now, know what you run, and design so that one flaw is contained.

We spent thirty years shipping faster than we could review. For the first time, review scales with compute instead of headcount. The cleanup is loud, but it ends. What replaces it is a quieter world built on reliability, not perfection.

Killing off my last Windows Server: having Claude help me move IIS to Caddy

November 14, 2026

The last Windows server in my lab is finally on its way out. I have been upgrading this IIS box since the ye old days of NT4 and somehow I still had several websites running on it that I moved to a Ubuntu VM with Caddy. The sites belong to a few small businesses, and the one rule was that nobody notices. The old server VM was kept running, so I could compare the two side by side.

I had Claude assist me by giving it access to the servers, the firewall and DNS, and it did most of the typing while I made the decisions. That makes this part adventure story: it was very good at some things and confidently wrong about others, and the second kind is less stressful when you know you have backups offline.

Caddy (I thought people still used Apache?)

It fetches its own HTTPS certificates, renews them automatically, and upgrades seamlessly.

1. Linux is case sensitive, and that's an issue, Linux cares about capital letters. IIS doesn't.

On Windows, /Catalog/Widget_Pricing.html and /catalog/widget_pricing.html are the same file. On Linux one of them is a 404. Old sites are full of links, bookmarks and Google results with the "wrong" capitalization.

Before calling it done I asked Claude to go hard at the move and find every mistake a customer could notice before they did. Claude looked at a year of real requests out of the IIS logs and asked the old server and the new one the same 3,500 URLs. About 2 percent of a year's hits would have turned into 404s.

The fix that stuck was a case-insensitive filesystem. ext4 can do it, per directory: make the filesystem with mkfs.ext4 -O casefold -E encoding=utf8, flag the empty top folder with chattr +F, and everything under it inherits. Two gotchas: the folder has to be empty when you flag it (so delete lost+found), and it only works on a filesystem created that way, so I used a disk image mounted where the sites live.

2. This was fun, IIS doesn't send a character set, my new web server does.

One of my customers loves a ® and a ©. Their pages are full of trademark and copyright symbols: in titles, in product names, in footers, even in image file names. It turns out that matters a lot when you change web servers.

It started with a screenshot: a � where a ® should be. IIS sent plain text/html; Caddy added charset=utf-8. The pages were really windows-1252, so the header won, the ® broke, and so did every image with one in its file name.

About 300 of that site's 433 pages were old-style; no other site had any. Two lines in its block of /etc/caddy/Caddyfile put the plain text/html header back:

@legacyhtml path *.htm *.html / */
header @legacyhtml >Content-Type "text/html"

The > makes it override the header file_server sets. The / and */ catch directory pages like the home page, which my first version missed.

3. Don't let Linux serve up your source code

ASP, .config and .asa files sit in the folder and Linux serves them as plain text. I made the server return 404 for them. Also check the logs for which extensions got real hits. One old ASP site search was the biggest thing that stopped working (about 5,000 hits a year), and that is a conversation with the site owner, not a setting.

4. Spaces are plus signs in IIS logs

If you replay old log lines, /My+Photo.jpg is /My Photo.jpg. Decode the plus signs, or half your test fails for no reason.

Continue reading →

Why Bitcoin Needs to Go to Zero: A Comprehensive Look at its Negative Impact

April 19, 2023

 I wanted to play with ChatGPT and have it create a blog post.  Here is my its first creation with some input/guidance from myself.



Bitcoin has been touted as a revolutionary technology that can transform the way we store and transfer value. However, there are numerous reasons why it needs to go to zero. While the underlying technology behind Bitcoin, known as blockchain, is genuinely innovative and potentially transformative, the issue with Bitcoin is that it is a bad use case for this technology. In this blog post, we will examine the various reasons why Bitcoin needs to go to zero and why blockchain technology should be used in more responsible and sustainable ways.

1. Environmental Damage

The process of mining Bitcoin is incredibly energy-intensive, consuming vast amounts of electricity and contributing to climate change. This high energy consumption is a significant problem, with studies showing that Bitcoin's energy usage is equivalent to that of a small country. The environmental damage caused by Bitcoin mining is already apparent and is set to become more severe unless we take action. Bitcoin mining in China alone could produce enough greenhouse gas emissions to raise the country's temperature by 2 degrees Celsius by 2033.

2. Facilitation of Illegal Activities

Bitcoin is often associated with illegal activities such as money laundering, drug trafficking, and terrorism financing. Its anonymity and lack of regulation make it an attractive option for criminals looking to evade detection and launder money. The prevalence of illegal activities associated with Bitcoin means that it poses a significant threat to global security.

3. High Volatility

Bitcoin's high volatility makes it a risky investment option, with prices fluctuating wildly over short periods. This volatility not only makes it difficult to predict the value of Bitcoin but also increases the risk of financial losses. Bitcoin's volatility can lead to financial instability, making it a significant threat to the global economy.

4. Lack of Regulation

Bitcoin operates outside of traditional financial systems, making it difficult to regulate effectively. This lack of regulation has led to numerous frauds and scams in the Bitcoin market, resulting in significant financial losses for individuals. Bitcoin's lack of regulation also makes it challenging to prevent illegal activities associated with it.

5. Harming Societal Well-being

Bitcoin's high energy consumption, illegal activities, financial instability, and lack of regulation are all factors that can harm societal well-being. The damage caused by Bitcoin extends beyond financial losses and environmental degradation, creating a world where criminal activities are facilitated, and financial instability is rampant.

It is important to note that the underlying technology behind Bitcoin, blockchain, is a genuinely innovative and potentially transformative technology. Blockchain has the potential to revolutionize a range of industries, from finance to healthcare, by providing a secure, transparent, and decentralized way to store and transfer data.

However, the issue with Bitcoin is that it is a bad use case for this technology. While the idea of a decentralized currency that operates outside of traditional financial systems is certainly compelling, the reality is that Bitcoin has become a vehicle for speculation and illegal activities, rather than a useful currency or payment system. This has resulted in the negative consequences mentioned earlier, such as environmental damage, financial instability, and harm to societal well-being.

Continue reading →

Virtual Transparent Firewall not working

August 19, 2022

I have been successfully using a pfSense community edition firewall to protect my home test lab.  My local ISP delivers me a subnet of addresses directly so I need to leverage a transparent firewall or "bridge" to protect the lab.  After rebuilding a few pieces of the lab I restored my pfSense configuration to a new host/VM and found that no traffic was passing.  I did a packet capture and did not see any communication traffic.  I thought that *something* must be blocking the traffic before it gets to the pfSense transparent firewall VM.  A lightbulb went off in my head back to my VMware architecture days about the 3 security settings you can set on a virtual network switch, promiscuous mode being the easiest to remember.  I played with turning these on/off 1 by 1 and found I needed both Promiscuous mode and Forged transmits security turned off (Setting to Accept) for this pfSense transparent firewall VM to operate correctly.  Obviously turning these features off does open your ESX Host up to accepting more (possibly malicious) packets, but the ESX host is simply passing the packets along to the VM(s) attached to that Network on the host.  You can limit your exposure by only having a single VM on that host's "raw internet" network and a  single (same) VM attached to the inside "filtered internet" network.   Assuming you trust pfSense to do its job, turning off these features should work for most home use cases.






yum update failing on Google Cloud VM

February 3, 2022

 I use google cloud's smallest VM for hosting my own DNS servers.  I use the f1-micro instances that are very limited in memory and cpu, but cheap!

During a regular yum update I received the following error and my instance (VM) failed to reboot.

During the Cleanup part of yum update the google-cloud-sdk gave me this error:

/var/tmp/rpm-tpm.rdz2f9: line 4: 11963 Killed gcloud components post-process --force-recomplile warning: %postrun(google-cloud-sdk-360.0.0-1.x86_64) scriptlet failed, exit status 137 Non-fatal POSTUN scriptlet failure in rpm package google-cloud-sdk-360.0.0-1.x86_64

I read on this post - https://stackoverflow.com/questions/40163733/upgrading-google-cloud-sdk-fails-on-configure that this person had the same issue to due using the smallest GCP instance size, but they chose to stop some processes to free up memory before they did an update.

My resolution was to first build a new VM with a previous snapshot of the VM before it was messed up by the update.

Just for good measure I did some yum cleanup with yum-utils before anything else, then update the single google-cloud-sdk, before updating the rest without error.

sudo yum install yum-utils

sudo package-cleanup --dupes --noplugins

sudo yum clean all

sudo yum clean dbcache (probably redundant)

sudo yum update google-cloud-sdk (this took a long time)

sudo yum update (update all the other pieces)

After this everything was happy!



How to setup DNS forwarding for specific domains (i.e. home.lab)

May 5, 2021


I recently purchased a USG-3P (Unified Secure Gateway) Ubiquiti Unify Home router.

With its DHCP, everything points to this device as the DNS server for the house.  I like this because I don't want to depend on my home lab being up for DNS (Internet) to be working for basic name resolution.  However, I want my xyz.home.lab domains to resolve.  I did a bunch of googling and found I needed to modify the config.gateway.json file, but I couldn't find it on the appliance.  I then found this article, so I just needed to SSH into my USG and run a command such as ---  

set service dns forwarding options server=/lab.dns/172.16.1.10

This seemed great, but the command gave me “invalid command”, which it turns out you need to go into configure mode first on the USG,  just type ‘configure’ and hit enter and then run the command above.  After that you type commit, then save. 

This almost makes my home work, but my primary mac machine is always VPN’d into work, and all DNS requests are sent there, so my home.lab still doesn’t work from this machine.

On my mac I needed to mkdir /etc/resolver, then in the /etc/resolver directory, then create a file named home.lab

Adding the following lines ----

nameserver 172.16.1.10

nameserver 172.16.1.11

After I saved that, I can now resolve my home.lab dns from everywhere, and I get the bonus of being able to still work just fine if the lab (DNS) is down.

Team Rules

April 29, 2021

 I dug this up from many years ago, just as good today as it was then!


Team Rules - by Brian Smith

  1. It's all about the customers! We must provide a reliable and cost effective solution!
  2. If there are customers on it, then it is in production and will be treated as production until the customers are off and it is NOT in production.
  3. You can't say that's not my job, you may direct someone to the appropriate person or group if you can’t help them.
  4. All Negative customer experiences must be escalated, no matter who you believe is responsible
  5. If a project deadline is in jeopardy, you must escalate immediately.
  6. There is no excuse use official methods (i.e. Open an Incident in the official ticketing tool)
  7. When you are on call, you must be available to work on an issue.
  8. Document before you execute and open a change for all changes (use official tools)
  9. Do your best to not directly delete anything, take offline for 3-7 days when possible

What does SRE commonly do, the five principals of SRE

March 24, 2021

 Here are some slides I've presented at a number of places people have asked me to post.




Lastly i'd like to add that "Self Correcting Systems" are vital to the success of SRE.  Of course we all hear about auto-remediation or self-healing technologies.  While those are self evident I personally recommend you think about your people and processes.  Think about the motivations, rewards and expected human behaviors.  If you focus on a target of reducing false monitoring alarms, someone MIGHT decide to just disable the alarms instead of fixing them.  If you focus on auto-healing too much, you may miss the fact that most things that can/should be fixed by auto-healing is a design flaw/problem.  Unfortunately we tend to ask how many fires we put out, not how many fires we prevented because "fires put out" is easier to count.  We have to educate our stakeholders and leadership to learn that an ounce of prevention is worth a pound of cure!

What is SRE

September 30, 2020

SRE is an abbreviation for Service Reliability Engineering, also known as Site Reliability Engineering.  SRE can also be a job description for a Service(or Site) Reliability Engineer.  DevOps is a methodology (and should never be someones title) where a developer supports the code they write in production.

Service Reliability Engineering exists to improve reliability of services by writing software to keep a service functioning properly and to drive the improvement through feedback primarily around reliability, availability, observability & serviceability.  SREs are also expected to do a significant amount of troubleshooting to find the root cause of an issue and not focus on the symptoms.  SRE's often help Developers with Infrastructure, Deployment, Configuration, Monitoring & Metrics to make their software easy to update, manage and monitor.

SRE is a set of practices, metrics, and prescriptive ways to ensure reliability and uniformity to enable success at scale.

SRE is often a Gate to Production (grant access, make/approve/authorize production changes)

Characteristics of an SRE

  • Reliability
    • Focused heavily on meeting SLO's & SLA's
    • Error budgets are like money, they are meant to be spent, wisely as it is limited, underspending and overspending are both bad
    • Embraces fact that failures will happen, plans for them
    • Solve production issues and restore service
    • Actively participate in postmortems
    • Has a roadmap and prioritized backlog of things to automate
    • SRE's is at war with 
      • toil (anything repetitive that is done by hand should be automated)
      • inconsistencies (snowflakes are a killer)
      • ignorance (visibility & data are key to managing things quickly at scale)
    • Improves monitoring with alert correlation to reduce noise and TTR (time to repair)
    • SRE's mandate is to continually push for product improvements
  • Automation/Code
    • Minimally spends 51% of their time solving issues through code
    • All Incidents and Escalations should result in a runbook/workflow that eventually turns into automation (I like to call runbooks human-automation)
    • CI/CD Automation platforms to push out new code and fixes
    • Many small code pushes are far better and easier to backtrack than fewer large ones
    • No Production software pushes on Friday or the weekend
    • Knows you can't test everything, unit tests are required, but things will collide in production
    • Automation platform such as stackstorm to orchestrate fixes
    • Write tools such as auto-triage for troubleshooting (gather the logs while the engineer logs in)
    • Idempotent actions are your new best friend 
  • People & Process
    • SRE's need psychological safety, one example is blameless postmortems
    • SRE's is a cognitively difficult task, requires minimal context switching
    • Participates in on-call rotation
    • If SRE's support a platform they do not develop entirely, they must be involved in project planning and execution with those teams.
    • SRE's need time to dig into incidents to not only fix, but to find root cause and take preventative measures
  • Tooling for success
    • SRE's need proper tooling, such as logs, time-series metrics, traces, etc.. (it's virtually impossible to understand true root cause for intermittent issues if you don't have this.)
    • Proper monitoring to detect failures, need to feel confident that if no alarms are triggering that the infrastructure is healthy, customers should not be the ones to tell you that you have a problem.
    • Never create an alarm unless it leads to an action.  Warnings are useless at scale.
SRE Shared Vocabulary (my definitions, feel free to disagree)

Continue reading →