# Tenable SC Fixed Vulnerability Trend Builder

> Generate weekly/monthly Fixed Vulnerability Trend reports directly from Tenable Security Center — no dependencies, works offline.

- Type: Skill
- Author: byadler
- License: MIT
- Trust tier: contributed (passed automated validation and a baseline maintainer review)
- Source repository: https://github.com/byadler/tenable-sc-fixed-trend
- Repo state: not archived
- Last push: 2026-08-17T14:44:44Z
- Stars: 5 (a popularity signal, not a safety signal)
- Forks: 1 (a popularity signal, not a safety signal)
- Open issues: 0
- Language: Python
- Health checked at: 2026-11-05T20:35:15.821Z
- Integrations: Tenable
- Domains: platform-operations, vulnerability-management
- Tags: tenable-sc, vulnerability-management, reporting, remediation, trend-analysis
- Date added: 2026-06-21
- Compatible platforms: Claude Code
- Invocation: `/tenable-sc-fixed-trend`
- Listing page: https://exchange.tenable.com/skills/byadler-sc-fixed-trend
- Source file: https://github.com/tenable/cyberagents-exchange/blob/main/skills/byadler-sc-fixed-trend.md

Prove your remediation program is working — with a single command.

Security teams spend enormous effort fixing vulnerabilities, yet struggle to show the trend over time. This tool connects directly to your Tenable Security Center and generates a fully visual, standalone HTML report in minutes — showing exactly how many vulnerabilities your team has fixed, week by week, with zero setup and no internet dependency after the first run.

## What it does

- Pulls **Fixed (Patched)** vulnerability data week by week from Tenable SC via REST API
- Generates a standalone HTML report with interactive Chart.js charts:
  - Stacked bar chart by severity (Critical / High / Medium / Low) across up to 52 weeks
  - Trend line with 4-week moving average
  - Period comparison — Last Week / Last Month / Last Quarter / Last Year
  - Full exportable data table
- Supports filtering by Repository and Asset Tag
- Two modes: CLI script (`sc_trend.py`) and Web UI server (`report_builder.py`)

## How it works

Authenticates to Tenable SC using the REST API (`/rest/token`), then queries `/rest/analysis` with `sourceType: "patched"` and the `lastMitigated` filter using the days-based format (`"0:7"` = last 7 days). Iterates week by week for the selected time range and aggregates severity counts using `tool: "sumseverity"`. Generates a self-contained HTML file with inlined Chart.js for offline viewing.

**Key discovery:** Tenable SC's `lastMitigated` filter uses days (not Unix timestamps) — `"0:7"` means mitigated in the last 7 days.

## Requirements

- Python 3.6+
- Network access to Tenable Security Center
- No pip installs required — Python stdlib only

This is the Markdown version of one of 140 listings on CyberAgents Exchange. The same listing as JSON: https://exchange.tenable.com/api/skills/byadler-sc-fixed-trend.json. The full index and how to read it: https://exchange.tenable.com/llms.txt
