Golden Certificates
Last updated
Last updated
#mimikatz #rubeus
We can use certificates to maintain persistence
Valid certificate can be used for client authentication to get TGT.
To prevent this form persistence, blue team needs to revoke the certificate. This is the only way to defend.
We need to get the private key of the root CA's certificate, after which we can create our own certificate.
Usually the key is protected by the HSM (Hardware Security Module).
If HSM is not used, is used. In such case we can use mimikatz and other tools.
List certificates stored on the Domain Controller using mimikatz
Patching to make the private key exportable
Exporting the certificates now
Now we can sign our own certificate using the ForgeCert.exe
tool.
The new certificate can be used to ask for a TGT from the domain controller