Dmitry Teselkin | d87f461 | 2018-08-16 11:29:55 +0300 | [diff] [blame^] | 1 | # 1.1.1.6 Ensure mounting of squashfs filesystems is disabled |
| 2 | # |
| 3 | # Description |
| 4 | # =========== |
| 5 | # The squashfs filesystem type is a compressed read-only Linux filesystem |
| 6 | # embedded in small footprint systems (similar to cramfs). A squashfs image |
| 7 | # can be used without 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 squashfs |
| 19 | # install /bin/true |
| 20 | # # lsmod | grep squashfs |
| 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 squashfs /bin/true |
| 28 | # |
| 29 | parameters: |
| 30 | linux: |
| 31 | system: |
| 32 | kernel: |
| 33 | module: |
| 34 | squashfs: |
| 35 | install: |
| 36 | command: /bin/true |
| 37 | |