Scan your whole stack
Are you using @crewhaus/tool-http?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.8.2
@crewhaus/tool-http was last scanned on 12 Nov 2026 at version 0.8.2. Risk score 45 of 100 (medium). High-severity rules fired.
| Version | Published | Status |
|---|---|---|
| 0.8.2 LATEST | 12 Nov 2026 | 1 rule fired |
| 0.8.1 | 11 Nov 2026 | 1 rule fired |
| 0.8.0 | 25 Oct 2026 | No rules fired |
| 0.7.0 | 22 Sep 2026 | Not shown |
Findings for v0.8.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
A DNS lookup command (nslookup, dig or host) takes its query name from a subshell that first encodes the data, for example with base64 or xxd. Encoding the name turns a lookup into a way to send data to the nameserver of the queried domain. Ordinary diagnostic lookups have no encoding step.
HIGHThe score describes 0.8.2; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
HTTP and network work that should not cost a model turn.
@crewhaus/tool-fetch gives an agent one request. That is the right
primitive, and it is also why a seven-page API costs seven model turns, a
webhook signature costs a code-execution round trip, and "wait until the
deploy is healthy" becomes a sleep-and-hope loop. Each tool here collapses one
of those patterns into a single call with a stated bound.
tools:
- all-http # every tool below, plus Fetch (@crewhaus/tool-fetch)
- -downloadFile # ...except this one
tool_config:
http:
allowed_origins: # REQUIRED — an empty list denies everything
- https://api.example.com
- https://api.github.com
allowed_auth_envs: # the only variables an auth profile may read
GITHUB_TOKEN: [https://api.github.com] # ...and where each may be sent
allowed_signing_envs: [WEBHOOK_SECRET] # WebhookSign / WebhookVerify keys
| Tool | What it does |
|---|---|
HttpRequest |
One request with method, headers, body, env-resolved auth, redirect policy, retry-on-status and a deadline |
HttpPaginate |
Walk a paginated API to the end, a page cap or a total-byte budget — Link header, cursor field or page number — and return the items |
GraphqlQuery |
POST a query with variables, returning data and errors separately |
HttpBatch |
Several independent requests with a concurrency cap and a deadline for the batch, results in request order |
DownloadFile |
Fetch to a contained path under a byte cap, with an optional sha256 verified before the file is kept |
HeadRequest |
Existence, size, content type and caching headers without the body |
HttpWaitFor |
Poll until a status or a JSON field predicate holds, within a required deadline |
UrlReachable |
A bounded connectivity probe: status and latency. A probe the gate refused comes back as refused, never as unreachable |
LinkCheck |
Check a list of URLs with a concurrency cap and a shared deadline; refused and skipped URLs are counted apart from broken ones |
SseRead |
Collect server-sent events until a count, a terminator event, or a required deadline |
WebhookSign |
HMAC signature header in the timestamped or plain-body scheme |
WebhookVerify |
Constant-time verification that rejects a stale timestamp as a replay |
DnsLookup |
A / AAAA / CNAME / MX / TXT / NS records for a name |
TlsInspect |
Certificate chain for a host and port — subject, issuer, validity, days remaining, SANs |
RobotsCheck |
Fetch and evaluate robots.txt for a user-agent and path |
SitemapParse |
A sitemap into structured entries, from text or an allow-listed URL |
FeedParse |
An RSS, RDF or Atom feed into a common entry shape |
Every outbound byte leaves through src/net.ts, which carries
@crewhaus/tool-fetch's posture over whole rather than re-deriving it. A
second HTTP surface with a weaker gate would be the same hole twice.
http or https.DnsLookup and TlsInspect — need the host to be named
by an allow-listed origin; TlsInspect's port is the caller's choice on
that host, and a service there that does not speak TLS is reported as
"no TLS handshake", never as a certificate.0177.0.0.1, 0x7f000001
and 2130706433 for IPv4; ::1, 0:0:0:0:0:0:0:1 and ::0:1 for IPv6;
and the ranges that CARRY an IPv4 address — ::ffff:a.b.c.d, NAT64
(64:ff9b::a9fe:a9fe) and 6to4 (2002:a9fe:a9fe::) — by the address they
carry. An IPv6-shaped host this parser cannot expand is refused rather than
assumed public.Host and TLS SNI, so a rebinding resolver cannot swap in a private
address between the check and the socket.Authorization, Proxy-Authorization, Cookie and whatever header the
call's auth profile set are dropped the moment a redirect leaves the
origin they were minted for, and the result reports credentialsDropped.
HttpPaginate holds the same line across pages: a Link header naming
another origin is followed without the credential, because the server
chose that URL, not the call. A URL carrying user:pass@ is refused outright — at the first hop and at
every redirect — because userinfo is a credential that would otherwise ride
in finalUrl and redirects straight into a transcript.identity. The polling and
streaming tools require the deadline rather than defaulting it,
HttpBatch bounds the batch as well as each request, and HttpPaginate
bounds the bytes across all pages as well as within one — a per-page cap is
not a bound on a tool that holds every page's items at once.Cookie, Set-Cookie and Authorization are stripped from response
headers before anything reaches a model.What a permission rule covers. A URL rule, such as
alwaysDeny HttpPaginate(https://admin.example/**), is checked only on the
URL a call names. Redirect hops, and the next pages HttpPaginate follows, are
checked against the tool's allow-list (points 3–5), not your rules. This
covers the tools here, Fetch, WebFetch and HealthProbe. A rule on part
of an origin, such as a path, is not checked on those requests at all, even on
the same origin. To be sure a place is not reached: keep its origin out of
allowed_origins (for WebFetch, set allowed_domains), or deny the tool.
No tool accepts an inline credential. An auth profile names an environment
variable:
{ "type": "bearer", "envVar": "GITHUB_TOKEN" }
and an inline Authorization or Cookie header is refused with a message
pointing at auth, as is a URL with user:pass@ in it. A token a model can
put in a tool argument is a token in the transcript, the trace event and the
eval report.
The variable must be one you list in tool_config.http.allowed_auth_envs.
A tool call may choose among the listed names and can never add one, so a
model cannot send another process secret (your LLM provider key, say) to an
allowed origin. With no list, every auth profile is refused. Write the
list as names, whose credentials may go to any allowed origin, or as a map
from a name to the origins its credential may go to:
allowed_auth_envs: [GITHUB_TOKEN, STATUS_API_KEY] # any allowed origin
allowed_auth_envs: # or bound
GITHUB_TOKEN: [https://api.github.com]
A request that would carry a bound credential anywhere else is refused
before it is sent. Whatever the server echoes back (a 401 that quotes the
key, a debug endpoint that repeats the headers) is scrubbed from the result,
in its URL-encoded and base64 spellings too, and for basic the
user:secret pair as well.
WebhookSign and WebhookVerify take the signing secret the same way, from
a variable you list in tool_config.http.allowed_signing_envs
([WEBHOOK_SECRET]). A call that could name any variable could mint a valid
signature over any payload with any secret in the process; with no list,
both tools refuse.
Echoed request headers come back as <redacted> — including the one a
{ "type": "header", "headerName": "X-Api-Key" } profile set, which is just as
much a secret as an Authorization value and is guarded as one everywhere:
in the echo, and on a cross-origin redirect.
An error message names a URL by scheme, host, port and path only. The query string is where a presigned link keeps its signature, and an error string is a thing that ends up in a transcript.
Same inputs against the same world state, same bytes out: listings are sorted,
comparisons use code-unit order (never localeCompare without a locale),
nothing is random — the retry backoff has no jitter for exactly this
reason — and the wall clock appears only where the caller asked for timing:
HttpRequest.elapsedMs, UrlReachable.latencyMs, HttpWaitFor.elapsedMs,
and TlsInspect's daysRemaining. Each of those is flagged in its own
description. WebhookSign refuses to default a timestamp to "now" so the same
call always produces the same signature.
Feed entries are the one listing that is not re-sorted: a feed's order is the signal it carries, and document order is deterministic anyway.
src/lib/ holds the pure functions and is where their behaviour is tested
without a socket — XML, sitemaps, feeds, Link headers, SSE framing,
robots.txt matching, HMAC signatures, JSON path reading, backoff arithmetic
and certificate shaping. src/net.ts is the gate. src/index.ts wraps them
as tools. src/paths.ts is the workspace-containment check, copied from
@crewhaus/tool-fsx, that DownloadFile passes every caller-supplied path
through before it makes the request. The write itself goes through
@crewhaus/tool-safety/fs's writeFileSafe: a temp created exclusively,
under a random name, beside the destination, and renamed into place, so a
link planted where the temp will be cannot carry the bytes out of the
workspace.
The tests use real servers: Bun.serve({ port: 0 }) on 127.0.0.1, never a
public address, never a mocked fetch. A stubbed transport would prove
nothing about whether a redirect chain really drops a credential or whether a
byte cap really cancels a stream.
| Tools | |
|---|---|
scope: "external", ioCapability: "network" |
everything except WebhookSign and WebhookVerify |
destructive: true |
HttpRequest, HttpBatch, GraphqlQuery (any of them can mutate a remote resource), DownloadFile (writes a file) |
requireJustification: true |
HttpRequest, HttpBatch, GraphqlQuery — the three with a visible outward side effect |
readOnly: true |
the other thirteen |
src/index.test.ts asserts the whole table tool by tool and runs
auditToolScopes over the package, so a future tool that forgets an
annotation fails the suite rather than shipping.
header-type auth profile.SseRead covers one-way streaming; a bidirectional session
does not fit a single bounded tool call.SitemapParse reads one document; parse each
child yourself so the page cap stays visible.RobotsCheck tells you whether you may fetch a path and what
Crawl-delay the site asked for; it does not pace anything for you, and
LinkCheck does not discover links. A path and query longer than 8 KiB,
about the most a web server accepts, is refused rather than evaluated.@crewhaus/tool-datetime.Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.