import json


def rule(event):
    if all(
        [
            "New-ExchangeCertificate" in json.dumps(event.to_dict()),
            " -GenerateRequest" in json.dumps(event.to_dict()),
            " -BinaryEncoded" in json.dumps(event.to_dict()),
            " -RequestFile" in json.dumps(event.to_dict()),
            any(
                [
                    "\\\\localhost\\C$" in json.dumps(event.to_dict()),
                    "\\\\127.0.0.1\\C$" in json.dumps(event.to_dict()),
                    "C:\\inetpub" in json.dumps(event.to_dict()),
                    ".aspx" in json.dumps(event.to_dict()),
                ]
            ),
        ]
    ):
        return True
    return False
