Safeguard
Tag

python-security

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

96 articles

DevSecOps

Python Code Analysis: Tools and Techniques for Secure Code

How static and dynamic Python code analysis catches security bugs before they ship, from Bandit and Semgrep to dependency scanning and taint tracking.

Apr 9, 20255 min read
DevSecOps

Pickling in Python: A Security Guide

Pickling in Python serializes objects to bytes, but unpickling untrusted data can run arbitrary code. Here is how the risk works and how to defend against it.

Mar 18, 20256 min read
DevSecOps

Werkzeug in Python: What Developers Need to Know About Security

Werkzeug powers Flask and countless WSGI apps in Python. Here is how to use it without leaving the interactive debugger or hostname checks open to attackers.

Mar 18, 20256 min read
Security

Can a Code Corrector Actually Make Your Python Safer?

A code corrector fixes style and syntax, but it rarely catches the security bugs that matter. Here is where a Python code corrector helps, where it fails, and what to run alongside it.

Mar 12, 20257 min read
DevSecOps

How to Check Python Code for Security Issues: A Practical Guide

A working method to check Python code for security defects, from static analysis of your own source to scanning the third-party packages you pull in.

Mar 11, 20256 min read
DevSecOps

How to Validate a URL in Python Safely

A practical guide to validating URLs in Python without opening SSRF or injection holes — what the standard library gives you, where it fails, and how to build a safe validator.

Mar 11, 20256 min read
DevSecOps

Python tracemalloc: Finding Memory Leaks and Why It Matters for Security

How to use Python tracemalloc to trace memory allocations, hunt leaks, and understand why unbounded memory growth is a real availability risk.

Feb 19, 20255 min read
DevSecOps

Why Python's eval() Is Dangerous and What to Use Instead

Python eval() runs arbitrary code, and feeding it untrusted input is a remote code execution bug waiting to happen. Here's the risk, how the exploit works conceptually, and safer alternatives.

Feb 18, 20256 min read
Security

How to Use PyPI openpyxl Safely: Security Risks and Fixes

The openpyxl package on PyPI is safe for most workloads, but XML parsing and spreadsheet formula injection deserve attention. Here is what to watch for.

Feb 13, 20255 min read
Open Source Security

PyPI Account Recovery: A Security Model Review

Account recovery is where most identity systems leak security, and PyPI is no exception. A close look at how recovery works today, where the edges are, and what enterprise publishers should plan around.

Mar 14, 20246 min read
Application Security

Deserialization Attacks in Java and Python

Insecure deserialization turns data parsing into code execution. This guide covers deserialization attacks in Java and Python, the gadget chain concept, and practical defenses for both ecosystems.

Dec 5, 20236 min read
Open Source Security

PyPI Mandatory 2FA for Critical Packages: A Turning Point for Python Security

PyPI's decision to require two-factor authentication for critical package maintainers marks a significant step toward securing the Python supply chain.

Feb 10, 20236 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 8) — Safeguard Blog