def rule(event):
    if all(
        [
            event.deep_get("TargetFilename", default="").endswith(".library-ms"),
            any(
                [
                    event.deep_get("Image", default="").endswith("\\7z.exe"),
                    event.deep_get("Image", default="").endswith("\\winrar.exe"),
                    event.deep_get("Image", default="").endswith("\\explorer.exe"),
                ]
            ),
        ]
    ):
        return True
    return False
