def rule(event):
    if all(
        [
            any(
                [
                    "\\SOFTWARE\\Microsoft\\SystemCertificates\\Root\\Certificates\\"
                    in event.deep_get("TargetObject", default=""),
                    "\\SOFTWARE\\Policies\\Microsoft\\SystemCertificates\\Root\\Certificates\\"
                    in event.deep_get("TargetObject", default=""),
                    "\\SOFTWARE\\Microsoft\\EnterpriseCertificates\\Root\\Certificates\\"
                    in event.deep_get("TargetObject", default=""),
                    "\\SOFTWARE\\Microsoft\\SystemCertificates\\CA\\Certificates\\"
                    in event.deep_get("TargetObject", default=""),
                    "\\SOFTWARE\\Policies\\Microsoft\\SystemCertificates\\CA\\Certificates\\"
                    in event.deep_get("TargetObject", default=""),
                    "\\SOFTWARE\\Microsoft\\EnterpriseCertificates\\CA\\Certificates\\"
                    in event.deep_get("TargetObject", default=""),
                    "\\SOFTWARE\\Microsoft\\SystemCertificates\\AuthRoot\\Certificates\\"
                    in event.deep_get("TargetObject", default=""),
                    "\\SOFTWARE\\Policies\\Microsoft\\SystemCertificates\\AuthRoot\\Certificates\\"
                    in event.deep_get("TargetObject", default=""),
                    "\\SOFTWARE\\Microsoft\\EnterpriseCertificates\\AuthRoot\\Certificates\\"
                    in event.deep_get("TargetObject", default=""),
                ]
            ),
            event.deep_get("TargetObject", default="").endswith("\\Blob"),
            event.deep_get("Details", default="") == "Binary Data",
        ]
    ):
        return True
    return False
