Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/agardnerit/osquery-queries
Repository of sample queries for osquery. Submissions welcomed!
https://github.com/agardnerit/osquery-queries
osquery
Last synced: 27 days ago
JSON representation
Repository of sample queries for osquery. Submissions welcomed!
- Host: GitHub
- URL: https://github.com/agardnerit/osquery-queries
- Owner: agardnerIT
- Created: 2024-08-14T02:10:21.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-14T06:34:43.000Z (5 months ago)
- Last Synced: 2024-08-15T03:54:03.834Z (5 months ago)
- Topics: osquery
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# osquery-queries
Repository of sample queries for osquery. Submissions welcomed!## Log in to interactive mode
```
osqueryi
```## See all available data (represented as tables)
```
.tables
```## See the table layout for the `uptime` table
```
.schema uptime
```## View system uptime
```
select * from uptime;
```## Find files across filesystem ending in .1234
```
SELECT filename, path FROM file WHERE directory LIKE '/%%' and filename LIKE '%.1234';
```## Find files in a directory with "too permissive" permissions
```
SELECT filename, path, mode FROM file WHERE directory == '/tmp' and mode > '0644';
```## Find files in a directory bigger than X bytes
```
SELECT filename, path, mode, size FROM file WHERE directory == '/tmp' and size > 5;
```## See all non Apple Apps installed on MacOS
```
select name from apps where bundle_identifier NOT LIKE 'com.apple.%%';
```## Get battery percentage
```
select percent_remaining from battery;
```## Which packages are installed by homebrew and at which versions?
```
select * from homebrew_packages;
```## View non Apple kernel extensions
```
select * from kernel_extensions where name NOT LIKE 'com.apple%';
```## How much RAM and what type is in the system?
```
select memory_type, size from memory_devices;
```## Get system time
```
select * from time;
```