def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("\\node.exe"),
            any(
                [
                    " -e " in event.deep_get("CommandLine", default=""),
                    " --eval " in event.deep_get("CommandLine", default=""),
                ]
            ),
            ".exec(" in event.deep_get("CommandLine", default=""),
            "net.socket" in event.deep_get("CommandLine", default=""),
            ".connect" in event.deep_get("CommandLine", default=""),
            "child_process" in event.deep_get("CommandLine", default=""),
        ]
    ):
        return True
    return False
