Better HN
topnewbestaskshowjobs
Log inSign up

labcomputer

2,373 karma · joined Aug 2, 2012 (14y ago) · 1,086 submissions

Submissions

comment 3y ago · link · parent

Yea, this attack doesn't make any sense as a threat model worth defending. If the thief is willing and able to replace substantial amounts of the car's electronics:

1. They're already in the car. So how you authenticate the ECU and door modules to each other is really irrelevant. They bypassed that already.

2. They can just go ahead and replace the ECU and all the door modules with their own. So, again, how auth works doesn't matter.

3. At some point, you have to ask: Am I replacing the electronics in the car, or am I replacing swapping all the non-electrical parts from one car to another?

comment 3y ago · link · parent

> Generating signing key is not really an option as you won't get enough entropy on the ECU and generated private keys will be oscillating around small group of prime numbers.

Erm... using the LSB of a network RX timer is common way to add entropy (and perfectly feasible here). You could also use the LSB of the +voltage rail sense or the thermometer that probably exists on your MCU.

comment 3y ago · link · parent

Besides what others have mentioned:

Just use a simple rolling code, like a garage door opener, HOTP, or the key fob itself, and enforce a rate limit for bad codes. 3 bytes can hold 6 packed digits, which is plenty.

The threat model here is that the thief walks up to your car and tries to broadcast messages to the door controller. If they can't observe prior messages to the controller, the chance that they will correctly guess the next code is, literally, 1 in a million.

Let the door controller start rate limiting (ignoring messages) after 10 bad attempts, and then only listen to one code per second. The thief will have to stand here for a week for a 50% chance of correctly guessing a 6 digit code.

comment 3y ago · link · parent

This... seems like a relatively trivial problem to solve?

Each device that needs to sign messages (which probably should be only the ECU) is provisioned with a certificate signed by the carmaker. The device is also provisioned with a public-key pair, which is signed by the certificate (so you have chain of trust back to the manufacturer). The public key pair could be either programmed when the firmware is first flashed or generated at first boot.

A new door BCM accepts the first broadcasted public key from the ECU which is correctly signed. This would happen inside the factory for a new car, or when a new BCM is installed to replace a faulty one.

A used door BCM from a junk yard car could be programmed to accept a different (signed) public key by:

1. Being in the unlocked (and perhaps window-down) state; and 2. Pressing some combination of door buttons; and 3. Sending an appropriate command over the CANbus

It, of course, then verifies that the new key is correctly signed and reprograms itself to the new key.

comment 3y ago · link · parent

Not quite. Phones use assisted GPS, which means that they download GPS ephemeris data over the internet instead of getting it from the the satellite signal (because the satellites transmit data at 50 bps). So the time to first position is faster.

Differential GPS, by contrast, transmits the difference between the surveyed location of a base station and the GPS-derived position of the same station. That offset can be used locally to correct other nearby GPS receivers.

Phones also use trilateration on the cell tower signals to get an approximate solution before trying to solve 3d+time on the GPS signal.

comment 3y ago · link · parent

> My point would be that while SpaceX does save lots of money, it doesn't do so by producing cheap or less reliable rockets

Indeed, if we assume that the each launch is an IID binomial coin flip (which isn’t really the right way to evaluate right-censored data), and observe (by reading Wikipedia) that SpaceX has had at least 450 successful Falcon 9 launches since the last in-flight failure, then they have at least five nines of reliability:

0.999995^450 ~= 449/450.

Which appears to be an industry-leading stat.

For context (excluding the Columbia re-entry failure), the space shuttle only had 4 nines:

0.99994^125 ~= 124/125

comment 3y ago · link · parent

> Since reading about that, I've wondered if the relying party in FIDO could or should know the difference. Would this entire product line get flagged in some FIDO registry as having exportable keys?

The standard actually anticipates you might want to do that, so the token’s manufacturer can sign the token so that a relying party can whitelist (or, presumably, blacklist) certain tokens.

comment 3y ago · link · parent

Well, sure, but that completely defeats the purpose of a security token. The whole point is that you can’t extract the crypto secret, even if you ask nicely.

In fact, the sales literature brags about how the secret never leaves the device!

comment 3y ago · link · parent

Right, but you still “need” a pair of Yubikeys to secure the iCloud account that holds your Passkey credentials. So you’d use the Yubikeys less in day-to-day auth situations, but you still need to buy them.

comment 3y ago · link · parent

Probably not at all? Yubico is one of two brands that Apple recommends for securing your iCloud account.

comment 3y ago · link · parent

> Cross key syncing service.

Can’t work with FIDO/U2F, I’m afraid.

The protocol works a little differently than most people expect, which is what allows the hardware token to “store” an unlimited number of auth credentials.

What really happens at auth time is that the server (the one you are trying to authenticate to) sends a crypto package including the challenge and a key used to sign the challenge to the token. (That signing key was generated at enrollment time and encrypted using the token’s private key). The token then uses its internal private key to decrypt the signing key sent by the server, sign the challenge and send back the signed challenge.

So there is no way to transfer credentials because the credentials literally aren’t in the token (they’re stored—in encrypted form—on the servers you log in to). The only way that transfer could maybe work is by copying the token’s private key… but that kind of defeats the purpose of a security token.

comment 3y ago · link · parent

> My father was an accountant for a large corporation with a flimsy jr college degree. He had that job for 44 years. Impossible pulling off that feat today

Less than 10% of Americans had a 4 year degree at the end of WWII, and less than 50% of adults had a high school education. In the kingdom of the blind, the one eyed man in king, and all that.

Compare that to today, where over 35% have a bachelors (over 50% have “some college”), over 90% have a high school diploma, and nearly 10% have a PhD.

comment 3y ago · link · parent

> At the end of the day, if crew A and plane B are in wildly-unexpected places, no amount of computational prowess can correct that reality.

I think that’s not wrong, but one of Southwest’s efficiencies is that they only operate one “type” (term of art) of airplane. So theoretically any crew can operate any airplane.

So, in theory, it doesn’t matter which crew is at the airport as long as they meet the rest requirements. You could just use the greedy algorithm and assign the first available crew in the queue to the next flight at each airport. And, since you need a crew to get the airplane to the airport, there are usually crews in the same places as airplanes. (But you have to know that an available crew exists at that airport to do this)

Where that breaks down a bit (and where you need a smart algorithm or more compute) is that you can end up with crews at an airport, but the crews are all timed out. So while the airplanes are mostly fungible, the crews are mostly not.

The complexity is really filling all the planes for the next-n rounds of flights with crews such that none of the crews times out up to your time horizon. But that only works if you know where all the crews and planes are (and how much time each crew has left)

Also, keeping a backup crew at each airport isn’t super expensive because crews are only paid for the time they are operating the airplane while the doors are shut.

comment 3y ago · link · parent

> The real question is: what do they get out of offering a hobbyist license?

Commoditize your complements: If you sell VMS software, it stands to reason you would like there to be people who know how to use it. Even better if you don’t have to pay the train them.

Tons of people know how to use Linux because you can just download a distro and start using it… It’s the same reason MS and Cisco have all those certificate programs.

I never understood why IBM didn’t make a hobbyist version of their mainframe OSes for Hercules.

comment 3y ago · link · parent

> landlords would prefer to have a building empty (not just class A office, but retail space too) then rent for a lower amount.

Interestingly: I have heard that, for loans on commercial real estate, having vacant space with a high rent is better for the landlord than having a paying tenant and lower rent. Specifically, that banks:

1. Often allow the landlord to defer a fraction of the mortgage payment (proportional to vacant space) to the end of the loan

2. Often require an additional payment (to reduce the LTV) if the average rent of non-vacant units falls below the level when the loan was originated.

So, landlords keep the space vacant because a) they can; and b) reducing rent means they have to pay the bank extra money they may not have.

comment 3y ago · link · parent

> Also if your vision of WFH is that everyone sprawls out then it doesn't solve some of your other issues: people will still need to use their vehicles to get places (because unless we solve the root issue of 'too few homes' then those people will be spread out from each other or services to not create more cities with too few homes) and their sprawled out suburban communities will not suddenly become more walkable. They'll just drive everywhere.

Partially disagree.

Maybe I'm not representative, but most of my family's driving is specifically _commuting_. All other weekly errands add up to less than one day of commute driving. Actually, less than one way of one day of commuting.

Unless you compare a "fully rural" drive-60-miles-to-get-groceries lifestyle to basically a "downtown manhattan" walk-to-the-office one, I'm skeptical that total car-miles will increase when transitioning from WFO to WFH.

Most "completely non-walkable" suburbs will still have a grocery store within a few miles, usually in a so-called super center with a bunch of other stores. I don't have data to back this up (other than talking with coworkers), but my sense is that people who talk about transitioning to a "rural" WFH really mean "move to a small town" or "move to the outskirts of an exurb".

So, even if they become completely car dependent, they're still reducing from 50 commuting miles per day to 2-3 "errands" miles.

comment 3y ago · link · parent

> Parenthetically I don’t recall whether this was a training issue, a software issue, or a pilot error. Accordingly, I don’t want to sound like I’m slamming the pilot.

It was a design issue, which many people like to blame on the pilot because they don't know any better.

The problem was that the rate-of-change of control-force per rudder angle is/was negative for that particular Airbus model... which is generally known to lead to PIO (pilot induced oscillations). When I say generally known, I mean it has been documented since at least as early as pre-WWII NACA (the precursor to NASA) studies.

In fact, that's what led to the installation of MCAS on 737 Max's: The FAA requires that, for the elevator (but not rudder), the control force should increase as deflection increases. So Boeing tried to simulate that behavior with elevator trim + software.

In other words, MCAS was a bad, hacky "solution" to a problem very similar to what happened on AA587 (but for pitch instead of yaw).

> On the other hand I’ve seen a B-52 lose just about the entirety of its vertical stabilizer and it didn’t seem to care at all; landed safely.

Yea, but a B-52 probably has more elevator authority than most commercial airliners (both because it is meant to go supersonic and need to deal with Mach tuck and because B-52 is expected to shed some "payload" while airborne). The problem is that the vertical stabilizer weighs a ton and is waaaay out at the end of the fuselage, so it really throws off your weight and balance if it falls off.

comment 3y ago · link · parent

> In practice, this means you need to band pass before the ADC, right? i.e. "signal" in this case is the entire input to the ADC and not just the particular modulated signal you care about

Right and right.

And, you’d normally want that to be a contiguous 100 MHz band of frequencies (you could in principle have multiple discontiguous bands that add up to 100 MHz if they are spaced right (they don’t fold down to the same base frequencies), but that would be quite an unusual application).

comment 3y ago · link · parent

That’s because Apple Silicon has a stupid-wide memory bus. It has little/nothing to do with the characteristics of the memory chips shipped in the box. They just put more modules in parallel than on x86.

Apple could ship cheaper memory modules with the same stupid-wide bus and achieve nearly the same performance for a fraction of the cost.

And that’s what I want. Give me 4x as much DDR4 on the same 1024 bit wide bus, and I’d be happy.

comment 3y ago · link · parent

3%, 12% Potato, potato. It’s a small spec performance difference for a huge price difference.

Meanwhile, for actual real-world workloads, not spilling to swap (because you have enough memory) will result in real-world performance that is many times (even an order of magnitude) better. Even with Apples blazing fast SSDs.

Oh, and you can also spec a cheaper SSD because you don’t need one that can take a bajillion writes (because you aren’t treating your SSD as memory). AND the cheaper SSD will last longer too.

In short, Apple could spec cheaper components AND get better real world performance by simply shipping computers that have enough memory.

Edit: also 3% comes from shipping the absolute fasted DDR5 modules vs the second fasted DDR5.

comment 3y ago · link · parent

As the sibling comment mentioned, you don’t need to demodulate first, because that is actually what the sampling process of your ADC does.

You can think of it as multiplying the original signal by a comb (in the time domain) of delta functions, which folds everything (in the frequency domain) back into the nyquist frequency of your ADC. Each delta function corresponds to one sample. If your original signal was truly band-limited to 100MHz, then what comes out is a replica of the band limited signal.

One catch (which is actually fairly easy to do in practice) is that the sampling window needs to correspond to around 1/f of the carrier frequency. This is what YakBizzaro is talking about (ADC analog bandwidth) in their sibling post.

comment 3y ago · link · parent

I know I would, and I dare say most people are the same, prefer to have the option for 3% lower memory bandwidth in exchange for 4x more memory. There’s no justification for Apple’s memory prices.

comment 3y ago · link · parent

Apple SSDs perform no better than commodity SSDs that cost 20% as much. And Apple is just buying flash chips from someone else. There’s no “apple silicon” equivalent for SSDs.

comment 3y ago · link · parent

That's true, but the opportunity cost of a PhD can easily reach 500k. The average PhD takes about 5 years, and is paid ~30k during that time. Most are talented enough to land a job a FAANG, so... do the math.

comment 3y ago · link · parent

> This floored me. One because in my mid Atlantic area nearly every house has a heat pump. When house shopping many years ago we never saw a listing that didn't have one.

In California, especially Southern California, many homes still have wall-mounted natural-convention gas heaters. Mainly because natural gas is plentiful (LA is basically sitting on top of an oil and gas reservoir) and heating isn't needed much of the year. Often they are placed in/on a wall between the two largest rooms, so that both are heated.

The technology is actually pretty neat: A thermopile sits in the pilot light's flame, which provides electricity to hold open the main shutoff solenoid valve and run a thermostat, so it needs no external electricity.

comment 3y ago · link · parent

Do you know where I can learn more about this? I’ve never heard of a rule like that before

comment 3y ago · link · parent

Well, sure, but that’s essentially impossible to define for a product with zero marginal cost. You’d be making it illegal for a small company with x sales/year to sell for the same price as a large company with 2x sales/year.

comment 3y ago · link · parent

It’s one thing to generate the same hash for the same client, but it would be interesting to know how often the hashes collide, too.

I also notice that the no-JS hash changes when I move the window to a different monitor.

1
202122
37