You’re assuming that a resident attacker is able to execute code on the same host that they use to manage this data.
This isn’t some kiosk at a cafe mate.