Baseline deployment
Making a Microsoft-style security baseline deployable is the core of the product. Assessment is how the tool decides which lines of that baseline are safe to ship. Post-quantum work assumes the baseline is in place, or at least that the blockers are known.
v1 stops at a plan and at files. v2 is when the tool itself creates and links GPOs. Intune is after that.
Flow
- Collect a window with the audit policies in permissions and audit, or import a snapshot.
collectis the Windows path. It prints a plan and waits for--confirm-collect CONFIRM. - Run
baseline. The suggester writes one profile per role it can see and a disposition per setting. - Read the evidence notes. Where a setting is Defer, the notes name the hosts or accounts.
- Edit
baseline-plan.jsonif the disposition or the target list is wrong. Setdispositiontoenforce,auditOnly,exception, ordefer. An exception should say why. - Regenerate with
--plan. The script and the registry copies follow the edited plan, not a fresh guess. - Read the script. Run it on the pilot computer with no arguments. Then, elevated, with
-ConfirmEnforce ENFORCE.-WhatIfstill works on that second command. - Keep the state file the script writes next to the script. Rollback is
-Rollback -ConfirmEnforce ENFORCEusing the same file.
Nothing in steps 2 through 5 contacts a domain controller.
Profiles
| Profile | Who | Settings the template includes |
|---|---|---|
| Domain controllers | domainController hosts |
SMB1 server and client, SMB signing server and client, LM/NTLMv1 level, TLS 1.0/1.1 off, LDAP signing, LDAP channel binding, AES Kerberos |
| Member servers | memberServer and certificateAuthority |
The same except LDAP and Kerberos, which are DC settings |
| Workstations | workstation |
The same machine settings as member servers |
File, web, and SQL sub-roles are an enum on the profile (general, file, web, sql). The suggester always writes general and says so in the profile note. Splitting them is a template change, not a new concept.
Intune-managed devices are a role on the model (intuneDevice). No profile is generated. Settings-catalog JSON is a later artifact, not a file this scaffold pretends to emit.
Targets and rings
A target is a computer, an OU, or a group, plus a ring: pilot or broad. The suggester only creates computer targets, sorted by name, first one pilot. That heuristic is deliberately dumb. Replace it in the plan with the OU the MSP actually uses for a pilot, once OU targeting is honored by a generator. The SMB script does not read OUs. It embeds computer short names and refuses to change a machine that is not on the list unless -ForceLocal is passed.
From evidence to a disposition
| Check enforceability | Plan disposition | Script |
|---|---|---|
| Already met | Enforce | Included, and skipped on the machine if the value is already right |
| Safe to enforce | Enforce | Included |
| Blocked | Defer | Omitted |
| Unknown, or the check is not implemented | Defer | Omitted |
BaselineBuilder.Tune is the in-memory equivalent of editing the JSON. It marks the setting overridden. If the override turns a blocked SMB setting into Enforce, the script header says an administrator overruled the evidence.
Enforce on a non-SMB setting is recorded and does not produce a second script. The manifest row says no generator exists. That is intentional. A green “enforce” tick must not be read as “this was deployed”.
What the SMB artifacts contain
Only when at least one of these is Enforce, with the value shown:
| Setting | Value the generator will emit | What it changes |
|---|---|---|
SMB1-SERVER-OFF |
false |
EnableSMB1Protocol and, on a server, Windows feature FS-SMB1 |
SMB1-CLIENT-OFF |
false |
Service mrxsmb10 start value 4 |
SMB-SERVER-SIGNING-REQUIRED |
true |
Server RequireSecuritySignature and EnableSecuritySignature |
SMB-CLIENT-SIGNING-REQUIRED |
true |
The same two client settings |
The PowerShell file is the applicator. GptTmpl.smb.inf repeats the signing lines in secedit form (=4,1 means REG_DWORD 1). It does not contain SMB1, and it is not a GPMC backup. registry.smb.pol contains every DWORD above, including SMB1. Applying both the script and the policy file sets the same values twice. Pick one.
The generator throws if a plan asks it to set SMB1 to true or signing to false.
What v2 adds, and does not add yet
v2 is tool-driven deployment: create or update a GPO, link it to the pilot OU, keep audit and enforce as separate GPOs, and unlink or restore from a backup taken immediately before the link. The confirmation has to be stronger than the script’s confirm string, because the blast radius is the OU rather than one computer the operator is sitting on. Rollback is “restore the previous GPO backup and unlink”, not “hope the script’s state file is still there”.
Intune, after that, is a settings-catalog document the same plan can render. The profile role already has a place for it. There is no JSON schema for it in this repository, on purpose.