Secure the Snakes! Tips for Secure Development in Python
summary
Focus is on concrete steps: scan dependency trees with sneak.io dependency tree or similar tools, track transitive packages and known CVEs, and prefer automation over manual review. Use built-in auth (Django auth or social auth), enable two‑factor, and add login throttling (e.g. django defender). Treat uploads and deserialization as hostile—don't pickle untrusted data and beware numpy/pickle combos—and avoid typo‑squatting by verifying package names (recall the jellyfish incident). Enable PyPI 2FA and API tokens and practice regular hacking exercises.
AI-written summary · about
