Skip to content

The agent that grows with you

docs(catalog): argue hermes-windows-ports on latency and process surface

Yicheng-Mark56abef9cd9e5
diff --git a/plugin-catalog/hermes-windows-ports.yaml b/plugin-catalog/hermes-windows-ports.yaml
index a3ef0af3ba9..ce0adb1066b 100644
--- a/plugin-catalog/hermes-windows-ports.yaml
+++ b/plugin-catalog/hermes-windows-ports.yaml
@@ -4,14 +4,17 @@ sha: aa49f6a6b061c8ace8e8930b574e803b84ad8760
description: >-
Answer "who holds this port" on Windows. win_port_owners reads the TCP and UDP owner
tables through iphlpapi (the same rows netstat -ano prints, with the owning PID attached)
- and resolves each PID to its image name and path, returning structured JSON instead of
- localized console output. Filters cover one port, several ports, a process substring, the
- protocol (tcp, udp or both), the TCP state (listen, established, any state name, or all;
- UDP rows report bound) and IPv6 inclusion, with a record cap and a per-process summary of
- the rows returned. Built for the failure mode that stalls agents on Windows: a gateway,
- backend or bridge that cannot bind, where the error names a port but not the process
- holding it, and where parsing netstat breaks on a non-English machine because the headers
- are localized. A protected process whose image cannot be queried keeps its PID and reports
+ and resolves each PID to its image name and path, returning one structured record per
+ endpoint. Filters cover one port, several ports, a process substring, the protocol (tcp,
+ udp or both), the TCP state (listen, established, any state name, or all; UDP rows report
+ bound) and IPv6 inclusion, with a record cap and a per-process summary of the rows
+ returned. Built for the failure mode that stalls agents on Windows: a gateway, backend or
+ bridge that cannot bind, where the error names a port but not the process holding it.
+ netstat -ano prints columns, not fields, and its PID still needs a second command
+ (tasklist, or a PowerShell round-trip) to become an image name; this tool is one
+ in-process call instead of a shell parse plus a join, with no child process and no
+ dependency on PowerShell being installed or allowed by execution policy. A protected
+ process whose image cannot be queried keeps its PID and reports
a null process name instead of failing the call. Disclosure - the tool reports the local
and remote addresses, ports, PIDs and process image paths that netstat -ano and Task
Manager already show, and those values reach the model; treat the output like any other