Skip to content

chore: codebase audit fixes + AUDIT.md#325

Merged
andres-linero merged 1 commit intomainfrom
chore/audit-fixes
Mar 8, 2026
Merged

chore: codebase audit fixes + AUDIT.md#325
andres-linero merged 1 commit intomainfrom
chore/audit-fixes

Conversation

@msaad00
Copy link
Owner

@msaad00 msaad00 commented Mar 8, 2026

Summary

Findings from a targeted audit of scanner architecture, cloud modules, and output/MCP layer.

Bugs fixed:

  • scanners/__init__.py: duplicate logger/_logger both pointing to same object — removed logger, unified to _logger
  • scanners/__init__.py: import math was declared inside CVSS parsing functions — moved to top-level
  • output/__init__.py: Azure + GCP CIS benchmark results were computed and stored on the report, but never serialized to JSON output — fixed
  • mcp_server.py: cis_benchmark tool description said "AWS or Snowflake only" — updated to include Azure, GCP, Databricks

New:

  • AUDIT.md: delta-trackable audit document covering scanner architecture, cloud modules, output/API/MCP layer, naming consistency, test coverage gaps, and a full scanner pipeline diagram

Test plan

  • pytest tests/test_databricks_security.py — 32/32
  • pytest tests/test_core.py — passes (pre-existing version_sync failure is unrelated to this branch)
  • ruff + ruff-format hooks pass

- scanners/__init__.py: remove duplicate logger (logger/\_logger were same
  object), move import math to top-level, fix one remaining old logger call
- output/__init__.py: Azure + GCP CIS benchmark data was computed but never
  serialized to JSON output — fixed
- mcp_server.py: update cis_benchmark tool description to include Azure,
  GCP, and Databricks
- AUDIT.md: delta-trackable audit document covering scanner architecture,
  cloud modules, output/API/MCP layer, naming, test gaps, and scanner
  architecture diagram
@msaad00 msaad00 requested a review from andres-linero as a code owner March 8, 2026 00:42
@github-actions
Copy link
Contributor

github-actions bot commented Mar 8, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@andres-linero andres-linero merged commit b76f1ad into main Mar 8, 2026
16 checks passed
@andres-linero andres-linero deleted the chore/audit-fixes branch March 8, 2026 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants