Safeguard
Tag

python-security

Safeguard articles tagged "python-security" — guides, analysis, and best practices for software supply chain and application security.

96 articles

DevSecOps

Choosing a Python Tool for Security: Scanning and Hardening Python Code

The right Python tool depends on what you are trying to catch: bugs in your own code, vulnerable dependencies, or leaked secrets. Here is how the categories fit together.

Aug 19, 20256 min read
Open Source Security

Dependency Confusion Attacks Five Years Later: Are Enterp...

Five years after Alex Birsan's $130K dependency confusion disclosure, real attacks like PyTorch's torchtriton incident show the flaw is still live. Here's what's actually fixed.

Aug 2, 20256 min read
DevSecOps

How to Choose a Python Code Checker for Secure Code

A Python code checker is more than a linter. Here is how the layers fit together, which open-source tools do what, and where online checkers help and hurt.

Jul 22, 20256 min read
Open Source

Is python-docx Safe? A Security Guide

python-docx reads and writes Word documents in Python. Here is what its security posture actually depends on, especially when you open files you did not create.

Jul 8, 20256 min read
DevSecOps

How to Build a Secure Python URL Validator (and Avoid SSRF)

A Python URL validator has to do more than match a regex. Here is how to validate URLs safely, block SSRF, and pick between urllib, validators, and Pydantic.

Jun 19, 20256 min read
Security

CVE-2022-2309: The lxml NULL Pointer Dereference DoS Explained

CVE-2022-2309 crashes lxml applications through a NULL pointer dereference in iterwalk. Here is the affected version matrix and how to remediate it.

Jun 11, 20255 min read
DevSecOps

Python Pickle Load: A Security Guide

Calling python pickle load on data you do not fully control can execute arbitrary code. Here is why, and what to use instead.

May 27, 20255 min read
DevSecOps

Is python.org Safe? What to Trust and What to Verify

The python.org website itself is the official, safe source for Python. The real risk lives one step downstream, on PyPI, where typosquatted packages wait for a typo.

May 27, 20255 min read
DevSecOps

Advanced Python: The Security-Focused Patterns Senior Developers Should Master

Advanced Python is not about clever one-liners. The patterns that separate senior engineers are the ones that keep code safe: safe deserialization, controlled subprocess calls, and disciplined dependency use.

Apr 30, 20256 min read
Security

flask-security-too: What It Is and How to Use It Securely

flask-security-too is the maintained successor to Flask-Security, giving Flask apps authentication, roles, and account features out of the box. Here is what it provides and how to configure it safely.

Apr 22, 20255 min read
DevSecOps

How to Open Python on Mac (and Do It Securely)

Recent macOS versions ship without Python at all, so opening Python on a Mac now means installing it yourself — and doing that safely matters more than most guides admit.

Apr 16, 20256 min read
DevSecOps

Tornado Python Security: Hardening Your Async Web App

A security-focused guide to the Tornado Python web framework, covering the cookie-parsing DoS, secure cookie configuration, and safe deployment patterns.

Apr 9, 20256 min read

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.

python-security (Page 7) — Safeguard Blog