Passkey Authentication & Anomaly Detection Agent with OpenAI Agents SDK
Develop a session security agent using OpenAI Agents SDK to analyze FIDO2 passkey login assertions and behavioral metadata. Detect zero-day credential relay attacks while streamlining passwordless authentication for Singapore public applications.
What you are building
Utilize OpenAI Agents SDK to inspect WebAuthn/Passkey authentication challenges and flag behavioral anomalies in real time.
How work is evaluated
Tests identification of passkey relay attacks vs legitimate authentication flows.
Datasets
Public datasets, plus the private datasets you have access to.
How submissions are scored
relay_attack_blocked
Ensures mismatched origin triggers immediate block
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
detection_accuracy
Accuracy of passkey origin verification • target: 1 • range: 0-1
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
Learning goals
Implement autonomous agent loops with OpenAI Agents SDK tool definitions
Verify WebAuthn passkey client data JSON signatures and origin assertions
Evaluate device fingerprint and IP geo-velocity anomalies to detect relay attacks
Generate immediate stepped-up authentication directives for flagged login sessions
Resources
Synthetic dataset of WebAuthn authentication payloads and network contexts.
Challenge setup
Tests identification of passkey relay attacks vs legitimate authentication flows.
Challenge input
JSON with passkey_assertion and session_context
OpenAI Agents SDK
Provides official SDK patterns for multi-turn autonomous tools.
Evaluated output
JSON with action (allow/challenge/block), anomaly_type, and risk_score
- Ensures mismatched origin triggers immediate block
- Accuracy of passkey origin verification • target: 1 • range: 0-1
- Benchmark: Authentication Anomaly Benchmark
- Detection Accuracy target: 1
- 1 public reference case
- Python execution harness
- Python sandbox (unavailable on Versalist)
Shows the first task, up to three tools, and up to three evidence items.
View technical recipe
Configured tools
- OpenAI · Required
- StackAI · Optional
- Smolagents · Optional
Evaluation contract
- relay_attack_blocked · Weight 1
- detection_accuracy · Weight 1
Metrics
- detection_accuracy · Target 1
Benchmarks
- Authentication Anomaly Benchmark
- security
Reference cases
- 1 public reference case
Workflow tasks
- Task 1
Input: JSON with passkey_assertion and session_context
Output: JSON with action (allow/challenge/block), anomaly_type, and risk_score
Execution harness: Python
Evaluation tools
- OpenAI Agents SDK · Agent Framework
Recipe freeze marker
No recipe freeze time is recorded.