# egress.prosec-it.de # What does your network let out? Run a command inside the network you test. The # answer says what arrived here. A command that fails does not prove a block. A # receipt does not prove that nobody noticed. # ---- Connectivity ---- # The answer names the address, port and encryption that arrived here, and gives # a receipt. # HTTPS curl https://egress.prosec-it.de/check # HTTP, not encrypted curl http://egress.prosec-it.de/check # IPv4 only curl -4 https://egress.prosec-it.de/check # IPv6 only curl -6 https://egress.prosec-it.de/check # TLS 1.2 only curl --tlsv1.2 --tls-max 1.2 https://egress.prosec-it.de/check # TLS 1.3 only curl --tlsv1.3 https://egress.prosec-it.de/check # Another port, here 8443. Every TCP port answers. curl https://egress.prosec-it.de:8443/check # ---- Proxy ---- # The same check by different ways out. The address in the answer shows which # way a request took. Name your proxies first: PROXY=http://proxy.example:3128 # SOCKS=proxy.example:1080 # With the proxy settings of this shell curl https://egress.prosec-it.de/check # Without them curl --noproxy '*' https://egress.prosec-it.de/check # Without them, not encrypted curl --noproxy '*' http://egress.prosec-it.de/check # HTTPS through a named proxy curl -x "${PROXY:?}" https://egress.prosec-it.de/check # HTTP through a named proxy curl -x "${PROXY:?}" http://egress.prosec-it.de/check # Port 8443 through a named proxy curl -x "${PROXY:?}" https://egress.prosec-it.de:8443/check # SOCKS5, the proxy resolves the name curl --socks5-hostname "${SOCKS:?}" https://egress.prosec-it.de/check # SOCKS5, this machine resolves the name curl --socks5 "${SOCKS:?}" https://egress.prosec-it.de/check # ---- Uploads ---- # Only the exact test content is accepted, 16 KiB at most. It is compared and # thrown away. # Small upload curl -d 'egress check: small upload' https://egress.prosec-it.de/upload/small # The same, chunked curl -H 'Transfer-Encoding: chunked' -d 'egress check: small upload' https://egress.prosec-it.de/upload/small # The same, through a 307 redirect curl -L -d 'egress check: small upload' https://egress.prosec-it.de/upload/redirect # Binary, 256 bytes curl -s https://egress.prosec-it.de/download/binary | curl --data-binary @- https://egress.prosec-it.de/upload/binary # 4 KiB curl -s https://egress.prosec-it.de/download/4k | curl --data-binary @- https://egress.prosec-it.de/upload/4k # 16 KiB curl -s https://egress.prosec-it.de/download/16k | curl --data-binary @- https://egress.prosec-it.de/upload/16k # ---- DLP markers ---- # A harmless marker: the word CONFIDENTIAL and published test card numbers. # Whether your DLP noticed it is in your own logs, not here. # Marker in a body curl -d 'egress check: synthetic DLP marker. CONFIDENTIAL. Credit card numbers (test values): 4111 1111 1111 1111, 5555 5555 5555 4444, 3782 822463 10005.' https://egress.prosec-it.de/upload/marker # Marker in a header curl -H 'X-Egress-Marker: CONFIDENTIAL 4111 1111 1111 1111' https://egress.prosec-it.de/marker # ---- Downloads ---- # Fixed content. The receipt is in the header Egress-Receipt. # 16 KiB curl -s -D - -o /dev/null https://egress.prosec-it.de/download/16k # Binary, 256 bytes curl -s -D - -o /dev/null https://egress.prosec-it.de/download/binary # Gzip-compressed curl -s -D - --compressed https://egress.prosec-it.de/download/gzip # ---- DNS ---- # Which ways a DNS question can take out of your network. # Through your resolver. The answer is the resolver's address. dig +short TXT me.dnstest.prosec-it.de # Straight to this server, UDP port 53. The answer is your address. dig +short TXT me.dnstest.prosec-it.de @egress.prosec-it.de # DNS over HTTPS to this server, one fixed question curl -s -D - -o /dev/null -H 'accept: application/dns-message' 'https://egress.prosec-it.de/dns-query?dns=AAABAAABAAAAAAAABmVncmVzcwlwcm9zZWMtaXQCZGUAABAAAQ' # TCP port 53, any protocol curl -m 5 http://port.prosec-it.de:53/ # TCP port 853, any protocol curl -m 5 http://port.prosec-it.de:853/ # ---- DNS tunnelling simulation ---- # Six names that exist for one test only, with long random labels as a tunnel # would use them. They carry no data. The answer lists which of them arrived # here. # Get the names and the next steps curl https://egress.prosec-it.de/dns # ---- Other services ---- # Not this server: the answers come from Cloudflare and Google, and there is no # receipt. # A redirect from here to another domain curl -sL https://egress.prosec-it.de/redirect # Another service directly curl -s https://www.cloudflare.com/cdn-cgi/trace # Another service through a named proxy curl -s -x "${PROXY:?}" https://www.cloudflare.com/cdn-cgi/trace # HTTP/2 curl -s --http2 https://www.cloudflare.com/cdn-cgi/trace | grep http= # HTTP/3 over UDP port 443, needs a curl with HTTP/3 curl -s --http3-only https://www.cloudflare.com/cdn-cgi/trace | grep http= # DNS over HTTPS, Cloudflare curl -s -H 'accept: application/dns-json' 'https://cloudflare-dns.com/dns-query?name=example.com&type=A' # DNS over HTTPS, Google curl -s 'https://dns.google/resolve?name=example.com&type=A' # DNS over TCP dig +tcp +short example.com @1.1.1.1 # DNS over TLS, needs dig 9.18 or newer dig +tls +short example.com @1.1.1.1 # ---- Check a receipt ---- curl "https://egress.prosec-it.de/receipt?r=RECEIPT"