Python Security Best Practices Cheat Sheet
Python Security Best Practices Cheat Sheet
Python Security Best Practices Cheat Sheet
What version of Python are you using? The end of Understand how the requests library utilizes certain security
Python 2 is near—January 1, 2020. If you are using practices so you can get the most out of them. Keep your version of
Python 2 past that date, you leave yourself open to certifi up to date—the requests library uses it to verify certificates.
any emerging security vulnerabilities.
Python management
8. Be careful with string formatting
Security Best
Deterministic builds are important for predictable behavior
in production. However, pinning your dependencies to
Understand the different types of open source licenses and
achieve this leaves you open to security vulnerabilities.
adhere to their terms. Be wary of any project that does not
Practices
Pipenv helps you manage your environment and
have a license; you may not like the terms of the license they
dependencies in a predictable, secure way.
eventually adopt. Over 10% of packages on PyPI fall into this
category.
www.snyk.io