82 karma · joined Aug 7, 2023 (3y ago) · 55 submissions
comment 3y ago · link · parent
However it does not eliminate the vulnerability within a single tenants own threads.
You also have to think about all the web shops that are out there that are just running proxmox or a cloud reseller who reintroduces the vulnerability in their multicore VPS setup
comment 3y ago · link · parent
SMT (hyperthreading) introduces some ambiguity when the context change is going to happen, and it appears there's instructions that are callable where registers/mem can be read that were outside the calling context.
comment 3y ago · link · parent
In my mind the better mitigation is to put control over trusted code back to the user and to do that you have to add less-performant cores onto the die and force the operator to elevate (or not) to SMT.
Right now it's an all-or-nothing proposition for the whole board. I would like to think that you can take your untrusted code and stick it on the less-performy cores with the safer instruction pipelining scheme so an actual physical barrier exists.
If that was in the chip architecture, then it's up to OS vendors to surface it in a way that developers understand, and then down to the operator to decide upon configuration.
You are never going to get a perfect-solve from the chipmakers on this where the consumer has to do nothing.
comment 3y ago · link · parent
Context switching was in the Apollo 11 guidance computer https://www.youtube.com/watch?v=xx7Lfh5SKUQ
The problem is that cycle-speed boosts left the industry cic. 2012-or-so. All the perf boost we get these days is by optimizing the instruction sequencing and multiprocessing. This is why languages like Go popped up (making the advanced programming topic of multiprogramming an entry-level accomplishment) and you now see the 'async' decorator plastered everywhere in C#, and so-on.
Keeping the security context intact and separated is a gargantuan task.
To me it makes more sense to add "lousy cores" to the die and force the operator to declare the launching threads are safe for SMT, else the job gets scheduled to the less-performing core where the pipelining is safer. It delegates responsibility to the chip-gobbler, forces them to understand the tradeoff for performance, until some elegant solution is found for side channel attacks like this.
comment 3y ago · link · parent
Vector is found to get untrusted code C to run in the user area on Z via exploit in X that Y has not acknowledged, so researchers publish a CVE with an example.
C starts trying to read memory from threads shared on same vCPU, revealing db connection string used by X, the nonce and salt for hashing.
Attacker now has the keys to the entire kingdom.
comment 3y ago · link · parent
There is the "just use OS/2" strategy of the 1990s (referring to the period from 1995-2002 where you could sit happy in your niche OS that researchers and BHs were not targeting): in this case s390x probably has the same problem but no one is paying attention to it (other than a 3 letter agency, of course), so the chances of a payload reaching that arch are very close to zero.
comment 3y ago · link · parent
Hear me out: Instead of making SMT an all-or-nothing pre oposition, we have "lousy cores" where untrusted code goes and make the customer "prove" it should get elevation to the cores with SMT?
I dont't want to clobber my chip that's running the mega-important payroll jobs where no one can load anything else on to the board under pain of death. However I would like to be forced into tagging what is safe to run SMT else I get stuck on the safer cores.
I might be an intern who has no idea what any of this stuff means and goes to Google it, then learn what this attack vector truly is. Then makes a plan on how to defend against it.
Am I crazy?
comment 3y ago · link · parent
This would also require changes at the OS-makers to tag thread forks for trusted and untrusted behavior.
Essentially: instead of shutting down SMT for the entire machine, make the customer "prove" the code is safe for elevation or else it gets scheduled as non-SMT.
comment 3y ago · link · parent
But now we have the 21st-century mainframe we like to call the cloud, where everything is shared. So I upload a container image with the vampire vuln intending to read all the activity on the host. Other customers jobs, the OS itself, even steal internal keys used at Amazon.
The motivation to do this kind of attack now is incalculable.
comment 3y ago · link · parent
But who's to say that any chipmaker gets bribed to backdoor their design to allow the reading of any page of RAM from any protection level doesn't happen? It would make their job super easy.
comment 3y ago · link · parent
Interestingly, Spanish might be easier to optimize as a solitary language if the punctuation keys are moved away from the vowel cluster. You can get insanely-low SFB scores. Spanish is a higher-syllable density language with better spelling conventions than English.
What some of the alt-Spanish layouts have done is just take an EN-optimized layout and add diacritics (and Canaria is not an exception here either, it just restored some ergo sanity to Spanish vs. pushing Q and J to bad spots like most EN ergo layouts do). For those who work entirely in Spanish most of the time, EN-ergo layouts are not ideal.
comment 3y ago · link · parent
double letters stop the rolling action, and P is one of the biggest offenders. Putting P next to a vowel cluster does nothing for rolls. It makes more sense to swap to the other side of the board so while you are dealing with whatever P is doing, your other hand is teeing up the rolling keys that will start after P.
For instance: application. In Canaria your roll would look like this, with the keys being rolled in [brackets]
opp[ortun][ity]
Or, if you're slower:
opp[or][tuni][ty]
comment 3y ago · link · parent
But look how often P shows up as a double letter, which stops you from rolling the keys because of the double-strike: opposition oppression stopping appendage application applying appreciate --- there's a lot.
So in Workman the word PEOPLE is a painful SFB-fiesta, and that is a Top 200 word in English, and it does not feel good at all! That's because P needs to be opposite of the vowel cluster, not just because of PEOPLE, but because you need to use one hand to take care of the double-letter strike while the other hand is setting up the vowel cluster roll that is coming.
comment 3y ago · link · parent
This allows you to strike the ` key with the left hand while hitting N quickly. Same for the vowels. The Ü is next to Ú so that it's all in the same cluster.
comment 3y ago · link · parent
canaria (ASHTNEOI) (0 likes) w l y p k z j o u ; c r s t b f n e i a ' x v d g q m h / , .
MT-QUOTES: Alt: 22.56% Rol: 47.83% (In/Out: 21.07% | 26.76%) One: 2.21% (In/Out: 0.89% | 1.32%) Red: 3.16% (Bad: 0.08%)
SFB: 1.22%
SFS: 8.59% (Red/Alt: 3.62% | 4.98%)
LH/RH: 42.11% | 57.89%
------------------------QWERTY (cmini) (0 likes) q w e r t y u i o p [ ] \ a s d f g h j k l ; ' z x c v b n m , . /
MT-QUOTES: Alt: 18.40% Rol: 37.59% (In/Out: 20.22% | 17.37%) One: 2.28% (In/Out: 1.02% | 1.26%) Red: 5.84% (Bad: 0.32%)
SFB: 5.17%
SFS: 12.18% (Red/Alt: 6.43% | 5.75%)
LH/RH: 54.65% | 45.35%
---------------------------------------------
Workman (cmini) (1 like)
q d r w b j f u p ;
a s h t g y n e o i '
z x m c v k l , . /MT-QUOTES: Alt: 20.41% Rol: 42.34% (In/Out: 21.58% | 20.77%) One: 3.03% (In/Out: 1.52% | 1.51%) Red: 8.16% (Bad: 0.91%)
SFB: 2.49%
SFS: 7.73% (Red/Alt: 2.68% | 5.05%)
LH/RH: 48.32% | 51.68%comment 3y ago · link · parent
The letter P in Workman is on the wrong side of the board. If you are making a vowel cluster (or close to one if you leave out A), then P goes opposite of where O and U go.
comment 3y ago · link · parent
QWERTY is an alternating layout. It wasn't designed for comfort. It was designed in the 19th century for a particular purpose that no longer exists (how many documents do you need to prepare that require a non-electric typewriter?)
Changing your keyboard layout does play a big role in relieving hand pain than just shelling out money for boards.
comment 3y ago · link · parent
Introducing Canaria (spanish for "canary"). This version moves the J to make it faster to type in Spanish, without sacrificing English speed or ergonomics.
It's rare for an ergo key layout to be good in two languages. This one is.
55.
Efficient keyboard layout for English and Spanish(github.com ↗)
34 points · by CanaryLayout · 3y ago · 61 comments