Without signing.

image.png

First let’s generate our certificate

openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 365

image.png

Now let’s generate the pfx file.

openssl pkcs12 -inkey key.pem -in cert.pem -export -out sign.pfx

image.png

Now let’s sign our binary.

signtool sign /f sign.pfx /p <pfx-password> /t <http://timestamp.digicert.com> /fd sha256 binary.exe

image.png

Now After Signing

image.png

Notice that now only 11 vendors discovered it’s malware