def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("\\thor.exe"),
                    event.deep_get("Image", default="").endswith("\\thor64.exe"),
                ]
            ),
            any(
                [
                    event.deep_get("ImageLoaded", default="").endswith("\\thor.exe"),
                    event.deep_get("ImageLoaded", default="").endswith("\\thor64.exe"),
                ]
            ),
            not all(
                [
                    event.deep_get("Signed", default="") == "true",
                    event.deep_get("SignatureStatus", default="") == "valid",
                    event.deep_get("Signature", default="") == "Nextron Systems GmbH",
                ]
            ),
        ]
    ):
        return True
    return False
