You can't do much beyond setting up a corporate proxy that blocks or inspects outbound connections. Even then, you're relying on luck.
These days it's practically a necessity for companies to shell out money to some sort of supply-chain protection software (Sonatype, Socket.dev etc.)