Better HN
topnewbestaskshowjobs
Log inSign up

nullc

19,343 karma · joined Dec 24, 2010 (15y ago) · 7,239 submissions

gmaxwell

http://nt4tn.net/

Submissions

comment 3mo ago · link · parent

This is a great starting point to go looking for PSP / SMM backdoors.

comment 3mo ago · link · parent

Anyone else struck by the similarities between the description an "The Cookie Monster” by Vernor Vinge?

comment 4mo ago · link · parent

Might be an interesting motivation for looped LLMs to cut the gate count down. Perhaps even a collection of mixed programmable layers and baked layers in a loop.

comment 4mo ago · link · parent

Broad form car insurance might accomplish what you want:

https://www.policygenius.com/auto-insurance/what-is-broad-fo...

But I believe the intersection of states with highly private registration and where broad form is available is the empty set.

> I am not convinced your insurance company would data sharing with flock or its subsidiaries if they only have your vin.

Go pull your lexis nexis report.

comment 4mo ago · link · parent

You shouldn't link that without mentioning that it is a particularly intense S&M/rape/incest fetish piece, and that the squick content is entirely integral to the story. I'm generally dubious of "trigger warnings" but if ever there was something that needed content tags-- this is it.

If you imagine it being written for alt.sex.stories.moderated but somehow failing to be erotic by virtue of being too explicit, and being a few orders of magnitude better writing for that venue... then you wouldn't be too far off. [Started making a silly example of how some sex story could fail like that and then realized I was litterally describing a scene from prime intellect].

It's also arguably the origin of a lot of the mentally ill ai-safety hysteria. Arguably an enjoyable romp for those who understand that it's fiction, but it seems a lot of people cannot.

comment 4mo ago · link · parent

Good luck even finding the non-directors cut.

I liked the film noir voice-over.

comment 4mo ago · link · parent

Sorry to offend, my point is that the necessity of auto insurance will stick your name (as the insured party for that vin) in a place accessible to flock (or at least flock's users). And as such I don't think it provides the results your post suggested "Montana vehicle registrations give you privacy".

I really wish it did and I hoped you had some solution!

comment 4mo ago · link · parent

AI psychosis is alive and well, it seems.

comment 4mo ago · link · parent

Insurance demands your vin and reports it to LexisNexis, and anyone with a Lexis Nexis account can turn a VIN into a Montana plate so long as they self-certify that their use complies with the DPPA (which includes enough reasons to drive two busses through, even if you want to assume bad actors don't lie).

comment 4mo ago · link · parent

Care to explain how you can insure a car without the insurance selling your data to data brokers? All states with remotely private registration still require insurance, including Montana.

comment 4mo ago · link · parent

I disagree with the underlying cause claimed in that analysis: https://news.ycombinator.com/item?id=49141886

comment 4mo ago · link · parent

> Perhaps the most compelling forensic observation is that the first vulnerable firmware was released on March 17th, 2021. From that date onward, we see stolen coins beginning to pour into the few shared addresses used by the attacker.

this is an inexcusable slop-y error that made me press close on the tab.

While no one knows if there might have have been earlier exploitation, the new exploitation just started and did not extend back to the vulnerable firmware release.

comment 4mo ago · link · parent

Hopefully people are being a little circumspect right now with explotation instructions because there are still vulnerable coins out there (particularly from mk4+ wallets, as well ones with passwords that are not strong enough) which have not been taken or rescued yet and may still be rescued by owners.

comment 4mo ago · link · parent

This flaw would probably be easier to find from the binary: the source itself was misleading, but if you analyized the binary you'd find that there was no access to the hwrng at all (assuming the dead code got eliminated by the compiler) or that the only function that accessed it was never called.

One lesson out of this is that now that AI has made a certain grade of review cheap is that it would be useful to perform security review both against the source code and against the resulting binary.

comment 4mo ago · link · parent

> the error from the C compiler is something that a competent programmer would be able to interpret,

contrary to the post, this was almost certainly not an issue of compilers throwing errors.

Reduced familarity with C could have played a role, but given the number of C experts that looked at this knowing there was an error and still misidentified the cause I don't think we need to reach for that powerful an explanation.

Confusion of definedness vs value check would make for a fine underhanded C entry. The flaw was not particularly clear from the source... and most common QA procedures could not distinguish a PRNG from TRNG once the error happened.

comment 4mo ago · link · parent

> Also running python on a microcontroller to do cryptography is fucking insane.

I feel like I should confess to snubbing this (and some other) hardware wallet projects for the fact it used micropython. I think it's hard to draw the line between systems programmer snobbery and good advice... and I feel a little like a cop guilty of stop-and-frisk on the basis of skin color.

Because in general the ideas necessary to produce reliable software aren't well understood or agreed on there is a risk of letting style preferences which are only correlated with good engineering but aren't causative of good engineering get mistaken-- and this can cause errors in both directions, both mistaking stuff as good because it uses the "right" tools, or mistaking something as bad because it doesn't.

comment 4mo ago · link · parent

Right, that's particularly a concern for DSA nonces. Coldcard uses RFC 6979 however, and duplicates at the 32-bit word level is a different matter than at the byte level.

comment 4mo ago · link · parent

I have absolutely no interest in defending this code-- and already considered it untrusthworthy before any of this. But in the interest of accuracy:

> It does a memcpy of a minimum of 4 bytes

This is a common misreading of MIN(). MIN(4,x) is a number that is a MAXIMUM of 4, not a minimum.

Count is the number of bytes remaining in the buffer. The input to the copy is a 4-byte word. min(4,count) will produce a number 0-4 which is always equal to or less than count. The copy will not overflow the buffer or overrun the input: If count is 3, for example, then here will be 3 and it will copy 3 bytes.

> believe it errors out if the HWRNG returns the same value twice. That's actually a thing that can legitimately happen. "0" is also a legitimate output.

It's been a while since I looked but I believe the STM32 manual advises you to throw away data when this happens, because the rng is updated async with the processor and reads that are too fast will produce 0s or duplicate values. Entropy loss from doing so is generally negligible. Were it me I'd read enough into a cryptographic hash to render the output cryptographically close to uniform and not have to worry about it further. (particularly since some uses of cryptographic numbers are extremely sensitive to even small biases)

I do wonder how fatal MP_EFAULT actually is...-- on a device like this being jumpy at failing the RNG is reasonable, but if it bricks the device (for example) that would be too much for a condition that (IIRC) the datasheet says can happen. If that error is worse than causing a reboot then it might be the case that their emergency fix deployment might have the effect of causing problems by deploying never-actually-tested code into the wild. When I initially looked at this code before finding the flaw I was somewhat surprised that this test didn't produce spurious failures.

[Maybe someone who isn't traveling and on vacation might want to trace out that error condition, -- and check my vague recollection of the STM32 datasheets, as I could be remembering some other part]

comment 4mo ago · link · parent

https://github.com/switck/libngu/blob/537519a829259622ea6b03...

vs

https://github.com/Coldcard/micropython/blob/4107246f8a08080...

comment 4mo ago · link · parent

Aside, I'm somewhat surprised that MISRA (as of 2012 at least) doesn't have a directive related to definedness vs value errors.

comment 4mo ago · link · parent

This writeup isn't very good and misses/misunderstands the programming error that leads to the flaw.

I'm commenting because I think it's important to understand the issue.

The article would have you think that the change in question was a tiny change to a flag to make it compile, but in reality the commit in question is a 1533 line addition of the entire RNG infrastructure.

The fundamental cause is a mixup between a value test and a definedness test.

Coldcard attempted to replace the micropython wrapper on the hardware TRNG, apparently in order to provide a more aggressive handling of fault/error conditions.

The micropython hwrng code is gated by an #if check, the replacement HWRNG code is gated by an ifndef. So "#define MICROPY_HW_ENABLE_RNG (0)" deactivated the micropython implementation but failed to activate the internal one (which was #ifndef MICROPY_HW_ENABLE_RNG ... which didn't fire because MICROPY_HW_ENABLE_RNG was _defined_).

This was easier to miss because the usages weren't only in different files-- they were in different repositories.

There is a more abstract point to make that in cryptographic software the absence of a secure randomness source (the STM32 TRNG) should never fall back to an insecure source (a trivial PRNG which might have only had on the order of 20-bits of uncertainty in its input). But the code that had the fallback was micropython which was not authored by the coldcard creators and is presumably not intended for cryptographic applications...

In later code (for MK4+ devices) the issue was further masked without being corrected by xor-ing in another insecure PRNG seeded by 32-bits from another TRNG. ... itself acting like an additional insecure fallback. (Why it first hashes 64-bits of TRNG output then throws away half the entropy is a mystery...)

RNG failures can be difficult to detect because the real randomness and a PRNG are indistinguishable by any simple tests of the output. I understand the coldcard developers ran extensive tests on the randomness generated by these devices-- they may well have been just testing the PRNG. It's something of a "color of your bits" issue ( https://ansuz.sooke.bc.ca/entry/23 ).

The same sort of issue happens at multiple levels of the stack, e.g. IIRC the STM32 TRNG itself does some kind of whitening that could have the same effect of concealing an RNG failure.

The existence of insecure fake randomness in the code at all was a red flag that had been noted previously -- though the really bad one was hidden away in the micropython code and not even obviously at play. I think this is a rare case of a bug that would be more easily found from binary analysis than review of the source code (e.g. no access to the STM32 TRNG at all).

Without these fallbacks the failure to use the TRNG would have been immediately detected by the developers (e.g. when every attempt generated the same seed), and a review could be validated by fault injection (NOP out the hwrng and verify that the test fails).

comment 4mo ago · link · parent

Any AI company should have a hardline rule against hiring any employee who sincerely believes that AI is going to doom mankind, given what AI doomers believe. If they're sincere in their beliefs they may (from their perspective) justifiably murder everyone at the company. After all mere homicide would be a rounding error against an 'omnicidal' threat, or the infinite torture machines in the fever dreams of AI doomers.

Anyone claiming that other people are working to extinct humanity is making a threat against those people, no matter how politely they state it. ... not that the safety cult has entirely confined themselves to polite euphemisms.

Consider this a preregistered statement when an ai doomer loons poisons everyone at an annual company meeting: it was an easily anticipated threat.

comment 4mo ago · link · parent

> Isn't that rather self evident? If you are sampling from a particularly domain constrained vertical, how do you expect the censorship to transfer?

If the model architecture is too similar it can transfer, even if you never sample on it... because the censorship can depend on hidden state in common that you do sample.

This creates a particular value in distinct architectures that isn't apparent from their direct utility.

comment 4mo ago · link · parent

> 1T model requires 1T of RAM

assuming 8 bits per weight, but 4bits is commonly used once you get to that scale.

comment 4mo ago · link · parent

I found the LLM writing exceptionally distasteful and it made it difficult to look at the page for a subject I'd otherwise find interesting-- it's an extremely bad style, and also characteristic of a lot of dishonest and abusive conduct on the internet of late.

comment 4mo ago · link · parent

Where is the generative dick doodle model? Consider the amount of manpower that could be saved by automating this labor-- probably equivalent so saving thousands of lives per year!

comment 4mo ago · link · parent

I was sad turin-x never shipped... I wonder if it got displaced by the Microsoft-only HBM integrated part.

I've been pretty happy with 9684X but was looking forward to upgraded cores. 16 channel memory though will be a difficult fit with dual socket systems... would be nice to see it paired up with HBM instead.

comment 4mo ago · link · parent

Well timed to facilitate the regulatory interventions called for by Ball. If huggingface presses criminal charges for the intrusion it might provide additional clarity-- both for what happened here as well as regarding OpenAI's culpability.

comment 4mo ago · link · parent

The large US closed AI companies are decelerationist because their focus is on monopolizing the market. They spend inefficiently in order to lock up the supply of resources and waste money influencing the state to attempt to lock out competition. This strategy has not been successful due to the existence of isolated resource pools they can't monopolize.
1
101112
242