Introduction

Every request to pqcrypta.com and api.pqcrypta.com passes two firewalls: the edge WAF inside pqcrypta-proxy, which judges it before any application sees it, and the API's own WAF middleware. Behind them, the proxy's access log feeds a honeypot catalog of 383 paths no legitimate client asks for; a hit becomes a ban, and the ban reaches every proxy listener within a minute. Models trained on the nodes' own traffic and outside threat feeds sit beside them. Every figure on this page is read from the code, the database or the schedules when the page renders.

Key Features

  • Edge WAF with 256 rules over one RegexSet pass, on HTTP/1.1, HTTP/2, HTTP/3 and WebTransport alike
  • JA3/JA4 TLS fingerprinting before the handshake completes
  • Verified crawlers: a search engine following a link to a honeypot path is not banned
  • A honeypot catalog of 383 paths in 12 categories, matched against every logged request
  • Bans in PostgreSQL, synced to the proxy every minute and expired every hour
  • A federated threat model trained on each node's own traffic
  • Indicators from 9 threat-intelligence feeds

Architecture

Edge WAF
pqcrypta-proxy (Rust), every listener
  • 256 rules with stable PQW-* identifiers
  • Anomaly scoring, detect or block mode
  • JA3/JA4 fingerprints and client classification
  • Blocklist hot-reloaded from the database's sync
  • Verified crawler address ranges
API WAF
Axum middleware in the API
  • 12 attack categories
  • 31 patterns from the database, reloaded every 5 min
  • Per-address limits that tighten after an attack
Honeypot Feed
Proxy access log → PostgreSQL → proxy blocklist
  • 383 catalogued paths
  • Log read every 5 minutes, from where it stopped
  • Verified crawlers and our own servers spared
  • 328,982 hits recorded
Models & Intelligence
Rust and Python
  • Federated threat model, 28 features a request
  • A bot classifier trained on the site's traffic every 6 hours
  • 9 feeds fetched every 6 hours

Live System Statistics

From the API's /bot-threat/stats, the last seven days:

Loading...
Total Tracked IPs
Loading...
Blocked IPs
Loading...
Avg Threat Score
Loading...
Block Rate %

Active bans by kind

  • honeypot_trigger: 297
  • automated_bot_detection: 4
  • waf_auto_block: 3

Edge WAF (pqcrypta-proxy)

The proxy judges each request before it is forwarded, with the same engine on every transport: 256 rules (58 bot, 54 scanner-probe, 18 SQLi, 18 XSS, 16 SSRF, 16 traversal, 15 command injection, 12 deserialization, 9 SSTI, 8 anomaly, 7 JNDI, 6 LFI, 6 NoSQLi, 5 XXE, 3 CRLF, 3 prototype pollution, 2 GraphQL), matched in one RegexSet pass over the raw and decoded forms of the path, query, headers and body, and scored by severity. Its rules, modes and exclusions are documented on /pqcproxy/.

A ClientHello is fingerprinted (JA3 and JA4) before the handshake completes, so a client that shares an address with thousands of others is still told apart. Addresses in the blocklist are refused at the edge; the list is written by the database's sync and taken up without a restart.

Crawlers are verified against the address ranges their operators publish, fetched and cached by the proxy (src/crawler_verify.rs). A crawler follows links: a link to a honeypot path, or to a page that answers 404, is not an attack.

API WAF

The API's middleware (public/ent/api/src/middleware/waf.rs) inspects every request to api.pqcrypta.com for:

  • → SQL Injection
  • → Cross-Site Scripting (XSS)
  • → Path Traversal
  • → Command Injection
  • → LDAP Injection
  • → XML/XXE Injection
  • → SSRF (Server-Side Request Forgery)
  • → Header Injection
  • → File Upload Attacks
  • → Brute Force Detection
  • → API Abuse Detection
  • → Data Exfiltration Detection

Beside its built-in rules it loads 31 active patterns from the waf_patterns table and reloads them every 5 min, so a pattern is added without a restart.

Honeypot Feed

The proxy's WAF stops scanner probes at the edge, so they never reach an application to be caught there. Instead, pqcrypta-proxy/scripts/detect_bots_from_logs.sh reads the proxy's access log every 5 minutes, from the inode and offset where it stopped (finishing a rotated log before the new one), and matches every request against the honeypot_endpoints catalog. A hit is recorded in honeypot_interactions and becomes a ban in security_blocklist. Verified crawlers and our own servers are spared, and a ban on either is lifted.

A ban lasts 72 hours, or a week for a critical probe, and a repeat hit refreshes it. An address that keeps coming back is no stray: public/cron/risk_based_expiration.php (every hour) counts the distinct days in the last 90 on which it probed or was caught by the API's WAF, and holds its ban for 30 days from 3 days, for 90 days from 7 days and permanently from 14 days, and permanently after a critical WAF attack. It only lengthens, keeps where the ban came from, and never touches a whitelisted address or our own.

The catalog: 383 paths

Config files
60 paths
Backup files
55 paths
Api endpoints
51 paths
Admin panels
48 paths
Dev tools
48 paths
Directory probes
36 paths
Cms paths
25 paths
Monitoring tools
24 paths
Source control
16 paths
Database tools
9 paths
Cloud metadata
7 paths
Rce attempts
4 paths

Models

Federated threat model

Each proxy node trains on its own traffic and sends only the model's update: every request becomes 28 features, labelled by the node's own decisions (the WAF's 403 and the rate limiter's 429 are hostile). How a round runs is on the model's documentation.

Behavioural risk score

Sign-ins and API keys are scored on 15 signals by an isolation forest and a histogram outlier score, refitted on the requests the API allowed; see the authentication stack.

Bot classifier

public/ent/ml/bot_classifier.py trains gradient-boosted trees every 6 hours on each visitor-day in the proxy's access log: the pages and the subresources a browser fetches with them, the HTTP versions, the status codes, the pacing and the user agent's shape. It learns from the visitors the rules above flag as automated and from those whose browser sent the analytics tracker's beacons, then scores the visitors neither labels; the ones past its threshold are recorded as ml_classification and left out of the analytics.

  • → Trained 2026-11-25 18:00 UTC on 12,563 automated and 143 browser visitor-days over 8 days
  • → Held out (2026-11-24): ROC AUC 0.9969, 0.0% of automated visitors found, 0 of 28 browsers flagged
  • → Found 0 of the 17,148 unlabelled visitor-days

Threat Intelligence

scripts/fetch-threat-intel.php fetches indicators every 6 hours from ThreatFox, URLhaus, Feodo Tracker, SSLBL, AlienVault OTX, SANS ISC DShield, Binary Defense, CINS Score and OpenPhish into the threat_intelligence table.

  • cins_score: 131,452 indicators
  • threatfox: 78,818 indicators
  • sans_dshield: 65,223 indicators
  • alienvault_otx: 57,889 indicators
  • openphish: 27,636 indicators
  • urlhaus: 27,307 indicators
  • binary_defense: 16,916 indicators
  • sslbl: 11,392 indicators
  • honeypot: 311 indicators
  • feodo_tracker: 6 indicators

Data Flow

ClientHello
Fingerprinted (JA3/JA4); an address in the blocklist goes no further
Edge WAF
256 rules scored; a request over the threshold is answered 403 and logged
Application
The site, or the API behind its own WAF and rate limits
Honeypot feed
The access log matched against the catalog every 5 minutes; a hit is banned in the database
Blocklist sync
The database's bans written for the proxy every minute, taken up without a restart
Expiry
Expired bans cleared every hour

Scheduled Jobs

Each runs from a systemd timer under its own account (the units are in pqcrypta-configs):

  • pqcrypta-www-bot-detect, every 5 minutes: the honeypot feed over the proxy access log
  • pqcrypta-blocklist-sync, every minute: the database's bans written for the proxy
  • pqcrypta-pg-blocklist-expiry, every hour: expired bans cleared
  • pqcrypta-www-ban-escalation, every hour: repeat offenders' bans lengthened from the evidence against them
  • pqcrypta-www-proxy-log-bots, every hour: bot visits counted from the proxy access log
  • pqcrypta-www-bot-classifier, every 6 hours: the bot classifier trained and run
  • pqcrypta-www-threat-intel, every 6 hours: threat-intelligence feeds fetched
  • pqcrypta-www-bot-cleanup, daily at 02:00: old bot analytics removed

Rate Limits & Quotas

The API's WAF counts requests per address over a 1 min window:

Normal: 200 requests a minute
Every address, until it attacks
Suspicious: 20 requests a minute
After an attack is detected
Blocked: 3 requests a minute
An address the WAF has blocked
Web UI: 300 requests a minute
The site's own key, for the dashboards' bursts

Each API key also carries an hourly and a daily quota, enforced by the API's key middleware with a 429 when exceeded: by default 900 requests an hour and 21,600 a day, set per key.