<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->

# API Reference — Performing Email Security Posture Assessment

## Commands

| Command | Description |
|---|---|
| `Resolve-DnsName -Type TXT` | Query SPF and DMARC DNS records |
| `Resolve-DnsName -Type CNAME` | Query DKIM selector records |
| `Get-TransportConfig` | Check Exchange transport security settings |
| `Get-OrganizationConfig` | Review tenant-level security configuration |
| `Get-AuthenticationPolicy` | Check modern authentication enforcement |
| `Get-CASMailbox` | Verify legacy protocol status per mailbox |
| `Get-HostedContentFilterPolicy` | Review anti-spam policy thresholds |

## Agent Script

```bash
# node agent.js assess --domain <value>
# node agent.js check-dns --domain <value>
# node agent.js benchmark --domain <value>
```
