A concrete example — scanning for forbidden flash loan providers:
When your program calls load_current_index() it gets 0, scans ix[0] — sees only attacker_wrapper, no forbidden program → passes. The flash loan happened entirely inside CPI, invisible to your check.