def rule(event):
    if any(
        [
            all(
                [
                    any(
                        [
                            event.deep_get("Image", default="").endswith("/sbin/sysctl"),
                            event.deep_get("Image", default="").endswith("/bin/sysctl"),
                        ]
                    ),
                    "fs.suid_dumpable=" in event.deep_get("CommandLine", default=""),
                ]
            ),
            all(
                [
                    any(
                        [
                            event.deep_get("Image", default="").endswith("/bin/bash"),
                            event.deep_get("Image", default="").endswith("/bin/sh"),
                        ]
                    ),
                    any(
                        [
                            "echo 1 > /proc/sys/fs/suid_dumpable"
                            in event.deep_get("CommandLine", default=""),
                            "echo 2 > /proc/sys/fs/suid_dumpable"
                            in event.deep_get("CommandLine", default=""),
                            "echo 1 >/proc/sys/fs/suid_dumpable"
                            in event.deep_get("CommandLine", default=""),
                            "echo 2 >/proc/sys/fs/suid_dumpable"
                            in event.deep_get("CommandLine", default=""),
                            "echo 1> /proc/sys/fs/suid_dumpable"
                            in event.deep_get("CommandLine", default=""),
                            "echo 2> /proc/sys/fs/suid_dumpable"
                            in event.deep_get("CommandLine", default=""),
                            "echo 1>/proc/sys/fs/suid_dumpable"
                            in event.deep_get("CommandLine", default=""),
                            "echo 2>/proc/sys/fs/suid_dumpable"
                            in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
