How to turn legacy remediation playbooks into AI agents and share them with everyone
Most remediation knowledge remains locked in dusty playbooks. At Tenable, we believe in democratizin 2026-12-1 14:0:0 Author: www.tenable.com(查看原文) 阅读量:8 收藏

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.

Key takeaways

  1. Agentic AI is ideally suited for streamlining, scaling, and accelerating remediation, especially for IaC security findings. Unlike rigid legacy remediation playbooks, AI agents can read code, deeply analyze policies, and autonomously draft fixes.
  2. When using AI agents to automate remediation, security teams should route their fixes through standard pull requests so that humans can review and roll them back if necessary.
  3. By converting manual remediation processes into shareable AI skills and publishing them to platforms like the CyberAgents Exchange, security teams can democratize fixes and help their peers in other organizations eliminate backlogs.

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.

Why remediation is an ideal use case for agentic AI

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: 

  • Detect your IaC security issues.
  • Help you prioritize them.
  • Flag the violated policies.
  • Point at the exact files and resources impacted.
  • Detail what “right” looks like by prescribing the fixes.

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. 

How agentic remediation works in practice: The evidence

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: 
 

Tenable IaC Finding to PR skill workflow


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

Tenable IaC Finding to PR skill remediation findings

A GitHub pull request listing four cloud security findings, each linked to the Tenable console

First walkthrough: Closing SSH to the internet without inventing values

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

Second walkthrough: Three findings, one bucket, zero renamed resources

What the agent did: It closed three findings on a single S3 bucket: 

  1. Missing AWS Key Management Service (KMS) encryption
  2. Missing a multi-factor authentication (MFA) delete key, which helps prevent accidental bucket deletions
  3. Missing enforcement of encryption in transit

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: 

  1. A KMS key with rotation and server-side encryption
  2. Versioning with MFA delete
  3. A bucket policy that denies non-HTTPS access, without editing or renaming the bucket itself. 

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.

Remediation knowledge should become an open, shareable asset

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.

7 best practices for agentic remediation

  1. Start with your most repeated IaC fixes. Pick the three misconfiguration policies your teams fix most often, such as publicly exposed storage, open management ports, or missing encryption, and create agentic AI skills designed to automate the remediation process there first, where the fixes are well understood.
  2. Deliver every agent change as a pull request. Keep your existing code review process, branch protection, and continuous integration (CI) checks as the approval gate instead of granting agents direct access to cloud consoles or production environments.
  3. Write explicit boundary rules for your agents. Forbid renaming or deleting resources, hardcoding network ranges, and fabricating keys or account IDs. Allowing actions such as those can trigger critical mistakes that turn a fix into an outage.
  4. Require that a human approve code changes. Have the agent show findings and ask how to group them before it edits a file. Once you feel comfortable with the results you get, edit your agentic workflow to skip that step.
  5. Put guardrails in scripts. Enforce checks such as the correct Git account and commit message rules in a helper script the agent calls, since deterministic code is harder to miss than instructions.
  6. Link every fix back to its finding. Include the Tenable One platform link and policy name in the pull request so reviewers, auditors, and the automated next scan can confirm what changed and why.
  7. Share what works. Publish your remediation skills to a community catalog such as the CyberAgents Exchange, and review what others have built before you write your own.

How Tenable supports agentic remediation

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.

Learn more


文章来源: https://www.tenable.com/blog/share-agentic-ai-skills-remediation-cyberagents-exchange
如有侵权请联系:admin#unsafe.sh