Security Agents
AI-powered agents for vulnerability remediation and deployment failure analysis — Zero Day Remediation and Manifest Remediator.
Harness Security agents help teams identify and remediate vulnerabilities and deployment failures using AI. The Zero Day Remediation agent scans for and fixes critical CVEs across multiple repositories, while the Manifest Remediator analyzes Kubernetes and Helm deployment failures to generate remediation YAML.
Zero Day Remediation Agent
The Zero Day Remediation agent identifies and remediates critical vulnerabilities across multiple repositories. It scans codebases and vulnerability databases, validates package safety, and generates fix PRs to downgrade or upgrade to safe versions.
Capabilities
Scans across multiple repositories (controlled by
maxReposparameter)CVE-based or component-based remediation
Validates package rollout states, targeting rules, and activity patterns
Supports Java, JavaScript, TypeScript, Python, Go, and C#
Creates fix PRs with version updates to safe releases
Requires the Harness Supply Chain Security module
Key Inputs
anthropicKey
secret
Anthropic API key for Claude AI
harnessKey
secret
Harness API key for platform operations
repoAccessToken
secret
Token for repository access across orgs
cveId
string
CVE identifier to remediate (e.g., CVE-2024-1234)
componentName
string
Package/component name (alternative to cveId)
fixedVersion
string
Target safe version to upgrade/downgrade to
currentVersion
string
Current vulnerable version
harnessOrgId
string
Harness organization identifier
harnessProjectId
string
Harness project identifier
targetBranch
string
Branch to target for PRs (default: main)
maxRepos
string
Maximum number of repositories to scan (default: 0 = unlimited)
branchPrefix
string
Prefix for fix branches (default: fix/)
authorName
string
Git author name for commits (default: AI Workflow)
authorEmail
string
Git author email for commits (default: ai-workflow@harness.io)
search
string
Filter repositories by name pattern
Supported Languages
Java
Maven / Gradle
pom.xml / build.gradle
JavaScript
npm / yarn
package.json
TypeScript
npm / yarn
package.json
Python
pip / poetry
requirements.txt / pyproject.toml
Go
go modules
go.mod
C#
NuGet
*.csproj
Pipeline Configuration
SUPPLY CHAIN SECURITY REQUIRED
The Zero Day Remediation agent requires the Harness Supply Chain Security module. Ensure this module is enabled in your account before configuring this agent.
Manifest Remediator Agent
The Manifest Remediator agent analyzes Kubernetes and Helm deployment failures by examining execution logs from failed pipelines. It uses AI to identify root causes and generates a manifest_remediation_results.yaml file with specific fixes and step-by-step remediation instructions.
How It Works
Fetch Logs — Retrieves execution logs from the failed
K8sRollingDeployorHelmDeploysteps via the Harness API.AI Analysis — Claude AI analyzes the logs to identify the root cause of the deployment failure.
Generate Remediation — Produces a structured YAML file with root cause analysis, recommended fixes, and configuration updates.
Key Inputs
anthropicKey
secret
Anthropic API key for Claude AI
harnessKey
secret
Harness API key for fetching execution logs
harnessExecutionId
string
Failed pipeline execution ID
harnessPipelineId
string
Pipeline identifier
harnessBaseUrl
string
Harness API base URL
harnessProjectId
string
Harness project identifier
harnessOrgId
string
Harness organization identifier
harnessAccountId
string
Harness account identifier
Pipeline Configuration
Example Output
Last updated
Was this helpful?