Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Tenable SC: CVE Host Lookup Tool

A simple web-based tool to look up which hosts in your network are affected by a specific CVE, using the Tenable Security Center API.

Node.js Express License


πŸ” What It Does

Enter one or more CVE IDs (e.g. CVE-2025-54918) and the tool will query your Tenable Security Center to return a list of all affected hosts β€” including their IP address, DNS name, NetBIOS name, and Repository ID.

Results can be copied to clipboard or exported to CSV.


image

πŸ“‹ Features

  • πŸ”Ž Single or multiple CVE lookup (comma-separated)
  • πŸ“Š Results displayed in a clean, sortable table
  • πŸ“‹ Copy table data to clipboard
  • ⬇️ Export results to CSV
  • πŸ”’ Secure API key authentication via HTTP headers
  • πŸ–₯️ Responsive UI (mobile-friendly)

🧰 Tech Stack

Layer Technology
Backend Node.js + Express
Frontend Vanilla JS + HTML/CSS
HTTP Client Axios
Config dotenv

βš™οΈ Requirements

  • Node.js v18 or higher
  • Access to a Tenable Security Center instance
  • Tenable SC API Access Key and Secret Key

πŸš€ Installation & Setup

1. Clone the repository

git clone https://github.com/tint-us/tenvul.git
cd tenvul

2. Install dependencies

npm install

3. Configure environment variables

Create a .env file in the root directory:

# Your Tenable Security Center hostname or IP (include https://)
TENABLE_HOST=https://your-tenable-sc-host

# Tenable SC API port (default: 443)
TENABLE_PORT=443

# Your Tenable SC API credentials
ACCESS_KEY=your_access_key_here
SECRET_KEY=your_secret_key_here

# Port for this web app (default: 3000)
PORT=3000

⚠️ Never commit your .env file to Git. It contains sensitive credentials.

4. Run the application

npm start

The app will be available at: http://localhost:3000


πŸ“– Usage

  1. Open the app in your browser at http://localhost:3000
  2. Enter a CVE ID in the input field
    • Single CVE: CVE-2025-54918
    • Multiple CVEs: CVE-2025-12429,CVE-2025-12432,CVE-2025-12433
  3. Click "Query Host Terdampak" or press Enter
  4. View results in the table
  5. Use πŸ“‹ Copy Data or ⬇️ Export CSV to save the results

πŸ“ Project Structure

teenvul/
β”œβ”€β”€ server.js          # Express backend β€” handles API proxy to Tenable SC
β”œβ”€β”€ package.json       # Project metadata and dependencies
β”œβ”€β”€ .env               # Environment variables (NOT committed to Git)
β”œβ”€β”€ .gitignore         # Files excluded from Git
└── public/
    └── index.html     # Frontend UI (single-page app)

πŸ”Œ API Endpoint

POST /api/query

Queries Tenable SC for hosts affected by the given CVE(s).

Request body:

{
  "cveID": "CVE-2025-54918"
}

Success response:

{
  "success": true,
  "cveID": "CVE-2025-54918",
  "hosts": [
    {
      "ip": "192.168.1.10",
      "dnsName": "server01.local",
      "netbiosName": "SERVER01",
      "repositoryID": "1"
    }
  ]
}

Error response:

{
  "success": false,
  "error_msg": "Connection or API Error: ...",
  "error_code": -1
}

πŸ” Security Notes

  • This tool uses NODE_TLS_REJECT_UNAUTHORIZED=0 at startup to allow self-signed certificates β€” common in internal/lab Tenable SC deployments. Do not use this in production environments exposed to the public internet.
  • API credentials are stored in .env and sent via x-apikey header β€” never exposed to the frontend.

πŸ› Troubleshooting

Problem Solution
Server configuration missing error Check that your .env file exists and has all required variables
Connection or API Error Verify TENABLE_HOST is reachable from this server, including correct port
Empty results The CVE may not have affected hosts in your environment, or the CVE ID format is wrong
Self-signed cert errors The app already disables TLS verification by default β€” check your Tenable SC host URL

🀝 Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request on GitHub.

Repository: github.com/tint-us/tenvul


πŸ“¬ Contact

tint-us Β· tintus.ardi@gmail.com Β· github.com/tint-us


πŸ“„ License

MIT License β€” feel free to use, modify, and distribute.

About

A web-based CVE host lookup tool built for Tenable Security Center API. Query affected hosts by CVE ID with paginated results and CSV export.

Topics

Resources

Stars

14 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages