Add check for CIS 5.10 (#9755)

#9260

- ~[ ] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.~
- ~[ ] Documented any API changes (docs/Using-Fleet/REST-API.md or
docs/Contributing/API-for-contributors.md)~
- ~[ ] Documented any permissions changes~
- ~[ ] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)~
- ~[ ] Added support on fleet's osquery simulator `cmd/osquery-perf` for
new osquery data ingestion features.~
- ~[ ] Added/updated tests~
- [X] Manual QA for all new/changed functionality
  - For Orbit and Fleet Desktop changes:
- [X] Manual QA must be performed in the three main OSs, macOS, Windows
and Linux.
- ~[ ] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).~
This commit is contained in:
Lucas Manuel Rodriguez 2023-02-09 14:28:22 -03:00 committed by GitHub
parent 399a6f53e7
commit 9fa2be0a86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

View file

@ -1867,6 +1867,24 @@ spec:
---
apiVersion: v1
kind: policy
spec:
name: CIS - Ensure the Guest Home Folder Does Not Exist
platforms: macOS
platform: darwin
description: |
The Guest home folders are unneeded after the Guest account is disabled and could be used inappropriately.
resolution: |
Automated method:
Ask your system administrator to deploy the following script:
/usr/bin/sudo /bin/rm -R /Users/Guest
query: |
SELECT 1 WHERE NOT EXISTS (SELECT * FROM file WHERE path = '/Users/Guest');
purpose: Informational
tags: compliance, CIS, CIS_Level1, CIS5.10
contributors: lucasmrod
---
apiVersion: v1
kind: policy
spec:
name: CIS - Ensure Show All Filename Extensions Setting is Enabled
platforms: macOS

View file

@ -0,0 +1,3 @@
#!/bin/bash
/usr/bin/sudo /bin/rm -R /Users/Guest