curl/8.x in Your Access Log: Script, Health Check or Scanner?
Published
The default header of curl, the command line tool and transfer library, sent in equal measure by monitoring scripts and API callers and by people working a long list of paths against a server they do not own.
What it looks like
curl/8.23.0 curl/8.5.0 curl/7.81.0
The User-Agent header as an access log records it — in nginx's and Apache's combined format, the last quoted field.
On our own server, the 30 days to 23 November 2026
1,025
requests · about 34 a day
84
source addresses
| Most requested paths | Requests |
|---|---|
| / | 159 |
| /health/liveliness | 8 |
| /xmlrpc.php | 7 |
| /api/v1/validate/code | 6 |
| /api | 6 |
| /mcp | 4 |
| /version | 4 |
| /soap | 4 |
LogTriage's production API server (Hetzner, Germany): port 22 open to the internet, key-only since 6 October 2026 (password and keyboard-interactive authentication off); nginx in front of the API on ports 80 and 443. Requests nobody asked for (API traffic and our own monitoring left out); paths as requested, query strings dropped and identifiers redacted; counted weekly from the nginx access log. Linked paths are scanner probes explained on their own pages. More in the monthly attack report, and you can check the addresses in your own log against free blocklists.
Sources on who sends it
The operator's or the researchers' own pages; what this page says about the sender comes from them.
What it is
curl/<version> is the default User-Agent of curl, described by its own project as a “command line tool and library for transferring data with URLs”. The project says “curl is used in command lines or scripts to transfer data”, and the library form, libcurl, is “the Internet transfer engine for countless software applications in over twenty billion installations”. The current stable release is 8.23.0, from 14 October 2026, but distributions ship older builds for years, so the version in your log says more about the sender’s operating system than about the sender.
Because the header is the default of a general-purpose tool, it carries no intent. On our own server that shows plainly: a few thousand requests over 30 days from about ninety addresses (counts above), with the home page in front and a long tail behind it — the busiest path accounts for only a small share of the total, so those requests reached many more paths than the eight listed. Among the frequent ones were our own API’s /api/v1/validate/code endpoint, which is exactly what the documentation tells people to call with curl, next to /version, /login, /api, Elasticsearch’s /_cat/indices index listing, a Gravity SMTP WordPress REST route and a percent-encoded /main%<hex>%2ejs. Legitimate use and probing arrive under the same header.
Who sends it
Everybody. The curl project says curl “is used daily by virtually every Internet-using human on the globe”, and the library is embedded in cars, routers, printers, phones and application stacks. So the senders of a curl/ request include your monitoring, your CI, webhook producers, someone testing your API by hand — and anyone who prefers a one-line command for probing a host.
Unlike the research scanners documented elsewhere on this site, curl publishes no scanning ranges, no contact URL in the header and no fixed source addresses, because there is no operator to publish them. The header is also a default that anyone can override — curl’s HTTP features include “custom headers” — so neither its presence nor its absence tells you who sent a request. Identity has to come from behaviour: the source address, the set of paths, the timing, and whether the request authenticated.
Is it a threat?
The string is not; some of the traffic behind it is. Two patterns are worth separating:
- Automation. Repeated requests from a small set of addresses to one or two documented endpoints, often with a credential, usually with 2xx responses.
- Reconnaissance. One address stepping through paths that do not exist on your server — search-engine and database endpoints, plugin REST routes, admin and login pages. That is active scanning (T1595); when the paths come from a list, wordlist scanning.
Repeated POSTs to an authentication endpoint with this header deserve the same treatment as any other credential-stuffing source: count attempts and failures per address, not per user agent.
How to handle it
- Do not filter on the user agent. You would break your own health checks and other people’s integrations while missing every scanner that sends a browser string.
- Group curl requests by address, path and status code. 404s are noise; a 200 on a path you never published is an exposure to fix.
- Deny dot-files for every client, so that the next secret-file sweep gets nothing regardless of its header.
- If the volume from one client hurts, rate-limit it rather than blocking it outright.
Find the requests and see which ones were answered:
grep -iE '"curl/[0-9]' /var/log/nginx/access.log \
| awk '{print $9, $7}' | sort | uniq -c | sort -rn | head -20
Rate-limit clients that keep the default header, and shut the dot-file paths for everyone (the map/limit_req_zone pair goes in the http context, the location blocks in the server):
map $http_user_agent $curl_client {
default "";
"~*^curl/" $binary_remote_addr;
}
limit_req_zone $curl_client zone=curl_clients:10m rate=5r/s;
location ~ /\.(?!well-known/) {
deny all;
}
location / {
limit_req zone=curl_clients burst=10 nodelay;
try_files $uri $uri/ =404;
}
Requests with an empty key are not counted, so browsers and your own named agents pass untouched. The free log analyzer sorts an access log by path and status so the probing inside this traffic separates from the automation.
Other user agents in the same logs
- "Mozilla/5.0 zgrab/0.x" in Your Access Log: The ZGrab Scanner The default user agent of ZGrab 2.0, the open-source application-layer scanner from the ZMap project, which anyone can run — research teams mapping the internet and attackers hunting for vulnerable apps alike.
- "Go web pentest tool" in Your Access Log: Database Panel Hunting An undocumented scanner, sender unknown, that works through a long list of directory names where web database administration panels such as phpMyAdmin are usually installed, asking each one for its index.php.
Detect it
Frequently Asked Questions
- Should I block requests with a curl user agent?
- Almost never. curl and libcurl sit behind health checks, cron jobs, CI pipelines, webhook senders and anyone calling your API from a terminal, so a blanket block breaks your own automation and your customers' integrations. It also stops nothing, because a scanner can send any header it likes.
- Does a curl user agent mean the request really came from curl?
- No. It is only a default string, and curl's own feature list includes "custom headers", so the sender can replace or remove it. There are no published address ranges for curl the way there are for research scanners, so the header identifies the client software at best and proves nothing about who ran it.
- What was curl asking for on our server?
- The home page led, followed by a long tail of other paths: our own API's validate endpoint, /version, /login, Elasticsearch's /_cat/indices index listing, a WordPress plugin REST route under /wp-json/, an obfuscated /main%<hex>%2ejs and /api. Those eight are only the most frequent ones; the requests spread over far more paths than that.
- Is a large number of curl requests an attack?
- Volume alone is not the signal. Sort the requests by source address, path and status code instead. A few addresses repeating one documented endpoint is automation; one address walking dozens of paths that do not exist on your server is reconnaissance, and any 200 on a path you never published is the finding.
See which scanners are hitting your server
Drop an nginx or Apache access log into the free browser analyzer: scanners and probes are grouped by source with the evidence lines, any probe that got a 200 back is flagged, and known user agents and probes link back here. Nothing is uploaded.
Investigating something right now? LogTriage checks every address in the file against threat intelligence and writes the incident report: 10 analyses a month free. The incident pack adds the in-depth AI analysis and files up to 100 MB: 25 analyses for $19, one payment, no subscription. Pricing
How this page was made. The official definitions, field names and examples on it are copied by script from the sources it links and re-checked against them on every build. The counts come from the logs of our own internet-facing server, refreshed weekly. The investigation advice was drafted with AI from those sources and passed a separate review before publishing. What is checked, and how · found a mistake? [email protected]