Safeguard Docs
Enterprise Software Supply Chain Manager (ESSCM)

AI Remediate

Automated vulnerability remediation powered by Griffin AI

AI Remediate

AI Remediate uses Griffin AI to automatically generate and apply security fixes, reducing remediation time from days to minutes.

How AI Remediate Works

  1. Analysis - Griffin AI analyzes the vulnerability and your codebase
  2. Solution Generation - AI determines the safest upgrade path
  3. Impact Assessment - Breaking changes and compatibility checked
  4. PR Creation - Automated Pull Request with all changes
  5. Your CI - Your own CI runs on the pull request like any other, so your tests, builds and required checks decide whether it can merge

AI Remediate Capabilities

Dependency Upgrades

Griffin AI can automatically:

  • Upgrade vulnerable packages to fixed versions
  • Handle transitive dependency conflicts
  • Update the lockfile in the same pull request (npm; for other ecosystems the manifest is updated and your CI or install reconciles the lockfile)
  • Maintain compatibility with existing code

Configuration Fixes

For configuration-based vulnerabilities:

  • Update security headers
  • Patch insecure defaults
  • Apply recommended settings

Code Modifications

In some cases, Griffin AI can:

  • Replace deprecated function calls
  • Update API usage patterns
  • Apply security patches to code

Using AI Remediate

Single Vulnerability

  1. Navigate to the vulnerability
  2. Click AI Remediate
  3. Review the proposed changes
  4. Click Create Pull Request

Bulk AI Remediate

Fix multiple vulnerabilities at once:

  1. Select vulnerabilities to fix
  2. Click AI Remediate Selected
  3. Griffin AI batches compatible fixes
  4. Review all changes
  5. Create PRs (one per repository)

Page-Level AI Remediate

From the Vulnerabilities page:

  1. Click the AI Remediate button at the top
  2. Griffin AI analyzes all fixable vulnerabilities
  3. Review the comprehensive remediation plan
  4. Approve and create Pull Requests

AI Remediate Settings

Configure automatic fixes in Settings → Automation:

SettingDescription
Autonomous RemediationSwitch automatic fixes on or off. When off, fixes are computed and no pull request is raised.
Fix StrategyCompatible, minor, major, or let AI choose
Other plan typesSet each other plan type to Auto or Manual
Auto-merge pull requestsOff by default. When off, Safeguard never merges a fix pull request.

Safeguard opens pull requests and leaves them for your team to review and merge. Your own CI runs on every pull request, and your repository's branch protection and required reviews apply to it. Safeguard does not run your tests. Gold upgrade pull requests are never auto-merged.

Commits carry the author name safeguard-autofix[bot]. The pull request is opened through the source control connection you set up, so it appears under that connected account. Branches are named devtasks/Safeguard-SH- followed by the task id, and the pull request carries the labels safeguard-sh, security and automated-remediation. Pull requests are opened ready for review, not as drafts.

Supported Ecosystems

Safeguard opens dependency fix pull requests for npm, Yarn, pnpm, pip, Poetry, Pipenv, Maven, Gradle, Go modules, Cargo, Bundler, NuGet and Composer, among others. For npm the lockfile is updated in the same pull request. For the other ecosystems the manifest is updated and your CI or install reconciles the lockfile.

Breaking Change Detection

Fixes are offered in three tiers: compatible, minor and major. A major upgrade is flagged as one that may break your code and needs review.

PR Details

Auto-generated PRs include:

  • Clear title with CVE reference
  • Detailed description of the vulnerability
  • Summary of changes made
  • Breaking change warnings (if any)
  • Links to relevant advisories

Best Practices

  • Require CI checks - Make your tests a required check on the repository so they gate every Safeguard pull request
  • Start with safe fixes - Build confidence gradually
  • Review major changes - Don't auto-merge breaking changes
  • Monitor metrics - Track fix success rate

On this page