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
- Analysis - Griffin AI analyzes the vulnerability and your codebase
- Solution Generation - AI determines the safest upgrade path
- Impact Assessment - Breaking changes and compatibility checked
- PR Creation - Automated Pull Request with all changes
- 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
- Navigate to the vulnerability
- Click AI Remediate
- Review the proposed changes
- Click Create Pull Request
Bulk AI Remediate
Fix multiple vulnerabilities at once:
- Select vulnerabilities to fix
- Click AI Remediate Selected
- Griffin AI batches compatible fixes
- Review all changes
- Create PRs (one per repository)
Page-Level AI Remediate
From the Vulnerabilities page:
- Click the AI Remediate button at the top
- Griffin AI analyzes all fixable vulnerabilities
- Review the comprehensive remediation plan
- Approve and create Pull Requests
AI Remediate Settings
Configure automatic fixes in Settings → Automation:
| Setting | Description |
|---|---|
| Autonomous Remediation | Switch automatic fixes on or off. When off, fixes are computed and no pull request is raised. |
| Fix Strategy | Compatible, minor, major, or let AI choose |
| Other plan types | Set each other plan type to Auto or Manual |
| Auto-merge pull requests | Off 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