def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("ParentCommandLine", default="").endswith(".exe"),
                    event.deep_get("ParentCommandLine", default="").endswith('.exe"'),
                ]
            ),
            event.deep_get("Image", default="").endswith("\\cmd.exe"),
            event.deep_get("CommandLine", default="").startswith('/c echo "'),
            not all(
                [
                    any(
                        [
                            ":\\Windows\\System32\\" in event.deep_get("ParentImage", default=""),
                            ":\\Windows\\SysWOW64\\" in event.deep_get("ParentImage", default=""),
                        ]
                    ),
                    event.deep_get("ParentImage", default="").endswith("\\forfiles.exe"),
                    any(
                        [
                            ":\\Windows\\System32\\" in event.deep_get("Image", default=""),
                            ":\\Windows\\SysWOW64\\" in event.deep_get("Image", default=""),
                        ]
                    ),
                    event.deep_get("Image", default="").endswith("\\cmd.exe"),
                ]
            ),
        ]
    ):
        return True
    return False
