Skip to content
Caleb SmithCyberSecurityWithSmitti
Browse Lesson contentLesson

Inspect process context in Defender telemetry

What you will learn

Use a small read-only query to collect context while stating its prerequisites.

Defender’s DeviceProcessEvents records process-related observations when the relevant endpoint telemetry is available. Inspect the parent process and command-line fields alongside the device and time.

The starter query below returns a bounded sample of interpreter events. It does not detect all malicious PowerShell and does not establish which rows are harmful. Schema availability, permissions and telemetry coverage must be checked in the tenant.

If access is unavailable, use the synthetic lesson instead. Do not request broader permissions merely to complete this exercise.

Try it

In an authorised tenant with the required data, run the read-only starter and explain two rows without exposing sensitive command arguments in your notes. Alternatively, describe the expected columns without running it.

// Read-only investigation starter; not a production detection rule.
DeviceProcessEvents
| where Timestamp > ago(1d)
| where FileName in~ ("powershell.exe", "pwsh.exe")
| project Timestamp, DeviceId, DeviceName, FileName,
          ProcessCommandLine, InitiatingProcessFileName
| take 100

Check your reasoning

Your explanation should distinguish the newly observed process from its initiating process and state at least one coverage limitation.

Reference

Microsoft Learn: current product guidance. Verify the settings and capabilities available in your own tenant.

Sign in to save your study progress. Reading and guest quiz practice remain open.

Ready for the knowledge check?

Apply what you learned before moving on.

Take the quiz