forked from google/grr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nfs.yaml
54 lines (54 loc) · 1.66 KB
/
nfs.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
check_id: 'CCE-4350-5'
hint:
format: '{share}: defaults:{defaults} hosts:{clients.host}
options:{clients.options}'
fix: Limit read/write access to specific hosts.
method:
- target: {os: ['Linux']}
probe:
- artifact: 'NfsExportsFile'
hint:
problem: Wildcard client r/w NFS exports are too permissive.
filters:
- type: 'AttrFilter'
expression: clients
- type: 'ObjectFilter'
expression: 'options contains "rw"'
- type: 'ObjectFilter'
expression: 'host contains "*"'
- artifact: 'NfsExportsFile'
hint:
problem: Default r/w NFS exports are too permissive.
filters:
- type: 'ObjectFilter'
expression: defaults contains "rw"
---
check_id: 'CCE-4544-3'
hint:
format: '{share}: defaults:{defaults} hosts:{clients.host}
options:{clients.options}'
fix: If this system defaults to root_squash remove the no_root_squash
entries, otherwise set the default to either root_squash or
all_squash.
problem: NFS defaults allow access to the share as root.
method:
- target: {os: ['Linux']}
probe:
- artifact: 'NfsExportsFile'
filters:
- type: 'ObjectFilter'
expression: defaults contains "no_root_squash"
---
check_id: 'CCE-5669-7'
hint:
format: '{share}: defaults:{defaults} hosts:{clients.host}
options:{clients.options}'
problem: NFS shares use no/weak authentication methods.
fix: Use Kerberized NFS.
method:
- target: {os: ['Linux']}
probe:
- artifact: 'NfsExportsFile'
filters:
- type: 'ObjectFilter'
expression: sec inset "none,sys"