build: improve simulation of security