Authentication and Security
Overview
Nquiry implements enterprise-grade authentication based on FedRAMP and NIST standards. The system supports multiple authentication factors and session management to protect sensitive investigation data.
Account Creation
Sign Up Process
- Enter email address
- Create password (must meet security requirements)
- Receive confirmation email
- Click link to verify email
- Account activated
Password Requirements
Based on NIST SP 800-63B guidelines:
| Requirement | Details |
|---|---|
| Minimum length | 8 characters |
| Maximum length | 64 characters (no arbitrary limit) |
| Character types | All Unicode characters allowed |
| Complexity rules | None (NIST recommends against) |
| Breached passwords | Blocked (checked against known breaches) |
Why no complexity rules? NIST research shows complexity requirements lead to predictable patterns ("Password1!"). Length and breach-checking provide better security.
Login Options
Standard Login (Email + Password)
- Enter email and password
- Complete MFA challenge (if enabled)
- Session created
Biometric/Passkey Login (WebAuthn)
For registered security keys or biometric devices:
- Click "Sign in with security key"
- Authenticate with device (fingerprint, face, hardware key)
- Session created
Supported authenticators:
- Touch ID / Face ID (Apple devices)
- Windows Hello
- Hardware security keys (YubiKey, etc.)
- Android biometrics
Multi-Factor Authentication (MFA)
TOTP Authenticator Apps
Set up time-based one-time passwords:
- Go to Settings → Account
- Click "Enable MFA"
- Scan QR code with authenticator app
- Enter verification code
- Save backup codes
Supported apps:
- Google Authenticator
- Microsoft Authenticator
- Authy
- 1Password
- Any TOTP-compatible app
Security Keys (WebAuthn)
Register hardware or platform authenticators:
- Go to Settings → Account
- Click "Add Security Key"
- Follow browser prompts
- Name your key
- Key registered
Benefits:
- Phishing-resistant
- No codes to enter
- Fast authentication
Session Management
Session Duration
| Setting | Value |
|---|---|
| Session lifetime | 24 hours |
| Idle timeout | 30 minutes |
| Token refresh | Automatic |
Session Security
- Sessions bound to browser fingerprint
- Concurrent sessions allowed
- Force logout available in settings
- All sessions cleared on password change
Security Information Page
After login, users see a security information page showing:
- Last login time and location
- Failed login attempts (if any)
- MFA status
- Security recommendations
Password Recovery
Forgot Password Flow
- Click "Forgot password?" on login page
- Enter email address
- Receive reset link (expires in 1 hour)
- Click link, enter new password
- All existing sessions invalidated
If MFA Is Enabled
Password reset also requires MFA verification to prevent unauthorized account recovery.
Account Security Features
Account Deletion
Users can delete their own account:
- Go to Settings → Account
- Click "Delete Account"
- Type confirmation phrase
- All data permanently deleted
Data Export
Before deletion, users can export their data:
- All investigations
- Evidence and attachments
- Analyses and reports
- Available in Settings → Account
Security Best Practices
For Users
- Use a strong, unique password - Consider a passphrase
- Enable MFA - Use authenticator app or security key
- Add a security key - Phishing-resistant authentication
- Review login activity - Check the security page after login
- Log out on shared devices - Don't stay logged in on public computers
For Administrators
- Require MFA - (Enterprise feature, coming post-launch)
- Review audit logs - Monitor for suspicious activity
- Remove departed users promptly - Prevent unauthorized access
- Use role-based access - Principle of least privilege
Audit Logging
All authentication events are logged:
| Event | Details Captured |
|---|---|
| Login attempt | Success/failure, IP, user agent, timestamp |
| MFA challenge | Method used, success/failure |
| Password change | Timestamp, IP address |
| Password reset | Requested, completed |
| MFA enrollment | Method type, device info |
| Session logout | Manual or timeout |
| Account deletion | Timestamp, deletion status |
Compliance
FedRAMP Alignment
Nquiry authentication meets FedRAMP Moderate controls:
- AC-2: Account Management
- AC-7: Unsuccessful Login Attempts
- IA-2: Identification and Authentication
- IA-5: Authenticator Management
- IA-11: Re-authentication
HIPAA Technical Safeguards
- Unique user identification (§164.312(a)(2)(i))
- Automatic logoff (§164.312(a)(2)(iii))
- Authentication (§164.312(d))
- Audit controls (§164.312(b))
Troubleshooting
Can't Log In
- Check email spelling
- Verify Caps Lock is off
- Try password reset
- Check if account is locked (5 failed attempts)
MFA Code Not Working
- Verify time is synced on your phone
- Use backup codes if available
- Contact administrator if locked out
Security Key Not Recognized
- Try removing and re-inserting
- Ensure browser supports WebAuthn
- Try a different browser
- Re-register the key if needed
Security Fixes Log
| Date | Fix | Issue |
|---|---|---|
| 2026-03-15 | Path traversal protection added to storage view/upload routes — rejects .. segments | NQU-391 |
| 2026-03-15 | SVG/HTML inline rendering disabled in storage view to prevent stored XSS | NQU-392 |
| 2026-03-15 | Ownership transfer wrapped in database transaction to prevent race conditions | NQU-393 |
| 2026-03-15 | Rerank client timeout added (AbortController, 15-30s per attempt) | NQU-395 |
Related Documentation
- Team Collaboration - Role-based access
- Billing - Account management