def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("ParentImage", default="").endswith("\\WINWORD.EXE"),
                    event.deep_get("ParentImage", default="").endswith("\\EXCEL.EXE"),
                    event.deep_get("ParentImage", default="").endswith("\\POWERPNT.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\MSPUB.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\VISIO.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\MSACCESS.exe"),
                    event.deep_get("ParentImage", default="").endswith("\\EQNEDT32.exe"),
                ]
            ),
            event.deep_get("Image", default="").startswith("C:\\users\\"),
            event.deep_get("Image", default="").endswith(".exe"),
            not event.deep_get("Image", default="").endswith("\\Teams.exe"),
        ]
    ):
        return True
    return False
