Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add check to test if macOS is up to date #356

Merged
merged 1 commit into from
Feb 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions core/mondoo-macos-security.mql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ policies:
- uid: mondoo-macos-security-software-updates-automatic-check-enabled
- uid: mondoo-macos-security-software-updates-automatic-download
- uid: mondoo-macos-security-software-updates-install-critical-updates
- uid: mondoo-macos-security-ensure-macos-is-up-to-date
- title: Account Security
filters: |
asset.platform == "macos"
Expand Down Expand Up @@ -1252,3 +1253,27 @@ queries:
```bash
sudo /usr/bin/defaults write /Library/Preferences/com.apple.SoftwareUpdate CriticalUpdateInstall -bool true
```
- uid: mondoo-macos-security-ensure-macos-is-up-to-date
title: Ensure macOS is up to date
impact: 100
mql: |
command("softwareupdate -l").stderr.contains("No new software available.")
docs:
desc: |
By staying up to date on macOS patches, vulnerabilities in the macOS can be mitigated. An educated attacker can exploit known vulnerabilities when attempting to attain access or elevate privileges on a macOS.
remediation: |-
Perform the following to update the macOS to the latest version:

_Graphical Method:_

1. Open **General**.
2. Select **Software Update**.
3. Select **Update Now**.

_Terminal Method:_

Run this command to install all available updates:

```bash
softwareupdate -i -a
```
Loading