def rule(event):
    if any(
        [
            event.deep_get("Image", default="").endswith("\\npc.exe"),
            all(
                [
                    " -server=" in event.deep_get("CommandLine", default=""),
                    " -vkey=" in event.deep_get("CommandLine", default=""),
                    " -password=" in event.deep_get("CommandLine", default=""),
                ]
            ),
            " -config=npc" in event.deep_get("CommandLine", default=""),
            any(
                [
                    "MD5=AE8ACF66BFE3A44148964048B826D005" in event.deep_get("Hashes", default=""),
                    "SHA1=CEA49E9B9B67F3A13AD0BE1C2655293EA3C18181"
                    in event.deep_get("Hashes", default=""),
                    "SHA256=5A456283392FFCEEEACA3D3426C306EB470304637520D72FED1CC1FEBBBD6856"
                    in event.deep_get("Hashes", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
