Add complianced_image related docs.
20
README.md
|
@ -176,33 +176,39 @@ $ bash bin/hardening.sh --apply --only 99.99
|
|||
### Harbian-audit benchmark for Debian GNU/Linux 9
|
||||
This document is a description of the additions to the sections not included in the [CIS reference documentation](https://github.com/hardenedlinux/harbian-audit/blob/master/docs/CIS_Debian_Linux_8_Benchmark_v1.0.0.pdf). Includes STIG reference documentation and additional checks recommended by the HardenedLinux community.
|
||||
|
||||
[harbian audit Debian Linux 9 Benchmark](https://github.com/hardenedlinux/harbian-audit/blob/master/docs/harbian_audit_Debian_9_Benchmark_v0.1.mkd)
|
||||
[CIS Debian GNU/Linux 8 Benchmark v1.0.0](https://github.com/hardenedlinux/harbian-audit/blob/master/docs/CIS_Debian_Linux_8_Benchmark_v1.0.0.pdf)
|
||||
[harbian audit Debian Linux 9 Benchmark](https://github.com/hardenedlinux/harbian-audit/blob/master/docs/harbian_audit_Debian_9_Benchmark_v0.1.mkd)
|
||||
|
||||
### Manual Operation docs
|
||||
[How to config grub2 password protection](https://github.com/hardenedlinux/harbian-audit/blob/master/docs/examples/manual-operation-docs/how_to_config_grub2_password_protection.mkd)
|
||||
[How to persistent iptables rules with debian 9](https://github.com/hardenedlinux/harbian-audit/blob/master/docs/examples/manual-operation-docs/how_to_persistent_iptables_rules_with_debian_9.mkd)
|
||||
|
||||
### Use cases docs
|
||||
[Nodejs + redis + mysql demo](https://github.com/hardenedlinux/harbian-audit/blob/master/docs/examples/use-cases/nodejs-redis-mysql-usecase/README.md)
|
||||
[Nodejs + redis + mysql demo](https://github.com/hardenedlinux/harbian-audit/blob/master/docs/examples/use-cases/nodejs-redis-mysql-usecase/README.md)
|
||||
|
||||
## harbian-audit complianced image
|
||||
The hardenedlinux community has created public AMI images for three different regions.
|
||||
|
||||
### AMI(Amazon Machine Image) Public
|
||||
The hardenedlinux community has created public AMI images for three different regions.
|
||||
|
||||
Destination region: US East(Ohio)
|
||||
AMI ID: ami-0574075020839f7e9
|
||||
AMI ID: ami-0459b7f679f8941a4
|
||||
AMI Name: harbian-audit complianced for Debian GNU/Linux 9
|
||||
|
||||
Destination region: EU(Frankfurt)
|
||||
AMI ID: ami-0e26a1af7f07373bf
|
||||
AMI ID: ami-022f30970530a0c5b
|
||||
AMI Name: harbian-audit complianced for Debian GNU/Linux 9
|
||||
|
||||
Destination region: Asia Pacific(Tokyo)
|
||||
AMI ID: ami-003de0c48c2711265
|
||||
AMI ID: ami-003de0c48c2711265
|
||||
AMI Name: harbian-audit complianced for Debian GNU/Linux 9
|
||||
|
||||
## harbian-audit License
|
||||
### Docs
|
||||
[how to creating and making an AMI public](https://github.com/hardenedlinux/harbian-audit/blob/master/docs/complianced_image/how_to_creating_and_making_an_AMI_public.mkd)
|
||||
[how to use harbian-audit complianced for GNU/Linux Debian 9](https://github.com/hardenedlinux/harbian-audit/blob/master/docs/complianced_image/how_to_use_harbian_audit_complianced_Debian_9.mkd)
|
||||
|
||||
|
||||
## harbian-audit License
|
||||
GPL 3.0
|
||||
|
||||
## OVH Disclaimer
|
||||
|
|
|
@ -117,26 +117,26 @@ $ history -cw
|
|||
|
||||
## Create AMI
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
## Cross-Region AMI Copy
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
|
||||
## Reference
|
||||
|
|
|
@ -0,0 +1,73 @@
|
|||
# How to use harbian-audit complianced Debian GNU/Linux 9
|
||||
|
||||
## Select Destination region: EU(Frankfurt)
|
||||

|
||||
|
||||
## Search harbian-audit complianced for Debian GNU/Linux 9 in Community AMIs
|
||||

|
||||
|
||||
## Configuration new instance
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
## View new instance status
|
||||

|
||||
|
||||
## Connect new instance
|
||||

|
||||

|
||||
|
||||
## Use harbian-audit to check
|
||||
```
|
||||
admin@ip-:~$ cd /opt/harbian-audit-master/
|
||||
admin@ip-:/opt/harbian-audit-master$ sudo ./bin/hardening.sh --audit-all
|
||||
......
|
||||
|
||||
################### SUMMARY ###################
|
||||
Total Available Checks : 256
|
||||
Total Runned Checks : 256
|
||||
Total Passed Checks : [ 227/256 ]
|
||||
Total Failed Checks : [ 29/256 ]
|
||||
Enabled Checks Percentage : 100.00 %
|
||||
Conformity Percentage : 88.67 %
|
||||
```
|
||||
|
||||
## Description of some key check failure items
|
||||
|
||||
### 3.3 Set Boot Loader Password
|
||||
```
|
||||
3.3_bootloader_password [ KO ] ^set superusers not present in /boot/grub/grub.cfg
|
||||
3.3_bootloader_password [ KO ] ^password_pbkdf2 not present in /boot/grub/grub.cfg
|
||||
3.3_bootloader_password [ KO ] Check Failed
|
||||
```
|
||||
|
||||
If need apply this item, please reference:
|
||||
[https://github.com/hardenedlinux/harbian-audit/blob/master/docs/examples/manual-operation-docs/how_to_config_grub2_password_protection.mkd](https://github.com/hardenedlinux/harbian-audit/blob/master/docs/examples/manual-operation-docs/how_to_config_grub2_password_protection.mkd)
|
||||
|
||||
### 7.4.4 Create /etc/hosts.deny
|
||||
```
|
||||
7.4.4_hosts_deny [ KO ] ALL: ALL is not present in /etc/hosts.deny, we have to deny everything
|
||||
7.4.4_hosts_deny [ KO ] Check Failed
|
||||
```
|
||||
If you can determine the address segment of the client you are accessing, you can apply this and add the address segment that can be accessed to /etc/hosts.allow.
|
||||
|
||||
### 10.1.7 Remove nopasswd option from the sudoers configuration
|
||||
```
|
||||
10.1.7_remove_nopasswd_su [ KO ] NOPASSWD is set on /etc/sudoers.d/*, it's error conf
|
||||
10.1.7_remove_nopasswd_su [ KO ] Check Failed
|
||||
```
|
||||
This item requires the user to fix it himself. When the AMI is created, a new instance will be automatically locked all user of OS when the AMI is created. Fix it before need set passwd for all user of OS.
|
||||
|
||||
## Reference
|
||||
[https://docs.aws.amazon.com/zh_cn/AWSEC2/latest/UserGuide/concepts.html](https://docs.aws.amazon.com/zh_cn/AWSEC2/latest/UserGuide/concepts.html)
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 254 KiB After Width: | Height: | Size: 145 KiB |
Before Width: | Height: | Size: 115 KiB After Width: | Height: | Size: 115 KiB |
Before Width: | Height: | Size: 159 KiB After Width: | Height: | Size: 159 KiB |
Before Width: | Height: | Size: 159 KiB After Width: | Height: | Size: 159 KiB |
Before Width: | Height: | Size: 150 KiB After Width: | Height: | Size: 150 KiB |
Before Width: | Height: | Size: 157 KiB After Width: | Height: | Size: 157 KiB |
Before Width: | Height: | Size: 129 KiB After Width: | Height: | Size: 129 KiB |
Before Width: | Height: | Size: 141 KiB After Width: | Height: | Size: 141 KiB |
Before Width: | Height: | Size: 138 KiB After Width: | Height: | Size: 138 KiB |
Before Width: | Height: | Size: 105 KiB After Width: | Height: | Size: 105 KiB |
Before Width: | Height: | Size: 249 KiB After Width: | Height: | Size: 249 KiB |
Before Width: | Height: | Size: 141 KiB After Width: | Height: | Size: 141 KiB |
Before Width: | Height: | Size: 135 KiB After Width: | Height: | Size: 135 KiB |
Before Width: | Height: | Size: 146 KiB After Width: | Height: | Size: 146 KiB |
Before Width: | Height: | Size: 142 KiB After Width: | Height: | Size: 142 KiB |
Before Width: | Height: | Size: 105 KiB After Width: | Height: | Size: 105 KiB |
Before Width: | Height: | Size: 144 KiB After Width: | Height: | Size: 144 KiB |
Before Width: | Height: | Size: 132 KiB After Width: | Height: | Size: 132 KiB |
After Width: | Height: | Size: 180 KiB |
After Width: | Height: | Size: 111 KiB |
After Width: | Height: | Size: 157 KiB |
After Width: | Height: | Size: 129 KiB |
After Width: | Height: | Size: 85 KiB |
After Width: | Height: | Size: 78 KiB |
After Width: | Height: | Size: 93 KiB |
After Width: | Height: | Size: 120 KiB |
After Width: | Height: | Size: 158 KiB |
After Width: | Height: | Size: 161 KiB |
After Width: | Height: | Size: 197 KiB |
After Width: | Height: | Size: 94 KiB |
After Width: | Height: | Size: 138 KiB |
After Width: | Height: | Size: 184 KiB |
After Width: | Height: | Size: 146 KiB |