Skip to content

Python: Handle dynamic module exports - #22354

Open
theinfosecguy wants to merge 1 commit into
github:mainfrom
theinfosecguy:python-undefined-export-getattr
Open

Python: Handle dynamic module exports#22354
theinfosecguy wants to merge 1 commit into
github:mainfrom
theinfosecguy:python-undefined-export-getattr

Conversation

@theinfosecguy

Copy link
Copy Markdown
Contributor

Fixes #20764.

Avoid reporting undefined exports when a Python 3.7+ module provides them through a callable module-level __getattr__.

Added coverage for valid dynamic exports and non-callable or incorrectly scoped hooks.

Tests:

  • Focused query tests
  • Full Variables test suite
  • Python 2 and Python 3 regression tests
  • Reporter project validation

@theinfosecguy
theinfosecguy marked this pull request as ready for review August 16, 2026 08:20
@theinfosecguy
theinfosecguy requested a review from a team as a code owner August 16, 2026 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

False positive Explicit export is not defined for item backed by __getattr__

1 participant