def rule(event):
    if all(
        [
            any(
                [
                    event.deep_get("Image", default="").endswith("/c89"),
                    event.deep_get("Image", default="").endswith("/c99"),
                    event.deep_get("Image", default="").endswith("/gcc"),
                ]
            ),
            "-wrapper" in event.deep_get("CommandLine", default=""),
            any(
                [
                    "/bin/bash,-s" in event.deep_get("CommandLine", default=""),
                    "/bin/dash,-s" in event.deep_get("CommandLine", default=""),
                    "/bin/fish,-s" in event.deep_get("CommandLine", default=""),
                    "/bin/sh,-s" in event.deep_get("CommandLine", default=""),
                    "/bin/zsh,-s" in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
