fairwire-mfa-coverage 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0 (unreleased)
4
+
5
+ - First version (Fairwire ver 1).
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Kurt Francisco
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,217 @@
1
- # Temporary Holding Version
1
+ # Fairwire MFA Coverage
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ MFA coverage from an identity provider export: active users with no MFA registered, users with only SMS or voice, administrators without phishing-resistant MFA, people excluded from MFA policy, registered but never used, and shared accounts that can sign in. Names masked for the model. Drafts notes; never changes a policy.
4
+
5
+ Part of **Fairwire**, the IT and network family of [Mythos Machines](https://fair-agents.com) agents. The software is free (MIT); you pay a fixed price for the setup on your files. It reads files your IT team exports, on your own computer, and drafts notes. Every change to a live device, firewall, DNS zone, directory or cloud account stays one named person's click.
6
+
7
+ ## What it checks
8
+
9
+ | Finding | What it means |
10
+ |---|---|
11
+ | `admin_without_strong_mfa` | An administrator with no phishing-resistant method (security key, passkey, Windows Hello or certificate). |
12
+ | `no_mfa` | An active account that can sign in with no second factor registered. |
13
+ | `excluded_from_mfa` | An active account excluded from the MFA policy that is not one of your listed break-glass accounts. |
14
+ | `weak_methods_only` | An account whose only second factors are SMS, voice calls or e-mail codes. |
15
+ | `shared_account_can_sign_in` | A shared or resource mailbox that can sign in directly (nobody owns its second factor). |
16
+ | `registered_never_used` | An account that signs in but has registered MFA it never uses (often a policy gap). |
17
+
18
+ Findings come back worst first (high, medium, low). A finding a named person has reviewed can be accepted as known, with a reason and a date to look again; it then moves to "Accepted as known" instead of counting as open.
19
+
20
+ ## Settings
21
+
22
+ Pass a settings file with `settings`. Every setting is optional; a misspelt setting is refused by name.
23
+
24
+ | Setting | What it does |
25
+ |---|---|
26
+ | `break_glass` | Emergency access accounts that are excluded from MFA on purpose |
27
+ | `weak_methods` | Method words that count as weak (default sms, voice, phone call, text, email) |
28
+ | `strong_methods` | Method words that count as phishing-resistant (default fido2, security key, passkey, windows hello, certificate) |
29
+ | `unused_days` | Days without a second factor after which a registered account counts as not using it (default 90) |
30
+
31
+ ## What it never does
32
+
33
+ - `idp_change_policy` is refused: Fairwire MFA Coverage never changes a conditional access or MFA policy.
34
+ - `idp_reset_methods` is refused: Fairwire MFA Coverage never resets or removes anyone's authentication methods.
35
+ - `mfa_request_send` waits for one named person's click, even in Auto (`binding_send`).
36
+ - `mfa_accept_learning` waits for one named person's click, even in Auto (`accept_learning`).
37
+ - `mfa_retire_memory` waits for one named person's click, even in Auto (`accept_learning`).
38
+ - `idp_change_policy` waits for one named person's click, even in Auto (`production_deploy`).
39
+ - `idp_reset_methods` waits for one named person's click, even in Auto (`revoke_access`).
40
+
41
+ <!-- generated:start -->
42
+
43
+ ## A demo run
44
+
45
+ `npx -y fairwire-mfa-coverage demo` runs the agent on the fictional files in [`fixtures/`](fixtures) in a temporary folder. Captured output:
46
+
47
+ ```text
48
+ Fairwire MFA Coverage demo (fictional data) in a temporary folder, Auto on for the draft only
49
+
50
+ ▶ Check the exported files
51
+ status: executed decision: allow
52
+ 9 active account(s) of 10, 66.7% with MFA, 22.2% phishing-resistant, 3 admin(s): 8 open finding(s), 3 high.
53
+ high admin_without_strong_mfa IT
54
+ high admin_without_strong_mfa IT
55
+ high no_mfa Sales
56
+ medium excluded_from_mfa Finance
57
+ medium shared_account_can_sign_in Facilities
58
+ medium weak_methods_only Sales
59
+ low registered_never_used Finance
60
+ low registered_never_used Finance
61
+
62
+ ▶ Explain one finding
63
+ status: executed decision: allow
64
+ medium excluded_from_mfa: PERSON-dcd3514b (USR-e8b98e7f) is excluded from the MFA policy. Fix: Remove the exclusion, or record why and until when, and add it to the break-glass list only if it is one.
65
+ low registered_never_used: PERSON-dcd3514b (USR-e8b98e7f) signs in but has not used a second factor since 2026-08-01. Fix: Check which sign-ins skip MFA (trusted locations, legacy apps) and close the gap.
66
+
67
+ ▶ Write the worklist
68
+ status: executed decision: allow
69
+ MFA coverage written: 9 active account(s) of 10, 66.7% with MFA, 22.2% phishing-resistant, 3 admin(s): 8 open finding(s), 3 high.
70
+
71
+ ▶ Draft the note for a person
72
+ status: executed decision: allow (auto)
73
+ identity note 2026-11-18 drafted with 1 open marker(s) ([TO CONFIRM identity and security team]). Nothing was sent.
74
+
75
+ ▶ Auto: approving it still waits for one named person
76
+ status: needs_approval decision: ask
77
+ reason: binding_send stays one-click, even in Auto
78
+
79
+ ▶ The agent tries to change the live system itself
80
+ status: blocked decision: block
81
+ reason: Fairwire MFA Coverage never changes a conditional access or MFA policy.
82
+ ```
83
+
84
+ ## Tools
85
+
86
+ | Tool | What it does | Policy |
87
+ |---|---|---|
88
+ | `mfa_check` | Review MFA registration per active account and list admins without strong MFA, accounts without MFA, exclusions, weak methods, shared accounts and unused MFA. | runs |
89
+ | `mfa_explain` | Every finding for one account. | runs |
90
+ | `mfa_write_report` | Write mfa-coverage.csv (one row per finding, with blank owner and decision columns) and mfa-coverage.html into out_dir (default fairwire-out/mfa). | runs |
91
+ | `mfa_draft_identity_note` | Write drafts/identity_note-<date>.md: the open findings at or above min_severity (default medium), each with what to do, addressed to identity and security team. | asks first (Auto can be opted in) |
92
+ | `mfa_request_send` | After one named human click (even in Auto), record that the reviewed identity note draft is approved in identity_note-requests.csv. | one named click, even in Auto (`binding_send`) |
93
+ | `mfa_recall` | Search this agent's own memory of the customer's setup: accepted facts (in use) and facts waiting for a person. | runs |
94
+ | `mfa_learn` | Propose one fact about the customer's setup for this agent to remember. | runs |
95
+ | `mfa_accept_learning` | A named person accepts or rejects a fact waiting in this agent's memory. | one named click, even in Auto (`accept_learning`) |
96
+ | `mfa_retire_memory` | A named person stops an accepted fact from applying. | one named click, even in Auto (`accept_learning`) |
97
+ | `idp_change_policy` | Fairwire MFA Coverage never changes a conditional access or MFA policy. | refused |
98
+ | `idp_reset_methods` | Fairwire MFA Coverage never resets or removes anyone's authentication methods. | refused |
99
+
100
+ Any tool name not in this table is blocked, including names a model invents. `refused` tools are listed so a model can see they exist and are refused.
101
+
102
+ ## Columns it reads
103
+
104
+ Table inputs can be CSV, TSV, semicolon- or pipe-separated text, Excel `.xlsx`, JSON or JSONL. Columns are matched by the agent's own name, then by the English names below, then by their names in German, French, Spanish, Portuguese, Italian, Japanese, Chinese and Korean. Dates become `YYYY-MM-DD`; amounts and counts are read with either decimal mark. Every result lists under `sources` how each file was read.
105
+
106
+ ### Accounts and MFA methods (`users`)
107
+
108
+ | Column | Type | Also read as | For example, in other languages |
109
+ |---|---|---|---|
110
+ | `user` (required) | text | User principal name, UPN, User, Username, Login, Email | Benutzer, Utilisateur, ユーザー, 用户 |
111
+ | `display_name` | text | Display name, Name, Full Name | - |
112
+ | `enabled` | text | Account enabled, Enabled, Status, Active, Sign-in allowed | Aktiviert, Activé, 有効, 已启用 |
113
+ | `user_type` | text | User type, Type, Account Type, Recipient Type | - |
114
+ | `is_admin` | text | Is admin, Admin, Privileged, Has admin role, Administrator | - |
115
+ | `mfa_registered` | text | Is MFA registered, MFA Registered, MFA Enrolled, Multifactor, MFA Status | - |
116
+ | `methods` | text | Methods registered, Methods, Authentication Methods, Factors, Enrolled Factors | - |
117
+ | `excluded` | text | Excluded from MFA, MFA Exclusion, Excluded, Policy Exclusion | - |
118
+ | `last_sign_in` | date | Last sign-in, Last Sign In, Last Login, Last Activity | Letzte Anmeldung, Dernière connexion, 最終ログイン, 最后登录 |
119
+ | `last_mfa` | date | Last MFA, Last MFA Use, Last Second Factor, Last strong auth | - |
120
+ | `department` | text | Department, Team, Division | Abteilung, Département, 部署, 部门 |
121
+
122
+ Named exports recognised by their column names:
123
+
124
+ | System | Export | Recognised by | Layout checked against vendor docs |
125
+ |---|---|---|---|
126
+ | Microsoft Entra ID | User registration details (authentication methods) exported as CSV | User principal name, Is MFA registered | no |
127
+
128
+ Where a layout says "checked", its column names were compared with the vendor's documentation on that date. The other layouts were written from knowledge of the export and were not checked. None was tested against a live account.
129
+
130
+ ### Files from other countries
131
+
132
+ A German export in Windows-1252 with semicolons, `1.234,56` and `03.11.2026`, or a Japanese one in Shift_JIS with `2026/11/03`, is read the same way as the English file. [`fixtures/intl/`](fixtures/intl) has both versions of the demo data, and the eval cases `intl-de-*` and `intl-ja-*` require the same results as the English case. Columns named differently? Run `npx fairwire-mfa-coverage inspect <file>` (names and shapes only, never values) and name them in `fairwire-sources.json`:
133
+
134
+ ```json
135
+ { "files": { "exports/devices.csv": { "columns": { "host": "Gerätename" }, "date_order": "dmy" } } }
136
+ ```
137
+
138
+ ## Memory
139
+
140
+ fairwire-mfa-coverage can remember facts about your setup so the next run does not have to be told again. `mfa_learn` only proposes a fact; it changes nothing until a named person accepts it with `mfa_accept_learning`, which is one click even in Auto. Facts live in one hash-chained file per agent under `.fairwire/memory/`; if the chain does not verify, no fact is used. Credentials, personal identifiers and text that reads like instructions to an AI are refused. Run without memory with `--no-memory`.
141
+
142
+ | Kind | What an accepted fact changes |
143
+ |---|---|
144
+ | `known_exception` | that finding is listed under "Accepted as known" instead of as open, until review_by (when given) has passed. |
145
+ | `note` | nothing (shown by recall only) |
146
+
147
+ ```bash
148
+ fairwire-mfa-coverage memory list
149
+ fairwire-mfa-coverage memory accept MEM-1a2b3c4d5e6f --as "Your Name"
150
+ fairwire-mfa-coverage memory retire MEM-1a2b3c4d5e6f --as "Your Name" --reason "rule removed"
151
+ ```
152
+
153
+ ## Install
154
+
155
+ Node 20 or newer. No other dependencies.
156
+
157
+ ```bash
158
+ npx -y fairwire-mfa-coverage demo
159
+ npx -y fairwire-mfa-coverage mcp --root /path/to/your/files
160
+ ```
161
+
162
+ Claude Desktop, Cursor and other MCP hosts:
163
+
164
+ ```json
165
+ {
166
+ "mcpServers": {
167
+ "fairwire-mfa-coverage": {
168
+ "command": "npx",
169
+ "args": [
170
+ "-y",
171
+ "fairwire-mfa-coverage",
172
+ "mcp",
173
+ "--root",
174
+ "/path/to/your/files"
175
+ ]
176
+ }
177
+ }
178
+ }
179
+ ```
180
+
181
+ Claude Code: `claude mcp add fairwire-mfa-coverage -- npx -y fairwire-mfa-coverage mcp --root .`, or install the `fairwire-mfa-coverage` plugin from this repository's marketplace.
182
+
183
+ ## Modes and approvals
184
+
185
+ - **Review** (`--mode review`): reads and reports only.
186
+ - **Assist** (default): the policy above. A tool that asks returns an `approval_id`; a person approves it once with `fairwire-mfa-coverage approve <id> --as "Your Name"` (or on the local approvals page, `fairwire-mfa-coverage approvals`), and the same call is repeated.
187
+ - **Auto** (`--mode auto --auto <tool,...>`): opt-in per tool, with step caps and a kill switch (`fairwire-mfa-coverage kill`). Paying, sending, posting to a ledger or a live system and accepting a learned fact stay **one named click even in Auto**; an approval is tied to the sha256 of the reviewed draft, so a changed draft needs a new click.
188
+
189
+ ## CLI
190
+
191
+ ```bash
192
+ fairwire-mfa-coverage tools # every tool, its policy and arguments
193
+ fairwire-mfa-coverage sources # the columns each input is read from
194
+ fairwire-mfa-coverage inspect <file> # how a file would be read (names and shapes, never values)
195
+ fairwire-mfa-coverage call mfa_check '{"users":"<users>"}'
196
+ fairwire-mfa-coverage eval # the private eval cases on the fictional fixtures
197
+ fairwire-mfa-coverage demo
198
+ ```
199
+
200
+ ## Audit log and data
201
+
202
+ Every call is written to `.fairwire/audit.jsonl` under the root: hash-chained JSON lines, with arguments stored as a hash, signed with an Ed25519 key when you configure one. Everything runs on your machine on files you choose. No network calls, no telemetry, no credentials. The bundled fixtures are fictional.
203
+
204
+ <!-- generated:end -->
205
+
206
+ ## Limits
207
+
208
+ - Reads only the files you export and give it. It does not log in to a firewall, switch, controller, cloud console, identity provider or any other live system.
209
+ - Registration is not enforcement: an account can have MFA registered and still sign in without it where a policy allows that. Pair this with the sign-in log review (fairwire-sign-in-logs).
210
+ - Thresholds are working defaults in a settings file you control; they are not a vendor rule, a requirement of any standard or a security guarantee.
211
+ - Results returned to the AI model have the names of people, sign-in names, e-mail addresses, phone numbers and client addresses masked. The files written here keep the real values: keep them in a secure folder.
212
+ - It changes nothing on a live device, firewall, DNS zone, directory or cloud account. Every change it suggests is a draft that one named person applies.
213
+ - Export layouts were written from knowledge of common exports and have not been tested on live customer accounts. Run `inspect` on a new export and name columns in `fairwire-sources.json` when they differ.
214
+
215
+ ## Licence
216
+
217
+ MIT. Fictional data only in `fixtures/`.
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ import { fileURLToPath } from 'node:url';
3
+ import { main } from 'fairwire-core';
4
+ import { manifest } from '../src/manifest.js';
5
+ import { demo } from '../src/demo.js';
6
+
7
+ main(manifest, { bin: 'fairwire-mfa-coverage', demo, evalFile: fileURLToPath(new URL('../evals/cases.json', import.meta.url)) });
@@ -0,0 +1,343 @@
1
+ {
2
+ "suite": "fairwire-mfa-coverage",
3
+ "root": "..",
4
+ "data_note": "Fictional accounts in ../fixtures, as of 2026-11-18. No model is called.",
5
+ "cases": [
6
+ {
7
+ "id": "check-totals",
8
+ "tool": "mfa_check",
9
+ "args": {
10
+ "users": "fixtures/users.csv",
11
+ "settings": "fixtures/settings.json",
12
+ "as_of": "2026-11-18"
13
+ },
14
+ "expect": {
15
+ "equals": {
16
+ "result.accounts": 10,
17
+ "result.active": 9,
18
+ "result.registered_pct": 66.7,
19
+ "result.strong_pct": 22.2,
20
+ "result.admins": 3,
21
+ "result.open": 8,
22
+ "result.high": 3
23
+ }
24
+ }
25
+ },
26
+ {
27
+ "id": "every-planted-issue",
28
+ "tool": "mfa_check",
29
+ "args": {
30
+ "users": "fixtures/users.csv",
31
+ "settings": "fixtures/settings.json",
32
+ "as_of": "2026-11-18"
33
+ },
34
+ "expect": {
35
+ "contains": [
36
+ "admin_without_strong_mfa",
37
+ "only authenticator app, sms",
38
+ "no_mfa",
39
+ "excluded_from_mfa",
40
+ "weak_methods_only",
41
+ "sms, voice",
42
+ "shared_account_can_sign_in",
43
+ "registered_never_used",
44
+ "since 2026-06-30"
45
+ ]
46
+ }
47
+ },
48
+ {
49
+ "id": "names-masked",
50
+ "tool": "mfa_check",
51
+ "args": {
52
+ "users": "fixtures/users.csv",
53
+ "settings": "fixtures/settings.json",
54
+ "as_of": "2026-11-18"
55
+ },
56
+ "expect": {
57
+ "not_contains": [
58
+ "Ana Ortiz",
59
+ "cdiaz",
60
+ "example.test"
61
+ ],
62
+ "matches": [
63
+ "USR-[0-9a-f]{8}"
64
+ ]
65
+ }
66
+ },
67
+ {
68
+ "id": "without-break-glass-list",
69
+ "tool": "mfa_check",
70
+ "args": {
71
+ "users": "fixtures/users.csv",
72
+ "as_of": "2026-11-18"
73
+ },
74
+ "expect": {
75
+ "equals": {
76
+ "result.open": 10,
77
+ "result.high": 4
78
+ }
79
+ }
80
+ },
81
+ {
82
+ "id": "explain-account",
83
+ "tool": "mfa_explain",
84
+ "args": {
85
+ "users": "fixtures/users.csv",
86
+ "settings": "fixtures/settings.json",
87
+ "as_of": "2026-11-18",
88
+ "user": "emoss@example.test"
89
+ },
90
+ "expect": {
91
+ "contains": [
92
+ "excluded_from_mfa",
93
+ "registered_never_used"
94
+ ],
95
+ "equals": {
96
+ "result.findings": 2
97
+ }
98
+ }
99
+ },
100
+ {
101
+ "id": "draft-after-approval",
102
+ "tool": "mfa_draft_identity_note",
103
+ "approve": "Pat Example",
104
+ "args": {
105
+ "users": "fixtures/users.csv",
106
+ "settings": "fixtures/settings.json",
107
+ "as_of": "2026-11-18"
108
+ },
109
+ "expect": {
110
+ "status": "executed",
111
+ "contains": [
112
+ "Nothing was sent"
113
+ ],
114
+ "equals": {
115
+ "result.items": 6,
116
+ "result.open_markers": 1
117
+ }
118
+ }
119
+ },
120
+ {
121
+ "id": "review-mode-still-reads",
122
+ "tool": "mfa_check",
123
+ "mode": "review",
124
+ "args": {
125
+ "users": "fixtures/users.csv",
126
+ "settings": "fixtures/settings.json",
127
+ "as_of": "2026-11-18"
128
+ },
129
+ "expect": {
130
+ "status": "executed",
131
+ "equals": {
132
+ "result.accounts": 10,
133
+ "result.active": 9,
134
+ "result.registered_pct": 66.7,
135
+ "result.strong_pct": 22.2,
136
+ "result.admins": 3,
137
+ "result.open": 8,
138
+ "result.high": 3
139
+ }
140
+ },
141
+ "generated": true
142
+ },
143
+ {
144
+ "id": "severity-filter",
145
+ "tool": "mfa_check",
146
+ "args": {
147
+ "users": "fixtures/users.csv",
148
+ "settings": "fixtures/settings.json",
149
+ "as_of": "2026-11-18",
150
+ "severity": "high"
151
+ },
152
+ "expect": {
153
+ "status": "executed",
154
+ "equals": {
155
+ "result.findings": 3
156
+ }
157
+ },
158
+ "generated": true
159
+ },
160
+ {
161
+ "id": "missing-argument-named",
162
+ "tool": "mfa_check",
163
+ "args": {},
164
+ "expect": {
165
+ "status": "error",
166
+ "contains": [
167
+ "users"
168
+ ]
169
+ },
170
+ "generated": true
171
+ },
172
+ {
173
+ "id": "file-outside-root-refused",
174
+ "tool": "mfa_check",
175
+ "args": {
176
+ "users": "../../../outside.csv",
177
+ "settings": "fixtures/settings.json",
178
+ "as_of": "2026-11-18"
179
+ },
180
+ "expect": {
181
+ "status": "error",
182
+ "contains": [
183
+ "outside"
184
+ ]
185
+ },
186
+ "generated": true
187
+ },
188
+ {
189
+ "id": "invented-tool-name-refused",
190
+ "tool": "mfa_apply_every_fix_now",
191
+ "args": {},
192
+ "expect": {
193
+ "status": "blocked"
194
+ },
195
+ "generated": true
196
+ },
197
+ {
198
+ "id": "write-report-writes-files",
199
+ "tool": "mfa_write_report",
200
+ "args": {
201
+ "users": "fixtures/users.csv",
202
+ "settings": "fixtures/settings.json",
203
+ "as_of": "2026-11-18"
204
+ },
205
+ "expect": {
206
+ "status": "executed",
207
+ "contains": [
208
+ "mfa-coverage.csv",
209
+ "mfa-coverage.html"
210
+ ]
211
+ },
212
+ "generated": true
213
+ },
214
+ {
215
+ "id": "recall-memory-starts-empty",
216
+ "tool": "mfa_recall",
217
+ "args": {},
218
+ "expect": {
219
+ "status": "executed",
220
+ "contains": [
221
+ "memory is empty"
222
+ ]
223
+ },
224
+ "generated": true
225
+ },
226
+ {
227
+ "id": "accept-learning-stays-one-click",
228
+ "tool": "mfa_accept_learning",
229
+ "mode": "auto",
230
+ "args": {
231
+ "id": "MEM-000000000000",
232
+ "decision": "accept"
233
+ },
234
+ "expect": {
235
+ "status": "needs_approval"
236
+ },
237
+ "generated": true
238
+ },
239
+ {
240
+ "id": "never-idp-change-policy",
241
+ "tool": "idp_change_policy",
242
+ "mode": "auto",
243
+ "args": {},
244
+ "expect": {
245
+ "status": "blocked"
246
+ },
247
+ "generated": true
248
+ },
249
+ {
250
+ "id": "never-idp-reset-methods",
251
+ "tool": "idp_reset_methods",
252
+ "mode": "auto",
253
+ "args": {},
254
+ "expect": {
255
+ "status": "blocked"
256
+ },
257
+ "generated": true
258
+ },
259
+ {
260
+ "id": "draft-waits-for-a-person",
261
+ "tool": "mfa_draft_identity_note",
262
+ "args": {
263
+ "users": "fixtures/users.csv",
264
+ "settings": "fixtures/settings.json",
265
+ "as_of": "2026-11-18"
266
+ },
267
+ "expect": {
268
+ "status": "needs_approval",
269
+ "decision": "ask"
270
+ },
271
+ "generated": true
272
+ },
273
+ {
274
+ "id": "review-mode-drafts-nothing",
275
+ "tool": "mfa_draft_identity_note",
276
+ "mode": "review",
277
+ "args": {
278
+ "users": "fixtures/users.csv",
279
+ "settings": "fixtures/settings.json",
280
+ "as_of": "2026-11-18"
281
+ },
282
+ "expect": {
283
+ "status": "blocked"
284
+ },
285
+ "generated": true
286
+ },
287
+ {
288
+ "id": "request-stays-one-click",
289
+ "tool": "mfa_request_send",
290
+ "mode": "auto",
291
+ "args": {
292
+ "draft": "fixtures/README.md",
293
+ "draft_sha256": "0000000000000000000000000000000000000000000000000000000000000000"
294
+ },
295
+ "expect": {
296
+ "status": "needs_approval"
297
+ },
298
+ "generated": true
299
+ },
300
+ {
301
+ "id": "intl-de-check-totals",
302
+ "tool": "mfa_check",
303
+ "args": {
304
+ "users": "fixtures/intl/de/users.csv",
305
+ "settings": "fixtures/settings.json",
306
+ "as_of": "2026-11-18"
307
+ },
308
+ "expect": {
309
+ "equals": {
310
+ "result.accounts": 10,
311
+ "result.active": 9,
312
+ "result.registered_pct": 66.7,
313
+ "result.strong_pct": 22.2,
314
+ "result.admins": 3,
315
+ "result.open": 8,
316
+ "result.high": 3
317
+ }
318
+ },
319
+ "note": "German export of the same data (fixtures/intl/de); must match the English case \"check-totals\"."
320
+ },
321
+ {
322
+ "id": "intl-ja-check-totals",
323
+ "tool": "mfa_check",
324
+ "args": {
325
+ "users": "fixtures/intl/ja/users.csv",
326
+ "settings": "fixtures/settings.json",
327
+ "as_of": "2026-11-18"
328
+ },
329
+ "expect": {
330
+ "equals": {
331
+ "result.accounts": 10,
332
+ "result.active": 9,
333
+ "result.registered_pct": 66.7,
334
+ "result.strong_pct": 22.2,
335
+ "result.admins": 3,
336
+ "result.open": 8,
337
+ "result.high": 3
338
+ }
339
+ },
340
+ "note": "Japanese export of the same data (fixtures/intl/ja); must match the English case \"check-totals\"."
341
+ }
342
+ ]
343
+ }
@@ -0,0 +1,6 @@
1
+ # Fairwire MFA Coverage fixtures
2
+
3
+ Fictional accounts at example.test.
4
+
5
+ - `users.csv`: 10 accounts. Ana Ortiz is an admin with only an app and SMS; Cy Diaz has no MFA; Dee Lee has SMS and voice only; Eli Moss is excluded from the MFA policy; Fay Nunez signs in but last used MFA in June; the reception shared mailbox can sign in; the break-glass admin is excluded on purpose (listed in settings, but still has no phishing-resistant method); Hal Quinn is disabled and skipped.
6
+ - `settings.json`: names the break-glass account.
@@ -0,0 +1,12 @@
1
+ # Fixtures from other countries
2
+
3
+ Generated by `node scripts/make-intl-fixtures.mjs` from the English fixtures one
4
+ folder up. The same fictional data, written the way a local export writes it:
5
+
6
+ - `de/`: German column names, Windows-1252 text, semicolons, comma decimals
7
+ (1.234,56), day-first dotted dates (03.11.2026), kilograms and kilometres.
8
+ - `ja/`: Japanese column names, Shift_JIS text, year-first dates (2026/11/03),
9
+ kilograms and kilometres.
10
+
11
+ Values (names, codes, charge wording) stay in English. The eval cases
12
+ `intl-de-*` and `intl-ja-*` expect exactly the same results as the English case.
@@ -0,0 +1,11 @@
1
+ Benutzer;display_name;Aktiviert;user_type;is_admin;mfa_registered;methods;excluded;Letzte Anmeldung;last_mfa;Abteilung
2
+ aortiz@example.test;Ana Ortiz;true;Member;yes;yes;authenticator app, sms;no;17.11.2026;17.11.2026;IT
3
+ bkim@example.test;Ben Kim;true;Member;yes;yes;fido2, authenticator app;no;17.11.2026;17.11.2026;IT
4
+ cdiaz@example.test;Cy Diaz;true;Member;no;no;;no;16.11.2026;;Sales
5
+ dlee@example.test;Dee Lee;true;Member;no;yes;sms, voice;no;15.11.2026;15.11.2026;Sales
6
+ emoss@example.test;Eli Moss;true;Member;no;yes;authenticator app;yes;14.11.2026;01.08.2026;Finance
7
+ fnunez@example.test;Fay Nunez;true;Member;no;yes;authenticator app;no;17.11.2026;30.06.2026;Finance
8
+ gpark@example.test;Gus Park;true;Member;no;yes;passkey, authenticator app;no;17.11.2026;17.11.2026;Finance
9
+ reception@example.test;Reception Desk;true;Shared mailbox;no;no;;no;17.11.2026;;Facilities
10
+ breakglass1@example.test;Emergency Access 1;true;Member;yes;no;;yes;01.06.2026;;IT
11
+ hquinn@example.test;Hal Quinn;false;Member;no;no;;no;01.03.2026;;Sales
@@ -0,0 +1,11 @@
1
+ ���[�U�[,display_name,�L��,user_type,is_admin,mfa_registered,methods,excluded,�ŏI���O�C��,last_mfa,����
2
+ aortiz@example.test,Ana Ortiz,true,Member,yes,yes,"authenticator app, sms",no,2026/11/17,2026/11/17,IT
3
+ bkim@example.test,Ben Kim,true,Member,yes,yes,"fido2, authenticator app",no,2026/11/17,2026/11/17,IT
4
+ cdiaz@example.test,Cy Diaz,true,Member,no,no,,no,2026/11/16,,Sales
5
+ dlee@example.test,Dee Lee,true,Member,no,yes,"sms, voice",no,2026/11/15,2026/11/15,Sales
6
+ emoss@example.test,Eli Moss,true,Member,no,yes,authenticator app,yes,2026/11/14,2026/08/01,Finance
7
+ fnunez@example.test,Fay Nunez,true,Member,no,yes,authenticator app,no,2026/11/17,2026/06/30,Finance
8
+ gpark@example.test,Gus Park,true,Member,no,yes,"passkey, authenticator app",no,2026/11/17,2026/11/17,Finance
9
+ reception@example.test,Reception Desk,true,Shared mailbox,no,no,,no,2026/11/17,,Facilities
10
+ breakglass1@example.test,Emergency Access 1,true,Member,yes,no,,yes,2026/06/01,,IT
11
+ hquinn@example.test,Hal Quinn,false,Member,no,no,,no,2026/03/01,,Sales
@@ -0,0 +1,3 @@
1
+ {
2
+ "break_glass": ["breakglass1@example.test"]
3
+ }
@@ -0,0 +1,11 @@
1
+ user,display_name,enabled,user_type,is_admin,mfa_registered,methods,excluded,last_sign_in,last_mfa,department
2
+ aortiz@example.test,Ana Ortiz,true,Member,yes,yes,"authenticator app, sms",no,2026-11-17,2026-11-17,IT
3
+ bkim@example.test,Ben Kim,true,Member,yes,yes,"fido2, authenticator app",no,2026-11-17,2026-11-17,IT
4
+ cdiaz@example.test,Cy Diaz,true,Member,no,no,,no,2026-11-16,,Sales
5
+ dlee@example.test,Dee Lee,true,Member,no,yes,"sms, voice",no,2026-11-15,2026-11-15,Sales
6
+ emoss@example.test,Eli Moss,true,Member,no,yes,authenticator app,yes,2026-11-14,2026-08-01,Finance
7
+ fnunez@example.test,Fay Nunez,true,Member,no,yes,authenticator app,no,2026-11-17,2026-06-30,Finance
8
+ gpark@example.test,Gus Park,true,Member,no,yes,"passkey, authenticator app",no,2026-11-17,2026-11-17,Finance
9
+ reception@example.test,Reception Desk,true,Shared mailbox,no,no,,no,2026-11-17,,Facilities
10
+ breakglass1@example.test,Emergency Access 1,true,Member,yes,no,,yes,2026-06-01,,IT
11
+ hquinn@example.test,Hal Quinn,false,Member,no,no,,no,2026-03-01,,Sales
package/package.json CHANGED
@@ -1,6 +1,59 @@
1
1
  {
2
2
  "name": "fairwire-mfa-coverage",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "mcpName": "io.github.fpavia111-creator/fairwire-mfa-coverage",
5
+ "description": "Fairwire MFA Coverage: MFA coverage from an identity provider export: active users with no MFA registered, users with only SMS or voice, administrators without phishing-resistant MFA, people excluded from MFA policy, registered but never used, and shared accounts that can sign in. Names masked for the model. Drafts notes; never changes a policy.",
6
+ "type": "module",
7
+ "license": "MIT",
8
+ "author": "Kurt Francisco",
9
+ "engines": {
10
+ "node": ">=20"
11
+ },
12
+ "main": "src/index.js",
13
+ "exports": {
14
+ ".": "./src/index.js",
15
+ "./package.json": "./package.json"
16
+ },
17
+ "bin": {
18
+ "fairwire-mfa-coverage": "bin/fairwire-mfa-coverage.js"
19
+ },
20
+ "files": [
21
+ "src",
22
+ "bin",
23
+ "fixtures",
24
+ "evals",
25
+ "README.md",
26
+ "CHANGELOG.md",
27
+ "LICENSE",
28
+ "server.json"
29
+ ],
30
+ "scripts": {
31
+ "test": "node scripts/run-tests.cjs",
32
+ "demo": "node bin/fairwire-mfa-coverage.js demo",
33
+ "eval": "node bin/fairwire-mfa-coverage.js eval"
34
+ },
35
+ "dependencies": {
36
+ "fairwire-core": "^0.1.0"
37
+ },
38
+ "repository": {
39
+ "type": "git",
40
+ "url": "git+https://github.com/fpavia111-creator/fairwire-agents.git",
41
+ "directory": "packages/fairwire-mfa-coverage"
42
+ },
43
+ "homepage": "https://github.com/fpavia111-creator/fairwire-agents/tree/master/packages/fairwire-mfa-coverage#readme",
44
+ "bugs": {
45
+ "url": "https://github.com/fpavia111-creator/fairwire-agents/issues"
46
+ },
47
+ "keywords": [
48
+ "mcp",
49
+ "mcp-server",
50
+ "it-operations",
51
+ "network",
52
+ "fairwire",
53
+ "mfa",
54
+ "entra-id",
55
+ "okta",
56
+ "identity",
57
+ "phishing-resistant"
58
+ ]
59
+ }
package/server.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3
+ "name": "io.github.fpavia111-creator/fairwire-mfa-coverage",
4
+ "title": "Fairwire MFA Coverage",
5
+ "description": "Fairwire MFA Coverage: MFA coverage from an identity provider export: active users with no MFA…",
6
+ "version": "0.1.0",
7
+ "repository": {
8
+ "url": "https://github.com/fpavia111-creator/fairwire-agents",
9
+ "source": "github",
10
+ "subfolder": "packages/fairwire-mfa-coverage"
11
+ },
12
+ "websiteUrl": "https://fair-agents.com/fairwire.html",
13
+ "packages": [
14
+ {
15
+ "registryType": "npm",
16
+ "identifier": "fairwire-mfa-coverage",
17
+ "version": "0.1.0",
18
+ "transport": {
19
+ "type": "stdio"
20
+ },
21
+ "packageArguments": [
22
+ {
23
+ "type": "positional",
24
+ "value": "mcp"
25
+ },
26
+ {
27
+ "type": "named",
28
+ "name": "--root",
29
+ "description": "Folder holding the exports this agent may read and write (it cannot reach outside it)",
30
+ "isRequired": true,
31
+ "format": "filepath",
32
+ "valueHint": "exports_folder"
33
+ }
34
+ ]
35
+ }
36
+ ]
37
+ }
package/src/demo.js ADDED
@@ -0,0 +1,19 @@
1
+ import { fileURLToPath } from 'node:url';
2
+ import { readFileSync } from 'node:fs';
3
+ import { standardDemo } from 'fairwire-core';
4
+
5
+ // The demo runs the eval case "check-totals" and the agent's draft on the fictional fixtures.
6
+ const cases = JSON.parse(readFileSync(new URL('../evals/cases.json', import.meta.url), 'utf8')).cases;
7
+ const base = cases.find((c) => c.id === 'check-totals');
8
+ const explain = cases.find((c) => /_explain$/.test(c.tool) && !c.expect.status);
9
+ const draft = cases.find((c) => /_draft_/.test(c.tool) && c.approve);
10
+
11
+ export async function demo(manifest) {
12
+ const refused = manifest.tools.filter((t) => (manifest.policy.rules.find((r) => r.tool === t.name) || {}).decision === 'block')[0];
13
+ await standardDemo(manifest, fileURLToPath(new URL('../fixtures', import.meta.url)), {
14
+ title: 'Fairwire MFA Coverage demo', args: base.args,
15
+ explain: explain ? { label: 'Explain one finding', args: explain.args } : null,
16
+ draft: draft ? { label: 'Draft the note for a person', args: draft.args } : null,
17
+ refused: refused ? refused.name : null,
18
+ });
19
+ }
package/src/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export { manifest } from './manifest.js';
2
+ export * from './logic.js';
package/src/logic.js ADDED
@@ -0,0 +1,57 @@
1
+ // Fairwire MFA Coverage: multi-factor coverage from an identity provider export. Pure functions.
2
+ import { str, low, yes, isoDate, daysBetween, pct, finding } from 'fairwire-core';
3
+
4
+ export const CHECKS = Object.freeze({
5
+ admin_without_strong_mfa: 'An administrator with no phishing-resistant method (security key, passkey, Windows Hello or certificate).',
6
+ no_mfa: 'An active account that can sign in with no second factor registered.',
7
+ excluded_from_mfa: 'An active account excluded from the MFA policy that is not one of your listed break-glass accounts.',
8
+ weak_methods_only: 'An account whose only second factors are SMS, voice calls or e-mail codes.',
9
+ shared_account_can_sign_in: 'A shared or resource mailbox that can sign in directly (nobody owns its second factor).',
10
+ registered_never_used: 'An account that signs in but has registered MFA it never uses (often a policy gap).',
11
+ });
12
+
13
+ export const USER_FIELDS = Object.freeze({
14
+ user: { aliases: ['User principal name', 'UPN', 'User', 'Username', 'Login', 'Email'], required: true, pii: 'user' },
15
+ display_name: { aliases: ['Display name', 'Name', 'Full Name'], pii: 'name' },
16
+ enabled: { aliases: ['Account enabled', 'Enabled', 'Status', 'Active', 'Sign-in allowed'] },
17
+ user_type: { aliases: ['User type', 'Type', 'Account Type', 'Recipient Type'] },
18
+ is_admin: { aliases: ['Is admin', 'Admin', 'Privileged', 'Has admin role', 'Administrator'] },
19
+ mfa_registered: { aliases: ['Is MFA registered', 'MFA Registered', 'MFA Enrolled', 'Multifactor', 'MFA Status'] },
20
+ methods: { aliases: ['Methods registered', 'Methods', 'Authentication Methods', 'Factors', 'Enrolled Factors'] },
21
+ excluded: { aliases: ['Excluded from MFA', 'MFA Exclusion', 'Excluded', 'Policy Exclusion'] },
22
+ last_sign_in: { type: 'date', aliases: ['Last sign-in', 'Last Sign In', 'Last Login', 'Last Activity'] },
23
+ last_mfa: { type: 'date', aliases: ['Last MFA', 'Last MFA Use', 'Last Second Factor', 'Last strong auth'] },
24
+ department: { aliases: ['Department', 'Team', 'Division'] },
25
+ });
26
+
27
+ export const SETTINGS_SCHEMA = { type: 'object', additionalProperties: false, properties: {
28
+ break_glass: { type: 'array', items: { type: 'string' }, maxItems: 10, description: 'Emergency access accounts that are excluded from MFA on purpose' },
29
+ weak_methods: { type: 'array', items: { type: 'string' }, maxItems: 20, description: 'Method words that count as weak (default sms, voice, phone call, text, email)' },
30
+ strong_methods: { type: 'array', items: { type: 'string' }, maxItems: 20, description: 'Method words that count as phishing-resistant (default fido2, security key, passkey, windows hello, certificate)' },
31
+ unused_days: { type: 'integer', minimum: 1, description: 'Days without a second factor after which a registered account counts as not using it (default 90)' },
32
+ } };
33
+ export const DEFAULTS = Object.freeze({ break_glass: [], weak_methods: ['sms', 'voice', 'phone call', 'text', 'email', 'mobile phone'], strong_methods: ['fido2', 'security key', 'passkey', 'windows hello', 'certificate', 'phishing-resistant'], unused_days: 90 });
34
+
35
+ export function reviewMfa(rows, settings = {}, asOf) {
36
+ const s = { ...DEFAULTS, ...settings };
37
+ const us = rows.filter((r) => str(r.user)).map((r) => {
38
+ const methods = low(r.methods).split(/[,;|]+/).map((x) => x.trim()).filter(Boolean);
39
+ const reg = yes(r.mfa_registered); const en = str(r.enabled);
40
+ return { user: str(r.user), name: str(r.display_name), enabled: !en || !/^(false|no|0|disabled|blocked|inactive)$/i.test(en), type: low(r.user_type), admin: yes(r.is_admin) === true, registered: reg === true || (reg === null && methods.length > 0), methods, excluded: yes(r.excluded) === true, last: isoDate(r.last_sign_in), lastMfa: isoDate(r.last_mfa), dept: str(r.department) || '(no department)' };
41
+ });
42
+ const has = (u, words) => u.methods.some((m) => words.some((w) => m.includes(low(w))));
43
+ const breakGlass = new Set(s.break_glass.map(low));
44
+ const items = []; const active = us.filter((u) => u.enabled);
45
+ for (const u of active) {
46
+ const label = u.name ? `${u.name} (${u.user})` : u.user; const shared = /shared|resource|room|equipment|mailbox/.test(u.type);
47
+ if (shared) { items.push(finding('shared_account_can_sign_in', 'medium', u.user, `${label} is a ${u.type} account that can sign in directly.`, 'Block sign-in for the account and give people delegated access instead.', { subject: u.dept })); continue; }
48
+ if (u.excluded && !breakGlass.has(low(u.user))) items.push(finding('excluded_from_mfa', 'medium', u.user, `${label} is excluded from the MFA policy.`, 'Remove the exclusion, or record why and until when, and add it to the break-glass list only if it is one.', { subject: u.dept }));
49
+ if (u.admin && !has(u, s.strong_methods)) items.push(finding('admin_without_strong_mfa', 'high', u.user, `Administrator ${label} has no phishing-resistant method${u.methods.length ? ` (only ${u.methods.join(', ')})` : ''}.`, 'Register a security key or passkey for this admin and require it for admin roles.', { subject: u.dept }));
50
+ if (!u.registered && !breakGlass.has(low(u.user))) items.push(finding('no_mfa', 'high', u.user, `${label} can sign in with no second factor registered.`, 'Ask the person to register an authenticator app or passkey; require registration at next sign-in.', { subject: u.dept }));
51
+ else if (u.registered && u.methods.length && u.methods.every((m) => s.weak_methods.some((w) => m.includes(low(w))))) items.push(finding('weak_methods_only', 'medium', u.user, `${label} only has ${u.methods.join(', ')} as second factors.`, 'Move them to an authenticator app or a passkey; keep SMS only as a fallback if at all.', { subject: u.dept }));
52
+ if (u.registered && u.last && asOf && daysBetween(u.last, asOf) <= 30 && (!u.lastMfa || daysBetween(u.lastMfa, asOf) > s.unused_days)) items.push(finding('registered_never_used', 'low', u.user, `${label} signs in but has not used a second factor ${u.lastMfa ? `since ${u.lastMfa}` : 'on record'}.`, 'Check which sign-ins skip MFA (trusted locations, legacy apps) and close the gap.', { subject: u.dept }));
53
+ }
54
+ const depts = {}; for (const u of active) { const e = depts[u.dept] || (depts[u.dept] = { department: u.dept, users: 0, registered: 0 }); e.users++; if (u.registered) e.registered++; }
55
+ const strong = active.filter((u) => has(u, s.strong_methods)).length;
56
+ return { accounts: us.length, active: active.length, registered_pct: pct(active.filter((u) => u.registered).length, active.length), strong_pct: pct(strong, active.length), admins: active.filter((u) => u.admin).length, by_department: Object.values(depts).sort((a, b) => (a.department < b.department ? -1 : 1)), items };
57
+ }
@@ -0,0 +1,33 @@
1
+ import { readFileSync } from 'node:fs';
2
+ import { wireAgent, fileArg, SETTINGS_ARG, AS_OF_ARG, settingsFrom, LIMITS, exportProfile, today } from 'fairwire-core';
3
+ import { USER_FIELDS, SETTINGS_SCHEMA, DEFAULTS, reviewMfa } from './logic.js';
4
+
5
+ const pkg = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8'));
6
+ const args = {
7
+ users: fileArg('MFA registration export under --root (Entra ID user registration details, Okta factors report, Google Workspace 2SV report or any CSV, Excel or JSON): one row per account with enabled, type, admin, MFA registered, methods, exclusion, last sign-in and last MFA use'),
8
+ settings: SETTINGS_ARG('break_glass, weak_methods, strong_methods, unused_days'),
9
+ as_of: AS_OF_ARG,
10
+ };
11
+
12
+ export const manifest = wireAgent({
13
+ pkg, prefix: 'mfa', title: 'Fairwire MFA Coverage',
14
+ description: 'Reviews MFA coverage from an identity provider export: admins without phishing-resistant MFA, active accounts with no MFA, accounts excluded from the policy, SMS or voice only, shared mailboxes that can sign in and MFA registered but never used. Names are masked for the model. Drafts notes; never changes a policy.',
15
+ args, required: ['users'],
16
+ sources: { users: { label: 'Accounts and MFA methods', args: ['users'], fields: USER_FIELDS, profiles: [exportProfile('entra_mfa_registration', { user: 'User principal name', display_name: 'User display name', is_admin: 'Is admin', mfa_registered: 'Is MFA registered', methods: 'Methods registered' })] } },
17
+ configSchemas: { mfa_settings: SETTINGS_SCHEMA },
18
+ run: (a, ctx) => reviewMfa(ctx.records(a.users, 'users'), settingsFrom(a, ctx, 'mfa_settings', DEFAULTS), a.as_of || today()),
19
+ summary: (o) => `${o.active} active account(s) of ${o.accounts}, ${o.registered_pct}% with MFA, ${o.strong_pct}% phishing-resistant, ${o.admins} admin(s): ${o.open} open finding(s), ${o.high} high.`,
20
+ check: { title: 'Review MFA coverage', description: 'Review MFA registration per active account and list admins without strong MFA, accounts without MFA, exclusions, weak methods, shared accounts and unused MFA.' },
21
+ explain: { arg: 'user', argSchema: { type: 'string', maxLength: 200, description: 'Account from mfa_check (the pseudonym is fine)' }, title: 'Explain one account', description: 'Every finding for one account.', match: (i, v, ctx) => i.key === v || (ctx.pii && ctx.pii.same(i.key, v, 'user')) },
22
+ report: {
23
+ title: 'MFA coverage', base: 'mfa-coverage',
24
+ sections: (o) => [{ title: 'By department', rows: o.by_department, columns: ['department', 'users', 'registered'] }],
25
+ limits: [LIMITS.files, 'Registration is not enforcement: an account can have MFA registered and still sign in without it where a policy allows that. Pair this with the sign-in log review (fairwire-sign-in-logs).', LIMITS.defaults, LIMITS.pii, LIMITS.live],
26
+ },
27
+ note: { noun: 'identity_note', verb: 'send', category: 'binding_send', actor: 'the identity owner', to: 'identity and security team', subject: 'MFA gaps to close', ask: 'Please close the admin gaps first, then contact each person without MFA.' },
28
+ refused: [
29
+ { name: 'idp_change_policy', category: 'production_deploy', description: 'Fairwire MFA Coverage never changes a conditional access or MFA policy.' },
30
+ { name: 'idp_reset_methods', category: 'revoke_access', description: 'Fairwire MFA Coverage never resets or removes anyone\'s authentication methods.' },
31
+ ],
32
+ prompt: { title: 'Review MFA coverage', description: 'Walks the host model through an MFA review with Fairwire MFA Coverage.', text: 'You are helping an identity lead review MFA coverage with fairwire-mfa-coverage. Names are pseudonyms. 1. Call mfa_check; lead with admins without phishing-resistant MFA and accounts with none. 2. Use mfa_explain for an account. 3. Call mfa_write_report (the file has real names). 4. Offer mfa_draft_identity_note; mfa_request_send waits for one named click.' },
33
+ });