[Osquery_manager] Processes artifact saved queries #16197
Draft
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.
Process Listing and Suspicious Process Detection
Adds comprehensive process listing and suspicious process detection queries for Windows, Linux, and macOS platforms. These queries provide full forensic visibility into running processes with parent chain analysis, code signature validation, file hash enrichment, and targeted threat detection capabilities for incident response and proactive threat hunting.
Core Forensic Artifacts Coverage
MITRE ATT&CK Coverage
Queries by Platform
🪟 Windows - Process Listing (Full Forensic Snapshot)
Description
Comprehensive Windows process listing with parent process context, code signatures, file hashes, and username resolution. Provides full forensic visibility for threat hunting, incident response, and baseline analysis. Returns all running processes for complete system state assessment.
Detection Focus:
Result
Query returns all running processes with parent context, code signatures, file hashes, and VirusTotal links for complete forensic analysis.
Platform
windowsInterval
3600seconds (1 hour)Query ID
process_listing_windows_elasticECS Field Mappings
event.category→["process"]event.type→["info"]process.pid→pidprocess.name→nameprocess.executable→pathprocess.command_line→cmdlineprocess.working_directory→cwdprocess.parent.pid→ppidprocess.parent.name→parent_nameprocess.parent.executable→parent_pathprocess.parent.command_line→parent_cmdlineprocess.start→start_timeprocess.thread.count→threadsuser.id→uiduser.name→usernameprocess.hash.md5→md5process.hash.sha256→sha256process.code_signature.status→signature_statusprocess.code_signature.subject_name→signerSQL Query
🐧 Linux - Process Listing (Full Forensic Snapshot)
Description
Comprehensive Linux process listing with parent process context, file hashes, and username resolution. Provides full forensic visibility for threat hunting, incident response, and baseline analysis. Returns all running processes for complete system state assessment.
Detection Focus:
Result
Query returns all running processes with parent context, file hashes, and VirusTotal links for complete forensic analysis.
Platform
linuxInterval
3600seconds (1 hour)Query ID
process_listing_linux_elasticECS Field Mappings
event.category→["process"]event.type→["info"]process.pid→pidprocess.name→nameprocess.executable→pathprocess.command_line→cmdlineprocess.working_directory→cwdprocess.parent.pid→ppidprocess.parent.name→parent_nameprocess.parent.executable→parent_pathprocess.parent.command_line→parent_cmdlineprocess.start→start_timeprocess.thread.count→threadsuser.id→uiduser.name→usernameuser.group.id→gidprocess.hash.md5→md5process.hash.sha256→sha256SQL Query
🍎 macOS - Process Listing (Full Forensic Snapshot)
Description
Comprehensive macOS process listing with parent process context, code signatures, file hashes, and username resolution. Provides full forensic visibility for threat hunting, incident response, and baseline analysis. Returns all running processes for complete system state assessment.
Detection Focus:
Result
Query returns all running processes with parent context, code signatures, file hashes, and VirusTotal links for complete forensic analysis.
Platform
darwinInterval
3600seconds (1 hour)Query ID
process_listing_macos_elasticECS Field Mappings
event.category→["process"]event.type→["info"]process.pid→pidprocess.name→nameprocess.executable→pathprocess.command_line→cmdlineprocess.working_directory→cwdprocess.parent.pid→ppidprocess.parent.name→parent_nameprocess.parent.executable→parent_pathprocess.parent.command_line→parent_cmdlineprocess.start→start_timeprocess.thread.count→threadsuser.id→uiduser.name→usernameuser.group.id→gidprocess.hash.md5→md5process.hash.sha256→sha256process.code_signature.status→signing_statusprocess.code_signature.subject_name→authorityprocess.code_signature.team_id→team_identifierSQL Query
🪟 Windows - Suspicious Process Detection
Description
Identifies Windows processes with suspicious characteristics: unsigned executables, unusual paths (temp, public, downloads), LOLBin abuse, UAC bypass tools, and suspicious parent-child relationships. Enriched with code signatures and file hashes for threat intelligence correlation.
MITRE ATT&CK Coverage:
Detection Focus:
Result
Query returns processes matching suspicious indicators with detection_reason classification for analyst triage.
Platform
windowsInterval
3600seconds (1 hour)Query ID
suspicious_processes_windows_elasticECS Field Mappings
event.category→["process"]event.type→["info"]event.kind→"signal"process.pid→pidprocess.name→nameprocess.executable→pathprocess.command_line→cmdlineprocess.working_directory→cwdprocess.parent.pid→ppidprocess.parent.name→parent_nameprocess.parent.executable→parent_pathprocess.parent.command_line→parent_cmdlineprocess.start→start_timeuser.id→uidprocess.hash.md5→md5process.hash.sha256→sha256process.code_signature.status→signature_statusprocess.code_signature.subject_name→signertags→["suspicious_process", "threat_hunting", "mitre_t1059", "mitre_t1036", "mitre_t1055", "mitre_t1218", "mitre_t1548_002"]SQL Query
🐧 Linux - Suspicious Process Detection
Description
Identifies Linux processes with suspicious characteristics: execution from /tmp, /dev/shm, or /var/tmp, reverse shell patterns, suspicious interpreters, crypto-miners, container escapes, and unusual binary locations. Enriched with file hashes for threat intelligence correlation.
MITRE ATT&CK Coverage:
Detection Focus:
Result
Query returns processes matching suspicious indicators with detection_reason classification for analyst triage.
Platform
linuxInterval
3600seconds (1 hour)Query ID
suspicious_processes_linux_elasticECS Field Mappings
event.category→["process"]event.type→["info"]event.kind→"signal"process.pid→pidprocess.name→nameprocess.executable→pathprocess.command_line→cmdlineprocess.working_directory→cwdprocess.parent.pid→ppidprocess.parent.name→parent_nameprocess.parent.executable→parent_pathprocess.parent.command_line→parent_cmdlineprocess.start→start_timeuser.id→uiduser.group.id→gidprocess.hash.md5→md5process.hash.sha256→sha256tags→["suspicious_process", "threat_hunting", "mitre_t1059", "mitre_t1036", "mitre_t1105", "mitre_t1496", "mitre_t1611"]SQL Query
🍎 macOS - Suspicious Process Detection
Description
Identifies macOS processes with suspicious characteristics: unsigned executables, execution from /tmp or hidden directories, osascript abuse, quarantine bypass, crypto-miners, and suspicious interpreters. Enriched with code signatures and file hashes for threat intelligence correlation.
MITRE ATT&CK Coverage:
Detection Focus:
Result
Query returns processes matching suspicious indicators with detection_reason classification for analyst triage.
Platform
darwinInterval
3600seconds (1 hour)Query ID
suspicious_processes_macos_elasticECS Field Mappings
event.category→["process"]event.type→["info"]event.kind→"signal"process.pid→pidprocess.name→nameprocess.executable→pathprocess.command_line→cmdlineprocess.working_directory→cwdprocess.parent.pid→ppidprocess.parent.name→parent_nameprocess.parent.executable→parent_pathprocess.parent.command_line→parent_cmdlineprocess.start→start_timeuser.id→uiduser.group.id→gidprocess.hash.md5→md5process.hash.sha256→sha256process.code_signature.status→signing_statusprocess.code_signature.subject_name→authorityprocess.code_signature.team_id→team_identifiertags→["suspicious_process", "threat_hunting", "mitre_t1059", "mitre_t1553_001", "mitre_t1059_002", "mitre_t1496"]SQL Query
This PR was AI assisted with Claude Code