Habr•October 22, 2026•🇷🇺Translated from Russian

Developers Build 5KB Pure-JavaScript Headless Browser to Bypass DuckDuckGo AI Chat Anti-Bot System

A team of developers has constructed a fully functional headless browser using only 5,408 bytes of obfuscated JavaScript to defeat DuckDuckGo’s anti-bot protection on its free AI chat service duck.ai.

The project began after repeated 500 errors containing the message “no x-vqd-hash-1 token” appeared while building a Telegram proxy bot. The researchers reverse-engineered four rotating challenge variants delivered inside the x-vqd-hash-1 response header, each containing heavily obfuscated JavaScript that must be executed to produce a valid proof-of-browser token.

Challenge Mechanics

Upon receiving the challenge, the synthetic browser performs environment checks that include:

  • Verification that native functions contain the string “[native code]”
  • Subclassing behavior of Array objects under V8
  • Correct normalization of malformed HTML5 markup such as “<p><div></p><p></div”
  • iframe contentWindow properties and prototype chain integrity for HTMLDivElement, HTMLElement, and Element

Results are combined with a fabricated stack trace and execution duration metadata, then hashed with a pure-JavaScript SHA-256 implementation before being returned in the same header.

Telegram Bot Capabilities

The resulting serverless Telegram bot supports ten live models, progressive message editing for streaming responses, automatic image generation via the GenerateImage tool, and JPEG-to-PNG conversion for vision requests—all without any external libraries. A dedicated SQLite table persists solved challenge tokens across function invocations.

The authors note that the entire client, including a custom HTML5 parser and DOM mannequin, fits comfortably inside a single 950-line JavaScript file that runs identically in Node.js and lightweight serverless isolates.

Related articles

Habr•AI Security

AI Agent Pipeline Uncovers Critical OpenClaw Vulnerability Missed by Traditional Scanners

A security researcher built an autonomous penetration testing system using an uncensored DeepSeek model running inside the ztorch harness to proactively attack his own infrastructure. The setup combined ZCode with the abliteration.ai API and the TORCH-2.0 framework, allowing the agent to discover eight vulnerabilities, including one critical flaw granting unauthenticated remote command execution on an OpenClaw gateway. Unlike conventional Chinese vulnerability scanners, the LLM-driven agent performed reconnaissance through browser developer tools, identified WebSocket endpoints, and successfully executed six privileged remote calls without any credentials. The entire test cost approximately two dollars on DeepSeek and five to seven dollars on GLM-5.3. After manually patching the issues, the researcher re-ran the agent to confirm remediation. The experiment demonstrates that LLM-based agents can emulate real pentester behavior rather than simple rule-based scanning, highlighting both their defensive value and the emerging threat of similar automated attacks from adversaries.

Habr•AI Security

OpenID Foundation Launches Agent Auth Working Group to Standardize AI Agent Identification and Authorization

The OpenID Foundation has announced the creation of the Agent Auth (AAuth) working group to develop common standards for verifying that AI agents are acting on behalf of specific individuals or organizations. The initiative addresses critical challenges in access control, permission delegation, and audit trails as enterprises increasingly grant AI agents access to corporate data. Existing guidance from NIST, OWASP, Sber, Yandex Cloud, and VK Tech already explores how to limit agent permissions, handle revocation, and maintain clear records of actions performed. The new group will evaluate prior proposals, including a draft protocol published by Dick Hardt in April, and aims to release a developer version of the core specification in Q2 2027 with a final version in Q1 2028. AAuth Supervision focuses on obtaining explicit user consent that defaults to single operations and can optionally extend to similar actions within the same task. The effort responds to real-world deployments where companies must determine which operations an agent may perform autonomously and how to trace accountability back to the human who issued the original instruction.

安全客•AI Security

Ruishu Information Deploys AITM+BATM+AI Gateway to Break Agent Fatal Three Elements

The rise of autonomous AI Agents has shifted security focus from model compliance to risks involving untrusted content, private data access, and exfiltration capabilities. Security firm Dragos sent nearly two million bait requests to AI providers and uncovered widespread data leakage and privacy violations in Agent service chains. Researcher Simon Willison defined the Fatal Three Elements that close a complete data theft attack chain when combined. Ruishu Information counters these risks with a three-layer architecture consisting of AITM for lifecycle management, BATM for dynamic access control, and an AI security gateway for traffic oversight. The solution replaces static permissions with continuous trust verification across supply chain, behavior, and data flows. National regulators in China have issued guidelines requiring security controls throughout the Agent lifecycle.

Habr•AI Security

Leading Cryptographers Launch CIRG to Assess AI Threats to Cryptographic Systems

A group of 21 prominent cryptographers has established the Cryptography Incident Review Group (CIRG) to prepare responses to potential breaks in existing cryptosystems. The initiative comes amid growing speculation that advanced AI models developed by leading laboratories could undermine widely used algorithms such as RSA and lattice-based post-quantum schemes. Members from MIT, Cornell University, Carnegie Mellon University, and IBM Research are participating in their personal capacities. The group aims to provide guidance on vulnerability disclosure, victim notification, and long-term cryptographic resilience. Recent statements from members emphasize the need to test cryptographic primitives against the most powerful AI systems currently available only inside frontier AI labs. CIRG plans to release its first formal statement in the near future.