I though we determined it was fake. I don't think that is the wording used in macOS.
Dang, now I'm not sure. The messages change depending on what you're installing. Here's what I got in Mojave while installing a Flash Player update.
Nothing about "Type your password to allow this.", and a different confirmation button. With this admin box open, I ran Activity Monitor to see what was generating the message.
According to that, the OS was genuinely creating the box via the SystemAppearance drawing routines. But then, the scam app could easily be calling for the same resources. I have no way of checking without having the malware to run.
It would seem to me the OS is indeed calling for the admin confirmation, prompted by the malware. Otherwise, why show it at all? Any malware would prefer you didn't even know it was installed. This only draws your attention to it and they have to goad the user into allowing its full installation in order to do what the malware app intends.
Whichever is correct, we definitely know users shouldn't allow it.