This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ccdc_checklist [2021/11/06 07:08] – [Windows] Charlie Root | ccdc_checklist [2022/01/30 20:09] (current) – Charlie Root | ||
---|---|---|---|
Line 36: | Line 36: | ||
=== Service Hardening === | === Service Hardening === | ||
+ | == PHP == | ||
+ | Searching for web shells: | ||
+ | < | ||
+ | Find your webroot (Typically / | ||
+ | </ | ||
+ | Disable functions that allow hackers to execute code on your system: | ||
+ | < | ||
+ | disable_functions = proc_open, popen, disk_free_space, | ||
+ | |||
+ | Add line above to / | ||
+ | </ | ||
+ | |||
+ | //Note: This may not be your file location for php.ini. If it isn't you'll need to find it manually.// | ||
+ | |||
+ | == SSH == | ||
+ | |||
+ | Remove keys: | ||
+ | < | ||
+ | rm / | ||
+ | rm / | ||
+ | </ | ||
+ | |||
+ | Modify config: | ||
+ | < | ||
+ | Modify / | ||
+ | - PermitRootLogin no | ||
+ | - PermitEmptyPasswords no | ||
+ | - PubkeyAuthentication no | ||
+ | |||
+ | </ | ||
Line 59: | Line 89: | ||
=== Firewall === | === Firewall === | ||
- | Enable | + | Check that all the profiles are enabled and it blocks all inbound by default: |
+ | < | ||
+ | Windows + R, wf.msc > Windows Defender Firewall Properties | ||
+ | </ | ||
+ | |||
+ | //Note: If the option to enable the firewall is grayed out, that means it is being disabled by the registry or group policy// | ||
+ | |||
+ | Remove rules you don't need: | ||
+ | < | ||
+ | Windows + R, wf.msc > Inbound Rules | ||
+ | </ | ||
+ | Look for any that allow all traffic inbound. | ||
+ | |||
+ | |||
+ | === Other User Management === | ||
+ | |||
+ | < | ||
+ | Windows Key + R, compmgmt.msc > Local Users and Groups | ||
+ | |||
+ | - Remove all users that aren't required. | ||
+ | - Remove users from groups that they don't need to be apart of. | ||
+ | - Disable the default Administrator and Guest account | ||
+ | </ | ||
=== Service Hardening === | === Service Hardening === | ||
Line 91: | Line 144: | ||
== RDP == | == RDP == | ||
- | * Enable Network Level Authentication | + | Enable Network Level Authentication: |
- | | + | < |
+ | Windows Key + R, systempropertiesremote, | ||
+ | |||
+ | If this option is grayed out check out: [[https:// | ||
+ | </ | ||
+ | |||
+ | Make sure only required users are in RDP group: | ||
+ | < | ||
+ | Windows Key + R, systempropertiesremote, | ||
+ | |||
+ | Windows Key + R, compmgmt.msc, | ||
+ | </ | ||
+ | |||
+ | ==== Finished this checklist? ==== | ||
+ | |||
+ | Find much more at [[https:// |