For the complete documentation index, see llms.txt. This page is also available as Markdown.

Security Agents

AI-powered agents for vulnerability remediation and deployment failure analysis; Zero Day Remediation for CVE-based fixes across repos, and Manifest Remediator for Kubernetes and Helm deployment failu

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 (0-day) 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 maxRepos parameter)

  • 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 Harness Supply Chain Security module

Key inputs

Input
Type
Description

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

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

Pipeline configuration

Supported languages

Language
Package Manager
File

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

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

  1. Fetch Logs: Retrieves execution logs from the failed K8sRollingDeploy or HelmDeploy steps via the Harness API.

  2. AI Analysis: Claude AI analyzes the logs to identify the root cause of the deployment failure.

  3. Generate Remediation: Produces a structured YAML file with root cause analysis, recommended fixes, and configuration updates.

Unique characteristics

  • Does not clone a repository; works purely from pipeline execution logs

  • Outputs a YAML file with structured remediation guidance

  • Supports K8sRollingDeploy and HelmDeploy failure types

  • Uses Harness API to fetch pipeline execution details

Key inputs

Input
Type
Description

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

POST-INCIDENT ANALYSIS

The Manifest Remediator is ideal for post-incident analysis. Trigger it automatically when K8s or Helm deployments fail to get immediate, actionable remediation guidance without manual log diving.

Last updated

Was this helpful?