Update ioreg.yml (#25889)

Added example query.

---------

Co-authored-by: Eric <eashaw@sailsjs.com>
This commit is contained in:
Brock Walters
2025-01-30 12:42:04 -05:00
committed by GitHub
co-authored by Eric
parent 4a8a054a8a
commit af475c7d6d
2 changed files with 14 additions and 1 deletions
+1
View File
@@ -12582,6 +12582,7 @@
"platforms": [
"darwin"
],
"examples": "Find HID Device Protocol data:\n\n```\n WITH protocols as (\n SELECT \n MAX (case WHEN key = \"USB Address\" THEN value END) as usb_address,\n MAX (case WHEN key = \"bDeviceProtocol\" THEN value END) as protocol\n from ioreg where r=true and c=\"IOUSBDevice\" group by parent\n) \nSELECT * FROM usb_devices join protocols using (usb_address)\n```",
"columns": [
{
"name": "c",
+13 -1
View File
@@ -4,6 +4,18 @@ evented: false
notes: This table is not a core osquery table. It is included as part of fleetd, the osquery manager from Fleet. Code based on work by [Kolide](https://github.com/kolide/launcher).
platforms:
- darwin
examples: |-
Find HID Device Protocol data:
```
WITH protocols as (
SELECT
MAX (case WHEN key = "USB Address" THEN value END) as usb_address,
MAX (case WHEN key = "bDeviceProtocol" THEN value END) as protocol
from ioreg where r=true and c="IOUSBDevice" group by parent
)
SELECT * FROM usb_devices join protocols using (usb_address)
```
columns:
- name: c
description: List properties of objects with the given class.
@@ -48,4 +60,4 @@ columns:
- name: query
description: The query is printed in this column.
type: text
required: false
required: false