Habr•August 6, 2026•🇷🇺Translated from Russian

Step-Up Authentication vs 2FA: Implementing Additional Verification for Sensitive Operations in Corporate Systems

Two-factor authentication (2FA) has become a standard for protecting corporate systems, yet it often proves insufficient for handling personal data or other high-risk operations. While 2FA verifies identity only at login and then grants access for the duration of the trusted session, modern attacks increasingly target already-active sessions. This limitation prompted the adoption of Step-Up Authentication, which requests additional confirmation precisely when a user attempts a sensitive action.

Why Standard 2FA Falls Short

Common second factors include SMS or Email OTP, TOTP from authenticator apps such as Yandex Key, Google Authenticator, Microsoft Authenticator, or Authy, and other one-time codes. These methods protect the login process effectively but do not re-verify identity during an ongoing session. As a result, prolonged sessions or shared devices can expose critical resources without further checks.

What Step-Up Authentication Provides

Step-Up Authentication differs by triggering extra verification only at the point of elevated-risk operations. Typical scenarios include work on shared devices, long-lived sessions, or access requests that demand a higher trust level than the initial login provided. In the described project, this mechanism was applied specifically when users attempted to retrieve salary information, requiring re-authentication only for selected APIs.

The technical foundation relies on ACR (Authentication Context Class Reference) values embedded in tokens. These values indicate whether login occurred with password alone or with an additional OTP. Applications inspect the ACR claim and either grant access or redirect the user for further authentication.

Project Implementation Challenges and Solution

Although Keycloak and WSO2 both support Step-Up Authentication out of the box, the project’s business requirements exceeded standard capabilities. The PIN code had to remain valid for six months, external systems needed to treat it as a user password, and verification had to occur at a separate gateway layer independent of the Identity Provider. These constraints made heavy customization of WSO2 impractical.

The team therefore created an independent PIN-code service and a dedicated gateway-2fa microservice. Only requests to protected APIs pass through this gateway; all other traffic follows the normal route. The flow works as follows:

  • The web application directs the user to the PIN service to generate a code.
  • The service creates an encrypted PIN, stores it, and delivers it via email and SMS.
  • After successful entry, the service issues a signed cookie with a defined TTL confirming Step-Up completion.
  • On subsequent protected calls, gateway-2fa validates the cookie and cross-checks key JWT fields; mismatches result in denial of access.

User Experience and Monitoring

From the user’s perspective, the additional step appears only when accessing protected data. A 401 response prompts PIN entry; successful validation sets the cookie, after which the user can work with sensitive resources until the TTL expires (set to 20 minutes in this implementation). Incorrect PIN attempts simply keep the resource inaccessible.

Usage statistics are collected in Matomo and technical metrics in ELK, enabling early detection of performance issues or unusual patterns.

Key Considerations for Deployment

Successful rollout requires careful definition of TTL duration, strong encryption for stored PINs, load testing of the additional service, and logging that supports incident investigation without exposing sensitive user data. The resulting architecture strengthens protection for critical operations while preserving a seamless login experience and supporting Zero Trust principles.

Related articles

Habr•Other

SberHealth to Host DevOps-Garage Meetup on Infrastructure Security and AI Integration

SberHealth is organizing an online DevOps-garage Meetup scheduled for December 9 from 18:30 to 21:00 Moscow time. The event will examine how complex infrastructure systems are built, the tools selected during development, and the solutions that proved effective in practice. Speakers from SberHealth, SberTech, Kriptonit, and MWS will cover building and scaling data platforms using IaC, GitOps, and open-source tools. Additional topics include multi-layer infrastructure protection methods, deploying Kubernetes in isolated environments, and isolating AI agents within Kubernetes clusters while evaluating sandbox costs. The program also addresses the use of Policy Engine for Kubernetes management in the GenAI era and delegating infrastructure tasks to AI agents. Registration is available via a dedicated link, with contact information provided for those who do not receive confirmation emails.

Habr•Other

Zasechka: Open Source Tool Creates Tamper-Proof Video Timestamps via Bitcoin Blockchain

Zasechka is a new open-source web application that records videos and anchors their timestamps directly into the Bitcoin blockchain using OpenTimestamps. The service performs all encryption locally in the browser with age v1 and X25519 keys derived from a 13-word mnemonic, ensuring no server ever sees the plaintext footage. Before recording, the site fetches the latest Bitcoin block hash and converts its final eight bytes into four random words that the user must speak aloud, establishing a lower time bound that cannot be forged after the fact. After recording, the SHA-256 hash of the encrypted video is submitted to OpenTimestamps, producing an .ots receipt that links the file to a specific Bitcoin block within a 1–6 hour window. The entire workflow runs as a progressive web app on GitHub Pages, requires no accounts, and remains functional offline once installed. Verification happens entirely in the browser: the recipient checks the OpenTimestamps proof against two independent Bitcoin sources and confirms that the spoken words match the block-derived list. The project’s source code and detailed format specification are publicly available on GitHub, inviting community review of the cryptography and any potential weaknesses.

Habr•Other

Ratcast Updates P2P App with Auto Quality Mode, Hardware Encoder Fixes and File Sharing

Ratcast has released a new version of its serverless P2P application focused on voice calls, video conferencing and joint content streaming. The update introduces automatic resolution adaptation that balances network bandwidth and encoder load to maintain optimal image quality without overloading the device. Hardware encoder issues were fixed for both NVENC on Windows and VideoToolbox on macOS, eliminating bitrate deviations that previously caused quality loss or packet loss. Users can now share files directly in chat by dragging them into the window or pasting from the clipboard. Full-screen mode is now available for the local camera in addition to remote participant feeds. Static image handling at high frame rates has also been improved to prevent unnecessary bitrate spikes.

AntiMalware•Other

SberTech Expands AI Agents in Platform V DataSpace to Enable Corporate Application Development from Text Descriptions

SberTech has introduced a new set of skills for its AI agents within the Platform V DataSpace platform, allowing the creation of corporate applications based on textual descriptions. The update focuses on automating the design of architectural components while respecting enterprise environment requirements. Presented at the AI Journey 2026 conference in Moscow, the skills draw from the company's low-code development practices and have been released openly on GitVerse. The AI agents can now handle user interfaces, server-side logic, data models, authorization mechanisms, and access rights. This addresses challenges in vibe coding by providing better architectural control and consistent service structures. According to CEO Maxim Tyatyushev, the capabilities support rapid prototyping, business hypothesis testing, and organizational scaling for both professional developers and non-programmers.