def rule(event):
    if all(
        [
            event.deep_get("type", default="") == "SYSCALL",
            any(
                [
                    event.deep_get("exe", default="").endswith("/telnet"),
                    event.deep_get("exe", default="").endswith("/nmap"),
                    event.deep_get("exe", default="").endswith("/netcat"),
                    event.deep_get("exe", default="").endswith("/nc"),
                    event.deep_get("exe", default="").endswith("/ncat"),
                    event.deep_get("exe", default="").endswith("/nc.openbsd"),
                ]
            ),
            event.deep_get("key", default="") == "network_connect_4",
        ]
    ):
        return True
    return False
