P’s and Q’s

It’s pretty wild that this summer the messaging was “plan on getting to post-quantum certificates by roughly 2030, maybe 2035” and by December we’ve got “you probably should have post-quantum encryption already” It’s like the old saying about planting a fruit tree. The best time was years ago. The second-best time is now.

There was a recent claim by an Anthropic researcher that they used Claude to produce a proof of the Riemann Hypothesis that has since been mechanically verified in Lean. While proving the Riemann Hypothesis would not suddenly render modern cryptography useless (if for no other reason than cryptographers have generally operated under the assumption that it *is* true, even if we cannot *prove* it, for decades), it does demonstrate mathematical reasoning capabilities far beyond what many people expected from AI systems in the near term.

I don’t know whether that has anything to do with the timing of the NSA guidance, but it does seem relevant to the broader risk discussion. If AI systems are becoming useful collaborators in advanced mathematical research, it is reasonable to expect they may also accelerate work in areas such as lattice cryptanalysis, number theory, protocol analysis, implementation attacks, and side-channel research. That doesn’t mean any of those problems have been solved, but it may compress timelines in ways that were not being seriously considered a few years ago. Not that there is a *current* and *known* exploit, but that we reasonably expect breakthroughs in the near future thus recommend you secure against those advances before the crypto version of a Babel fish is released.

What I think is getting mixed together in the guidance is that there are really three separate efforts underway:

     * Inventory and automation - know where your cryptography is used and automate certificate and software deployment.
     * Protection against harvest-now/decrypt-later attacks - move TLS to post-quantum-capable key establishment, typically using hybrid key exchange.
     * Post-quantum certificates and PKI - move certificates, trust chains, code signing, and identity systems to PQ algorithms.

The first item is essentially a prerequisite. Inventory what you’ve got, identify crypto dependencies, automate deployment and renewal, and get current systems patched. If you don’t know what you have, you cannot do anything.

The second item seems to get lost in the discussion about post-quantum certificates. Looking at current TLS deployments, there are already production sites negotiating hybrid post-quantum key exchange. For example, my personal site negotiates X25519MLKEM768, which combines a traditional elliptic-curve exchange with ML-KEM-768. That means the session keys used to protect traffic today have protection against the classic “harvest now, decrypt later” scenario, even though the certificates themselves are still conventional RSA or ECDSA certificates. The NSA advisory specifically calls out enabling PQ settings in TLS 1.3 and using hybrid key exchange where available – this seems like the most immediately actionable advice because it provides tangible protection today against harvest-now/decrypt-later attacks without requiring the entire certificate ecosystem, operating system ecosystem, browser ecosystem, and customer device ecosystem to complete their own transitions first.

The third item, post-quantum certificates, is where things are much less mature. The major public certificate ecosystem is still transitioning. Let’s Encrypt’s roadmap, for example, is still focused on testing and rollout of PQ-capable certificate infrastructure. Sectigo opened signups for their PQ Lab over the summer, but platform is specifically designated as non-prod. Cloudflare is looking to be PQ-capable by 1Q2027. There are more than zero providers, but it’s not like you can ring up your current certificate provider and say “I’d like to add this product!”.

I’m surprised “upgrade” appears as item five in the NSA guidance. In practice, a lot of the success of the certificate transition depends on being on current platforms. RHEL9 (9.6 with optional config, but it’s 10.1 before it’s on by default). Windows 11 and Windows Server 2025. Internally that’s a significant undertaking, but a manageable one. Externally, we still have customers running Windows 10, old mobile operating systems, embedded devices, and other legacy platforms. We are not going to stop customers from paying bills because they don’t have a device that supports the latest post-quantum certificate ecosystem.

I suspect the industry spends several years in a hybrid state. Hybrid TLS key exchange seems deployable today and provides immediate protection against harvest-now/decrypt-later attacks. Hybrid certificates and PQ certificate chains provide a migration path for authentication and trust. The end goal is fully post-quantum infrastructure, but we’re clearly still in the “make today’s systems safer while preserving compatibility” phase rather than the “flip a switch and require PQ everywhere” phase.

Headwind Device Owner setup without a reset

Enable developer mode, enable USB debugging in developer options

set “ADB=%LOCALAPPDATA%\Android\Sdk\platform-tools\adb.exe”

“%ADB%” devices -l
“%ADB%” shell dpm list-owners
“%ADB%” shell pm list users
“%ADB%” shell dpm set-device-owner com.hmdm.launcher/.AdminReceiver
“%ADB%” shell dpm list-owners

 

Before the change, the phone had no Device Owner, one Android user, and no accounts. The command succeeded without a reset; the final check showed Headwind as DeviceOwner.

Headwind MDM: Restrictions

Android 13’s restriction keys—the actual values to enter in Headwind’s comma-separated Restrictions field. Some depend on device-owner status, Android version, or manufacturer behavior; test each one. Android 13 source

Network and connectivity

Apps and device access

Accounts, users, and profiles

Settings, display, and privacy

Calls, media, and other features

Android also defines hidden or internal keys, including no_camera and no_record_audio; they aren’t necessarily usable through Headwind’s restriction field.

Be careful with no_debugging_features, no_safe_boot, and no_factory_reset: they can make recovery harder. Also avoid assuming no_install_apps lets MDM deployments through—Android documents that it can block those too.

PIP – Where in the world are my binaries!?!?

If I run pip as root (and, yeah, I know you shouldn’t do that), I get happy functional binaries in /usr/bin. When I do the right thing, I (of course) cannot write to that bin folder. I cannot find my binaries! Running updatedb and using locate doesn’t help. Still got no files.

I ended up tracing an operation to find these things. They’re in my user home directory? And, of course, the locate command (and its database via updatedb) often excludes user home directories by default due to privacy and security concerns. So it looked like nothing was getting written to disk during the pip install.

Once I found the missing binaries in my ~/.local/bin folder, I was able to find that this is all well documented:

“Currently if user is installing their own tools with installers like (pip), they will be installed inside ~/.local/bin or ~/bin but if the same CLI tools are installed at system level the user would not be able to use his own tools because the system one would be picked instead. This happens because .bashrc file adds user PATH to the end instead of the top of PATH list variable.”

 

Of course, I go through all this research and learning to actually find the binary … only to discover that home assistant literally has something hard coded to require that you use a virtual environment. Not just do a pip install as your application user. I really wish people would explain why in their documentation. https://fedoraproject.org/wiki/Home_Assistant just says to type these commands. Which is nice if you don’t know what you are doing. But explaining why a virtual environment is being used would have saved me a lot of trouble just to bash up against another brick wall. Sigh. On the up side, I learned something new about Linux.

We didn’t think that should or would happen

“We didn’t think that should or would happen.” Duffy on the air traffic outage.

This seems like a fairly reasonable assertion to anyone who doesn’t actually implement changes to things that impact other people. What dude here fails to appreciate is that there aren’t many changes where we *expect* to take everything down. Most systems have redundancies. I can literally update and reboot one server in the system without anyone noticing. The difference between what we expect to happen and what DOES happen is why work is done during maintenance windows. Publicized so anyone who happens to be working at 2am knows who to call if things don’t look right.

I worked at a company that was planning an electrical upgrade at their data center. The electrician opened a floor panel to look at what he’d be doing. Literally just look. Somehow, dude dropped the quarter inch sheet metal cover into the opening, shorting some stuff out and dropping half of the servers that weren’t high enough priority for redundant power (also identified a few where redundancy power both went to the same place), had to take an ambulance to the hospital (he recovered and was fine). The data center ops guy – the one who declined all changes that weren’t in a maintenance window or accompanied by an emergency change and a critical issue ticket – kept that metal plate in his office as a reminder of why there were no exceptions. No matter how much someone might plead and assure him their change was so trivial.
Worked another place where they had a team removing the unused fiber. Contractors paid hourly, and the rate was higher for nights and weekends. Of course they wanted to save money and do this at 2 in the afternoon instead of 2 in the morning. And they found every poorly documented fiber connection into SAN shelves.
These changes were approved by immature change management structures who took “Nothing should happen, we’re just removing the unused fiber” as a 100% accurate depiction of reality. That took “I’m just opening this panel and looking over some wiring” as  immune to any accidents. In both companies, changes were made. The criterion for approving a change outside of the agreed upon maintenance window became much stricter. The “no impact expected” checkbox meant very little in deciding if the change would be approved or not.

For any organization that is approving non-critical changes during peak usage, hopefully this is a prompt to make some changes without having to take out dozens of your own systems. For the rest of us, though, it’s a good reminder why change management exists. Why it is a good thing someone is rejecting your change and requesting it be rescheduled during a maintenance window. To have some appreciation for the folks to review these changes for impact and handle end user notification. I think most of us who have worked in IT for a while know the feeling the guy who plugged in the Gear of Doom had. Having a couple extra people check your plan is a wonderful contribution to never feeling that again.

None is not 0

W3Schools documents the default number of digits for the python round function as 0

Except that’s not actually how the function works — if you don’t supply a value, you get an integer. No decimal places. If you supply a zero, you get the same value but with a decimal point. The float representation of that rounded value.

The default, per Python’s documentation at https://docs.python.org/3.11/library/functions.html#round :

round(number, ndigits=None)
Return number rounded to ndigits precision after the decimal point. If ndigits is omitted or is None, it returns the nearest integer to its input.

The default value is None, not 0.

Blender – Making a Part Thicker

We are modifying a mount that lets you attach your cell phone to a microscope – one of the problems with the original design is that it’s not particularly sturdy. We lengthened the arms to accommodate larger cell phones, but that made the arms even flimsier. Anya showed us how to use s – z – 0 which flattens the selection to the average z height of the selected faces. Starting with a curved surface, I selected all of the faces. Then typed the letter s, the letter z, and 0

This flattens the object – the difference between the z location of all faces is zero. You can keep the curve but make it smaller by using a fractional number instead of zero. You can exaggerate the difference by using a number greater than 1. A negative number inverts the curve – the high part becomes low, and the low part becomes high.

Once the faces were on a single plane, we used G Z {number} to move the selected faces. The number is an offset from the plane where the faces are currently – so if you are at 4 and want the object to be 5mm thick, you use G Z 1. Using G Z 5 (which makes sense to move them to z of 5) actually makes the object 9mm thick!

The perpendicular faces are magically extruded so the faces you moved are not floating out there in space. The two arms that have already been increased, you can see that the perpendicular faces have been extended to meet the new face height. Obviously, if you want all three arms to be the same height you should select all of the top faces and adjust them simultaneously.

 

One other thing we learned in this adventure is how to select a bunch of faces between the faces you’ve already got selected and where you want to be. Shift will let you individually click faces, but I don’t want to click all of those little triangles along the curved side.

Selecting a few faces and then holding ctrl will select everything along the shortest path from where you already selected to where you click — here, selecting all the faces on the top of this arm. You can also use alt for a loop select — Anya finds that very functional, but it didn’t work for me!

On outages

What causes all the recent outages? I cannot rule out that there were AI driven cyber attacks. I cannot rule out that they were attacks from “enemy” countries. I also cannot rule out space aliens. But there were over a thousand MS patches this month, last month, etc. There are dozens of Linux patches most nights. We’ll get the Oracle patches of the month in a few days. In the rush to get things patched (absolutely the right thing to do), testing is either fully automated or getting less robust.

My expectation is that fully automated regression testing is going to be pushed hard in the near future. I’ve got Selenium scripts that run after the monthly Windows patch & reboot. Get a ping at dark o’clock that something doesn’t look right rather than a flood of calls at 7:30 AM.

Centralization

The potential for noticeable, widespread outages is an unappreciated component of centralization. I started using Exchange in 2000 as a tier 3 sys admin at a Fortune 500 company. Big company everyone’s heard of, but you wouldn’t hear about it when our email system went down for a day. If you were actively looking at buying from us, you might get a call from your sales guy letting you know he’s going to need a little extra time on a quote. Or you might get the email from an “odd” address (the sales guy’s gmail account or whatever). But it wouldn’t be national news. It wouldn’t be anything that everyone knew about.

I worked a major outage every couple of years from 2000 through 2015 when we moved to the hosted Exchange service. I sat next to the network infrastructure team. They’d have site outages that impacted a single office with a couple hundred people working there. Inside the company, even that wasn’t general knowledge. Every couple of years, they’d have something massive melt down. Someone would have an upgrade go sideways and a quick three hour task turned into a full weekend with dozens of people working on restoring service. Even cyber attacks. Worked at a place that’s been hacked. It made the news, but like “third page, under the fold” kind of news.

Fundamentally, there isn’t anything different going on today. It’s just that we don’t have ten thousand companies with ten thousand email systems, ten thousand authentication directories, ten thousand file servers, ten thousand networks. We have ten thousand companies of which at least 8,000 of them have all their stuff in Google, Microsoft, or Amazon. Something goes down, you notice. That’s true of email systems, authentication systems (federated auth, if you “log in with Google!” to all of your favorite sites, you lose access to those sites when Google’s auth framework goes wonky), networks, etc.

Trump Card

I’m not sure why anyone is surprised Democrats would support universal healthcare if it were called TrumpCare. Seems like the reverse of the Judgement of Soloman — if you really believe in the policy, what does it matter what it is called? Helping people is helping people. If you are willing to support the idea *because* of the name, did you really object to the policy?

I’ll support the Transforming Resources for Uninterrupted Modern Power act, the Transparent Regulation of Unchecked Machine Power act, and Talent Retention and Updated Migration Pathways act along with this Total Reform for Universal Medical Protection act. Those of us who don’t worship trump will see it as a farce. Insincere praise for a perpetually insecure man. Sure, I’ll wear your team colors and plaster your name on things. I’ll even present your logo at my doctor’s office if that’s all it takes for you to agree that medical care is an essential service that should be taxpayer funded.