---
name: iblai-connect-tenable
description: "Read and write Tenable Vulnerability Management data through the Tenable Vulnerability Management API and expose it to an ibl.ai agent as an MCP tool. Use when the user asks an agent to work with Tenable Vulnerability Management data, or to set up a Tenable Vulnerability Management MCP connection on ibl.ai."
metadata:
  kind: guide
---

# Tenable Vulnerability Management connector for AI agents

> A starting point maintained on ibl.ai at https://ibl.ai/developer/connectors/tenable — not part of the iblai/base repository. Checked against Tenable, Inc.'s documentation on October 20, 2026; test it against your own Tenable Vulnerability Management setup before you rely on it.

Tenable Vulnerability Management (formerly Tenable.io) scans networks, cloud and agents for vulnerabilities. It stores assets, vulnerability findings with plugin and VPR data, scans and their results, tags and dashboards.

## Auth & conventions

- **API:** Tenable Vulnerability Management API (REST). JSON REST API at cloud.tenable.com: bulk exports for vulnerabilities and assets (POST /vulns/export, then status and chunk downloads), workbenches for asset lists, scans (create, launch, delete) and tags.
- **Base URL:** https://cloud.tenable.com/
- **Access:** Issued by your administrator. Keys are generated per user account in the customer's Tenable container; what they can read and change follows that user's role and access-control permissions.
- **Auth:** API keys (X-ApiKeys: accessKey; secretKey). Every request carries X-ApiKeys: accessKey=ACCESS_KEY; secretKey=SECRET_KEY;. A user can hold only one valid key pair at a time.
- **Limits:** Requests per minute are set by current platform load; over the limit returns 429 with a retry-after header in seconds. Concurrent export requests are limited, and duplicate exports with the same filters are rejected.
- Keep Tenable Vulnerability Management credentials in environment variables or the ibl.ai credential store. Never print a token in chat and never commit one to a file.
- Destructive or outward-facing calls are marked **Confirm with the user first** — do.

## Reads

- **Vulnerability exports** — POST /vulns/export, poll status, download chunks (50-5,000 assets each, kept 3 days); needs Basic [16] role.
- **Assets** — GET /workbenches/assets (up to 5,000) or the assets export for more.
- **Scans and results** — List scans, their status and results.
- **Tags** — Tag categories and values used to group assets.

## Writes

- **Launch a scan** — POST /scans/{scan_id}/launch; at most 25 active scans per container.
- **Add or remove asset tags** — POST /tags/assets/assignments, which can change scan and access scoping.
- **Delete a scan** — DELETE /scans/{scan_id}; running, paused or stopping scans cannot be deleted. **Confirm with the user first.**

## Expose it to an ibl.ai agent (MCP)

Tenable, Inc. publishes an official MCP server, Tenable Hexa AI MCP server (https://docs.tenable.com/vulnerability-management/Content/getting-started/hexa-AI-MCP.htm). Register it below as-is, or host your own server that wraps the calls in this skill.

First install the ibl.ai platform skills and connect your organization (writes `IBLAI_ORG`, `IBLAI_USERNAME` and `IBLAI_API_KEY` to `.env`):

```bash
npx skills add iblai/base --all
# then, in your coding agent:
/iblai-api-login
```

Every call below sends `Authorization: Api-Token $IBLAI_API_KEY`.

1. **Register the server** — `POST https://api.iblai.app/dm/api/ai-mentor/orgs/$IBLAI_ORG/users/$IBLAI_USERNAME/mcp-servers/` with `name`, `url`, `transport` (`sse` | `websocket` | `streamable_http`) and `auth_type` (`none` | `token` | `oauth2`). Capture the returned `id`.
   - For an API key or service credential use `auth_type=token` with `auth_scope=platform` for one key across the organization, or scope it to a single agent for one key per agent.
2. **Create the connection** — `POST https://api.iblai.app/dm/api/ai-mentor/orgs/$IBLAI_ORG/users/$IBLAI_USERNAME/mcp-server-connections/` with `server`, `scope` (`platform` | `mentor` | `user`), `auth_type`, and either `credentials` + `authorization_scheme` or a `connected_service` id for OAuth. Credentials are masked on read; never send a masked value back.
3. **Enable it on the agent** — `GET https://api.iblai.app/dm/api/ai-mentor/orgs/$IBLAI_ORG/users/$IBLAI_USERNAME/mentors/{agent_id}/settings/`, add `mcp-tool` to `tool_slugs` and the server id to `mcp_servers`, then `PATCH` the full lists back. They are replaced, not merged.

Full reference: https://ibl.ai/developer/platform/mcp/mcp-connections and the `/iblai-api-agent-mcp` skill.

## Example prompts

- "List critical vulnerabilities with exploits on assets tagged Location:NYC"
- "Which assets have not been scanned in the last 30 days?"
- "Summarize new findings from last night's scan by plugin family"
- "Draft a remediation report of the top 10 CVEs by affected asset count"

## Guardrails

- Vulnerability findings list exactly where an organization can be attacked. Restrict keys to least-privilege roles, keep exports inside the organization and log every agent query.
- Request the narrowest Tenable Vulnerability Management scopes or role the task needs, and prefer a read-only credential for agents that only answer questions.
- Return the fields the user asked for, not whole records; do not paste personal data into chat that the user did not request.
- Before any write, show the user exactly what will change and wait for a yes.
- Respect the documented limits above: page through results and back off on rate-limit responses instead of retrying in a loop.

## References

- Tenable API authorization: https://developer.tenable.com/docs/authorization
- Export vulnerabilities reference: https://developer.tenable.com/reference/exports-vulns-request-export
- Use Tenable Hexa AI via MCP Server: https://docs.tenable.com/vulnerability-management/Content/getting-started/hexa-AI-MCP.htm
- Tenable Hexa AI MCP server: https://docs.tenable.com/vulnerability-management/Content/getting-started/hexa-AI-MCP.htm
- This connector on ibl.ai: https://ibl.ai/developer/connectors/tenable
- ibl.ai MCP server connections: https://ibl.ai/developer/platform/mcp/mcp-connections
