def rule(event):
    if all(
        [
            any(
                [
                    "Microsoft Word" in event.deep_get("ParentImage", default=""),
                    "Microsoft Excel" in event.deep_get("ParentImage", default=""),
                    "Microsoft PowerPoint" in event.deep_get("ParentImage", default=""),
                    "Microsoft OneNote" in event.deep_get("ParentImage", default=""),
                ]
            ),
            any(
                [
                    event.deep_get("Image", default="").endswith("/bash"),
                    event.deep_get("Image", default="").endswith("/curl"),
                    event.deep_get("Image", default="").endswith("/dash"),
                    event.deep_get("Image", default="").endswith("/fish"),
                    event.deep_get("Image", default="").endswith("/osacompile"),
                    event.deep_get("Image", default="").endswith("/osascript"),
                    event.deep_get("Image", default="").endswith("/sh"),
                    event.deep_get("Image", default="").endswith("/zsh"),
                    event.deep_get("Image", default="").endswith("/python"),
                    event.deep_get("Image", default="").endswith("/python3"),
                    event.deep_get("Image", default="").endswith("/wget"),
                ]
            ),
        ]
    ):
        return True
    return False
