Profile picture
Colm MacCárthaigh @colmmacc
, 6 tweets, 2 min read Read on Twitter
Monday mini mini-thread! AWS SideTrail, built by the automated reasoning group here at AWS, is the coolest formal analysis tool I've seen yet, because it catches bugs I've actually written! and the kind of bugs that have escaped careful code review.

aws.amazon.com/blogs/security…
Read the article first! but SideTrail is designed to find and also measure side-channels, which are code-paths that can leak secret data by introducing timing or other side-effects that depend on the secret data (and sometimes attackers can measure the effects).
With SideTrail you mark an entry and exit point in your code, and annotate whatever data as "THIS SHOULD BE SECRET" and it rigorously analyzes/simulates execution to tell if you if the code will execute any differently based on the data.
Nearly-all cryptographic code has these kinds of side-channels, most software implementations of AES for example, and it's the basis for Lucky13 and other issues. But eyeballing the code changes it takes to fix is really hard.
For example, OpenSSL fixed Lucky13, but then later introduced LuckyMinus20 - a regression in the same code, which was very hard to spot. SideTrail detects these kinds of issues glaringly, and gives the programmer the measurements they need to decide what to do!
Fits right in with regression tests, like we've done in s2n: now running on every build! Anyway, end of thread, and read the code! It uses Boogie and LLVM and other amazing tricks. github.com/awslabs/s2n/tr…
Missing some Tweet in this thread?
You can try to force a refresh.

Like this thread? Get email updates or save it to PDF!

Subscribe to Colm MacCárthaigh
Profile picture

Get real-time email alerts when new unrolls are available from this author!

This content may be removed anytime!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just three indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member and get exclusive features!

Premium member ($30.00/year)

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!