-
Notifications
You must be signed in to change notification settings - Fork 3
/
mondoo-macos-incident-response.mql.yaml
50 lines (49 loc) · 1.96 KB
/
mondoo-macos-incident-response.mql.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
# Copyright (c) Mondoo, Inc.
# SPDX-License-Identifier: BUSL-1.1
packs:
- uid: mondoo-macos-incident-response
name: macOS Incident Response Pack
version: 1.1.0
license: BUSL-1.1
authors:
- name: Mondoo, Inc
email: [email protected]
tags:
mondoo.com/platform: macos
mondoo.com/category: security
filters:
- asset.platform == "macos"
queries:
- uid: mondoo-macos-incident-response-platform-info
title: Platform information
mql: asset { platform title version arch }
- uid: mondoo-macos-incident-response-regular-users
title: Regular users
mql: users.where( name != /^_/ && shell != /\/usr\/bin\/false/ )
- uid: mondoo-macos-incident-response-kernel-info
title: Running macOS kernel
mql: kernel.info["version"]
- uid: mondoo-macos-incident-response-kernel-modules
title: macOS kernel modules
mql: kernel.modules { name loaded }
- uid: mondoo-macos-incident-response-processes
title: Running processes
mql: processes.list { pid command }
- uid: mondoo-macos-incident-response-mounts
title: Mounted devices
mql: mount.list
- uid: mondoo-macos-incident-response-uptime
title: Operating system uptime
mql: os.uptime
- uid: mondoo-macos-incident-response-installed-packages
title: Installed packages
mql: packages
- uid: mondoo-macos-incident-response-running-services
title: Running services
mql: services.where(running == true) { name running enabled masked type }
- uid: mondoo-macos-incident-response-alf-extensions
title: Exceptions from the Application Layer Firewall
mql: macos.alf.exceptions
- uid: mondoo-macos-incident-response-check-recommended-updates
title: Recommended OS and application updates
mql: parse.plist('/Library/Preferences/com.apple.SoftwareUpdate.plist').params['RecommendedUpdates']