def rule(event):
    if all(
        [
            event.deep_get("OriginalFileName", default="")
            in [
                "Cmd.Exe",
                "CONHOST.EXE",
                "7z.exe",
                "7za.exe",
                "7zr.exe",
                "WinRAR.exe",
                "wevtutil.exe",
                "net.exe",
                "net1.exe",
                "netsh.exe",
                "InstallUtil.exe",
            ],
            not any(
                [
                    event.deep_get("Image", default="").endswith("\\cmd.exe"),
                    event.deep_get("Image", default="").endswith("\\conhost.exe"),
                    event.deep_get("Image", default="").endswith("\\7z.exe"),
                    event.deep_get("Image", default="").endswith("\\7za.exe"),
                    event.deep_get("Image", default="").endswith("\\7zr.exe"),
                    event.deep_get("Image", default="").endswith("\\WinRAR.exe"),
                    event.deep_get("Image", default="").endswith("\\wevtutil.exe"),
                    event.deep_get("Image", default="").endswith("\\net.exe"),
                    event.deep_get("Image", default="").endswith("\\net1.exe"),
                    event.deep_get("Image", default="").endswith("\\netsh.exe"),
                    event.deep_get("Image", default="").endswith("\\InstallUtil.exe"),
                ]
            ),
        ]
    ):
        return True
    return False
