def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("\\control.exe"),
            any(
                [
                    event.deep_get("ParentImage", default="").endswith("\\winword.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\powerpnt.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\excel.exe"),
                ]
            ),
            not any(
                [
                    event.deep_get("CommandLine", default="").endswith("\\control.exe input.dll"),
                    event.deep_get("CommandLine", default="").endswith('\\control.exe" input.dll'),
                ]
            ),
        ]
    ):
        return True
    return False
