Why HTTP to HTTPS Redirects Fall Short: Risks of Exposed Requests and the Role of HSTS Preload
A common audit finding is that an internal service still answers over plain HTTP. Adding a redirect to HTTPS produces a 301 response and closes the ticket. Several weeks later, closer inspection reveals that the redirected request is a complete HTTP transaction containing the full path, query string, and Cookie header.
Who Still Sends Plaintext Requests
Contemporary browsers no longer initiate connections over HTTP by default. Chrome has inserted https:// since version 90 and strengthened the behavior in 115; Firefox and Safari follow similar logic. The first request is therefore sent over HTTPS, falling back to HTTP only when HTTPS fails.
Plaintext requests still originate from several sources: the HTTPS-fallback path itself, hard-coded http:// links in email, documentation, or bookmarks, non-browser clients such as curl and scripts, embedded web views, older devices, and long-forgotten integrations.
What Travels in the Open
The exposed request reveals the complete URL path, query parameters, session cookies without the Secure flag, and the mere fact of the connection. An on-path attacker can read this data or substitute a malicious response before TLS negotiation starts.
HSTS Closes Subsequent Visits
The Strict-Transport-Security header tells the browser to contact the host exclusively over HTTPS for the duration specified by max-age. When includeSubDomains is present, the rule applies to every subdomain. The header arrives only after a successful HTTPS response, leaving the very first visit from a new client or after cache clearance unprotected.
Preload Eliminates the First Visit
Domains listed in the HSTS preload list ship with the rule already present inside the browser binary. Entry requires a valid certificate, a max-age of at least one year, includeSubDomains, the preload directive, and a direct redirect from port 80 to HTTPS on the same host. Removal from the list takes months because the change propagates only with browser updates.
Practical Recommendations
Before enabling preload, confirm that every subdomain, including forgotten internal hosts, supports HTTPS. Test with a short max-age, then raise it gradually. Add the Secure flag to all cookies together with HttpOnly and SameSite. Replace multi-step redirects with a single jump from http://example.com directly to https://example.com. Replace any http:// links in documentation or email with https:// equivalents.
Neither HSTS nor preload protects against domain impersonation or clients that ignore the header. The only remaining defense for such clients is to ensure that http:// addresses are never published anywhere.
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.