What is \x16\x03\x01 in my access log?

Those escaped bytes are a request the web server could not read as HTTP: a TLS handshake on the plain-HTTP port, a SOCKS or Remote Desktop probe, a proxy check. Paste lines from your nginx or Apache access log, the request between its quotes, or the bytes as hex, and each one is decoded field by field from the protocol's own specification. Open a whole log to see every unreadable request grouped by kind.

Everything runs in your browser; nothing you paste or open is uploaded.

Try:

What the bytes start with

The first bytes of a protocol's opening message are fixed by its specification, which is how each request is recognised:

The logged request starts withWhat it isSpecification
\x16\x03\x01, \x16\x03\x03, \x16\x03\x00 TLS (or SSL 3.0) ClientHello: an HTTPS handshake sent to a plain-HTTP port RFC 8446, TLS 1.3 (record layer and ClientHello) ↗︎
\x15\x03\x01 TLS alert: a client giving up on a handshake RFC 8446 §6, Alert protocol ↗︎
\x05\x01\x00, \x05\x02\x00\x02 SOCKS5 greeting: a search for open proxies RFC 1928, SOCKS Protocol Version 5 ↗︎
\x04\x01 SOCKS4 CONNECT request, with the destination the proxy should reach SOCKS 4 protocol ↗︎
\x03\x00\x00 … \xE0 … Cookie: mstshash= Remote Desktop (RDP) connection request [MS-RDPBCGR] 2.2.1.1 Client X.224 Connection Request PDU ↗︎
\x00\x00\x00… \xFESMB or \xFFSMB SMB2/3 or SMB1 negotiate request (Windows file sharing) [MS-SMB2] 2.2.3 SMB2 NEGOTIATE Request ↗︎
PRI * HTTP/2.0 HTTP/2 connection preface without TLS (h2c) RFC 9113 §3.4, HTTP/2 connection preface ↗︎
SSH-2.0-… An SSH client announcing its version RFC 4253 §4.2, SSH protocol version exchange ↗︎
CONNECT host:443, GET http://… Open-proxy check RFC 9110 §9.3.6, CONNECT ↗︎
t3 12.1.2 Oracle WebLogic T3 handshake (nmap sends exactly this) nmap, weblogic-t3-info.nse (sends "t3 12.1.2") ↗︎
JRMI Java RMI handshake Java RMI specification, 10.2 RMI Transport Protocol ↗︎
Gh0st…, …ll|'|'|… Gh0st RAT and njRAT check-ins: an infected machine looking for its control server Emerging Threats Open ruleset ↗︎
MGLNDD_ A scanner marker SANS ISC traced to Stretchoid SANS ISC diary 28458, "MGLNDD" scans ↗︎
"" (empty) A connection that closed without sending anything nginx, ngx_http_log_module (escape) ↗︎

What our own server receives

LogTriage's web server, which hosts no site on its bare address, logged 2,931 requests in October 2026 that were not HTTP at all, and 573 open-proxy checks from 42 addresses. Counted from its access log, our own traffic left out; the October 2026 attack report has the rest of that month.

KindRequestsShare
TLS handshake sent to the plain-HTTP port1,87064%
SOCKS proxy handshake49617%
Other non-HTTP or malformed bytes31711%
Connection opened, nothing sent682%
Remote Desktop (RDP) connection request592%
HTTP/2 cleartext preface532%
SSTP VPN handshake341%
SSH banner sent to a web port201%
Crypto-mining pool (Stratum) handshake80%
SIP / VoIP request60%

Why the log shows escaped bytes and a 400

A web server reads the first line of every connection as an HTTP request line: a method, a target and a version. A TLS handshake or a SOCKS greeting is binary, so the server cannot read it, answers 400 Bad Request and closes the connection. Nothing was served or proxied.

To keep the log readable, the bytes are written escaped. nginx writes ", \ and every byte below 32 or above 126 as \xXX (log_format escape); Apache writes non-printable bytes as \xhh and quotes, backslashes and whitespace in C notation (\", \\, \n; mod_log_config). The decoder turns either back into the bytes the client sent.

The logged request is usually cut short. For a request it cannot read, nginx logs the bytes from the start of the connection up to the first carriage-return or line-feed byte (its source), and binary handshakes usually contain one. That is enough to tell what the client was, rarely enough for a TLS fingerprint. For JA4 or JA3, capture the connection with tcpdump or Wireshark and paste the ClientHello's bytes as hex.

Do you need to do anything?

Usually not: these are scanners trying every protocol on every open port, and the 400 is the right answer. Two things are worth checking.

  • Your server is not an open proxy. From another machine, curl -x http://your-server:80 http://example.com/ must not return example.com's page, and a CONNECT must not open a tunnel. In the log, proxy checks that got a 200 with a large response are the ones to read.
  • The TLS requests are not your own. If they come from your users' addresses or your monitoring, something links to https:// on your HTTP port.

To count each kind in a log, the request field is the first quoted one in the combined format:

# TLS handshakes, SOCKS5 greetings and RDP requests the web server could not read
grep -c '"\\x16\\x03' /var/log/nginx/access.log
grep -c '"\\x05\\x01' /var/log/nginx/access.log
grep -c 'mstshash=' /var/log/nginx/access.log

# open-proxy checks, by the host they asked for
awk -F'"' '$2 ~ /^CONNECT |^[A-Z]+ https?:\/\// {split($2, r, " "); print r[2]}' /var/log/nginx/access.log | sort | uniq -c | sort -rn | head

These requests come from the same scanners as the probes in our web probe reference and the user agents in the scanner user-agent reference. For whole logs, the log analyzer finds the attacks among them.

Questions

What does \x16\x03\x01 mean in an nginx access log?
It is the start of a TLS handshake. 0x16 is a TLS handshake record and 0x03 0x01 the record’s version field, which TLS 1.2 and 1.3 clients set to 0x0301 for compatibility. A client tried to start HTTPS on a port where the server speaks plain HTTP; nginx could not read the bytes as an HTTP request, so it logged them escaped as \xXX and answered 400.
Is \x16\x03\x01 an attack?
No. Scanners try TLS on every open port, and the server only answered 400; nothing was served. If the requests come from your own users or monitoring, something is using https:// with your HTTP port (https://example.com:80), and fixing that link or check makes them stop.
What is \x05\x01\x00 in my access log?
A SOCKS5 greeting (RFC 1928): version 5, one authentication method, method 0 “no authentication required”. Proxy hunters send it to every port to find open SOCKS proxies. A web server is not a SOCKS proxy, so it answers 400 and nothing is relayed.
What does “Cookie: mstshash=” mean in a web server log?
It is the first packet of a Remote Desktop connection: a TPKT header (\x03\x00), an X.224 Connection Request and the mstshash cookie, where Microsoft’s own example puts a user name. Scanners send it to every port to find RDP servers to brute-force.
Why are there CONNECT requests to zennolab.com or requests for http://azenv.net/?
Both test whether your server is an open proxy. CONNECT asks a proxy for a tunnel, and a full URL as the request target is how clients talk to a forward proxy; zennolab.com belongs to the maker of the ZennoProxyChecker proxy checker and azenv.net is a “proxy judge” that prints back what it received. A 400 or 405, or your own page, means the check failed. Only a 200 carrying the other site’s content would mean your server relayed it.
Why does the decoder say the handshake is cut off, and why is there no JA4?
nginx logs a request it cannot read only up to the first carriage-return or line-feed byte (0x0D or 0x0A) the client sent, and a binary handshake usually contains one, so the log holds only the beginning. JA4 and JA3 need the whole ClientHello: paste the bytes from a packet capture (tcpdump, Wireshark) as hex to get them.
Is “The plain HTTP request was sent to HTTPS port” the same thing?
It is the opposite. That error page is nginx’s answer when an ordinary http:// request arrives on a port configured for TLS. The escaped \x16\x03\x01 lines are TLS arriving on a port configured for plain HTTP.

Looking at a whole access log?

The free analyzer reads nginx, Apache and 50 other formats in your browser and flags the scanning, exploits and credential attacks in it, with the evidence lines. Nothing is uploaded.