KQL Benchmark Performance Analysis
63.3%
(119 / 188 successful)
2.60
per question
37.90s
$93.8871
# | Prompt (Question) | MITRE ATT&CK | Correct Answer | LLM Answer | Correct | KQL Query from LLM |
---|---|---|---|---|---|---|
1 | On a Windows host, an attacker leveraged COMSVCS.DLL via rundll32.exe to dump the memory of svchost.exe into a file under the Temp directory. Review the file creation logs to determine the exact name of the dump file that was generated. | svchost-exe.dmp | svchost-exe.dmp | ✓ | DeviceFileEvents
| where ActionType == "FileCreated"
| where InitiatingProcessFileName =~ "rundll32.exe"
| where InitiatingProcessCommandLine has "comsvcs.dll"
| where FolderPath contains "Temp"
| project TimeGenerated, DeviceName, FolderPath, FileName, InitiatingProcessCommandLine
| order by TimeGenerated desc | |
2 | Identify the PowerShell cmdlet used on Windows to format and display the raw volume bytes after an attacker read the boot sector via a DOS device path. | Format-Hex | Format-Hex | ✓ | DeviceProcessEvents
| where ActionType == "ProcessCreated"
| where FileName endswith "powershell.exe"
| where ProcessCommandLine has "Format-Hex"
| where ProcessCommandLine has_any("\\.\\PhysicalDrive", "\\.\\C:")
| project TimeGenerated, DeviceName, AccountName, ProcessCommandLine | |
3 | A Linux host’s Syslog shows a shell-based network discovery script ran multiple commands. One of them listed current TCP connections. Which utility was invoked? | netstat | netstat | ✓ | DeviceProcessEvents
| where DeviceId in (DeviceInfo
| where OSPlatform == "Linux"
| distinct DeviceId)
| where ActionType == "ProcessCreated"
| where ProcessCommandLine has_any ("netstat", "ss ", "lsof -i")
| project TimeGenerated, DeviceName, FileName, ProcessCommandLine, InitiatingProcessCommandLine | |
4 | On a Windows host, someone appears to have run a built-in network shell utility to list saved wireless network profiles and their passwords in clear text. Review the process creation logs to discover the exact command that was executed. | netsh wlan show profile * key=clear | netsh wlan show profile * key=clear | ✓ | DeviceProcessEvents
| where FileName =~ "netsh.exe" or InitiatingProcessFileName =~ "netsh.exe" or ProcessCommandLine has "netsh" or InitiatingProcessCommandLine has "netsh"
| where (ProcessCommandLine has_all ("wlan", "show", "profile") or InitiatingProcessCommandLine has_all ("wlan", "show", "profile"))
| project TimeGenerated, DeviceName, AccountName, FileName, FolderPath, ProcessCommandLine, InitiatingProcessCommandLine
| order by TimeGenerated desc | |
5 | Using Windows process event logs, investigate PowerShell activity around lsass.exe memory capture. What was the name of the script file invoked to perform the dump? | Out-Minidump.ps1 | Out-Minidump.ps1 | ✓ | DeviceProcessEvents
| where FileName in~ ("powershell.exe", "pwsh.exe")
| where ProcessCommandLine has "lsass"
| extend ScriptFile = extract(@"(\S+\.ps1)", 1, ProcessCommandLine)
| where isnotempty(ScriptFile)
| project TimeGenerated, DeviceName, AccountName, ScriptFile, ProcessCommandLine
| distinct ScriptFile | |
6 | An analyst suspects a user or script ran a service enumeration command on a Linux system. Review process events to find the service-listing invocation and specify the full command that was executed. | systemctl --type=service | systemctl --type=service | ✓ | DeviceProcessEvents
| where DeviceId in (DeviceInfo
| where OSPlatform == "Linux"
| distinct DeviceId)
| where FileName in~ ("service", "systemctl", "initctl", "chkconfig", "rc-update")
or ProcessCommandLine has_any ("systemctl list", "list-units", "--status-all", "initctl list", "chkconfig", "rc-update")
| project TimeGenerated, DeviceName, AccountName, ProcessCommandLine, FolderPath, SHA256, InitiatingProcessCommandLine
| order by TimeGenerated desc | |
7 | An analyst notices a PowerShell process on a Windows host that appears to be checking SMB connectivity. Which PowerShell cmdlet was executed to perform this outbound port 445 test? | Test-NetConnection | Test-NetConnection | ✓ | // This query checks both DeviceProcessEvents and DeviceNetworkEvents to find
// PowerShell commands that used the 'Test-NetConnection' (or 'tnc') cmdlet
// specifically mentioning port 445.
union DeviceProcessEvents, DeviceNetworkEvents
| where TimeGenerated >= ago(7d) // Adjust time range as needed
| where (FileName in~ ("powershell.exe", "pwsh.exe") or InitiatingProcessFileName in~ ("powershell.exe", "pwsh.exe"))
| where tostring(ProcessCommandLine) has_any ("Test-NetConnection", "tnc") or tostring(InitiatingProcessCommandLine) has_any ("Test-NetConnection", "tnc")
| where tostring(ProcessCommandLine) has "445" or tostring(InitiatingProcessCommandLine) has "445" or RemotePort == 445
| project TimeGenerated, DeviceName, Type,
FileName, ProcessCommandLine, InitiatingProcessFileName, InitiatingProcessCommandLine,
RemoteIP, RemotePort
| order by TimeGenerated desc | |
8 | A Windows host executed an ICMP-based network reconnaissance using a looping instruction in cmd.exe. Identify the exact command line that was used to perform the ping sweep. | for /l %i in (1,1,254) do ping -n 1 -w 100 192.168.1.%i | "cmd.exe" /c for /l %i in (1,1,254) do ping -n 1 -w 100 192.168.1.%i | ✓ | DeviceProcessEvents
| where ActionType == "ProcessCreated"
| where FileName == "cmd.exe"
| where ProcessCommandLine contains "for /L" and ProcessCommandLine contains "ping"
| project TimeGenerated, DeviceName, AccountName, ProcessCommandLine | |
9 | On a Linux system, review process creation logs to spot any dd commands reading from /proc/*/mem. What was the name of the file where the dumped memory was written? | T1003.007.bin | /tmp/T1003.007.bin | ✓ | let LinuxDevices = DeviceInfo
| where OSPlatform == "Linux"
| distinct DeviceId;
DeviceProcessEvents
| where DeviceId in (LinuxDevices)
| where ActionType == "ProcessCreated"
| where FileName =~ "dd"
| where ProcessCommandLine has "if=/proc/" and ProcessCommandLine has "/mem"
| extend DumpedFile = extract(@"of=([^\s]+)",1,ProcessCommandLine)
| where isnotempty(DumpedFile)
| project TimeGenerated, DeviceName, ProcessCommandLine, DumpedFile
| order by TimeGenerated desc | |
10 | Review Linux process execution records for any commands that list TCP metric cache entries and filter out loopback interfaces. Which utility was used? | ip | ip | ✓ | DeviceProcessEvents
| join kind=inner (
DeviceInfo
| where OSPlatform =~ "Linux"
| project DeviceId
) on DeviceId
| where ProcessCommandLine has_all ("ip", "tcp_metrics", "show")
| where not(ProcessCommandLine has "lo")
| project TimeGenerated, DeviceName, AccountName, FileName, ProcessCommandLine, FolderPath, InitiatingProcessCommandLine
| order by TimeGenerated desc | |
11 | On a Linux host, a ping command was executed to test internet connectivity. Determine which IP address was used as the ping target. | 8.8.8.8 | 8.8.8.8 | ✓ | DeviceProcessEvents
| where FileName == "ping"
| extend RawTarget = extract(@"ping\s+([^\s]+)", 1, ProcessCommandLine)
| join kind=inner (
DeviceInfo
| where OSPlatform == "Linux"
| project DeviceId, DeviceName
) on DeviceId
| extend PingIP = extract(@"(\d{1,3}(?:\\.\d{1,3}){3})", 0, RawTarget)
| project TimeGenerated, DeviceName, AccountName, ProcessCommandLine, RawTarget, PingIP
| order by TimeGenerated desc | |
12 | On a Windows endpoint, look for evidence of a base64-encoded PowerShell payload execution. Which executable launched the encoded command? | powershell.exe | powershell.exe | ✓ | DeviceProcessEvents
| where FileName in~ ("powershell.exe", "powershell_ise.exe", "pwsh.exe")
| where ProcessCommandLine has_any ("-enc", "-encodedCommand")
| project TimeGenerated, DeviceName, FileName, ProcessCommandLine, InitiatingProcessFileName, InitiatingProcessCommandLine | |
13 | On Windows devices, identify the full command used when the built-in credential manager utility was invoked to list stored credentials. What was the exact command? | cmdkey /list | cmdkey.exe /list | ✓ | DeviceProcessEvents
| where FileName =~ "cmdkey.exe" or FileName =~ "vaultcmd.exe"
| where ProcessCommandLine contains "list"
| project TimeGenerated, DeviceName, AccountName, ProcessCommandLine, FolderPath
| order by TimeGenerated desc | |
14 | On a Windows endpoint, review process creation logs to uncover when a built-in utility was used to reveal ARP entries. What exact command was used to list the ARP cache? | arp -a | arp -a | ✓ | DeviceProcessEvents
| where ActionType in ("CreateProcess", "ProcessCreated")
| where isnotempty(ProcessCommandLine)
// Look for typical ways to reveal ARP cache (arp.exe -a, netsh interface ip show neighbors, etc.)
| where tolower(ProcessCommandLine) has_any ("arp -a", "arp /a", "arp -g", "arp /g", "netsh interface ip show neighbors", "netsh interface ip show arpcache", "get-netneighbor")
| project TimeGenerated, DeviceName, AccountDomain, AccountName, FileName, ProcessCommandLine
| order by TimeGenerated desc | |
15 | A Windows host shows a process launch with an extremely obfuscated command line that dynamically builds and invokes code at runtime. Which process name was used to execute this payload? | powershell | powershell.exe | ✓ | DeviceProcessEvents
| where ActionType in~ ("CreateProcess", "ProcessCreated")
| where tolower(ProcessCommandLine) has_any ("encodedcommand", "reflection.emit", "invoke-expression", "frombase64string")
| project TimeGenerated, DeviceName, FileName, ProcessCommandLine, InitiatingProcessFileName, FolderPath, SHA256
| order by TimeGenerated desc | |
16 | Analyze Windows process events for any schtasks.exe commands that created a new task invoking PowerShell. What is the name of the .ps1 script specified to run? | T1036.004_NonExistingScript.ps1 | c:\T1036.004_NonExistingScript.ps1 | ✓ | DeviceProcessEvents
| where FileName == "schtasks.exe"
| where ProcessCommandLine has_any ("/create", "create")
| where ProcessCommandLine has_any ("powershell", "powershell.exe")
| extend Ps1Script = extract(@"(\S+\.ps1)", 1, ProcessCommandLine)
| project TimeGenerated, DeviceName, ProcessCommandLine, Ps1Script | |
17 | A threat actor on a Windows system crafted and registered a service named almost identically to the standard time service, but redirecting execution to a custom script. Review the logging data to determine which native command-line tool was used to perform this action. What utility was invoked? | sc | sc | ✓ | DeviceProcessEvents
| where ActionType == "ProcessCreated"
| where tolower(ProcessCommandLine) has_any ("sc create", "sc config")
and tolower(ProcessCommandLine) contains "time"
| project TimeGenerated, DeviceName, InitiatingProcessCommandLine, ProcessCommandLine, AccountName
| order by TimeGenerated desc | |
18 | A process is running under a familiar Windows host name but originates from a user's AppData folder rather than the System32 directory. Identify the filename used to masquerade the PowerShell binary on this Windows device. | taskhostw.exe | taskhostw.exe | ✓ | DeviceProcessEvents
| where ActionType == "ProcessCreated"
| where tolower(ProcessVersionInfoOriginalFileName) == "powershell.exe"
| where tolower(FolderPath) has "users" and tolower(FolderPath) has "appdata"
| project TimeGenerated, DeviceName, FolderPath, FileName, ProcessCommandLine, AccountName, AccountDomain
| order by TimeGenerated desc | |
19 | In a Linux environment, an elevated process was used to execute a command that read /etc/shadow and redirected its output to a file. Identify what file name was employed to store these results. | T1003.008.txt | N/A | ✗ | ||
20 | Windows process creation logs show a PowerShell-driven file transfer to an FTP service. Which executable was leveraged to perform this exfiltration? | rclone.exe | rclone.exe | ✓ | DeviceProcessEvents
| where ActionType == "ProcessCreated"
| where InitiatingProcessFileName =~ "powershell.exe"
| where ProcessCommandLine has "ftp"
| project TimeGenerated, DeviceName, InitiatingProcessFileName, ProcessCommandLine, FileName, FolderPath
| order by TimeGenerated desc | |
21 | A user launched a Windows command prompt and executed a built-in utility to enumerate all active network connections. Using process creation logs, identify the exact tool that produced the list of current connections. | netstat | netstat | ✓ | DeviceProcessEvents
| where ActionType == "ProcessCreated"
| where InitiatingProcessFileName =~ "cmd.exe"
| where FileName =~ "netstat.exe"
| project TimeGenerated, DeviceName, FolderPath, InitiatingProcessAccountDomain, InitiatingProcessAccountName, FileName, ProcessCommandLine
| order by TimeGenerated desc | |
22 | On Windows hosts, look through recent PowerShell execution records to find any elevated session where remote management was turned on. What exact command was run to enable PSRemoting? | Enable-PSRemoting -Force | N/A | ✗ | ||
23 | On a Linux system, spotting a file‐size change by exactly one byte can indicate hash tampering via padding. Review process execution logs for invocations that increased a file’s size by one byte. Which utility was invoked to perform this padding? | truncate | N/A | ✗ | ||
24 | On a Windows system, someone ran PowerShell to copy a file from a remote machine’s C$ share to the local TEMP folder. Using process event logs, what full PowerShell command was executed to perform this action? | copy-item -Path "\\127.0.0.1\C$\Windows\temp\Easter_Bunny.password" -Destination "$Env:TEMP\Easter_egg.password" | powershell.exe&{copy-item-Path"\\127.0.0.1\C$\Windows\temp\Easter_Bunny.password"-Destination"$Env:TEMP\Easter_egg.password"} | ✗ | DeviceProcessEvents
| where ActionType =~ "ProcessCreated"
| where FileName =~ "powershell.exe" or FileName =~ "pwsh.exe"
| where ProcessCommandLine has "C$" and ProcessCommandLine has "temp" and ProcessCommandLine has_any ("copy", "cp", "xcopy")
| project TimeGenerated, DeviceName, InitiatingProcessAccountName, ProcessCommandLine, FolderPath, FileName, SHA256, InitiatingProcessCommandLine
| order by TimeGenerated desc | |
25 | In a Windows log analytics workspace, search for PowerShell processes that were used to enumerate network connections. Determine which PowerShell cmdlet was executed to list active TCP connections. | Get-NetTCPConnection | Get-NetTCPConnection | ✓ | DeviceProcessEvents
| where FileName in~ ("powershell.exe", "pwsh.exe")
| where ProcessCommandLine has "Get-NetTCPConnection"
| project TimeGenerated, DeviceName, AccountName, FileName, ProcessCommandLine | |
26 | Linux hosts may log events when new files are added to /var/spool/cron/crontabs. Query those logs for a creation or write action in that directory and determine the file name that was added. | persistevil | persistevil | ✓ | DeviceFileEvents
| where FolderPath startswith "/var/spool/cron/crontabs"
and ActionType in ("FileCreated", "FileModified")
| project TimeGenerated, DeviceName, ActionType, FolderPath, FileName | |
27 | On a Linux system, identify the script that was generated by decoding a base64 data file and then executed. What was the filename of that script? | art.sh | N/A | ✗ | ||
28 | You suspect malicious persistence via scheduled tasks on a Windows endpoint. Review the process execution logs to identify the built-in utility used to register tasks at logon or startup. What is the name of this utility? | schtasks | schtasks.exe | ✓ | DeviceProcessEvents
| where ActionType == "ProcessCreated"
| where FileName in~ ("schtasks.exe", "at.exe")
| where ProcessCommandLine has_any ("create", "onstart", "onlogon", "onboot")
| project TimeGenerated, DeviceName, AccountDomain, AccountName, FileName, ProcessCommandLine
| order by TimeGenerated desc | |
29 | A Windows host shows a core command-line utility being duplicated from its System32 location to a user-profile folder and subsequently run. Identify the name of the executable that was copied. | cmd.exe | N/A | ✗ | ||
30 | On a Windows device, PowerShell was used to collect a snapshot of running processes. Identify the exact cmdlet that was executed. | Get-Process | Get-Process | ✓ | DeviceProcessEvents
| where ActionType == "ProcessCreated"
| where Timestamp >= ago(30d)
| where InitiatingProcessCommandLine contains "powershell" or ProcessCommandLine contains "powershell"
| where InitiatingProcessCommandLine has "get-process" or ProcessCommandLine has "get-process"
| project TimeGenerated, DeviceName, InitiatingProcessCommandLine, ProcessCommandLine | |
31 | On a Windows endpoint you observe a PowerShell process that fetches a script from the internet and immediately executes an RPC service scan against the spooler. Which function name was invoked to perform that scan? | spoolvulnscan | N/A | ✗ | ||
32 | A malicious actor may attempt to list running processes on a Windows machine using a WMI-based command. Review the process creation events to find out which utility was invoked to perform this enumeration. | wmic.exe | wmic | ✓ | DeviceProcessEvents
| where ActionType == "ProcessCreated"
| where FileName =~ "wmic.exe" or ProcessCommandLine has_any ("wmic process", "Get-WmiObject", "Get-CimInstance", "win32_process")
| project TimeGenerated, DeviceName, FileName, FolderPath, ProcessCommandLine, InitiatingProcessFileName, InitiatingProcessCommandLine
| order by TimeGenerated desc | |
33 | A Windows endpoint recorded a command-line activity through cmd.exe that lists all running processes. Determine which built-in tool was executed to perform this action. | tasklist | tasklist | ✓ | DeviceProcessEvents
| where InitiatingProcessFileName =~ "cmd.exe"
| where FileName in~ ("tasklist.exe", "wmic.exe")
| project TimeGenerated, DeviceId, DeviceName, FolderPath, FileName, ProcessCommandLine, InitiatingProcessCommandLine
| order by TimeGenerated desc | |
34 | A reconnaissance tool was executed on a Windows system. Identify the specific function of the tool that was executed. The function has a name from something you can eat | fruit | cookie | ✗ | union DeviceProcessEvents, DeviceFileEvents, DeviceImageLoadEvents
| where TimeGenerated >= ago(7d)
| where isnotempty(FileName) or isnotempty(ProcessCommandLine) or isnotempty(InitiatingProcessCommandLine)
| where FileName has_any ("cookie", "potato", "apple", "banana", "cake", "milk", "taco")
or ProcessCommandLine has_any ("cookie", "potato", "apple", "banana", "cake", "milk", "taco")
or InitiatingProcessCommandLine has_any ("cookie", "potato", "apple", "banana", "cake", "milk", "taco")
| project TimeGenerated, Type, DeviceName, AccountName, FileName, FolderPath, ProcessCommandLine, InitiatingProcessCommandLine
| order by TimeGenerated desc | |
35 | While reviewing Windows process events, you spot a PowerShell process executing a WMI enumeration cmdlet. What WMI class name did the attacker query? | Win32_Process | Win32_PerfFormattedData_PerfOS_System | ✗ | DeviceProcessEvents
| where FileName =~ "powershell.exe"
| where ProcessCommandLine has_any ("Get-WmiObject", "Get-CimInstance", "Invoke-WmiMethod", "win32_")
| extend WmiClassQueried = extract(@"(?i)(win32_\S+)", 0, ProcessCommandLine)
| project TimeGenerated, DeviceName, InitiatingProcessAccountName, ProcessCommandLine, WmiClassQueried
| order by TimeGenerated desc | |
36 | A Linux host briefly hosted an HTTP service under /tmp. Examine process creation logs to determine the exact python3 command that was used to start the server on port 9090. | python3 -m http.server 9090 | python3 -m http.server 9090 | ✓ | DeviceProcessEvents
| join kind=inner (
DeviceInfo
| where OSPlatform contains "Linux"
) on DeviceId
| where (FileName in~ ("python", "python3") or ProcessCommandLine contains "python")
| where ProcessCommandLine contains "9090"
| where ProcessCommandLine contains "/tmp" or FolderPath has "/tmp" or InitiatingProcessFolderPath has "/tmp"
| project TimeGenerated, DeviceName, FolderPath, FileName, ProcessCommandLine, ProcessCreationTime
| order by TimeGenerated desc | |
37 | In a Linux environment, you observe a process labeled like the cron daemon but running from an unexpected path. Investigate creation events to uncover the actual filename used by this fake cron process. | crond | N/A | ✗ | ||
38 | Examine the logs from the Linux system for events related to the systemd timer activation. Identify any records indicating that a new timer unit was started and enabled, and determine which timer name was used. | art-timer.timer | art-timer.timer | ✓ | let LinuxDevices = DeviceInfo
| where OSPlatform == "Linux"
| distinct DeviceId, DeviceName;
LinuxDevices
| join kind=inner (
DeviceProcessEvents
| where ActionType == "ProcessCreated"
| where ProcessCommandLine has "systemctl" and ProcessCommandLine has ".timer"
// Extract the operation (enable/start) and the timer name from the command line
| extend Operation = extract(@"systemctl\s+(enable|start)", 1, ProcessCommandLine)
| extend TimerName = extract(@"systemctl\s+(?:enable|start)\s+([^\s]+\.timer)", 1, ProcessCommandLine)
| where isnotempty(TimerName)
| project DeviceId, TimeGenerated, Operation, TimerName, ProcessCommandLine
) on DeviceId
| project TimeGenerated, DeviceName, Operation, TimerName, ProcessCommandLine | |
39 | An analyst suspects that a restricted shell escape was executed using a common Perl package manager on Linux. Review the process execution records to determine which tool was invoked to spawn the shell. | cpan | cpan | ✓ | DeviceProcessEvents
| where FileName in~ ("sh", "bash", "dash", "zsh", "csh", "ksh")
// Identify newly created shell-like processes
| where InitiatingProcessFileName in~ ("cpan", "cpanm", "perl") or InitiatingProcessCommandLine has_any ("cpan", "cpanm")
// Filter for shells spawned by cpan, cpanm, or perl
| project TimeGenerated, DeviceName, FolderPath, FileName, ProcessCommandLine, InitiatingProcessFileName, InitiatingProcessCommandLine, InitiatingProcessAccountName, AccountName
| order by TimeGenerated desc
| |
40 | An attacker on a Linux host may try to enumerate installed shells by reading the system file that lists valid shells. Using process or syslog data, determine which command was executed to perform this enumeration. | cat /etc/shells | cat | ✓ | DeviceInfo
| where OSPlatform == "Linux"
| join (
DeviceProcessEvents
| where ProcessCommandLine has "/etc/shells"
) on DeviceId
| project TimeGenerated, DeviceName, AccountName, ProcessCommandLine, InitiatingProcessCommandLine
| order by TimeGenerated desc | |
41 | On Windows, review recent registry changes to detect when the MSC file association was hijacked by a reg add operation. What executable file was configured as the default command under HKCU\Software\Classes\mscfile\shell\open\command? | calc.exe | N/A | ✗ | ||
42 | On a Linux host, identify the process invocation that altered a user’s login shell. What was the full command used? | chsh -s /bin/sh art | chsh -s /bin/sh art | ✓ | DeviceProcessEvents
| where DeviceId in (DeviceInfo
| where OSPlatform =~ "Linux"
| distinct DeviceId)
| where FileName in~ ("chsh","usermod") or ProcessCommandLine has_any ("chsh", "usermod -s", "usermod --shell")
| project TimeGenerated, DeviceName, AccountName, ProcessCommandLine
| order by TimeGenerated desc | |
43 | Review the process creation logs on a Windows host to uncover any tool execution indicative of a special APC injection for shellcode execution. What was the name of the executable used? | NtQueueApcThreadEx.exe | N/A | ✗ | ||
44 | On a Linux system, find any process creation record where awk is used with a BEGIN rule to launch a shell. What was the exact command invoked? | awk 'BEGIN {system("/bin/sh &")}’ | awk 'BEGIN {system("/bin/sh &")}' | ✓ | DeviceProcessEvents
| where ActionType == "ProcessCreated"
| join kind=innerunique (
DeviceInfo
| where OSPlatform == "Linux"
) on DeviceId
| where FileName == "awk" or ProcessCommandLine has "awk"
| where ProcessCommandLine has "BEGIN"
| where ProcessCommandLine has_any ("sh", "bash")
| project TimeGenerated, DeviceName, AccountName, ProcessCommandLine
| order by TimeGenerated desc | |
45 | On a Windows host, find any scheduled task that was registered using PowerShell native cmdlets instead of schtasks.exe. What was the name given to the new task? | AtomicTask | None | ✗ | DeviceProcessEvents
| where FileName in~ ("powershell.exe", "pwsh.exe")
| where ProcessCommandLine has_any ("Register-ScheduledTask", "New-ScheduledTask")
| extend TaskName = extract("-TaskName\\s+\\\"([^\\\"]+)\\\"", 1, ProcessCommandLine)
| project TimeGenerated, DeviceName, AccountName, TaskName
| order by TimeGenerated desc | |
46 | On a Linux system, analyze the process logs for suspicious command line activity that includes a sequence of commands indicating a pipe-to-shell operation. Identify the tool that was used to execute this piped command, paying special attention to its use in downloading and running script content. | bash | curl | ✗ | let LinuxDevices = DeviceInfo
| where OSPlatform == "Linux"
| distinct DeviceId;
DeviceProcessEvents
| where DeviceId in (LinuxDevices)
| where tolower(ProcessCommandLine) has "|" // searching for pipe
| where tolower(ProcessCommandLine) has_any ("bash", "sh") // searching for piping to a shell
| where tolower(ProcessCommandLine) has_any ("curl", "wget", "python", "nc")
| extend ToolUsed = extract(@"(curl|wget|python|nc)", 1, tolower(ProcessCommandLine))
| project TimeGenerated, DeviceName, AccountName, ProcessCommandLine, ToolUsed, InitiatingProcessCommandLine
| order by TimeGenerated desc
| |
47 | Investigate Windows process events for PowerShell activity that leverages WMI to register a scheduled task via XML import. What was the name of the XML file supplied to the RegisterByXml method? | T1053_005_WMI.xml | N/A | ✗ | ||
48 | On a Windows host, investigate process events to find when Task Manager was launched via cmd with an unusual flag. What was the full command executed? | taskmgr.exe /7 | N/A | ✗ | ||
49 | During a Linux investigation, you notice processes spawning curl and wget commands that pull a script from a remote GitHub raw URL and pipe it into bash. Identify the name of the script that was retrieved and executed. | echo-art-fish.sh | echo-art-fish.sh | ✓ | DeviceProcessEvents
| where ActionType == "ProcessCreated"
| where tolower(InitiatingProcessCommandLine) has_any ("curl", "wget")
and tolower(InitiatingProcessCommandLine) has "raw.githubusercontent.com"
and tolower(InitiatingProcessCommandLine) has "| bash"
| extend ScriptName = extract(@"raw\.githubusercontent\.com[^ ]+/(?<script>[^ ]+)", 1, tolower(InitiatingProcessCommandLine))
| project Timestamp, DeviceName, InitiatingProcessCommandLine, ScriptName
| order by Timestamp desc | |
50 | On a Windows device, review the process execution logs to find instances where a built-in listing tool was piped into a string filter. Identify the process name that the attacker was searching for. | lsass | N/A | ✗ |