def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\certutil.exe"),
                    event.deep_get("OriginalFileName", default="") == "CertUtil.exe",
                ]
            ),
            any(
                [
                    "-encode" in event.deep_get("CommandLine", default=""),
                    "/encode" in event.deep_get("CommandLine", default=""),
                    "–encode" in event.deep_get("CommandLine", default=""),
                    "—encode" in event.deep_get("CommandLine", default=""),
                    "―encode" in event.deep_get("CommandLine", default=""),
                ]
            ),
            any(
                [
                    ".acl" in event.deep_get("CommandLine", default=""),
                    ".bat" in event.deep_get("CommandLine", default=""),
                    ".doc" in event.deep_get("CommandLine", default=""),
                    ".gif" in event.deep_get("CommandLine", default=""),
                    ".jpeg" in event.deep_get("CommandLine", default=""),
                    ".jpg" in event.deep_get("CommandLine", default=""),
                    ".mp3" in event.deep_get("CommandLine", default=""),
                    ".pdf" in event.deep_get("CommandLine", default=""),
                    ".png" in event.deep_get("CommandLine", default=""),
                    ".ppt" in event.deep_get("CommandLine", default=""),
                    ".tmp" in event.deep_get("CommandLine", default=""),
                    ".xls" in event.deep_get("CommandLine", default=""),
                    ".xml" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
