Safeguard
Tag

git

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

24 articles

DevSecOps

Push Protection Stops the Next Secret, Not the 500 Already in Your History

Blocking a credential at git push is genuinely good and solves exactly one half of the problem. The other half is every commit you have ever made, and deleting those commits is not the fix either.

Aug 17, 20264 min read
AI Security

Your Git History Already Knows Which AI Wrote Your Code

Coding assistants sign their own work in the commit trailer block. That makes 'how much of this was AI-written' a parsing problem, not a heuristic one — as long as your tooling reads the commit body, which most of it does not.

Aug 13, 20265 min read
Vulnerability Analysis

Git Argument Injection via Crafted SSH URL (CVE-2017-1000...

CVE-2017-1000117 let a malicious repo run code on anyone who cloned it via a crafted ssh:// URL. Impact, affected Git versions, CVSS, and fixes.

Jul 26, 20268 min read
Vulnerability Analysis

Git Remote Code Execution via Malicious .gitmodules Submo...

CVE-2018-11235 let a malicious .gitmodules file hijack Git submodule checkout, executing arbitrary code via post-checkout hooks on clone.

Jul 26, 20267 min read
Security Guides

Detecting Hardcoded Secrets in Code (2026 Guide)

Nearly 24 million secrets leaked to public GitHub in 2024 alone. This guide covers how hardcoded secrets get in, how detection actually works, and how to catch them pre-commit with real commands.

Jul 6, 20266 min read
Tutorials

How to Scan for Secrets in a Git Repository

Find hardcoded API keys, tokens, and credentials in your working tree and full Git history, stop new leaks at commit time, and remediate a secret that has already been pushed.

Jul 4, 20266 min read
DevSecOps

How to Git Pull a Remote Branch (and Check It Out Safely)

A clear guide to git pull remote branch workflows: fetching, checking out a remote branch for the first time, and the tracking setup that avoids surprises.

Jun 29, 20266 min read
Frameworks

gittuf Reaches OpenSSF Incubating: A Forge-Independent Git Security Layer

gittuf was promoted from OpenSSF Sandbox to Incubating in June 2025. We unpack the Reference State Log, policy model, and why it matters for SLSA Source L3.

May 20, 20266 min read
Vendor Comparison

GitGuardian vs TruffleHog: choosing a secrets detection tool in 2026

How GitGuardian and TruffleHog compare on detection accuracy, false positive handling, remediation workflow, and enterprise rollout for secrets scanning programs.

May 12, 20267 min read
DevSecOps

Git Repository URL: How to Find, Copy, and Change It Safely

A Git repository URL is the address Git uses to fetch and push code. Here is how to get your repository URL from the command line and GitHub, plus the security details that matter.

Apr 29, 20266 min read
DevSecOps

How to Git Fetch a Branch (and Why It Matters for Security)

How to git fetch a specific branch, the difference between fetch and pull, and why fetch-then-review is the safer default for teams handling untrusted code.

Apr 29, 20266 min read
Dev Practices

Applying Git Patches Safely

Knowing how to apply a patch in git without breaking your working tree takes more than running git apply once and hoping for the best.

Apr 22, 20266 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.

git — Safeguard Blog