def rule(event):
    if any(
        [
            all(
                [
                    any(
                        [
                            event.deep_get("ParentImage", default="").endswith("\\wmiprvse.exe"),
                            event.deep_get("ParentImage", default="").endswith("\\mmc.exe"),
                            event.deep_get("ParentImage", default="").endswith("\\explorer.exe"),
                            event.deep_get("ParentImage", default="").endswith("\\services.exe"),
                        ]
                    ),
                    "cmd.exe" in event.deep_get("CommandLine", default=""),
                    "/Q" in event.deep_get("CommandLine", default=""),
                    "/c" in event.deep_get("CommandLine", default=""),
                    "\\\\127.0.0.1\\" in event.deep_get("CommandLine", default=""),
                    "&1" in event.deep_get("CommandLine", default=""),
                ]
            ),
            all(
                [
                    any(
                        [
                            "svchost.exe -k netsvcs"
                            in event.deep_get("ParentCommandLine", default=""),
                            "taskeng.exe" in event.deep_get("ParentCommandLine", default=""),
                        ]
                    ),
                    "cmd.exe" in event.deep_get("CommandLine", default=""),
                    "/C" in event.deep_get("CommandLine", default=""),
                    "Windows\\Temp\\" in event.deep_get("CommandLine", default=""),
                    "&1" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
