End goal
End goal
Posted Jul 4, 2024 23:56 UTC (Thu) by josh (subscriber, #17465)In reply to: End goal by comex
Parent article: Another try for getrandom() in the vDSO
Posted Jul 5, 2024 4:17 UTC (Fri)
by NYKevin (subscriber, #129325)
[Link] (5 responses)
The only case I can think of where this could possibly work is when the application is in cahoots with the VM management plane and intentionally causes VM forks to occur as part of its request handling logic. But in that case, this is trivial: At worst, you have to design your request handling logic to ensure that the fork does not happen at the same time as some delicate crypto code is running (e.g. take a lock). Which you were maybe already doing anyway, since some code in this genre uses a userspace CSPRNG instead of getrandom (for the performance reasons cited in the article), and that absolutely requires you to be aware of forking and mitigate it.
Posted Jul 5, 2024 5:51 UTC (Fri)
by comex (subscriber, #71521)
[Link] (4 responses)
As for why the VM forks in the first place, well, as one possibility, it could be a desktop VM which the user manually chose to fork (while some service was talking to the network in the background). Some desktop VM software offers cloning as an option. Or even without cloning, the risks seem similar if the VM is just restored from a snapshot.
Admittedly, waiting for a desktop VM to be forked/restored seems like a pretty niche thing for an attacker to do, but not completely unrealistic. I'm sure there are people who make a habit of regularly restoring their VMs from snapshot.
Posted Jul 5, 2024 20:28 UTC (Fri)
by NYKevin (subscriber, #129325)
[Link] (3 responses)
That would require the application to be originally deployed in a broken state where it randomly drops TCP connections for no apparent reason. Maybe there are some people who do that, but I wouldn't want to work there.
Posted Jul 5, 2024 20:43 UTC (Fri)
by comex (subscriber, #71521)
[Link] (2 responses)
Posted Jul 5, 2024 23:28 UTC (Fri)
by NYKevin (subscriber, #129325)
[Link] (1 responses)
Posted Jul 5, 2024 23:31 UTC (Fri)
by NYKevin (subscriber, #129325)
[Link]
End goal
End goal
End goal
End goal
End goal
End goal