Dmitry Teselkin | ee7b811 | 2018-08-22 12:46:08 +0300 | [diff] [blame] | 1 | # 1.1.1.1 Ensure mounting of cramfs filesystems is disabled |
| 2 | # |
| 3 | # Description |
| 4 | # =========== |
| 5 | # The cramfs filesystem type is a compressed read-only Linux filesystem |
| 6 | # embedded in small footprint systems. A cramfs image can be used without |
| 7 | # having to first decompress the image. |
| 8 | # |
| 9 | # Rationale |
| 10 | # ========= |
| 11 | # Removing support for unneeded filesystem types reduces the local attack |
| 12 | # surface of the server. If this filesystem type is not needed, disable it. |
| 13 | # |
| 14 | # Audit |
| 15 | # ===== |
| 16 | # Run the following commands and verify the output is as indicated: |
| 17 | # |
| 18 | # # modprobe -n -v cramfs |
| 19 | # install /bin/true |
| 20 | # # lsmod | grep cramfs |
| 21 | # <No output> |
| 22 | # |
| 23 | # Remediation |
| 24 | # =========== |
| 25 | # Edit or create the file /etc/modprobe.d/CIS.conf and add the following line: |
| 26 | # |
| 27 | # install cramfs /bin/true |
| 28 | # |
| 29 | parameters: |
| 30 | linux: |
| 31 | system: |
| 32 | kernel: |
| 33 | module: |
| 34 | cramfs: |
| 35 | install: |
| 36 | command: /bin/true |
| 37 | |