You are right. But there are good and honest bureaucrats too but in minority and most of them do not have the courage to stand up and disobey the illegal commands from superiors. Because if they do, they are sidelined, dismissed or even killed. In Punjab, it would extremely rare to find such an officer because Patwaris have penetrated all their ranks but in other province you can find and centre still a few can be found. For example SSP Nekokara
Former SSP Nekokara submits appeal to PM against dismissal | Pakistan | Dunya News
got dismissed because he did not obey the illegal orders from the criminal minded NS to use violence against PTI-sit in and thus avoided a major carnage. Similarly there are many federal secretaries totally honest and committed and it is because of such great people that Pakistan still exists on the map of the world. I call them the saints (auliyas) for being honest in such difficult conditions.