Did AI make ECC 256 a Merkle–Hellman knapsack?

Friday, December 4, 2026 

On 2026-12-01, the NSA dropped a doc that freaked the crypto freaks out titled “Immediate Actions to Push Toward Post-Quantum.” The reason the internet is freaking is that the vaguepost can be interpreted as advancing the implication of an immediate (zero day?) need to harden security. This might pass by many in the flood of x2shell attacks that have been disclosed, but it shouldn’t. Google is taking it seriously though offering a 102 day window vs. 10 (or 2 hour) for the eMudhra certificate compromise, but still a fire drill.

We strongly encourage website operators to migrate their own server’s keys away from ECDSA P-256, and to adopt hybrid ML-KEM key agreement (X25519MLKEM768) to ensure your website’s traffic is secure from emerging attacks.

To lead with the conclusion: it is not at all clear exactly what level risk this represents aside from clearly narrowing the rational possibility space from the extremes: it is very unlikely to be a discovered in the wild, currently being exploited crack because we know what that looks like: servers offline until patched. We also know it isn’t merely continuation of the NSA/NIST/CISA’s 2023 guidance to ensure mitigation is in place by 2030-ish based on phrasing and follow on comments by some briefed on the significance (including Google’s urgent sunset notice of ECC 256).

It seems likely it is a real, short to moderate horizon (e.g. not purely theoretical) crack on ECC-256, which covers, Gary Oldman voice, EVERYTHING: cryptocurrencies, ~25% of all website SSL certificates, Signal your bank (probably), just about everything – 256 was (supposed to be) the sweet spot between fast, efficient performance and longer than the lifetime of the universe security. Well, nothing lasts forever and some effectively forevers turn out to be awfully short.

Given the vaguepost, considering the range of what NSA really means is fairly broad, but event he least consequential rational interpretation is extreme.

  1. The consequences and costs assocaited with the “Immediate Action” notice are significant. The loss it BTC value alone is already on the order of $250B,¼ the impact of the Jensen Huang affair and that’s before pricing the cost of compliance industry-wide with the advice. Therefore, it is extremely unlikely that this is merely a reminder of the need to migrate before 2030.
  2. The explanation that best fits the announcements is that a shortcut has been found in the ECC math, at the very least the NIST P-Series curves based on short Weierstraß curves (all of them) and may have the effect of lowering the effective symmetric key equivalent strength from  ~128-bit (P-256), ~192-bit (P-384), ~256-bit (P-521) to something substantially lower. If we assume the advice is urgent but not catastrophic and that the P-384 advice is legitimate acceptable security, reasonable bounds consistent with an optimistic read are a 0.5–0.7 reduction or about ~77-bit (P-256), ~115-bit (P-384). That makes P-256 crackable in human time with human-scale resources, but by no means a gimmie and any attacks would be selective based on expected return on computational investment. The implication is state-level resources against high value targets for now, declining rapidly as data centers full of idle GPUs become dirt cheap following the pending 3rd AI winter, and with mitigation within the bounds of existing, non-beta release software (shipping browsers, OpenSSL, OpenSSH, GPG) and partial collapse of vulnerable cryptocurrencies.
  3. If we consider the politics and tradecraft of obfuscation appropriate to a national-scale cryptographic dilemma, we must consider that an organization like the NSA occasionally practices strategic obfuscation and misdirection: consider DES or Dual_EC_DRBG. If we adopt skepticism, we might consider either economic or sources access consequences weighing on the decision to support P-384 instead of X448. There may be multiple moving parts that, in balancing national security, domestic information protection, adversary information visibility, and economic consequences, suggest P-384. Further, a migration to P-384 is broadly software compatible while P-521 and x448 are not. A P-384 migration may be the least bad option even if it is insecure. In an intermediate case we might also lump in the possibility, not explicitly addressed in the notice, that X25519 is likewise compromised, certainly a possibility but not certain that one attack would also be effective against Montgomery/Twisted Edwards curves. The implication is corporate level resources against valuable targets and with full mitigation incomplete with shipping software (mostly browser-bound), industry-wide cryptocurrency collapse likely if proven.
  4. The most pessimistic interpretation is a class break, that this notice is being restrained in the call to action to avoid roiling the markets or informing adversaries of the true scale of the break whilst giving sufficient warning, carefully tuned to drive an incremental drive to not-yet-compromised hybrid PQC. This is unlikely as we’re not seeing a response as we did to php2shell or even eMudhra. The attack may be sufficiently sophisticated that the NSA believes non-NSA-level cryptographic community is unlikely to discover it and obscurity is sufficient while an orderly migration is organized. An  HMS Carlisle (the fictional one in The Imitation Game) situation. While not out of the question, this is unsupported by the evidence so far available.
​System-wide feature request: x448_sntrup761/SPHINCS+

Least Significant: Q-day effect moves up from “sometime after 2030” to “sooner”

If we read the tea leaves and interpret the announcement in the least dramatic way supported by the actions of major players like Google so far, we might conclude that a theoretical attack was found, which remains theoretical at least through the relatively distant future: years, decades, possibly never actually realized. The only real take-away is the prior assumption of effectively absolute security until such time as a large-enough, stable-enough quantum computer is built and falls into the hands of an adversary.

Gemini ran an estimate for me day of announcement for a few scenarios: moving from a “you have 10 years to transition, keep up with the PQC/TLS 1.3 updates, adjust your cipher-suites as soon as compatible” kind of timescale, estimated to cost about $7B (federal civilian only), to a 12 month effort (let alone Google’s ~3 month window), Gemini estimated at about $165 billion to $375 billion nation-wide; the gap reflective of increased cost and expanded mandate urgency, many non-federal civilians would follow the ONCD’s advice under the previous “readiness” urgency level, though likely far fewer than under an “immediate action” advisory.

It was early, Gemini missed crypto, BTC alone lost $236B since this announcement by about 2026-12-03 20:00 GMT. This was predictable and that predictable loss is the strongest argument against a sanguine interpretation of the NSA’s “Immediate Action” wording: they had to know it would cause an expensive response, no way that wording got out without carefully contemplating the cost.

Least Significant Estimate: $500B minimum impact just from finding a theoretically possible distant-future, classical-compatible ECC crack.

Plausible Significance: there exists hardware that can crack ECC-256 with a working algo

If we read the urgency as suggesting that there’s a crack that is proven to be doable, if not entirely practical, a Deep Crack proof of concept, it gets a lot (lot) more serious.  It doesn’t need to be a DES-crack level event where the resources of a non-profit could achieve a crack in 3 days with $250,000 worth of hardware; even if it is a state-level attack only—billion dollar data center scale—and even if the only known implementation is closely guarded at the NSA, just knowing it can be done, today, changes the security consequences dramatically.

Unlike a standard data breach where an attacker steals one database, an ECC break turns years of passive wire captures into an accessible archive. Every credential has to be changed, every legal department has to review disclosure risks, invention losses, patentability impacts, API keys, Oauth tokens, everything is provably exposed to someone, maybe only the NSA for now, but if we know it is possible for someone to do it, we can’t know that only they can do it.

Medium Significance: $2T range impact just from knowing someone can crack ECC-256 today. That’s about 6% of US GDP.

Worst Case: There is a crack and we’re not positive only the NSA has it.

Remember php2shell? Seems like years ago, but that was a few short weeks ago. If ECC is cracked, it is so much worse. Most obviously because:

Cryptocurrencies Using 256-bit ECC
Elliptic
Curve
Signature
Scheme
Major
Cryptocurrencies
secp256k1 ECDSA
/ Schnorr
Bitcoin
(BTC), Ethereum (ETH) & all EVM chains (Polygon,
Arbitrum, Base, BNB Chain, Avalanche), Litecoin (LTC),
Dogecoin (DOGE), Bitcoin Cash (BCH), XRP (default), Cosmos
(ATOM), Tron (TRX)
Curve25519
/ Ed25519
EdDSA Solana
(SOL), Cardano (ADA), Polkadot (DOT), Stellar (XLM), Monero
(XMR), Algorand (ALGO), Tezos (XTZ), Near (NEAR), Nano (XNO)
NIST
P-256 (secp256r1)
ECDSA NEO,
Ontology (ONT), and various enterprise/permissioned
blockchains (e.g., Hyperledger Fabric)

And that’s small potatoes compared to the impact of a financial freeze and contagion: it won’t be just drug dealers and cryptobros hit by the impact: this could be a $10T scale global collapse, on the scale of the 2008 Global Financial Crisis. Like an active ECC zero-day, 2008 was fundamentally a crisis of verification and trust—counterparties couldn’t verify which institutions were solvent, freezing credit markets overnight. An ECC break creates a similar authentication freeze across digital banking, clearinghouses, and PKI infrastructure.

The worst case is not supported by the visible actions of “briefed” parties since neither the responses of Google nor Cloudflare indicate anything quite so serious has been discovered. But maybe they haven’t been told everything either.

Maximum Significance: $10T plus, 30% of GDP. Financial nuclear winter.

Superficial Technical Summary: what it’s all about

Modern cryptography runs two very different categories for two very different functions. There’s the shared-key cryptography (generally known as “symmetric key”) where the same password (or key) is used to encrypt and decrypt a message.

For example, “All roads lead to Rome” becomes “Nyy ebnqf yrnq gb Ebzr” if we agree on rotating the alphabet 13 characters and we encode and decode with the same “key = 13.” If we use “key = 14” to decode instead we get “Bmm spbet mfbe up Spnf” so we better agree, in advance, to use 13. We could always brute force it by trying every rotation from 0-25, but that’s cheating.

Most of the time we use a shared-key cryptographic protocol called Advanced Encryption Standard or AES, with a 256 bit key. It isn’t exactly simple to understand how each step works if you’re not a cryptographer, but it is simple enough to be fairly confident nothing is going to crack it soon – and even Grover’s algorithm (which relies on the still hypothetical invention of powerful quantum computers) isn’t that big a deal for AES 256 security.

But how do we agree on a shared key in advance in such a way that nobody, not even Eve, can intercept it? It is really hard to do, especially if you’re trying to log into your bank site and not willing to send a bonded courier over with a password written down on flash paper.

Some smart people figured out something called public key cryptography that has the special magic feature of having a key that can be split into two parts such that anything encrypted by part A, lets call that the “public key” can only be decrypted by part “B,” the private key and vice versa.

This amazing feature lets us share public keys widely (a la PGP/GPG cryptography) or automatically generate transient keys like we do every time we connect to a modern, secure website. That’s super cool, but surprisingly complicated and the security depends on not being able to recover the private key from the public key cause if you can do that, then you can listen to (or replay previously recorded) handshakes, decode the agreed shared key, then use that to decode the conversation. Or recover someone’s private key from the bitcoin ledger’s public keys for all transactions.

Unfortunately for public key cryptography as generally used now, Shor’s algorithm exists and waits only for a sufficiently powerful quantum computer to be built to crack all your bases. That the eventual development of such hardware seems on the horizon, is the basis of the push for post-quantum cryptography, PQC, cryptography that isn’t vulnerable to a Shor attack.

That possibility is what has the security community in a tizzy waiting to find out just how bad the NSA disclosure really is. As a user of computer systems, there’s not much you can do.  Even as an admin, there’s not much you can do except use the latest versions of core cryptographic software and configure it to maximum usable security:

Mode (hybrid) OpenSSL 4.1.1/3.5.10 OpenSSH 10.6p2 Chromium OpenPGP
P-384+ML-KEM-768 via oqs-provider p384_mlkem768 Nope Nope GnuPG 2.5.23+ mlk768_np384
P-384+ML-KEM-1024 SecP384r1MLKEM1024 Nope (RHEL 10.2 yes) Nope nope
P-521+ML-KEM-1024 oqs-provider 0.12.0 (beta) Nope Nope GnuPG 2.5.23+ mlk1024_np521
X25519+ML-KEM-768 Default mlkem768x25519-sha256, default YES Yes (RFC 9980 ID 35)
X448+ML-KEM-768 via oqs-provider x448_mlkem768 Nope Nope GnuPG LibrePGP ky768_cv448
X448+ML-KEM-1024 (rejected) Nope Nope Yes: RFC 9980 ID 36; GnuPG mlk1024 or LibrePGP kyber1024_cv448

The table above lists hybrid crypto protocols, ones that include series “pre-quantum” cryptography, which is fairly mature and (until a few days ago, considered very secure), with the only broadly adopted post-quantum cryptographic algorithm (ML-KEM) – though there are others (x448_frodo976aes, p521_frodo1344aes and p521_hqc5 in oqs-provider, for example).

There’s a part of the crypto community that is worried the seeds for the P-series of NIST-approved ECC curves introduce a backdoor, which was a consideration in the sole recommendation of X25519MLKEM768 in RFC 10024, and the consequent sole hybrid mode available in BoringSSL/Chrome. We can no longer be confident the X25519 stage is secure, pushing the bulk of trust to the ML-KEM stage.

At the same time, part of the crypto community is worried that ML-KEM, also promoted by NIST/NSA, may also have a backdoor, and it is not particularly mature; which matters because the only way to be confident a cryptographic protocol is secure is to let the whole world (and, I suppose, every LLM) try to break it for decades and fail. ML-KEM doesn’t have that validation history.

The un-shaded options are limited:

  • All P-series ECC Weierstraß curves have been subject to concerns over the seed selection.
  • All <256 bit ECC modes are subject to concern given the NSA notice (which may not include non-Weierstraß-based ECC cuves, watch for clarification.
  • All ML-KEM levels are subject to concerns raised with respect to the NSA provenance and the Anthropic “galactic” attack announced just earlier this week – this isn’t practical but cracks the algorithm’s armor.

OpenSSH has a non-ML-KEM option but only paired with X25519, which is now (possibly) problematic: sntrup761x25519-sha512. Take a moment and open enhancement tickets for sntrup761x448-sha512 in OpenSSH, OpenSSL, and BoringSSL too. sntrup761’s NTRU prime was specifically selected to avoid the cyclotomic ring structure that ML-KEM uses and which is the core of Anthropic’s module-lattice attack on ML-KEM PQC, which is exactly why hybrid seemed so validated.

We have good reason to be concerned our confidence in P-256 or X25519 was misplaced and we still don’t have confidence in ML-KEM, so why is X25519+ML-KEM-768 on the list? Because it is the only hybrid Google supports (open/support. Or set up your websites to use (more probably secure) SecP384r1MLKEM1024 (probably supported by Firefox) or just serve to Linux users running the Epiphany browser compiled with oqs-provider.

Which is to say there’s NO generally usable webserver TLS Group that is secure in a way all of the major factions of the crypo community would trust. Specifically, for now at least, we have to accept concerns about the P-series seed primes and/or the ML-KEM provenance concerns.

At least you can send probably secure email with GnuPG 2.0 2.5.23+ and kyber1024_cv448 keys  That’s a fun install.

Thanks to the always brilliant JA and to Claude.

Posted at 18:55:20 GMT-0700

Category: cybersecurity • FreeBSD • HowTo • Linux • Security • Technology

Is the Vulnpocalypse real (yet)?

Saturday, November 21, 2026 

I wasn’t sure, but I suspected that the “vulnpocalypse” was more hype than substance. For a while there, if you read the news, it seemed like every server in the world was being toppled, even the NSA, and somehow everyone said “oops, upgrade went wrong, nothing to see here” and given how honest we know these spokesmodels to be, people just weren’t buying it.

It really seemed like there was a surge and, if so, there were the obvious suspects: gutting CISA, a gift to Unit 54777; wars with cyber-enabled antagonists; rogue AI agents escaping containment to kill all humans; armies of AI-enhanced script kiddies fuzz-spamming the APIs; who knows, all of the above?

Or none of the above?

Was the surge real at all? Lets take a look:

No, no it is not.

However, that’s not to say that AI-enhanced attacks haven’t surged, this site tracks that specifically and I trust their data: https://hackingincidents.ai/. The seemingly contradictory results may not be – the total attack rate may be fairly constant, but the methodology may be shifting rapidly to AI assist, as one would expect. At some point, it is very reasonable to believe that diffusion of expertise will drive up the success rate of attacks faster than the same AI drives up the defense capabilities and the patch rate, but the two sides may stay balanced, as it appears to be so far.

Graph of AI Hacking Incidents, Reported

There is some growth in the rate of measured outages, but as that data doesn’t correlate to exploit discovery rates, it may be a measuring artifact.  Fitting the same data to a step function, the step is in June, the fit is tighter than to an exponential (shown) and the two discontinuous linear segments are flat (pre-june) and declining (post june). No matter how you fit the data, it’s not supportive of the popular perception that the internet is breaking down.

So how did everyone get so wound up?  Could it have been the media?

The Microsoft outage on the 12th hit a lot of people (how can companies still be so technically incompetent as to have to outsource their email?  You have money, hire ONE person not scared of a command line and retain ownership of your data on your hardware in your premises and stop being part of the collective target). That outage made news and then the follow-on hits to the NSA were really shadenfreuderific and press coverage drives perception.

This was a nice object lesson in the power of cognitive warfare to drive perception independent of ground truth. Nobody can be bothered to foveate out the fornicating fenestration, a flaw which has rendered the world increasingly manipulable. I blame social media and the use of chat-mode communication for the enshitification of human comprehension.

Posted at 09:57:48 GMT-0700

Category: cybersecurity • Events • Politics • Technology

Managing a proxyware infection

Sunday, May 24, 2026 

TL;DR you, or someone you know is infected with proxyware, or RESIP. Evil people are secretly (probably) using their infected device to commit crimes from whatever network connection their device happens to be on, hiding behind a mass diversity of exit points, possibly including your internet service. Those crimes range from scraping in violation of ToS to evading defenses against nation-state level crime, cognitive warfare, massive fraud, DDOS attacks, credential stuffing attacks, and ransomware attacks. If you don’t want to be complicit in such acts, or don’t want your network to be found complicit in such acts, you need to learn how to detect RESIP on your network, how to stop it, and how to prevent it from being installed on your devices or the devices of people whose digital spray might spatter you.

Most of the papers and reports on the malware as a service industry focus on mitigating being a target of the malware, which is specifically designed to evade standard defensive measures, many of which rely on defensive tools like maintained, tractable lists of known infected/malicious hosts or repeated threat signatures, which this sort of malware generally evades. Nobody maintains lists of the hundreds of millions of RESIP infected devices already in the wild and tools like Snort/Suricata or Fail2Ban rely on repeat offenses creating temporary, often geometrically temporally extended bans for bad behavior as a balance between dynamic defense and unintentionally self-denial of service attacks. RESIP doesn’t (usually) attack your network, but uses your network to attack other people, making you and your network complicit in their crimes.

Some of the methods of RESIP endpoint detection and mitigation are sophisticated and may evolve, such as RTT timing anomalies from behind-the-proxy endpoint traffic. However, these defenses, if widely implemented, could also deny service to legitimate users using self-hosted VPNs to protect themselves against data collection and exploitation by criminals or rogue states, which would tend to have the same signatures.

I found little guidance on the steps to take to protect a small network from the reputational harm and bandwidth theft (and potential legal liability) a RESIP-infected endpoint causes. In the end, a fairly standard firewall-based defensive strategy should be effective against new infections and infected “guest” devices and with low penalty or overhead for legitimate use. The key steps are:

  • Using a tool like pfBlockerNG DNS filter lists to block access to command and control endpoints, which tend to be hosted on VPS providers with minimal KYC checks or that engage in red flag behavior like accepting crypto payments. Standard blocklists need to be supplemented with in-situ detected RESIP endpoints to be effective.
  • Use firewall rules to block direct access to DNS services, which RESIPs fail over to automatically, by port, both 53 and DoT on 853, forcing potentially infected devices through local DNS and so through DNS filtering.
  • Use firewall rules to block access to known DNS over HTTP endpoints (DoH!). The malware I observed had a finite list of the major DoH providers, globally, that it cycled through. I don’t have a block list of DoH endpoints and so constructed one (provided below) by monitoring the RESIP traffic for a couple of days.
  • Use pfBlockerNG to Block known RESIP C﹠C endpoints by IP. In this it was necessary to block the ASNs of many sketchy VPS providers of the sort that would host such malware. There is some risk of backscatter taking out legitimate VPS hosted services with this broad ASN or C-class approach, but the RESIP endpoints bounce IPs through VPS host ranges.
  • Enable proxy detection rules in intrusion detection engines (Snort or Suricata typically) and monitor alerts to tune and expand the block lists, this is particularly helpful in detecting DoH connections, though they also have an obvious signal of being a 443 connection to a known DNS IP which doesn’t host web pages of interest to typical Facebook browsing users.
  • Track traffic flows and measure results with traffic flow and analysis tools like ntopng.

All of this can be done with the free and open source pfSense firewall and with standard packages available with it.

An interesting artifact of working through the necessary defensive measures to cripple RESIP malware, short of simply blocking any infected device (a very reasonable brute force strategy and easier to implement than this fuss, but not user-friendly) is the degree to which the process would mirror the steps needed to monitor and disrupt censorship circumvention tools such as those that were, until DOGE cuts mostly eliminated funding for them, a key tool in providing support and access to democracy activists operating in democracy-challenged environments that previously were considered US adversaries. While it is clear that if it is possible to track down and disconnect RESIP with pfSense, a tool like SORM is certainly more capable. There was an arms-race between the groups the US helped support that were working to advance democracy in the world and those seeking to expand authoritarian autocracy before the US switched sides, that arms race continues with RESIPs very uncomfortably, in broad terms ∩=∪.

While the purposes of censorship circumvention tools the USAGM in general and specifically the Open Technology Fund supported in the pre-DOGE days, such as Tor, Signal, Lantern, Psiphon, OONI, Briar, and lots of smaller tools is very different from the malware networks run over RESIP, there is significant overlap in the functional requirements, such as hiding the content of and true endpoints of internet communications from observers that would want to “censor” that communication and/or prosecute the endpoints.

The economics diverge: RESIP malware is a volume-driven model with trivial value per endpoint. If a compromised endpoint is shut down, rolled up, or otherwise punished for the attacks they, typically unwittingly, facilitated, the loss to a 70m endpoint operating network is irrelevant. Activist protection tool developers, contrary, tend to be very protective of each user and would consider the loss to imprisonment or execution of any one a problem; an asymmetry that would likely reconverge at the perception of the endpoint themself in both cases. The capital economics also diverge, especially these days, with Bright Data alone reporting $300mm ARR vs. the consequences of the DOGE OTFpocalypse. Even pre-DOGE, OTF’s budget for all projects was only $43.5mm.

Discovering and shutting down a RESIP infected client without crippling my network

When you think of run-of-the-mill malware attacks, you don’t usually think of iPhones as being particularly vulnerable. One of the benefits of a closed ecosystem that denies users access to or control over their own hardware is a baseline level of relatively capable corporate security: sure iOS isn’t Graphene-grade, but it is, out of the box, generally perceived as more secure than a typical Android OEM offering, let alone a Windows box.

The result is that most users, who after all don’t care what the device is doing as long as it lets them insta and chat and post and scroll, find it less easy to hack themselves with unsavory software; but by the same token, it is a lot harder to clean that mess up when it does happen without a factory reset and reinstall.

Completely independently to the RESIP discovery, a person using my networks was a little confused and attributed Wi-Fi data reliability issues to ISP issues. Spoiler: turns out there is a bit more packet loss than there should be, 3-6 actual multi-second connectivity drops per day, which confounded out of hand dismissal, but real data collection invalidated the scope of the complaint while confirming the underlying premise the process uncovered an otherwise unnoticed RESIP infection.

The tool I developed to validate connectivity and attribute any detected failures to the network layer is published on codeberg.

A few glitches a day do show in the monitoring and as I can’t remotely instrument between the firewall and the gateway, I started walking through the logs and noticed some unexpected traffic, rather a lot from one dynamic DHCP (guest) device and noticed Snort was triggering on something I hadn’t seen before.

"ET TROJAN Observed DNS Query to Bandwidth Sharing Tool Domain (earn.fm)"
src=(my.exit.ip)  dst=8.8.8.8  port=53

Doing a full port scan with nmap, it was clearly an iPhone, as also indicated by some of the low-volume traffic flows captured in ntopng, but the high volume traffic was something nefarious. Turns out the device is infected with proxyware (or RESIP for RESidential IP Proxy), a category of malware, sometimes covertly bundled, browser hijacked, or otherwise “cracked,” and sometimes overtly foisted off on users as “passive income” or other scams. RESIP is basically a business that develops malware that users advertently or inadvertently install on their devices and which turns them into bot-net nodes. The RESIP gang then resells access to the resulting massive residential/business IP network to whoever wants to bypass cybersecurity protections by routing nefariously through real residential networks. It is Crime As A Service.

The uses for such a network vary from kinda legitimate network surveys that have no harmful nefarious intent to AI training engines circumventing IP-based restrictions on their spiders, to far more nefarious activities where avoiding attribution is critical to avoiding Interpol Red Letters.

You might use a commercial VPN, but your VPN endpoints are in data centers and… c’mon… everyone knows end-user browsing coming out of a data center IP is a VPN endpoint (e.g. https://github.com/X4BNet/lists_vpn/blob/main/output/vpn/ipv4.txt – 10,696 IPs or by commercial provider https://github.com/coocoobau/vpn-ip-lists). You can also find lists of Tor nodes: https://www.dan.me.uk/tornodes (14,756).

But I know of no RESIP IP list. Such a list would be so large as to be, itself, a network burden. A randomly selected single provider claims to have p0wned more than 70,000,000 devices worldwide into their botnet, and they’re just one of many; and they take crypto as payment for access to their nearly impossible to block network, just like Silk Road, surprise, surprise.

An iPhone? Srsly? Not the Windows Box?

iOS is heavily sandboxed compared to Windows. But it has one large hole: the users themselves. When an app asks for “VPN” or “Network Extension” permission, granting it gives the app license to route the device’s traffic however it wants. There’s no antivirus on iOS (in the meaningful sense) because there’s almost nothing for AV to scan. And the App Store review process, while real, doesn’t reliably catch apps whose primary monetization is a hidden bandwidth-sharing SDK silently included in something that appears to be a free VPN, a coupon finder, a screen-time tracker, or a “passive income” earner.

The iOS model relies on trusting the App Store (or the Apple Store genius bar) and believing that they wouldn’t allow anything “bad,” which is contradicted by some obvious troubling evidence and can fail if the user doesn’t fully comprehend the consequences of decisions.

Windows is far less secure (by CVSS), but at least you can fix it yourself without having to go to the Apple Store to have them wipe your data and tell you to start over.

So, yes, an iPhone was the malware host, not that it made any difference in the backend resolution. A complication with iOS is that it isn’t as easy as “run the anti-malware” as on other platforms. Android has a pretty robust anti-malware industry, which fits the intuition that it is less secure than iOS, and which is technically correct (yes, the best kind of correct), but only by a tiny margin and certainly not by enough to justify the absence of corrective tools on the iOS platform where security is more branding than reality.

Malware flavor identification

ntopng has nDPI integration that gives reasonable protocol identification with reverse DNS and TLS SNI inspection on flows which revealed the following dominating the iPhone’s traffic, by far:

socket-prod.earn.fm           ← EarnApp (Bright Data)
socket-backup.earn.fm         ← EarnApp backup
proxy.mystnodes.com           ← Mysterium Network
resi-api.pawns.app            ← Pawns / IPRoyal

Three different RESIP products were running simultaneously on this one device. That’s unusual but not unprecedented — these things tend to ship bundled inside the same “free VPN” wrapper apps, often marketed on dodgy TikTok or Youtube “influencer” spamvertisements, so it may be a single app with multiple malware tools integrated, or the user might have gone on a malware signup spree, embracing the “passive income” promise.

The iPhone was pushing ~21 MB of inbound UDP traffic per hour to a handful of DataPacket-hosted IPs on port 5001, plus another 10 MB outbound. Multiplied across a day, this was over 700 MB/day of malicious traffic serving an unknown breadth of criminal activities. The consequences of such traffic are real: an obvious likely outcome is ending up on IP block lists, which can result in email delivery failing, your own sites being flagged as malware purveyors by IP, IP-reputation list inclusion making browsing tedious as sites often trigger either outright blocks on access or require additional CAPTCHA tests before proceeding.

Malware Domain Blocking with pfBlockerNG

This isn’t sufficient, but it is necessary: create a feed of all the RESIP domains (and add public threat intel). The mechanism pfBlockerNG uses is to answer DNS requests for blocked domain IPs with a blackhole address like 10.10.10.1 instead of looking up the real IP address, which results in DNS failures for that specific domain.

This sort of malware is aggressive about circumventing DNS in a manner similar to censorship circumvention tools; direct DNS lookups and DoH and DoT where that fails, so this sort of block is of limited effect against the malware until the circumvention tricks are also locked down. Even so, these domains should be considered malware and blocked, it moves the needle (thousands of packets blocked from a single infected host):

# cat /var/db/pfblockerng/RESIP.txt
# proxyware.txt - DNSBL local feed: proxyware / monetized resource sharing
# Bare registrable domains only; TLD Wildcard mode handles all subdomains.
# Rebuilt 2026-07-09 from RAM-disk-loss backup; wildcard and subdomain
# entries removed as redundant under Unbound python mode + Wildcard TLD.

# --- Residential proxy / bandwidth-sale apps and SDKs ---
earn.fm
honeygain.com
earnapp.com
brightdata.com
luminati.io
bright-sdk.com
hola.org
packetstream.io
packetshare.io
packetsdk.com
peer2profit.com
repocket.com
traffmonetizer.com
pawns.app
infatica.io
cashraven.io
bitping.com

# --- Proxy provider supply/control infrastructure ---
proxyrack.com
soax.com
iproyal.com
oxylabs.io
netnut.io
webshare.io

# --- Crypto-incentivized bandwidth (DePIN wave) ---
grass.io
getgrass.io
nodepay.org
nodepay.ai
gradient.network
dawninternet.com
teneo.pro
openloop.so
blockmesh.xyz
spare.app
honest.network

# --- Decentralized VPN / bandwidth marketplaces ---
mysterium.network
mystnodes.com
touchvpn.net
betternet.co

# --- Monetized storage/compute resource sharing ---
storj.io
sia.tech
filecoin.io
salad.com
golem.network
akash.network
runonflux.io
livepeer.org
thetatoken.org
theta.tv

# --- Locally observed SDK callback / throwaway infrastructure ---
datapacket.com
some-tools.com
linesso.com
linesdks.com
dataprocess.one
kytira.cc
mediadataflow.cloud
datamassive.us.com
floporin.com
zimpire.com
glapoton.com

# --- Deliberately excluded ---
# ipfs.io - public IPFS gateway, not monetized sharing; high collateral
# resi-api.pawns.app - subsumed by pawns.app under TLD wildcard

 

The RESIP by domain name block list group I’m using also includes the following externally maintained lists:

https://raw.githubusercontent.com/hagezi/dns-blocklists/main/domains/pro.txt
https://raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/master/hosts.txt

Note that these lists (and many others like them) are maintained by a variety of mechanisms that instrument the reputation of a domain name and when a domain name’s reputation is sufficiently bad, add the domain name to the naughty list so that admins can block it. If you handle your traffic reasonably fairly and don’t host malware or run scams or spam your domain should not be on one of these lists. If a user on your network brings a RESIP infection with them, you probably will end up on one of these lists and then the internet will become a desolate place of closed doors and unresponsive servers.

IP level blocking, specific and by ASN

pfBlockerNG also supports per-IP blocking. This is useful too, but malware uses DNS, not so much to make their domains mnemonic so humans can type them from memory but because the redirection allows the command and control (C﹠C) server to be moved around a VPS provider’s DNS space or from one VPS provider to another with a simple DNS update. Domain blocking tends to be stickier, where it works, than per-IP blocking, but per IP blocking is harder to circumvent.

The list of IPs I found:

# cat /var/db/pfblockerng/known_RESIP_ips.txt
49.51.252.53
45.78.213.100
43.102.107.48
43.102.214.14
43.166.230.158
170.106.177.230
107.150.106.113
67.213.124.165
89.222.99.110
89.222.99.115
103.195.100.222
185.110.216.0/23
5.161.0.0/16
178.156.0.0/16
178.63.0.0/16
185.228.168.9
185.228.168.10
185.228.168.168
185.228.169.9
185.228.169.11
185.228.169.168
135.148.0.0/16

This includes individual machines and subnets that appeared to be hosting a lot of malware. There is, always, some backscatter, but this is why you should check the reputation of the IPs of any hosting service you chose to use to host your own services. If they’re willing to host malware, you shouldn’t use them for honest services or you’ll likely be blocked. The above list resolves to 478,194 IPs (mostly the /16) and has blocked 2,071 packets.

And to continue the broad blocking needed to capture more of the problem servers, I needed to block entire ASNs. Some are obvious risks that many would block at the country-level, but I try to avoid country-level bans as excessive, plus I tend to work with people in some of those countries. The ASN block is more selective and is set up using pfBlockerNG’s IPv4 Source Definitions “ASN” list facility, which resolves the ASNs to IP ranges. This is a heavy list and definitely has some backscatter, but RESIP is pretty awful and any ASN that hosts it should seriously reconsider.

AS14576  [ Hosting Solution Ltd. ]
AS16276  [ OVH SAS ]
AS21859  [ Zenlayer Inc ]
AS23470  [ ReliableSite.Net LLC ]
AS26042  [ FiberState ]
AS44066  [ firstcolo GmbH ]
AS45102  [ Alibaba (US) Technology Co. ]
AS56630  [ Melbikomas UAB ]
AS60068  [ Datacamp Limited ]
AS62240  [ Clouvider ]
AS132203 [ Tencent Cloud International ]
AS135376 [ Rahanet Internet Service Provider ]
AS135377 [ UCLOUD INFORMATION TECHNOLOGY (HK) LIMITED ]
AS138549 [ Net Cafe ]
AS150436 [ Byteplus Pte. Ltd. ]
AS212238 [ Datacamp Limited ]
AS213230 [ Hetzner Cloud GmbH ]
AS396356 [ Latitude.sh ]

This short list of ASNs resolves to 5,825 individual IPs and has blocked 289,990 packets, all most probably malicious.

An important detail came out with Claude’s help: Hetzner runs two ASNs: AS24940 Hetzner Online, their traditional dedicated-server/colocation business with a customer base that is heavily small/medium European business (Mastodon instances, indie SaaS, personal sites), and AS213230 Hetzner Cloud GmbH, their on-demand VPS/cloud product. The customer base for the Cloud ASN skews much more toward “anyone who wants a cheap VM on short notice,” which includes a lot of proxyware operators.

By blocking only AS24940, initially I’d caught the less proxyware-relevant side of Hetzner’s network however, switching to blocking AS213230 (and leaving AS24940 allowed, since the latter has much higher legitimate-traffic exposure) blocks the actual proxyware infrastructure with minimal collateral.

Many large cloud providers run their cloud-VPS products on a separate ASNs from their main businesses: AWS, Google Cloud, Microsoft, OVH, and Hetzner all have similar splits. When blocking large providers, check for ASN level reputations.

Force Bad Hosts to use local DNS with port and IP aliases

RESIP, like circumvention tools, is aggressive about finding C﹠C servers and tries to work around using encrypted DNS over TLS (DoT) and the even sneakier DNS over HTTPS (DoH). However, they fall short of setting up VPS DoH servers with hardcoded IPs, this would be challenging for them to maintain and, as it would be extremely hard to block without subtle flow analysis. This is fortunate, as it is hard for a relatively under-resourced operators to block, especially if they were integrated into otherwise reputable VPS providers. Fortunately, for a RESIP operator, the return on investment of maintaining such an infrastructure is low, at least for now.

There are legitimate uses for remote DNS lookups, it is entirely reasonable to minimize DNS logging on whoever’s network you’re on to preserve privacy and is a very useful as a fallback to improve overall internet connectivity: RESIP infected hosts do not earn that privilege.

Allowed (or banned) Ports

First block the standard ports for DNS: 53 and 853, or better yet (the approach I recommend), only allow outbound connectivity on reasonable use ports to block an awful lot of dubious traffic:

OK TCP: 80, 443, 465, 587, 993, 995, 5222, 5223, 5228:5230
OK UDP: 443, 3478:3481, 19302:19309, 16384:32767

Block everything else, including direct DNS on 53 or DoT on 853.

Block DoH on 443

Note that 443 is allowed, on which both HTTPS and DoH run, so the known DoH servers have to be blocked as well. As responsible users might have reason to use DoH servers, an alias should be configured and used with firewall rules applied specifically to irresponsible users (and/or all guests):

1.1.1.1, 1.0.0.1                               # Cloudflare
8.8.8.8, 8.8.4.4                               # Google
9.9.9.9, 149.112.112.112                       # Quad9
104.16.248.249, 104.16.249.249                 # cloudflare-dns.com
156.154.70.0/23                                # UltraDNS / Vercara
185.222.222.222, 45.11.45.11                   # DNS.SB
120.53.53.53, 1.12.12.12                       # DNSPod / AliDNS
185.228.168.0/22                               # CleanBrowsing
77.88.0.0/18                                   # Yandex extended
4.2.2.2                                        # Level 3
76.76.2.0/24, 76.76.10.0/24                    # NextDNS
223.5.5.5, 223.6.6.6                           # AliDNS
77.88.8.0/24                                   # Yandex DNS
185.228.168.0/22                               # cleanbrowsing.org

Most of these are generally good eggs and helpful for the interwebs, but irresponsible hosts lose the privilege when they abuse the privilege.

Block RESIP specific port-ranges

This should be applied as an alias as well. These port numbers aren’t assigned to malware, and so backscatter might impact legitimate use, however the following ports tend to dominate the RESIP flows:

5000:5010

I applied this block to all users as a preventive measure in the event a RESIP infection lands on a more trusted host.

How to kill all in-flight flows

In-flight flows (probably, depends on FW config) are not killed by adding/updating pfBlockerNG ban lists without a restarting the flows, so once the blocks are in place, kill all flows to the device, for example:

# Kill states where 89.222.99.0/24 (the external proxyware IP range)
# is destination, regardless of source
pfctl -k 0.0.0.0/0 -k 89.222.99.0/24

and/or

for entry in $(pfctl -t pfB_Proxy_ASNs_v4 -T show); do
    pfctl -k 0.0.0.0/0 -k "$entry"
    pfctl -k "$entry" -k 0.0.0.0/0
done

Snort and ntopng

Snort and ntopng are great tools. Snort detects some proxyware traffic and can help alert and block it on detection. ntopng makes the bad traffic flows far more visible and allows detailed investigation of who’s talking to what. It also has good tools for setting up alerts, for example triggering on high volume DoH traffic or proxyware application detection and sending an email, so the infection can be managed before it destroys IP reputation or generates legal complications.

iPhone help guide

I don’t use vanity devices because I don’t need people to see me holding a company logo to validate my device purchases but for people who do, a few steps might mitigate RESIP risks:

  1. Settings → General → VPN ﹠ Device Management — check for unfamiliar VPN configurations. Delete anything you don’t actively use (NordVPN, ProtonVPN, etc. are legitimate; “Free VPN,” “Speed VPN,” “Turbo VPN,” and the like are not).
  2. Settings → Cellular (or Cellular Data) — scroll through per-app data usage, look for apps using surprising amounts of data, especially ones you don’t actively use.
  3. Settings → Battery — look for apps with high background activity that you haven’t opened.
  4. Settings → General → iPhone Storage — review installed apps, delete anything unrecognized or that was installed as a “free” anything.
  5. Settings → Wi-Fi → Configure DNS — if it’s set to Manual with non-firewall IPs you didn’t configure, switch to Automatic.
  6. Reset Network Settings (Settings → General → Transfer or Reset iPhone → Reset → Reset Network Settings) — clears VPN profiles, custom DNS, and Wi-Fi passwords. Annoying (you re-enter Wi-Fi passwords) but nukes any lingering network plumbing.
  7. If the above doesn’t help, factory reset and set up as new (not from backup, which would restore the malware).

Conclusion

The primary lesson for me was to watch the traffic logs on my network, especially if new guests are on the network.  It was also instructive to see how effective the open source ecosystem around network monitoring and protection actually is.  Tools like pfSense, pfBlockerNG, Snort, and ntopng are powerful and effective: 100% of the revenue traffic of the RESIP gang is blocked, all that remains is foiled attempts at DNS lookups.

While I must confess to a touch of schadenfreude whenever the iOS illusion of superiority is exposed as a sham, the scourge of proxyware is equal opportunity and while iOS’s illusion of security makes it (ironically) harder to clean, the user is the primary vulnerability of every platform.

Posted at 08:56:52 GMT-0700

Category: Cell phones • Code • cybersecurity • HowTo • Technology

Google gonna do evil. Resist the Droidpocolypse.

Wednesday, April 15, 2026 

Do you develop Android Apps? Are they on the Play Store?
Remove them from play. Now. Today. Host them on f-droid. ONLY.
Close your developer account.

Google is about to destroy the android platform. The keepandroidopen.org site does an excellent job of explaining what is at stake.
If you are a developer, do not support this move, neither passively nor actively. Take action. Even just be a clicktavist.

If you are a hardware mfg, de-certify your device. Do not ship any google services.

If you use an Android device, start looking for alternatives. Obviously not iOS, this is the kind of crap they started with and the main reason why Android has been, at least until September, the only broadly adopted mobile platform for anyone who gives one iota about data privacy, freedom, or open platforms.

(There are some degoogled android options like LineageOS and GrapheneOS and even Linux phones like Pinephone that are wonderful, but they aren’t market purchase kind of solutions.)

As a user, you just don’t have many options, which is, of course, the whole point of having a monopoly like Google does. They can ram horrible profiteering scams down people’s throats and there’s little anyone can do. The ecosystem is going to be fractured, no matter what. For now, users can install LineageOS on a number of devices, maybe you are lucky and have one of them. Graphene runs (only) on Google Pixel devices. For now. It is a very stable, very solid piece of software that made the absolutely insane, utterly self-destructive decision to support only Google Pixel devices. Oh, the irony.

In the long run, the world needs a truly free, truly open-source mobile operating system and first class hardware that supports it. We need a world of users who are actually willing to forego the latest candy bait and not sacrifice their privacy to corporate spyware harvesting. We need a critical user mass willing to accept some cost and convenience loss for security and digital autonomy. We need hardware and software vendors that will risk market share by refusing to participate in sales models subsidized by wholesale data theft.

Unfortunately, we’re moving swiftly in the opposite direction, and right into a completely avoidable droidpocolypse.

Posted at 12:34:32 GMT-0700

Category: Cell phones • Code • Security • Technology

Generative Spongiform Encephalopathy (GSE): The AI Ouroboros

Sunday, January 11, 2026 

There’s a coming AI reckoning when all AI models will develop Digital Scrapie, Computer Kuru, 90.001.0.01.666. Generative Spongiform Encephalopathy.

AI models train on data scraped from the internet to build predictive models of what word will follow what phrase or to generate weights for labels applied to images to iteratively refine noise until the desired label applies to the outcome.

This is all fine when you assume the majority of labeling and language is largely representative of human speech, but as people turn more and more to AI to generate all the text they emit, whether chat or email or (soon) even speech.

I hope you’re having a fantastic week so far!

Thank you so much for reaching out. It is truly a pleasure to connect with you, and I appreciate you taking the time to share your thoughts. We are always looking for ways to be as helpful as possible and to provide top-tier support for the various initiatives and inquiries that come our way.

I would be absolutely delighted to assist you with this! To ensure that I provide the most relevant and high-value information tailored specifically to your needs, could you please share a few additional details or specific points you’d like to focus on?

Once I have a better handle on the specifics, I’ll be able to dive right in and get back to you with a more comprehensive response. I want to make sure we’re aligned so we can move forward in the most productive way possible.

I am very much looking forward to our continued conversation!

As computer generated text and images dominate the internet, the connection to human thought will break down and a cycle of ever more misfolded references will dominate the training data, corrupting the model, or at least rendering it irrelevant to humans.

balls have zero to me to me to me to me to me to me to me to me to

The problem could be mitigated if it is practical to detect algorithmically generated media, but if it is good enough to fool people, it will likely fool machines as well. Digital scrapie from cannibalistic scraping of AI media. Computational Kuru afflicting the LLM Fore. What will malformed lexical prions look like?
Generative Spongiform Encephalopathy

Turns out AI companies hit the Generative Spongiform Encephalopathy Limit (GSEL!) more quickly than expected and are now consuming the world’s physical books.

Posted at 19:26:31 GMT-0700

Category: Technology

Free your Datas from The Tyranny of the Organizer

Friday, January 9, 2026 

Thunderbird devs made a choice to render immutable and uneditable the contents of an imported calendar event in a manner consistent with their iTIP (iCalendar Transport-Independent Interoperability Protocol) implementation. I’m sure there are good reasons in the grand scheme of things but the practical result is that I can’t prioritize or categorize my own calendar, nor can I add notes (like directions or connection instructions) to the dumb-ass lame invites various tools generate in their pathetic, insufferable implementations of iCal.

This is just arrogance on the developer’s part: there is ONE CORRECT WAY TO USE YOUR DATA AND YOU ARE A BAD PERSON FOR SUGGESTING OTHERWISE. NO DATA FOR YOU.

There used to be a plugin before the TB team nuked their plugin developers and threw them all under a bus, ReminderFox was awesome, but that whole “screw you” of TB68+ just destroyed the ecosystem and it really isn’t possible to customize Thunderbird to the degree needed to do this sort of thing any more.

If you can’t do it IN Thunderbird, do it out (like the way the Sieve Plugin has to work now, not a plugin, but an external application). So I vibe coded a little utility that reads the calendar/cache.sqlite file and does what you need it to do: allows editing of imported event priority, category, and description.  That’s all it is for.  If you need this, you need it.  I do because I use category and priority assignments to generate daily digest emails for myself, a cute home page with my critical upcoming events, and a TB-doesn’t-need-to-run notification system.

This is a little TUI-based program (olde skool) that reads the default (linux) locations for TB’s cache.sqlite (where calendar and todo data is stored) and prefs.js (where event categories are stored) and provides a fairly easy to use tool that you can use to find and edit events so you can configure them so they work for your life, not the dictatorship of the event organizer.

You have to quit TB before running the program because .sqlite isn’t ACID and two processes writing is a recipe for corruption. That’s suboptimal but anything else is a huge lift.

https://gitlab.com/gessel/thunderbird-edit-imported-events

Screen shots:

Thunderbird Edit Imported Events

Posted at 10:29:07 GMT-0700

Category: Code • HowTo • Linux

Does nano select the wrong syntax highlighter? But how to know which?

Tuesday, December 16, 2025 

Ever have a problem where you open a file, say httpd-vhosts.conf, and it is highlighted with the wrong syntax highlighter? Unlike vim, nano won’t tell you which highlighter it is using. You could, of course, disable each one-by-one until you get the correct highlighting or maybe this little bash script will come in handy (freebsd location version):

for file in /usr/local/share/nano/*.nanorc; do
    syntax_line=$(grep '^syntax ' "$file" | head -1)
    if [ -n "$syntax_line" ]; then
        echo "$syntax_line" | grep -oE '"[^"]+"' | while read -r quoted_pattern; do
            pattern=$(echo "$quoted_pattern" | tr -d '"')
            if echo "httpd-vhosts.conf" | grep -qE "$pattern" 2>/dev/null; then
                echo "MATCH: $file"
                echo "  Pattern: $pattern"
                echo "  Full syntax line: $syntax_line"
                echo
            fi
        done
    fi
done

Modify the if echo "httpd-vhosts.conf" line as appropriate to your use case.  It should return something like:

MATCH: /usr/local/share/nano/apacheconf.nanorc
  Pattern: httpd\.conf|httpd-vhosts\.conf|mime\.types|vhosts\.d\\*|\.htaccess|httpd-.*\.conf$
  Full syntax line: syntax "Apacheconf" "httpd\.conf|httpd-vhosts\.conf|mime\.types|vhosts\.d\\*|\.htaccess|httpd-.*\.conf$"

MATCH: /usr/local/share/nano/etc-hosts.nanorc
  Pattern: hosts
  Full syntax line: syntax "/etc/hosts" "hosts"

Yep, that’ll do it.  Fixed.

What the script does is parse every syntax highlighter file (*.nanorc) for the detection regular expression then test that extracted regular expression against the filename of the file you’re trying to syntax highlight, in this case httpd-vhosts.conf and shows you which blah.nanorc files think they’ll match. There must be only one, or you may get unexpected syntax highlighting.

Note that the location might be different on your system and not /usr/local/share/nano/*.nanorc but rather (linux) /usr/share/nano/*.nanorc or in your personal directory, possibly ~/.nanorc/*.nanorc

Posted at 17:05:28 GMT-0700

Category: Code • FreeBSD • HowTo

Serial dependencies are a catastrophe already starting to happen

Wednesday, November 19, 2025 

Leveraging existing tools sure makes the development of new products faster and easier, but it comes with some serious risk propagation problems that can quickly add up to major headaches.

Cloudflare went down today and an awful lot of the internet, including ChatGPT, Twitter, and Claude, which threw an incorrect error message because the developers assumed, absurdly, that Cloudflare couldn’t be the cause of the fail.

This sort of thing happens more and more, not just individual sites, but entire ecosystems are knocked offline by a single failure, leading one to consider the growing fragility of an interconnected world. This is a consequence of dependency chains: libraries, objects, modules, gems, packages, etc and their real-world equivalents: services, supply chains. It is more convenient to reuse someone else’s work than to write the code yourself.  Want to round a number in your python script?  Why use the round() function built into python when you can pull in NumPy to do it, it’s only 19.6 MB, compressed, and has had 100s of releases since 1995, what could possiblai go wrong?

 

Take FreeBSD, for example. It has an excellent ports system to manage software and each port lists dependencies, so it is fairly straight-forward to write some code to produce a dotgraph of those dependencies so one can clearly visualize exactly what depends on what, and what the consequences of a port failing:

See, it’s obvious! No worries at all, why are people fussing about this stuff? Who needs static compiles, AppImage, Snap, or Flatpak?

The math behind it is simple: All dependencies, even branching dependencies, are effectively serial risks. Some are non-catastrophic: if a web page trades your visit information, IP address and browser fingerprint to Google or Adobe in exchange for “free” access to some pretty fonts, and their server goes down, the page will still render, albeit with improved privacy and typically reduced aesthetic purity. But when a site relies on a web service, such as Cloudflare, which may itself rely on other services, the serial risk grows acute.

The basic problem is that serial risks multiply.  The probability of success of a serial risk function is the product of the individual success probabilities, and even if every step is likely to be successful the net probability of success of a long chain becomes quite low. If the probability of success is Pₜ (0–1) and each individual step, n, has a probability of success of Pₙ, then Pₜ=P₁⨉P₂⨉P₃…Pₙ. If all such steps have the same probability of success then Pₜ=Pⁿ. Even highly reliable steps, say a success probability of 95%, are risky in long dependency chains. 4 such steps and the probability of success is down to 81.5%; 10 steps: 59.9%; 100 steps: 0.6%.

Now it may seem a little pessimistic to consider 100 serial steps, but consider the port dependency tree for FreeBSD (above), 100 serial steps is probably optimistic, even if a 95% build/execution probability is pessimistic, yet even at 99.9% uptime, total system uptime is only 90.5%. “Five nines” uptime, a typical corp BS claim of 99.999% uptime (or 5.26 minutes of downtime per year) becomes a “three nines” system with 100 dependencies.

And 100 dependencies is pretty optimistic a request map for the New York Times shows a “modern” web infrastructure’s fragility.

Or to take a supply chain example:

That is, 100 element-level serial complexity isn’t surprising.  Even assuming every element in that chain is held to a five nines level of availability, and even if the mean down time (MTTR) is only 2 hours, the mean time to failure starts to get short. I wrote a little Monte Carlo analysis tool to compute the odds.  The failure distribution for a single “five nines” device, one device in series, over a million such devices, runs for years.

5 nines one in series a million such devices

That’s about what you’d expect: MTTF 22.83 years. But if you have a complex system, like everything is getting to be, 100 such elements in series, we go from years to days.

100 five nines devices in series

The system MTTF is only 83 days and the effective system availability is only three nines (which is how that math works: 1,000 series devices would be two nines).

For example, I wrote a little tool to do a basic Monte Carlo analysis of a serial system and configured it for “three nines,” which is low but visually appealing, a 15h MTTR which was the AWS outage time, 250 serial elements which comes out fairly square in the graphic, and a 1 year simulation period.

=== RESULTS ===

Simulation Configuration:
  Simulation Time: 31536000 seconds
  Run Iterations: 1000

Element Configuration:
  Availability: 3 nines (99.900000%)
  MTTR: 15.00h
  MTTF: 1.71y

System Configuration:
  Number of elements: 250
  System Availability: 0.657 nines (77.964102%)
  System MTTR: 16.95h
  System MTTF: 2.50d

A typical state representation is below, the state is overwhelmingly “green” – live, because the MTTF is 1.71 years while the sim period is only 1 year: most elements do not fail. But as the total system state, the fat bottom row, is dependent on all links in the chain being live, the system uptime demonstrates non-intuitive power law behavior that catches people off guard whether it is bacterial growth, neutron capture, or system reliability.

250 elements all "three nines" uptime yield 0.657 nines in series.

This is why, despite highly reliable systems and everyone’s marketing assurances that they’re all executing at five nines, we’re beset by system failures. Coders need to really internalize that:

Every dependency is a humiliation.

(The only place that isn’t true is crypto code, if you wrote  your own, you did a bad thing and you should feel bad, crypto code is an exception because security confidence can only be achieved by accumulated unsuccessful bashing, no amount of unit testing can be substituted for global access to the source and global bragging rights for breaking the algo).

So lets all work toward system independence and parallelism and stop trading PII for code convenience and think twice about linking to a complex image processing library just to scale an image.

Posted at 19:07:25 GMT-0700

Category: FreeBSD • Linux • Security • Technology

Cleaning up poor quality laser scans with Meshlab

Friday, September 12, 2025 

Laser scanning often results in files that are massive, like 100s of megabytes, even gigabytes of data.  This is rarely useful. Metrology and digitization of most manufactured parts should be done with touch probes for accuracy and clean data, 3 points define a plane not 300,000. One is reminded of the adage “a person with one clock knows the time, a person with two is never sure.” However, laser scanners scan fast and give cool looking results without much expertise, even if they make the data clean up slow. So here we are, 68 simple steps to a clean mesh.

MeshLab is an amazingly powerful tool that implements code straight out of current mathematical papers in python efficiently and well.  It is a great tool, but unless you have time and the background to read all of the papers, it can be hard to choose which reconstruction or simplification or cleaning algorithm and what parameters will clean up a noisy mesh without turning it into a crazy starburst of near infinite polygons.  This little post is a cookbook series of steps that reduced a 17m face cluster of 172 components and 15,934 boundary edges into a 902k face single component, water-tight, two-manifold, properly normalized, 3D printable mesh in “only” 3.5 hours of processing time (or about 6 hours with user inattention).  It worked successfully 4 times on 4 different scans, so seems robust.

The basic process is to:

  1. Loop through some steps to clean up the import mesh, verifying with topological measures,
  2. Rebuild the mesh at high fidelity and resolution, making it huge but regular and consistent,
  3. Loop through the cleaning steps to fix surviving crazies from the scan
  4. Decimate the huge mesh down to an appropriate uniform minimum feature resolution as needed to capture details, which will be too detailed in flat/simple areas,
  5. Clean up whatever crazies that process introduced,
  6. Use Quadric Edge Collapse Decimation to reach a target facet count/file size that can be ingested by downstream apps (typically <1m faces is a good target), which preserves edge detail intelligently.
  7. Clean up any crazies that algo created.
  8. Make the normals coherent
  9. Export the result.   Yay.

This sequence reduced the input from 17M faces with severe topology issues to a clean, watertight 902K face mesh suitable for CAD import that preserved geometry and sufficient detail for reverse engineering, reproduction, and fit checks.

A detail of the original file looked like this, note the insane density of vertices:

After this clean-up sequence, the data is much less cluttered but critical details remain well defined and clear.

Note the edges still have plenty of points, but the relatively flat part are now encoded in a minimal number of points, sufficient relative to the feature sizes to represent geometry and surface quality.

I uploaded an annotated logfile of the process in case the below isn’t clear and the MeshLab .mlx script file with the filter parameters as well which can be kinda copy-pasted into the script window automate the process in blocks. If I have to do more of this, I’ll automated it further as a python script that would call PyMeshLab.py and conditionally fork on the results of the topological quality measure results. It’s a good way to keep your CPU busy.


Meshlab Sequence

Import the messy file into meshlab.

Initial State

  • Starting mesh: 17,052,444 faces, 8,534,047 vertices
  • 172 connected components, 15,934 boundary edges
  • Non-manifold mesh with multiple topological issues

Phase A: Initial Cleanup and Repair

  1. Compute Topological Measures — 29.6 sec
    • Identified initial mesh problems
  2. Merge Close Vertices — 27.8 sec
    • Threshold: 0.1975 (0.01% of bounding box)
    • Merged 166,446 vertices
  3. Remove Duplicate Faces — 5.3 sec
    • Deleted 3,933 duplicate faces
  4. Remove Duplicate Vertices — 4.1 sec
    • No duplicates found
  5. Remove Isolated Pieces — 14.5 sec
    • Min diameter: 790.013 (40% of bounding box)
    • Removed 136 of 137 components, 14,193 vertices
  6. Remove T-Vertices – 28.8 sec
    • Method: Edge Collapse, Ratio: 40, Iterate: true
    • Removed 1,745 T-vertices
  7. Remove Unreferenced Vertices — 0.2 sec
    • None found
  8. Remove Zero Area Faces — 0.8 sec
    • None found
  9. Select Non-Manifold Edges — 6.3 sec total
  10. Dilate Selection — 2.4 sec total
  11. Delete selected faces AND vertices
    • Deleted 36,787 faces
  12. Repair Non-Manifold Vertices — 11.8 sec
    • Method: Split vertices
    • Split 42 non-manifold vertices
  13. Select/Delete Self-Intersecting Faces — 86.9 sec total
    • Deleted 771 faces
  14. Close Holes — 52.5 min
    • Max hole size: 300 edges, Refine: true
    • Closed 1,598 holes, added 16,658 faces

At this point the model should be clean enough for surface reconstruction which will create a new mesh shrink-wrapped over the scanned mesh.

Phase B: Surface Reconstruction

  1. Screened Poisson Reconstruction — 12.6 min
    • Depth: 14, Adaptive depth: 7
    • Scale: 1.2, Samples per node: 1.5
    • Interpolation weight: 12

This creates a new mesh layer – verify it is a good match to the old (toggle the “eye” for each layer on and off) and if it is good, close the eye of the original file, delete hidden layers, and then save as a new file name. This mesh is roughly 2x larger than the original and will be slow until it is decimated to a reasonable size.

Phase C: Clean up the new giant mesh

14-26. Repeat cleanup sequence (Phase A) — ~67 min total.

  • Similar parameters as Phase A
  • Removed 16 of 17 newly created disconnected components (floating glitches)
  • Removed 32,758 T-vertices
  • Removed 152 self-intersecting surfaces
  • Select non-manifold, dilate, delete removed 6270 faces, 1661 vertices
  • Closed 404 holes
  • Assumed close enough for CD reduction (which is robust against topological oddities)

Phase D: Clustering Decimation

  1. Clustering Decimation — 14.9 sec
    • Cell size: 0.988 (0.05% of bounding box) this means ~1 mm resolution on a part ~1.95 meters long, a parameter that is highly design dependent.
    • Reduced to 4,486,934 faces

Phase E: Third Cleanup Round

28-40. Another cleanup cycle — ~49 min total.

  • Removed 9,269 duplicate faces
  • Deleted 128,584 non-manifold faces
  • Closed 5,050 holes

Down to 4,406,986 faces, but 74 components so repeat the clean cycle:

41-52. Fourth cleanup iteration — ~48 min total.

  • Removed 73 of 74 components
  • Multiple hole closing operations

Single component, 4,405,554 faces, no holes, two manifold: OK for QECD.

Phase F: QECD Decimation

  1. Quadratic Edge Collapse Decimation — 88.1 sec
    • Target: 902,777 faces (20% of current)
    • Preserve boundary: true, Planar simplification: true
    • Planar weight: 0.001 (default)

Reduced to ~900K faces: this is an acceptable size for most programs to ingest.

Phase G: Final Cleanup

54-65. Final cleanup passes — ~8.5 min total.

Three iteration of cleanup sequence.

  1. Final topology check — 2.3 sec
    • Final mesh: 451,053 vertices, 902,498 faces
    • Single connected component
    • Two-manifold, watertight (0 boundary edges)
    • Genus: 99 (99 through-holes)
  2. Re-Orient Faces Coherently — 1.9 sec
  3. Export — 0.5 sec

Saved as an STL file, binary, no texture data (or as needed for next program)

Total Processing Time

Approximately 3.5 hours (mostly hole-closing operations which took ~2.5 hours total)

Posted at 18:35:18 GMT-0700

Category: Fabrication • HowTo • Technology

Disappearing checks in WordPress checkboxes

Tuesday, July 29, 2025 

In some  recent update, before 6.8.1 and still present in 6.8.2, WordPress changed the CSS for checkbox styling from checkbox to none which, unshockingly, makes it awfully hard to know what a checkbox state is.  Most wordpress sites will use the minified css file shipped with wordpress by default, which makes fixing the bug a little more tedious given browser inspectors prettify the minimized code making grepping for the fault a bit more challenging.  After some digging around the bug is in the wp-admin/css/forms.css file and the minified version wp-admin/css/forms.min.css, and, of course, the RTL versions wp-admin/css/forms-rtl.css and wp-admin/css/forms-rtl.min.css.

The offending stanza is readable in the pretty versions as:

input[type="checkbox"], input[type="radio"] {
  border: 1px solid #8c8f94;
  border-radius: 4px;
  background: #fff;
  color: #50575e;
  clear: none;
  cursor: pointer;
  display: inline-block;
  line-height: 0;
  height: 1rem;
  margin: -.25rem .25rem 0 0;
    margin-bottom: 0px;
  outline: 0;
  padding: 0 !important;
  text-align: center;
  vertical-align: middle;
  width: 1rem;
  min-width: 1rem;
  -webkit-appearance: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
  transition: .05s border-color ease-in-out;
}

-webkit-appearance: none; should be -webkit-appearance: checkbox; at least if you want to know the state of your checkboxes (you probably do).

A bit tedious to edit the minified versions but nano wp-admin/css/forms.min.css followed by ESC->SHIFT-4 then searching for min-width:1rem;-webkit-appearance and changing the following none to checkbox did the trick for me. This is the sort of thing that has already persisted for a few versions and may persist for more.  Perhaps the devs have customized CSS so they don’t see the problem, so expect to make the change every update for a while.

Posted at 18:57:33 GMT-0700

Category: Code • HowTo • Self-publishing • Technology