Repository navigation
Audit fixes (2026-11-18) - #1
Merged
Merged
Conversation
Shared nessus_common.py holds the one 106-column spec and a streaming parser. Repeated CWE/BID values are kept, over-long XLSX cells are truncated with a visible note, every host reaches the SQL path, and formula-leading cells are neutralised. The converters accept file paths and only fall back to the picker when none are given, so they run unattended. nessus_to_sql.py now creates tables as the README says, validates existing ones, escapes identifiers and values, keeps TLS validation on, and runs one transaction per file with --dry-run to preview. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DTrMSXN5wTpRJ4nUgD1bRi
Timeouts on every call, credentials from getpass or environment variables, safe output names, 429 retry, failed-export detection, partial-download check, and --all/--scan-id/--output-dir. No work runs at import time. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DTrMSXN5wTpRJ4nUgD1bRi
111 tests built on synthetic .nessus files and fake SQL and HTTP layers. The workflow runs them on every push and pull request. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DTrMSXN5wTpRJ4nUgD1bRi
Document command-line use, exit codes, the SQL options and their limits, and bound dependency versions. Replace the old example server address. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DTrMSXN5wTpRJ4nUgD1bRi
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DTrMSXN5wTpRJ4nUgD1bRi
The unique index with IGNORE_DUP_KEY keyed on six columns, coarser than the 106-column dedupe, so distinct compliance results and hosts without a host-ip collapsed to one row with only a server warning. Remove it and make re-imports idempotent per file instead: a <table>_import_log keyed by file name and SHA-256, written in the same transaction, with logged files skipped. The summary now reports rows inserted, not rows sent, and existing tables with columns too narrow for joined CWE/BID/MSKB values get a warning with the ALTER statements to run. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DTrMSXN5wTpRJ4nUgD1bRi
Skip the Content-Length size check when the response is content-encoded, tolerate a non-numeric Content-Length, and make the export wait configurable (--export-timeout, default 900 s; --poll-interval). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DTrMSXN5wTpRJ4nUgD1bRi
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DTrMSXN5wTpRJ4nUgD1bRi
Ubuntu 26.04 runners have no Python 3.9 build, so setup-python failed and fail-fast cancelled every other job. 3.9 stays covered on windows-latest. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DTrMSXN5wTpRJ4nUgD1bRi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes from a code audit on 2026-11-18.
Changes
Notes
Tests: 128 pytest pass. The SQL import now dedupes through an import log instead of IGNORE_DUP_KEY, so distinct findings that share host/plugin/port are kept. Not yet run against a real SQL Server or Tenable.io. Land together with the Tenable_Scan_Field_Reference PR.
🤖 Generated with Claude Code
https://claude.ai/code/session_01DTrMSXN5wTpRJ4nUgD1bRi