# hersheytaichou/cis-benchmarks architecture

> Architecture diagram of the GitHub repository hersheytaichou/cis-benchmarks, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hersheytaichou/cis-benchmarks
- Repository: https://github.com/hersheytaichou/cis-benchmarks

## Overview

CIS Benchmark Scripts is a PowerShell module for auditing Windows Server 2022 settings against CIS recommendations. An administrator imports the module and runs the whole benchmark, a section, subsection, or individual recommendation; checks account for machine type, which can be overridden, and report pass/fail results. The README also documents auditing exported GPResult XML on a separate machine. No source excerpts were provided, so internal dispatch between the module and the benchmark-section scripts is not verified; dashed links mark that uncertainty.

Main entry points: [`CISBenchmarkAudit/CISBenchmarkAudit.psm1`](https://github.com/hersheytaichou/cis-benchmarks/blob/main/CISBenchmarkAudit/CISBenchmarkAudit.psm1) (Audit commands), [`CISBenchmarkAudit/1AccountPolicies`](https://github.com/hersheytaichou/cis-benchmarks/tree/main/CISBenchmarkAudit/1AccountPolicies) (Account policies), [`CISBenchmarkAudit/2LocalPolicies`](https://github.com/hersheytaichou/cis-benchmarks/tree/main/CISBenchmarkAudit/2LocalPolicies) (Local policies), [`CISBenchmarkAudit/17AdvancedAuditPolicyConfiguration`](https://github.com/hersheytaichou/cis-benchmarks/tree/main/CISBenchmarkAudit/17AdvancedAuditPolicyConfiguration) (Advanced audit)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Audit entry"]
  node_module["Audit commands"]
end

subgraph group_policy["Policy checks"]
  node_account["Account policies"]
  node_local["Local policies"]
  node_audit["Advanced audit"]
end

subgraph group_templates["Administrative templates"]
  node_computer["Computer templates"]
  node_user["User templates"]
end

subgraph group_system["System controls"]
  node_services["System services"]
  node_firewall["Windows firewall"]
end

node_admin(("Administrator"))
node_machine(("Target machine"))
node_gpresult["GPResult XML"]
node_results["Audit results"]

node_admin -->|"runs tests"| node_module
node_machine -->|"checks settings"| node_module
node_gpresult -->|"audits export"| node_module
node_module -->|"reports findings"| node_results
node_module -.->|"dispatches checks"| node_account
node_module -.->|"dispatches checks"| node_local
node_module -.->|"dispatches checks"| node_audit
node_module -.->|"dispatches checks"| node_computer
node_module -.->|"dispatches checks"| node_user
node_module -.->|"dispatches checks"| node_services
node_module -.->|"dispatches checks"| node_firewall

click node_module "https://github.com/hersheytaichou/cis-benchmarks/blob/main/CISBenchmarkAudit/CISBenchmarkAudit.psm1"
click node_account "https://github.com/hersheytaichou/cis-benchmarks/tree/main/CISBenchmarkAudit/1AccountPolicies"
click node_local "https://github.com/hersheytaichou/cis-benchmarks/tree/main/CISBenchmarkAudit/2LocalPolicies"
click node_audit "https://github.com/hersheytaichou/cis-benchmarks/tree/main/CISBenchmarkAudit/17AdvancedAuditPolicyConfiguration"
click node_computer "https://github.com/hersheytaichou/cis-benchmarks/tree/main/CISBenchmarkAudit/18AdministrativeTemplatesComputer"
click node_user "https://github.com/hersheytaichou/cis-benchmarks/tree/main/CISBenchmarkAudit/19AdministrativeTemplatesUser"
click node_services "https://github.com/hersheytaichou/cis-benchmarks/tree/main/CISBenchmarkAudit/5SystemServices"
click node_firewall "https://github.com/hersheytaichou/cis-benchmarks/tree/main/CISBenchmarkAudit/9WindowsDefenderFirewallwithAdvancedSecurity"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_module toneBlue
class node_account,node_local,node_audit toneAmber
class node_computer,node_user toneMint
class node_services,node_firewall toneRose
class node_admin,node_machine,node_gpresult,node_results toneIndigo
```

## Components

### Audit entry

- [Audit commands](https://github.com/hersheytaichou/cis-benchmarks/blob/main/CISBenchmarkAudit/CISBenchmarkAudit.psm1): `CISBenchmarkAudit/CISBenchmarkAudit.psm1`

### Policy checks

- [Account policies](https://github.com/hersheytaichou/cis-benchmarks/tree/main/CISBenchmarkAudit/1AccountPolicies): `CISBenchmarkAudit/1AccountPolicies`
- [Local policies](https://github.com/hersheytaichou/cis-benchmarks/tree/main/CISBenchmarkAudit/2LocalPolicies): `CISBenchmarkAudit/2LocalPolicies`
- [Advanced audit](https://github.com/hersheytaichou/cis-benchmarks/tree/main/CISBenchmarkAudit/17AdvancedAuditPolicyConfiguration): `CISBenchmarkAudit/17AdvancedAuditPolicyConfiguration`

### Administrative templates

- [Computer templates](https://github.com/hersheytaichou/cis-benchmarks/tree/main/CISBenchmarkAudit/18AdministrativeTemplatesComputer): `CISBenchmarkAudit/18AdministrativeTemplatesComputer`
- [User templates](https://github.com/hersheytaichou/cis-benchmarks/tree/main/CISBenchmarkAudit/19AdministrativeTemplatesUser): `CISBenchmarkAudit/19AdministrativeTemplatesUser`

### System controls

- [System services](https://github.com/hersheytaichou/cis-benchmarks/tree/main/CISBenchmarkAudit/5SystemServices): `CISBenchmarkAudit/5SystemServices`
- [Windows firewall](https://github.com/hersheytaichou/cis-benchmarks/tree/main/CISBenchmarkAudit/9WindowsDefenderFirewallwithAdvancedSecurity): `CISBenchmarkAudit/9WindowsDefenderFirewallwithAdvancedSecurity`

### Other components

- **Administrator**
- **Target machine**
- **GPResult XML**
- **Audit results**

## Connections

- Administrator → Audit commands: runs tests (evidence: `README.md`)
- Target machine → Audit commands: checks settings (evidence: `README.md`)
- GPResult XML → Audit commands: audits export (evidence: `README.md`)
- Audit commands → Audit results: reports findings (evidence: `README.md`)
- Audit commands → Account policies: dispatches checks
- Audit commands → Local policies: dispatches checks
- Audit commands → Advanced audit: dispatches checks
- Audit commands → Computer templates: dispatches checks
- Audit commands → User templates: dispatches checks
- Audit commands → System services: dispatches checks
- Audit commands → Windows firewall: dispatches checks
