def rule(event):
    if any(
        [
            "Export-PfxCertificate " in event.deep_get("CommandLine", default=""),
            "Export-Certificate " in event.deep_get("CommandLine", default=""),
        ]
    ):
        return True
    return False
