Skip to content

[Feature Request] Raw Socket Support for Network Discovery Use CasesΒ #860

@fnicolelli-ls

Description

@fnicolelli-ls

Hello team πŸ‘‹
I'm exploring WASM as a sandboxed plugin runtime for network monitoring and discovery tools. The goal is to allow modular components to perform network operations within a controlled, capability-gated environment. However, the current lack of raw socket support in WASI makes this architecture infeasible for many common network discovery patterns.

Specific Operations Requiring Raw Sockets

Operation Socket Type Purpose
ARP Scanning AF_PACKET, SOCK_RAW Layer 2 device discovery on local network
ICMP Ping AF_INET, SOCK_RAW, IPPROTO_ICMP Host reachability detection
NDP (IPv6) AF_INET6, SOCK_RAW, IPPROTO_ICMPV6 IPv6 neighbor discovery
DHCP Capture AF_INET, SOCK_DGRAM on ports 67/68 Passive network monitoring

Q:

  1. Has raw socket support been previously discussed and rejected?
  2. Would a limited subset (e.g., ICMP only) be more acceptable than full raw socket access?

Thanks a lot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    P-socketsProposal: wasi-sockets

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions