Safeguard
Tag

secure-coding

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

188 articles

Vulnerabilities

Preventing SQL Injection: A Defense-in-Depth Approach

Parameterized queries stop most SQL injection, but the attacks that make it to production usually slip past a single control — here's the layered defense that catches the rest.

Mar 18, 20256 min read
Security

What Is a Security Development Model and How Do You Run One?

A security development model bakes threat modeling, code review, and testing into every stage of the SDLC instead of bolting security on at the end. Here is how the model works in practice.

Mar 11, 20256 min read
Security

A Practical Race Condition Example (and How to Fix It)

A race condition example is easiest to understand through a bank-balance check-then-act bug. Here is the anatomy, the exploit, and three ways to close it.

Mar 11, 20256 min read
Security

Use-After-Free Vulnerability: How It Works and How to Prevent It

A use-after-free vulnerability happens when a program keeps using memory it already released. Here is why it is dangerous, how attackers exploit it, and how to catch it.

Mar 11, 20256 min read
Security

What Is This Code? How to Read and Secure Unfamiliar Source

A practical method for answering "what is this code?" when you inherit an unfamiliar file, plus how to spot the security problems hiding inside it.

Mar 11, 20256 min read
AppSec

How to Avoid SQL Injection: A Developer's Guide

To avoid SQL injection, never build queries by concatenating user input, use parameterized queries everywhere, and treat every input as untrusted. Here's the defensive playbook.

Mar 4, 20257 min read
AppSec

SAST Definition: What Static Application Security Testing Actually Means

The SAST definition, in plain terms: analyzing source code for vulnerabilities without running it. Here is how it works, what it catches, and where it falls short.

Feb 27, 20255 min read
Security

Source Code Auditing: How to Find Bugs Before Attackers Do

Source code auditing is the systematic review of code for security flaws. Here is how to run one, where automation fits, and what humans still do better.

Feb 27, 20256 min read
Security

Code Quality Analysis and Security: Why Clean Code Is Safer Code

Code quality analysis and security testing overlap more than teams realize. Here is how measuring quality catches whole classes of vulnerabilities early.

Feb 25, 20256 min read
Security

What Does CWE Stand For? Common Weakness Enumeration Explained

CWE stands for Common Weakness Enumeration, a community catalog of software and hardware weakness types. Here is what it is and how it differs from CVE.

Feb 24, 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
Vulnerabilities

Fixing XXE in Java: A Parser-by-Parser Hardening Guide

A parser-by-parser XXE fix for Java, covering DocumentBuilderFactory, SAXParser, XMLInputFactory, TransformerFactory, and the XML libraries that still ship unsafe defaults.

Feb 18, 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.

secure-coding (Page 15) — Safeguard Blog