Security Guides
In-depth guides and analysis on security guides from the Safeguard engineering team.
5115 articles
Prevent leaked LLM keys: push protection, scanning and spend limits
Most leaked LLM keys come from commits, notebooks and logs. Four layers that stop a leak, limit its cost and make the next one easier to spot.
Preserving incident evidence for 90 days under DFARS 7012
DFARS 7012 asks contractors to preserve images and monitoring data for at least 90 days after a report. How to prepare retention and chain of custody.
Why a commodity malware infection can be an early ransomware warning
CISA lists QakBot, Emotet and Bumblebee as common ransomware precursors. Why a malware cleanup should be treated as a possible ransomware incident.
Precision versus recall: how to pick a detection threshold
Raising a detection threshold buys precision and costs recall. A worked example shows how to choose using cost per extra true finding instead of gut feel.
Before a penetration test: a one page preparation checklist
How to prepare for a penetration test so the time is spent on real findings: scope, test accounts, safety rules, contacts, backups and fix capacity.
Pre-incident legal readiness: a checklist for engineering leaders
Before a breach, line up counsel, contacts, logs, retention switches and vendor terms. A checklist drawn from the breach and ransomware rules.
PowerShell script block logging: what it records and what to protect
Script block logging writes the content of every script block PowerShell runs to the event log. Here is how to enable it and how to keep secrets out of it.
PowerShell execution policy is not a security boundary
Execution policy stops accidents, not attackers. See how scopes and precedence work, what RemoteSigned really does, and which controls to add.
postMessage security: check origin on receive, name it on send
Cross-window messaging is safe only with an exact targetOrigin when sending and an event.origin check when receiving. The rules and a minimal example.
Which PostgreSQL versions are supported, and when to upgrade
PostgreSQL supports each major version for five years. See the end-of-life dates listed on the project page as of 19 October 2026 and plan upgrades.
PostgreSQL sslmode: require versus verify-full explained
sslmode require encrypts traffic but does not stop a man in the middle. Compare all six PostgreSQL sslmode values and pick the right one.
PostgreSQL row level security: basics, bypasses and pitfalls
How PostgreSQL row level security works, who bypasses it (owners, superusers, BYPASSRLS), and a short policy example you can adapt.
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.