This is exactly why we need regulations that prohibit this. The upcoming EU regulations [0] seem to at least partially cover this, as employment is one of the high risk categories for AI systems. What that means in detail is still to be seen, but at least the groundwork is already there.
[0] https://news.ycombinator.com/item?id=43152937