"name":"Ensure no world writable files exist (Scored)",
"scoring":"Scored",
"cmd":[
{"input":"df --local -P | awk '{if (NR!=1) print $6}' | xargs -I '{}' find '{}' -xdev -type f -perm -0002","output":"","can_have_error":"","alternative":[{"al_cm":"No Alternative for This Command"},{"al_cm":"No Alternative for This Command"}],"exist_line":"No Alternative for This Command"}
{"input":"sudo df --local -P | awk '{if (NR!=1) print $6}' | xargs -I '{}' find '{}' -xdev -type f -perm -0002","output":"","can_have_error":"","alternative":[{"al_cm":"No Alternative for This Command"},{"al_cm":"No Alternative for This Command"}],"exist_line":"No Alternative for This Command"}
],
"Remediation":[
{"desc":"Removing write access for the \"other\" category ( chmod o-w <filename> ) is advisable, but \nalways consult relevant vendor documentation to avoid breaking any application \ndependencies on a given file.","command":""}
...
...
@@ -2304,7 +2304,7 @@
"name":"Ensure no unowned files or directories exist (Scored)",
"scoring":"Scored",
"cmd":[
{"input":"df --local -P | awk {'if (NR!=1) print $6'} | xargs -I '{}' find '{}' -xdev -nouser","output":"","can_have_error":"","alternative":[{"al_cm":"No Alternative for This Command"},{"al_cm":"No Alternative for This Command"}],"exist_line":"No Alternative for This Command"}
{"input":"sudo \"df --local -P | awk {'if (NR!=1) print $6'} | xargs -I '{}' find '{}' -xdev -nouser\"","output":"\n","can_have_error":"","alternative":[{"al_cm":"No Alternative for This Command"},{"al_cm":"No Alternative for This Command"}],"exist_line":"No Alternative for This Command"}
],
"Remediation":[
{"desc":"Locate files that are owned by users or groups not listed in the system configuration files, \nand reset the ownership of these files to some active user on the system as appropriate","command":""}
...
...
@@ -2314,7 +2314,7 @@
"name":"Ensure no ungrouped files or directories exist (Scored)",
"scoring":"Scored",
"cmd":[
{"input":"df --local -P | awk '{if (NR!=1) print $6}' | xargs -I '{}' find '{}' -xdev -nogroup","output":"","can_have_error":"","alternative":[{"al_cm":"No Alternative for This Command"},{"al_cm":"No Alternative for This Command"}],"exist_line":"No Alternative for This Command"}
{"input":"sudo df --local -P | awk '{if (NR!=1) print $6}' | xargs -I '{}' find '{}' -xdev -nogroup","output":"","can_have_error":"","alternative":[{"al_cm":"No Alternative for This Command"},{"al_cm":"No Alternative for This Command"}],"exist_line":"No Alternative for This Command"}
],
"Remediation":[
{"desc":"Locate files that are owned by users or groups not listed in the system configuration files, \nand reset the ownership of these files to some active user on the system as appropriate.","command":""}