Verification Factors

Enterprise and Military Grade Identity Verification Platform

6 powerful verification methods powered by AWS AI/ML services

Verification Factor Comparison

Factor Internal Users External Users Confidence AWS Service
Email OTP ✓ Auto-verified ✓ Factor 1 N/A Cognito + SES
Mobile OTP ✓ Required ✓ Factor 2 N/A SNS
Face Liveness 80% 90% High Rekognition
Document ID 85% 85% High Textract + Rekognition
2FA/TOTP ✓ Optional ✗ N/A High Cognito Software Token
Voice Biometrics ✓ Optional ✗ N/A Medium Transcribe + Polly

Factor 1: Email OTP Verification

Email verification via AWS Cognito + SES

Internal Users
  • Auto-verified: Cognito email verification at registration
  • No manual step: Email factor pre-checked
  • Confirmation link: Sent via SES
  • Expiry: 24 hours
External Users (Widget)
  • 6-digit OTP: Generated via crypto.randomInt
  • Delivery: AWS SES
  • Expiry: 5 minutes
  • Storage: DynamoDB with TTL
  • Attempts: Max 3 per session

Factor 2: Mobile OTP Verification

SMS verification via AWS SNS

Implementation
  • Format: E.164 normalized (+5511999998888)
  • OTP Generation: 6-digit crypto.randomInt
  • Delivery: Direct AWS SNS (no Cognito)
  • Expiry: 5 minutes
  • Hash: SHA-256 of normalized mobile for fraud detection
Security Features
  • Pre-filled: Phone from tenant profile (read-only)
  • Fraud Check: Inline duplicate detection via mobileHash
  • 3-Strike System: Blocks on 3rd duplicate attempt
  • Sandbox Mode: AWS SNS requires phone verification

Factor 3: Face Liveness Detection

Real-time face verification via AWS Rekognition

Detection Process
  • Service: AWS Rekognition DetectFaces
  • Confidence: 80% (internal) / 90% (external)
  • Checks: Real person, not photo/video
  • Storage: S3 (biometrics bucket, AES-256)
  • Hash: pHash for fraud pre-filter
  • Vector: 128-dimension face embedding
UI Features
  • Portrait Mode: 3:4 aspect ratio (mobile-first)
  • Face Oval: Positioning guide with blur outside
  • Eye Dots: Alignment guides
  • Mouth Guide: Positioning reference
  • Privacy: Blur effect outside face area
Fraud Detection: Face hash checked against GSI index. Rekognition CompareFaces confirms duplicates at 85% similarity threshold.

Factor 4: Document ID Verification

OCR + Face matching via AWS Textract + Rekognition

Supported Documents
  • RG (Brazilian ID): Front (photo) + Back (text fields)
  • Passport: Single open view (photo + all fields)
Extracted Fields:
  • REGISTRO GERAL (RG number)
  • NOME (Full name)
  • DATA DE EXPEDIÇÃO (Issue date)
  • FILIAÇÃO (Parents' names)
  • NATURALIDADE (Birth city)
  • DOC ORIGEM (Issuing region)
  • CPF (Brazilian SSN)
  • PASSPORT NUMBER (if passport)
Verification Pipeline
  1. Upload: Direct to S3 via presigned POST
  2. OCR: AWS Textract AnalyzeDocument
  3. Parser: Single parser auto-detects RG vs Passport
  4. Face Match: Rekognition CompareFaces (liveness vs document)
  5. Threshold: 85% similarity required
  6. Hash: SHA-256 of normalized text fields
  7. Storage: All fields written to profile
Accuracy: ~95% for document text, ~99% for face matching

Factor 5: Two-Factor Authentication (TOTP)

Authenticator app integration via AWS Cognito Software Token MFA

Setup Process
  1. Generate Secret: Cognito AssociateSoftwareToken
  2. QR Code: otpauth:// URL rendered to canvas
  3. Scan: User scans with Google Authenticator / Authy
  4. Verify: User enters 6-digit code
  5. Enable: Cognito VerifySoftwareToken + SetUserMFAPreference
  6. Profile: twoFactorAuth: true written
Supported Apps
  • Google Authenticator
  • Microsoft Authenticator
  • Authy
  • 1Password
  • Any TOTP-compatible app
Security Features:
  • Time-based: 30-second rotation
  • No SMS: More secure than SMS OTP
  • Offline: Works without internet
  • Backup Codes: Available for recovery

Factor 6: Voice Biometrics

Voice verification via AWS Transcribe + Polly

Enrollment Process
  1. Challenge Phrase: Random phrase from 8 options
  2. Polly Audio: Amazon Polly synthesizes phrase (Nova v2)
  3. User Records: MediaRecorder captures audio
  4. Upload: Direct to S3 via presigned POST
  5. Transcribe: StartTranscriptionJob
  6. Validation: Text match ≥80% similarity
  7. Storage: voiceprintS3Key written to profile
Verification Process
  1. New Challenge: Different random phrase
  2. User Records: Speaks the phrase
  3. Transcribe: Speech-to-text validation
  4. Compare: Word-level matching (80% threshold)
  5. Result: Pass/Fail based on similarity
Challenge Phrases:
  • "My voice is my password"
  • "Security is my priority"
  • "I verify my identity now"
  • + 5 more variations
Note: Voice ID (Amazon Connect) integration available but requires AWS account verification. Current implementation uses Transcribe + phrase matching.

Verification Thresholds

Parameter Value Purpose
FACE_LIVENESS_INTERNAL 80% Rekognition confidence for internal users
FACE_LIVENESS_EXTERNAL 90% Rekognition confidence for external users
FACE_SIMILARITY 85% CompareFaces threshold (liveness vs document)
DOCUMENT_CONFIDENCE 85% Textract OCR confidence threshold
VOICE_SIMILARITY 80% Word-level phrase matching threshold
OTP_EXPIRY 5 minutes Email/Mobile OTP validity period
OTP_MAX_ATTEMPTS 3 Maximum OTP verification attempts