[Osquery_manager] disk info artifact saved query #16165
Open
+179
−11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Disks & Volumes Artifact
The Disks & Volumes artifact provides comprehensive visibility into physical storage hardware across Windows, Linux, and macOS systems. This information is essential for asset inventory, hardware verification, and forensic investigations involving storage device analysis, removable media detection, and system baseline comparisons.
Core Forensic Artifacts Coverage
Queries by Platform
🪟 Windows - Physical Disk Hardware Inventory
Description
Retrieve physical disk hardware information on Windows systems including manufacturer, model, serial number, size, and interface type. Useful for asset inventory and hardware verification.
Detection Focus:
Result
Query results will show all physical disks with their hardware identifiers, manufacturers, models, serial numbers, partition counts, and sizes in both bytes and human-readable GB format.
Platform
windowsInterval
3600seconds (1 hour)Query ID
disk_info_windows_elasticECS Field Mappings
Static Values:
event.category→["host"]event.type→["info"]event.module→osqueryevent.dataset→osquery.disk_infohost.os.type→windowstags→["osquery", "inventory", "disk", "windows"]Field Mappings:
host.disk.device.name→device_namehost.disk.device.serial_number→serialhost.disk.device.vendor→vendorhost.disk.device.model→modelhost.disk.device.type→device_typeSQL Query
🐧 Linux / 🍎 macOS - Block Device Inventory with Mount Information
Description
Retrieve physical disk hardware information on Linux and macOS systems. Filters out loop devices, snap mounts, and virtual filesystems to show only real storage devices. Cross-platform equivalent to Windows disk_info query.
Detection Focus:
Result
Query results will show block devices with vendor, model, type, UUID, size, mount points, filesystem types, usage percentages, and available space. Automatically filters noise from snap packages, virtual filesystems, and system mounts.
Platform
linux,darwinInterval
3600seconds (1 hour)Query ID
disk_info_linux_macos_elasticECS Field Mappings
Static Values:
event.category→["host"]event.type→["info"]event.module→osqueryevent.dataset→osquery.disk_infotags→["osquery", "inventory", "disk", "linux", "macos"]Field Mappings:
host.disk.device.name→device_namehost.disk.device.vendor→vendorhost.disk.device.model→modelhost.disk.device.type→device_typefile.path→mount_pointSQL Query