Hi @xzxixin,
Thank you for your input. You are correct; the rulebook states that an upgrade card attached to an enemy is still controlled by the owner of that card. We will update our engine to align with this rule.
Thank you again for reporting this bug!