Most remediation knowledge remains locked in dusty playbooks. At Tenable, we believe in democratizing exposure fixes by transforming them into agentic AI skills, MCPs, and AI playbooks, and sharing them publicly via the CyberAgents Exchange. Learn how you can contribute to, and benefit from, this effort.
If AI agents can read code, reason about security policies, and use developer tools, organizations should be leveraging them to clean up chronically backlogged remediation queues. The key for eliminating these bottlenecks is to convert old remediation processes into agentic AI skills, thus automating and accelerating fixes.
But you shouldn’t stop there. Historically, remediation processes have resided in the minds of engineers and in rigid, legacy playbooks. Again thanks to agentic AI, this remediation knowledge can become an asset that gets shared internally with your IT and security teams, as well as externally, for the benefit of your peers in other organizations.
How can you do this? In this blog, we’ll explain how Tenable built an agentic AI skill that automates fixes of infrastructure-as-code (IaC) security findings, and why we chose to share it publicly via the open source CyberAgents Exchange directory. We hope to motivate many colleagues to join in this effort to automate and democratize remediation.
Remediation is an ideal application for agentic AI because it bridges an operational gap between security prioritization and engineering execution. Traditionally, remediation involves a largely manual handoff process: The security team prioritizes findings, opens tickets, and assigns them to the engineering team, which, of course, has different prerogatives. Writing, reviewing, and shipping fixes is only one of engineering’s many responsibilities.
The possibility to streamline this process is a low-hanging fruit for organizations using an AI-powered exposure management platform like Tenable One. Let’s look at IaC specifically, since it’s particularly easy to fix with a few lines of code in a text file.
Our platform’s Tenable One Cloud Exposure domain goes way beyond simply flagging that there’s an issue with a cloud storage bucket.
Tenable One is designed to:
For an engineer, this is a work ticket, but for an agent, it’s a complete instruction set. Fixing an IaC misconfiguration involves editing text that can be diffed, linted, and validated before deploying the fix to the production environment. It’s a task that’s ideally suited for an AI agent. Agentic AI gives you a realistic way to change who drafts the fix, without limiting the process to fixes that someone pre-templated.
To add a safety net, organizations should design the AI agents to deliver their IaC fixes as a pull request, replicating the workflow most developers already use. Engineering teams typically route infrastructure changes through code review. The pull request is a mature, trusted approval mechanism with history, ownership, and rollback built in.
Agentic remediation replaces manual engineering handoffs with a direct pipeline. To test the idea, we built an open-source skill called Tenable IaC Finding to PR, which you can find on the Tenable-powered CyberAgents Exchange, a directory where security practitioners can discover, share, and deploy AI agents, skills, Model Context Protocol (MCP) servers, and multi-agent playbooks.
We ran the Tenable IaC Finding to PR skill end-to-end against a misconfigured Terraform repository connected to Tenable One. The skill consists of a short, plain-language workflow file plus a few reference documents and one helper script. It does four things, in order:

The live run surfaced four open findings. One ranked as a high-severity issue, and three ranked as medium-severity issues.

A GitHub pull request listing four cloud security findings, each linked to the Tenable console
What the agent did: It removed unrestricted inbound Secure Shell (SSH) access from a security group.
How it worked: The finding identified the security group risky_sg in main.tf and the policy against unrestricted inbound internet access. The obvious shortcut would be to hardcode a “safe” network range. That would be a fabricated value, and the skill’s rules forbid it because the agent has no way to know which networks the team actually trusts. Instead, the agent replaced the open range with a variable that has no default, so Terraform’s t apply command wouldn’t be triggered until the team supplied its own ranges for each environment.
# main.tf: before
cidr_blocks = ["0.0.0.0/0"]
# main.tf: after
cidr_blocks = var.allowed_ssh_cidrs
# variables.tf: declared once, no default, open internet rejected variable "allowed_ssh_cidrs" {
type = list(string)
validation {
condition = !contains(var.allowed_ssh_cidrs, "0.0.0.0/0")
error_message = "SSH must not be open to the internet."
}
}
# prod.tfvars / staging.tfvars: set by the team, not the agent
allowed_ssh_cidrs = ["<your VPN or bastion range>"]Fix for an unrestricted inbound SSH finding
What the agent did: It closed three findings on a single S3 bucket:
How it worked: The repository contains two S3 buckets. The findings applied to only one of them: app_logs in storage.tf. The agent matched the resource by its exact name, then added three new configuration resources:
Renaming a Terraform resource forces Terraform to destroy and recreate real infrastructure, so the skill treats it as off-limits.
# Fixes TCS finding b71a4bd4 (Policy: S3 Bucket is not encrypted with KMS).
resource "aws_kms_key" "app_logs" {
description = "KMS key for app_logs S3 bucket encryption"
deletion_window_in_days = 7
enable_key_rotation = true
}
resource "aws_s3_bucket_server_side_encryption_configuration" "app_logs_sse" {
bucket = aws_s3_bucket.app_logs.id
rule {
apply_server_side_encryption_by_default {
sse_algorithm = "aws:kms"
kms_master_key_id = aws_kms_key.app_logs.arn
}
bucket_key_enabled = true
}
}
# Object versioning + MFA delete.
# Fixes TCS finding 40ee774e (Policy: S3 Bucket MFA delete is not enabled).
resource "aws_s3_bucket_versioning" "app_logs_versioning" {
bucket = aws_s3_bucket.app_logs.id
versioning_configuration {
status = "Enabled"
mfa_delete = "Enabled"
}
}
# Enforce encryption in transit (HTTPS only).
# Fixes TCS finding 010582bd (Policy: S3 Bucket encryption in transit is not enabled).
resource "aws_s3_bucket_policy" "app_logs_tls" {
bucket = aws_s3_bucket.app_logs.id
policy = jsonencode({
Version = "2012-10-17"
Statement = [
{
Sid = "DenyInsecureTransport"
Effect = "Deny"
Principal = "*"
Action = "s3:*"
Resource = [
aws_s3_bucket.app_logs.arn,
"${aws_s3_bucket.app_logs.arn}/*"
]
Condition = {
Bool = {
"aws:SecureTransport" = "false"
}
}
}
]
})
}Fixes for three bucket findings without resource naming
Why a defender would miss this: When one resource contains several findings, it’s tempting to delete the block and replace it with a new one, or to make a mistake and fix the wrong bucket. Each new resource in the pull request carries a comment that names the finding it closes, so a reviewer can trace every line back to a policy.
Knowing when not to fix
Notably, there was a fix the agent didn’t make. The same bucket also had a public-read access control list, which showed up in a separate scan view but not in the findings the agent was authorized to act on. The agent didn’t silently widen its scope or invent a finding to match. It reported the discrepancy to us, and we chose to leave it out of this pull request.
That boundary is designed in. The skill guides the agent to only fix findings from our security platform, never to work from memory, and to leave out any fix it isn’t confident about.
Agentic remediation earns your trust with the changes it declines to make as much as with the ones it makes.
The result was a single pull request with a findings table linking each fix back to the Tenable One console, a short risk-and-remediation note per finding, and a reminder that a human must review before merging. All it took for us to go from asking “fix my IaC findings” to a reviewable pull request was one short, guided conversation.
Instead of building a product feature, we created an agentic AI skill that consists of written remediation instructions that specify which findings to trust, how to read a policy as an end state, which changes are never safe, and when to stop and ask.
That type of remediation knowledge usually lives in the heads of engineers and in playbooks that few read. Transformed into an agent skill, this remediation knowledge becomes something you can execute, review, version, and improve.
Converting remediation playbooks into agentic AI skills changes defenders’ mentality in two ways.
First, security work shifts from the finding to the fix. Measuring how many issues you detect matters less than measuring how many actually get fixed. Agents write fixes faster than engineers can review them, so prioritization matters more than ever. Otherwise, we’ve just moved the backlog into code review.
Second, defenders can start to share remediation know-how like open-source software. A skill that safely fixes a generic, common S3 encryption issue for one team is designed to safely fix it for thousands, and every team that encounters an edge case can make it better for the next one.
This is why we listed our skill on the CyberAgents Exchange. The CyberAgents Exchange doesn’t host code. Listings point to each author’s own repository, so you always get code directly from the person or team who wrote it.
CyberAgents Exchange maintainers review every submission before it goes live. Security teams have spent years building remediation workflows and experiments in isolation. Creating a shared, reviewable, and public catalog of remediation skills and workflows can help the entire cyber defender community streamline and automate fixes.
Tenable One is engineered to scan IaC in connected repositories and map each misconfiguration to a named policy, file, and resource, giving an AI agent the precise information it needs to draft a fix. Through their ability to use Tenable One’s MCP server, agents are designed to query those findings directly and link every pull request back to the finding in Tenable One. The CyberAgents Exchange gives practitioners an open place to find, install, and contribute agent skills like this one.