mirror of
https://github.com/mukul975/Anthropic-Cybersecurity-Skills.git
synced 2026-07-16 20:55:17 +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
2.3 KiB
2.3 KiB
API Reference: Windows CIS Benchmark Hardening
CIS Benchmark Sections
| Section | Topic |
|---|---|
| 1 | Account Policies (passwords, lockout) |
| 2 | Local Policies (audit, user rights, security options) |
| 9 | Windows Firewall |
| 17 | Advanced Audit Policy |
| 18 | Administrative Templates |
| 19 | User Configuration |
PowerShell Commands
Password Policy
net accounts
# or
Get-ADDefaultDomainPasswordPolicy
Audit Policy
auditpol /get /category:*
Firewall Status
Get-NetFirewallProfile | Select-Object Name, Enabled
Registry Checks
Get-ItemProperty -Path 'HKLM:\...' -Name 'ValueName'
Key Registry Settings
| Path | Value | Recommended |
|---|---|---|
HKLM\SYSTEM\CurrentControlSet\Control\Lsa\LmCompatibilityLevel |
DWORD | 5 (NTLMv2 only) |
HKLM\...\Policies\System\EnableLUA |
DWORD | 1 (UAC enabled) |
HKLM\...\LanManServer\Parameters\SMB1 |
DWORD | 0 (disabled) |
HKLM\...\Policies\System\ConsentPromptBehaviorAdmin |
DWORD | 2 |
Password Policy Settings
| Setting | CIS Recommendation |
|---|---|
| Minimum length | >= 14 characters |
| Maximum age | <= 365 days |
| Minimum age | >= 1 day |
| Complexity | Enabled |
| Lockout threshold | <= 5 attempts |
| Lockout duration | >= 15 minutes |
Advanced Audit Policy
| Subcategory | Recommended |
|---|---|
| Credential Validation | Success and Failure |
| Logon/Logoff | Success and Failure |
| Account Management | Success |
| Process Creation | Success |
| Policy Change | Success |
GPO Export and Analysis
Export GPO
gpresult /H gpo-report.html
Secedit Export
secedit /export /cfg security-config.inf
Automated Tools
Microsoft Security Compliance Toolkit
# Download from Microsoft
# Includes GPO baselines and LGPO tool
LGPO.exe /g .\GPO-Backup
CIS-CAT
# CIS Configuration Assessment Tool
cis-cat.bat -b benchmark.xml -p "CIS Windows 11 Enterprise"
Windows Optional Features
Check SMBv1
Get-WindowsOptionalFeature -Online -FeatureName SMB1Protocol
Disable SMBv1
Disable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol