News for hackers. Stuff that matters.
Re:Google says Rowhammer attacks are gaining range as RAM is... by karmicthreat on Friday May 28, 2021 @02:36PM (#27318960)
Is there any evidence of Rawhammer being used in a successful attack in the wild?
Re:Google says Rowhammer attacks are gaining range as RAM is... by babypuncher on Friday May 28, 2021 @02:41PM (#27319014)
According to the article, no.

What I want to know is if this works on ECC memory. I'm guessing not, which makes the "vulnerability" even more of a non-issue in mission-critical applications that likely moved to ECC a while ago.

Re:Google says Rowhammer attacks are gaining range as RAM is... by campuscodi on Friday May 28, 2021 @02:45PM (#27319059)
Yes, Rowhammer can bypass ECC. Forgot to include this in the article, mainly because there's so much Rowhammer research.

See here: https://www.vusec.net/projects/eccploit/

Re:Google says Rowhammer attacks are gaining range as RAM is... by staticassertion on Friday May 28, 2021 @04:42PM (#27320237)
It's really worth noting that ECC does impact Rowhammer effectiveness, even if it is not enough to prevent the attack 100% of the time.
Re:Google says Rowhammer attacks are gaining range as RAM is... by GekkePrutser on Friday May 28, 2021 @05:36PM (#27320820)
But as part of this it'll also have a high chance of triggering a system shutdown due to ECC mismatch, right? So in most cases it can't be exploited for things other than DoS.
Re:Google says Rowhammer attacks are gaining range as RAM is... by staticassertion on Friday May 28, 2021 @05:49PM (#27320938)
ECC won't necessarily shut the system down as it can actually repair single bit errors, and mismatches can be monitored for as well. But your point stands - for an attacker to do damage they'll likely end up flipping bits in unintended ways first.
Re:Google says Rowhammer attacks are gaining range as RAM is... by CalChris on Friday May 28, 2021 @04:31PM (#27320127)
Can Rowhammer bypass ECC and not be detected by an hw_event_mc_err_type? I don't think so. Why would someone have ECC without a sufficiently sophisticated driver?
Re:Google says Rowhammer attacks are gaining range as RAM is... by chmod775 on Friday May 28, 2021 @04:44PM (#27320250)
> Can Rowhammer bypass ECC and not be detected by an hw_event_mc_err_type?

Afaik, yes it can (unless you're counting HW_EVENT_ERR_CORRECTED). They specifically try to get 1 or 3 bit flips, never 2.

See here: https://www.vusec.net/projects/eccploit/

(yes, that's the same link)

Re:Google says Rowhammer attacks are gaining range as RAM is... by a1369209993 on Friday May 28, 2021 @04:51PM (#27320344)
> Can Rowhammer bypass ECC and not be detected by an hw_event_mc_err_type?

It's definitely possible in theory. You'd need four bit flips rather than three, so you'd probably need more time between accesses to the victim row, but thats a quantitative improvement at best. This can be mitigated by using different ECC bit encodings per memory location[0], so hammered data, with correct ECC for its row, always has wrong ECC values for the adjacent rows, but I don't think anyone does that.

0: This is important in order to make fake ECC memory, which uses a (cheap) combinatoric circuit in place of a (more expensive) ninth DRAM chip, not work, so it should be happening even without Rowhammer, but AFAIK it isn't.

Re:Google says Rowhammer attacks are gaining range as RAM is... by marcan_42 on Saturday May 29, 2021 @01:20AM (#27323227)
We should be using memory encryption with random per-boot keys to prevent cold boot attacks, which would also solve the issue. Then the software doesn't know how its data maps to the encrypted data at the RAM. Rows may map 1:1, but you wouldn't know which bits you're targeting.
Re:Google says Rowhammer attacks are gaining range as RAM is... by a1369209993 on Saturday May 29, 2021 @04:02PM (#27327863)
Good point. Although memory encryption is much more useful if applied at the CPU rather than the memory controler (which would need a way to turn encryption off for DMA regions, since the memory controller doesn't know the key), there's no actual reason why you couldn't do it in the memory controller, if you trust all the hardware with DMA access, or (more plausibly) trust the memory controller to limit that access properly.
Re:Google says Rowhammer attacks are gaining range as RAM is... by danielheath on Friday May 28, 2021 @07:56PM (#27321899)
> Why would someone have ECC without a sufficiently sophisticated driver?

Have you, personally, tested your servers to make sure the driver correctly handles bit errors? Can't say I have.

Re:Google says Rowhammer attacks are gaining range as RAM is... by hedora on Friday May 28, 2021 @11:17PM (#27322762)
Last time I tested such things, they handled ECC correctly (x86 and arm).
Re:Google says Rowhammer attacks are gaining range as RAM is... by mhh__ on Friday May 28, 2021 @02:44PM (#27319044)
Apparently it does but I haven't tested it myself
Re:Google says Rowhammer attacks are gaining range as RAM is... by kuschku on Friday May 28, 2021 @04:51PM (#27320336)
Wasn’t there a rowhammer based website for rooting android phones in the past?
Re:Google says Rowhammer attacks are gaining range as RAM is... by snapcaster on Friday May 28, 2021 @02:43PM (#27319039)
Good question. what would the evidence be? memory errors? i wonder how easy to detect these would be
Re:Google says Rowhammer attacks are gaining range as RAM is... by atatatat on Friday May 28, 2021 @03:03PM (#27319232)
Is there any evidence it's not just a matter of time before there is?
Re:Google says Rowhammer attacks are gaining range as RAM is... by mhh__ on Friday May 28, 2021 @04:28PM (#27320091)
Rowhammer, Spectre, etc. are all very high-information attacks which strike me as not worth the effort for run of the mill adversaries. Three-letter agencies, however, I suspect might have played around with them - if a cloud vendor is secure, and they need a way to un-secure it, they have the resources to get microarchitectural researchers sworn to secrecy to make these attacks work.
Re:Google says Rowhammer attacks are gaining range as RAM is... by staticassertion on Saturday May 29, 2021 @02:34AM (#27323461)
TBH I think right now it's more of an incentive thing. Consider that:

a) Attackers would have to develop the POC. This will require a somewhat different skillset than typical exploitation, so there's effort involved.

b) Rowhammer is best for privilege escalation. For desktop users (where the most money is) privesc is already pretty trivial - no need for fancy exploits, you can pretty much just ask for root or use a much more straightforward exploit.

c) Exploit devs don't typically like a lot of attention. You don't want to be the first person selling rowhammer exploits unless you can charge out the ass for it, because you're gonna get way more attention for it.

These incentives aren't super technical, they're mostly market driven, and it's why we don't see fancier attacks in practice, even if they're practical. As one attacker I know was saying to me, they wish they had an excuse to do the fancy thing, but it's never worth the investment when you can own boxes way more easily. Another hacker said "I don't want a Krebs article on me because I did something clever".

NSA's incentives are not super difference, except they're not as directly financial. They also have crazy resources to fuck around with this stuff, so it would make sense that they'd demo it in a lab. Would they actually deploy it? Eh, doubtful. Against another advanced defender rowhammer should be pretty detectable by monitoring ECC metrics, and again, why would you do something fancy when you can just buy 0days - the USG purchases hundreds a year from private companies and develops more themselves.

Re:Google says Rowhammer attacks are gaining range as RAM is... by karmicthreat on Friday May 28, 2021 @03:45PM (#27319663)
Rowhammer has been known of for over 5 years.
Re:Google says Rowhammer attacks are gaining range as RAM is... by ygjb on Friday May 28, 2021 @06:33PM (#27321309)
You don't need to have a practical attack for something to be a credible threat that needs to be addressed in a multi-tenant system (like say, cloud providers).