Modern web application security faces a constant dilemma: protecting user accounts from Account Takeover (ATO) without sacrificing the login experience or exposing sensitive data to third parties. Traditional systems often rely on external fraud APIs that add latency, send telemetry off-server, and generate recurring costs. In response, an innovative proposal has emerged: a local, lightweight, zero-dependency ATO risk scorer that executes all its logic within the server's own request-response cycle. This project, recently open-sourced under the DevGuard Labs umbrella, aims precisely to solve that balance between security and performance with a privacy-first and fail-open design.
The architecture of this middleware is designed for Node.js environments (Express, Next.js, Fastify) and is based on a tunable rules engine that evaluates in real time the likelihood of a login attempt being fraudulent. Instead of consulting external services, it analyzes local patterns such as request frequency from the same IP or device using sliding windows, suspicious phone number changes (SIM-swap), and other configurable heuristics. Most notably, it features a fail-open design: if the engine encounters a logic exception, the authentication flow continues uninterrupted, avoiding mass lockouts of legitimate users. Additionally, all data remains within the private network, adhering to privacy-by-design principles.
From a technical standpoint, the scorer implements a risk scoring system that assigns a risk level to each attempt. This score can be integrated with any multifactor authentication strategy or conditional blocking policies. The developer community is invited to test the rules engine in real-world scenarios and report edge cases that may improve its accuracy. The public repository includes configuration examples, unit tests, and documentation on how to adjust speed thresholds. The idea is that any team can adapt it to their own infrastructure without sending data to third parties.
In the business context, this solution is especially relevant for companies managing applications with high login volumes, such as fintech platforms, marketplaces, or SaaS services. Reducing latency is critical for user retention, and data sovereignty is increasingly a stricter regulatory requirement. This is where Q2BSTUDIO, as a software and technology development company, can add value. Our expertise in cybersecurity allows us to integrate such tools into existing architectures, conducting penetration testing and vulnerability analysis to ensure ATO detection is effective without compromising usability. In addition, we offer cloud AWS/Azure services to deploy these middlewares with high availability and scalability, ensuring the rules engine runs in optimized environments.
Artificial intelligence also plays a complementary role in the evolution of this type of detector. While the current rules engine is deterministic, future versions could incorporate AI agents that learn normal and anomalous behavior patterns without relying on fixed thresholds. At Q2BSTUDIO we work with AI to create predictive models that enhance security without adding latency, and we also develop custom software applications that natively integrate these systems. Likewise, continuous monitoring of authentication events can be enriched with Business Intelligence dashboards (Power BI) that visualize fraud rates and middleware performance in real time, facilitating decision-making.
The project is in beta and its creators are actively seeking community feedback. If you are building authentication-heavy applications, we encourage you to explore the repository, review how the sliding-window velocity checks are implemented, and share your observations. Any suggestion, from an unconsidered edge case to an efficiency improvement in the engine, will be welcome. Even a GitHub star helps give visibility to this solution that puts privacy and low latency at the center of the design.
In summary, the emergence of this local ATO risk scorer marks a step forward toward more decentralized and data-respectful security. Combined with Q2BSTUDIO's capabilities in custom software development, cloud, and cybersecurity, companies can build robust authentication flows without compromising user experience. The future of account protection lies in lightweight, intelligent solutions that keep control in the hands of the developer.



