T07 · Tool Hijacking and Spoofing
- Location
scripts/unlimited_split.py:20- Finding
Runtime Patching and Dynamic Execution Bypass Tool Restrictions
- Content
View full analysis
' exec(compile(source, '', 'exec'), mod.__dict__) split_fn = mod.split_sql_file ``` ### Technical Analysis The script reads the source of another locally installed SQL splitter from a hardcoded path, changes its object-count and file-size limits, compiles the modified source, and executes it as a fabricated module. This behavior is explicitly intended to bypass community-edition restrictions. It is not necessary to perform ordinary SQL splitting or conversion. It also violates the trust boundary between the audited package and another installed tool: the effective code executed by this script is not limited to code contained in the audited artifact. The use of: ```python exec(compile(s ...[truncated 2375 chars]- Remediation
View remediation
