49 ms·
Is there a language that has powerful tools for dealing with timing attacks and can facilitate correctness proofs?
by stcredzero 11y ago
Is there a language that has powerful tools for dealing with timing attacks and can facilitate correctness proofs?
- TheMagicHorsey 11y agoOcaml
- sbierwagen 11y agoIsn't ocaml garbage collected? Won't the GC pauses leak timing info?
- bmm6o 11y agoIf you are generating different amounts of garbage depending on your secrets, that's already showing up as leaked timing information.
- nickpsecurity 11y agoYou can deal with timing attacks using Kemmerer's Shared Resource Matrix to find those and other covert channels. Then, you just look at the bandwidth of them along with design alternatives that don't leak timing. You can sometimes make the timing predictable or non-data-driven at interface level to nullify that. An example comes from military-grade stuff way back that transmitted in fixed-length, fixed-rate packets. Markus Ottela added that to Tinfoil Chat at my recommendation. Far as correctness proofs, a combo of Ada 2012 with Design-by-Contract and SPARK is probably best at that. Far as app level, just program in a functional style with abstract state machines. Make it more concrete and detailed, replicating analysis or tests at each level. Eventually, you run the code checkers on the result and throw in some fuzz testing. No easy route, though, that I'm aware. Highly assured software and system design is a painstaking process. Avoiding risky stuff, defining all success/fail traces, failing safe, and static analysis to preempt bugs are the strongest route. Plus source-to-object correspondence to be sure compiler didn't eliminate safety checks or introduce problems. Spark Pro supports that.