How a Personal Site Counts Bots Without Storing Any IPs: Pure PHP, No Database, Strict CSP and 160 Tests
A personal website demonstrates how to implement robust security controls while tracking bot behavior from an SSH honeypot without ever storing or publishing visitor IP addresses. The project began with the first commit on 25 October 2026 and now contains 243 commits, roughly 22,000 lines of PHP, JavaScript and CSS, plus 5,000 lines of supporting Bash and Python scripts.
Architecture Without Frameworks or Databases
All content resides in a single JSON file. Atomic saves are performed by writing to a temporary file and then using rename(), ensuring readers never see a partially written state. Before each save the previous version is copied to a backups directory that retains the last twenty revisions. This approach removes the need for a separate database process, user accounts, migrations or dump-based backups.
Because no framework is present, the author implemented input sanitization, CSRF tokens, session handling and rate limiting manually. The absence of framework protections became the direct reason for writing an extensive test suite that actively attacks the application.
Strict Content-Security-Policy Implementation
The enforced policy allows scripts only from the same origin and only when accompanied by a fresh nonce. Inline styles are completely forbidden. Graphs and progress bars are rendered as SVG elements using width and height attributes rather than style properties. Dynamic style changes are applied through the CSSOM API. Data intended for JavaScript is placed inside <script type="application/json"> blocks that are parsed rather than executed.
A dedicated test verifies that every nonce is unique per response, that no script tag lacks either a nonce or the JSON type, and that the style attribute never appears in rendered HTML. Violations reported through CSP report-to endpoints surface forgotten nonces before they become visible to visitors.
Automated Attack-Driven Testing
The PHP test suite contains 160 checks and completes in approximately twenty seconds. Each test spins up an isolated instance of the site on a temporary data copy. Test data deliberately contains XSS strings, terminal escape sequences, malformed host headers and path traversal attempts. Separate checks cover reflected XSS, Host header injection, SSRF via audit.json, password brute-force protection after five failures, CSRF token validation, EXIF GPS stripping from JPEG uploads, and blocking of access to .git, data files and parent directories.
Browser tests written in Python drive a real Chromium instance through the DevTools Protocol. They validate 35 pages at two viewport sizes, confirming absence of console errors, horizontal scrolling on mobile, sufficient contrast, correct heading order, visible focus indicators, reduced-motion compliance and adherence to a strict performance budget of 400 KB total weight and 25 requests.
Bot Tracking Without Publishing Addresses
Raw SSH session logs contain full IP addresses, but only behavioral signatures leave the honeypot system. Each session is reduced to its first twelve cleaned commands; numbers are normalized to N and a short SHA-1 hash is computed. Sessions sharing the same hash are treated as one bot family. A special rule handles the common “uname” reconnaissance command so that minor flag variations do not create spurious families.
Address cardinality is calculated in memory and only the count is published. Families observed from fewer than three distinct addresses are suppressed entirely. Additional signals such as HASSH client fingerprints, password lists and command overlap percentages help distinguish separate operators even when they reuse the same script.
Related articles
SpaceVM Border Firewall Configuration Guide Restricts SSH and Web Access to Specific Subnets
SpaceVM has published a detailed tutorial on configuring its border firewall using a three-node cluster example. The guide demonstrates how to allow SSH and HTTP/HTTPS access exclusively from the 172.22.21.0/24 subnet while disabling default system rules that permit broader access. It explains rule processing order, where lower index values take precedence, and shows how to apply traffic shaping limits. Administrators must activate rules after creation and verify connectivity from allowed and disallowed hosts. The instructions cover both incoming filter rules and shaping policies for management networks without affecting virtual machine traffic.
OpenAI Rolls Out Autonomous AI Agents Dots to All ChatGPT Plus Subscribers
OpenAI has expanded access to its personal AI agents known as Dots to all ChatGPT Plus subscribers, previously limited to higher-tier plans. The agents, introduced in September 2026, can independently handle long-running tasks, monitor external services, and proactively offer assistance without explicit user prompts. Dots operate using their own cloud-based computers and integrate with tools such as Slack, HubSpot, Atlassian, and password managers including 1Password. The company also broadened availability to the European Economic Area, the United Kingdom, and Switzerland while introducing a dedicated privacy center for permission management. Enhanced usage limits are currently active for Plus, Pro, and Business subscribers, with Enterprise customers receiving free access until January 13, 2027.
Relatively Secure Method for Storing API Keys in Android Applications Using Native Code and JNI
Alfa-Bank developer shares a practical approach to protecting API keys in Android apps by combining native C++ code with a custom encryption scheme. The method stores an encrypted API key, the encryption key, and the cryptographic algorithm logic inside a native library loaded via JNI, forcing an attacker to locate and reverse all three components. The tutorial demonstrates implementation using NDK, CMake, and the XXTEA algorithm chosen for its balance of simplicity, speed, and reasonable security. A Kotlin wrapper class called ApiKeyExtractor exposes two native functions: one for encryption or decryption during build time and another that returns the decrypted key at runtime without exposing parameters. The article also explains how to generate the encrypted constants safely using instrumented unit tests and stresses that the goal is to raise the bar for attackers rather than achieve absolute security. Full source code for the demonstration project is provided, with clear warnings to exclude secret files from version control.
Wireshark 5.0.0 Released with Full Theming System, Process Attribution, and Expanded Protocol Support
Wireshark 5.0.0 has been released as the new stable branch following the 4.6.x series. The update introduces a unified theming engine that controls all interface colors and graphs through JSONC theme files, along with a built-in Theme Designer tool. New capture options in Dumpcap, TShark, and Wireshark now record process PID, name, launch time, executable path, command line, parent process, and username for each packet. Additional improvements include hierarchical configuration profiles, real-time traffic distribution statistics, packet tagging with emojis and comments, Zstandard compression for capture files, and a compact JSON output mode for TShark. The HTTP/3 dissector received major enhancements for stream following, object export, and decompression. Numerous new protocols were added and legacy interfaces were removed.