Security Guides
In-depth guides and analysis on security guides from the Safeguard engineering team.
5115 articles
Purpose limitation in code: tag data with the reason you hold it
GDPR purpose limitation means reusing data only for compatible purposes. How to tag fields and queries by purpose so reuse is visible and reviewable.
Publishable, secret or restricted API key: which goes where?
Payment platforms issue several key types. Which are safe in front end code, which belong on the server, and why restricted keys limit the damage.
Public postmortem for customers: what to publish and what to withhold
Decide what a customer-facing postmortem should include, such as timeline, impact, cause and fixes, and what to keep internal like names and exploits.
Passing user identity between microservices without trusting it blindly
How to carry user context across service calls, why a signature is not an access grant, and how to authenticate the calling service separately.
Keep production personal data out of staging and test databases
Copying production data into staging spreads personal data to weaker environments. Safer options: synthetic data, masked subsets and controlled access.
Press and social media questions during a security incident
How to route reporter and social media questions during a security incident: one spokesperson, a short script, no off the record talk, fast corrections.
How presigned URLs work and how to use them without leaking data
A presigned URL grants access to anyone holding it until it expires. Set short lifetimes, scope them narrowly and keep them out of logs. Rules inside.
What evidence should you save before cleaning up a supply chain incident?
Save logs, lockfiles, artifacts and audit exports before you delete or rebuild anything. Here is the short list, and why the order of work matters.
Prepare for a smart contract audit: a checklist that saves time
What to have ready before an independent contract review: frozen code, a written spec, tests, an access control map and a response plan.
Precision or recall: which scanner accuracy number should you ask for?
Precision tells you how many findings are real. Recall tells you how many real issues were found. Ask for both, per category, before trusting a review.
polyfill.io (2024): the risk of scripts from a domain you do not own
Sansec reported that polyfill.io began redirecting mobile users after a domain sale. What was reported, and how to audit third-party scripts on your site.
What does a security gate override rate tell you?
The override rate shows how often teams bypass a security gate. Low can mean a healthy gate or a hidden workaround. Here is how to read it and act.
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.