Finding secrets in Python source code
eng.lyft.com
eng.lyft.com
This "try_except_pass" check for example [2], is a great one. It might be rated "Low" severity from a security context. But from a functionality point-of-view, it's high on my list. It masks NameError among many others. You very nearly always want NameError to propagate, lest you conceal a glaring design error.
[1] https://github.com/openstack/bandit
[2] https://github.com/openstack/bandit/blob/430dfceca9cebd7ebe4...
But wait, there's more! 18F is discussing pushing for exactly that. [1] There's also a sorta-recent call on Twitter to figure out interest. [2] Speak up if you think it would be useful!
[1] https://trello.com/c/PTL7z9uU/20-investigate-writing-a-code-...
[2] https://twitter.com/aidanfeldman/status/695670289879928832
"Thanks also to the Dropbox product security team for feedback on docs and signal/noise issues"
Dropbox, as I remember it, is distributed as "encrypted" pyc files and a modified python runtime that decrypts them. This implies that "secrets" are in their python runtime binary.[1]
Makes you wonder what their feedback on signal/noise was,then...perhaps something that kept this from being used to trivially retrieve the keys :)
[1] https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&c...