os-prober is there to detect other operating systems. If you do not need that functionality, you can disable it; I have done that in all my Debian VMs after hitting some hiccup in testing.
You add to /etc/default/grub the line:
GRUB_DISABLE_OS_PROBER=true
And then, the commands dpkg-reconfigure linux-image-xxxxx and update-grub no longer will use os-prober.
Another alternative is to uninstall os-prober.
dpkg --purge os-prober
As Stephen Kitt points out, "The package itself is only recommended (by grub-common), so the package manager will allow you to remove it."
Or just to be on the safe side, for it not to be used anymore, do both actions.
From this link
os-prober is a spinoff of debian-installer. One of the installer's
features is that it can probe disks on the system for other operating
systems, and add them to the boot loader, so that installing Debian
doesn't make your other installed OS hard to boot.
see Debian: New error message upgrading kernel (to 4.9) - reload ioctl error
Summing it up: it is a good idea to disable os-prober for linux servers; furthermore it is also conducive to the (security) philosophy of Unix, of keeping it simple and installing the less amount of services/software.
While in theory you could also manage to go without grub I would not trade the standard way, convenience, flexibility of booting and debugging capabilities it offers, for other scenarios. See LILO/ELILO; and u-boot-tools for an alternative, at least in some architectures.
As for grub security, I would worry more of adding a password to it.