-
Notifications
You must be signed in to change notification settings - Fork 302
Open
Labels
P-socketsProposal: wasi-socketsProposal: wasi-sockets
Description
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:
- Has raw socket support been previously discussed and rejected?
- Would a limited subset (e.g., ICMP only) be more acceptable than full raw socket access?
Thanks a lot!
KoenPlasmansLS, patahub, jeroensavat and carlosmt86
Metadata
Metadata
Assignees
Labels
P-socketsProposal: wasi-socketsProposal: wasi-sockets