mirror of
https://github.com/mukul975/Anthropic-Cybersecurity-Skills.git
synced 2026-06-11 05:34:55 +03:00
c21af3347e
- Add scripts/agent.py and references/api-reference.md to all remaining skills - Update all 648 LICENSE files: copyright now reads 'Mahipal' - Add implementing-security-monitoring-with-datadog (new skill with full anatomy) - All 649 skills now have: SKILL.md, LICENSE, scripts/agent.py, references/api-reference.md
1.5 KiB
1.5 KiB
Duo MFA Configuration — API Reference
Libraries
| Library | Install | Purpose |
|---|---|---|
| duo_client | pip install duo_client |
Official Duo SDK for Python |
| requests | pip install requests |
HTTP client for Admin API |
Duo Admin API Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /admin/v1/users |
List all users with enrollment status |
| GET | /admin/v1/users/{user_id} |
Get user details and devices |
| GET | /admin/v1/info/summary |
Account summary (user count, integrations) |
| GET | /admin/v2/logs/authentication |
Authentication logs (v2 with paging) |
| POST | /admin/v1/users/enroll |
Enroll new user for MFA |
| POST | /admin/v1/users/{id}/bypass_codes |
Generate bypass codes |
Authentication (HMAC Signing)
import duo_client
admin_api = duo_client.Admin(
ikey="DIXXXXXXXXXXXXXXXXXX",
skey="YourSecretKey",
host="api-XXXXXXXX.duosecurity.com"
)
users = admin_api.get_users()
User Status Values
| Status | Description |
|---|---|
| active | User enrolled and can authenticate |
| bypass | MFA bypassed — security risk |
| disabled | User account disabled |
| locked_out | Temporarily locked due to failed attempts |