Security teams should collect browser-side signals in the client, pass them to the server, and send them with each authentication attempt alongside the server-derived IP address and user agent. That gives the risk engine enough context to distinguish normal users from suspicious automation. Start in log mode, review decisions against real traffic, then enforce only after the flow behaves as expected.
Why This Matters for Security Teams
Hosted authentication UIs often hide the very signals a risk engine needs to judge whether a sign in or sign up attempt is ordinary or automated. Custom flows can be safer, but only if the client collects enough browser-side context and the server evaluates it consistently with each attempt. That approach supports the control expectations in NIST SP 800-53 Rev 5 Security and Privacy Controls and aligns with the broader identity governance concerns covered in Top 10 NHI Issues.
The mistake security teams make is assuming that a sign in page is only a user experience problem. In practice, it is a policy enforcement point where device behaviour, session continuity, IP reputation, and user agent consistency all matter. If those signals are not gathered at the right time, the risk engine is forced to rely on weak inputs and static rules that attackers can replay, spoof, or bypass. Current guidance suggests starting with the client, not the hosted UI, when customisation is required.
In practice, many security teams encounter suspicious automation only after credential stuffing or account creation abuse has already caused damage, rather than through intentional design of the sign in and sign up flow.
How It Works in Practice
A robust custom flow splits responsibilities between the browser and the backend. The client collects browser-side signals such as device characteristics, interaction timing, and integrity hints, then posts them to the server alongside the credentials or registration payload. The server adds its own context, including the source IP address and user agent, and forwards the full event to the risk engine for evaluation at request time. That is materially stronger than relying on a pre-rendered hosted authentication screen because the application owns the evidence bundle.
For security teams, the operational pattern is straightforward:
- Collect client-side signals only when they are needed for risk decisions.
- Bind those signals to the specific authentication attempt so they cannot be reused across sessions.
- Evaluate risk in log mode first, then compare decisions against real traffic before enforcement.
- Require server-side validation of the submitted context, not just trust the browser.
- Preserve a clear audit trail so false positives can be investigated and tuned.
This approach fits the control emphasis in NIST Cybersecurity Framework 2.0 and the NHI governance issues outlined in The 2024 ESG Report: Managing Non-Human Identities, especially where weak monitoring and over-privilege increase the impact of a successful compromise. It also reflects the practical lesson in Ultimate Guide to NHIs — Why NHI Security Matters Now: security decisions are only as good as the context delivered to them.
These controls tend to break down when mobile app flows, aggressive bot traffic, or privacy restrictions prevent the client from collecting stable signals because the risk engine loses the continuity it needs to distinguish a legitimate user from scripted automation.
Common Variations and Edge Cases
Tighter risk checks often increase friction and engineering overhead, requiring organisations to balance better abuse detection against conversion loss and support burden. The right design depends on whether the flow is public-facing, enterprise-managed, or used for high-risk transactions.
There is no universal standard for how much client telemetry is enough, and current guidance suggests avoiding brittle fingerprinting schemes that overreach privacy or break frequently. For low-risk registration flows, lighter checks may be acceptable. For privileged enrolment, financial onboarding, or workflows that can create new credentials or tokens, stronger context collection is justified. Security teams should also treat repeated failures, impossible travel, and inconsistent device signals as signals to step up verification, not as standalone proof of malicious intent.
Two common edge cases matter. First, some privacy-preserving browsers and corporate hardening tools reduce the available client context, so the server should degrade gracefully instead of hard-blocking legitimate users. Second, if the application is used by agents or automation on purpose, the workflow should be separated from human sign in entirely and governed as workload access, not as a person-centric login path. That distinction reduces false positives and keeps policy aligned with the actual identity type. Best practice is evolving, but the core rule remains: collect context at the point of authentication, then make the decision on the server, not in the UI alone.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10, OWASP Agentic AI Top 10 and CSA MAESTRO address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-03 | Risk checks depend on secure handling of identity signals and credentials in custom flows. |
| OWASP Agentic AI Top 10 | A-04 | Custom auth flows must resist abuse when automated actors can probe or replay login logic. |
| CSA MAESTRO | MAESTRO addresses runtime governance for autonomous and dynamic access decisions. | |
| NIST AI RMF | AI RMF supports governed, traceable decisioning for dynamic risk scoring. | |
| NIST CSF 2.0 | PR.AA-1 | Authentication assurance requires validating identity context during each request. |
Validate and protect all authentication inputs server-side, and rotate any secrets tied to the sign in flow.
Related resources from NHI Mgmt Group
- How should security teams implement passwordless authentication without creating new recovery risk?
- How should security teams implement passwordless authentication without increasing access risk?
- How should security teams implement Client ID Metadata Documents?
- How should security teams implement zero trust authentication without adding too much user friction?
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on August 24, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org