def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("ParentImage", default="").endswith("/rsync"),
                    event.deep_get("ParentImage", default="").endswith("/rsyncd"),
                ]
            ),
            any(
                [
                    event.deep_get("Image", default="").endswith("/ash"),
                    event.deep_get("Image", default="").endswith("/bash"),
                    event.deep_get("Image", default="").endswith("/csh"),
                    event.deep_get("Image", default="").endswith("/dash"),
                    event.deep_get("Image", default="").endswith("/ksh"),
                    event.deep_get("Image", default="").endswith("/sh"),
                    event.deep_get("Image", default="").endswith("/tcsh"),
                    event.deep_get("Image", default="").endswith("/zsh"),
                ]
            ),
            not " -e " in event.deep_get("CommandLine", default=""),
        ]
    ):
        return True
    return False
