action_process_image_command_line Filter Issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

action_process_image_command_line Filter Issue

L1 Bithead

Hi, I'm trying to build a query that would check for reg.exe launches. This is well and good, but the moment I add a filter action_process_image_command_line = "reg save" nothing appears, even though it was part of the initial result for reg.exe. When I checked the schema, action_process_image_command_line is a string, so I don't think my query was wrong. Is anyone else having the same issue?

 

config case_sensitive = false
| dataset = xdr_data
| filter agent_hostname = "hostname"
| filter event_type = ENUM.PROCESS and event_sub_type in (ENUM.PROCESS_START, ENUM.PROCESS_STOP) and action_process_image_name = "reg.exe*"
| filter action_process_image_command_line = "reg save"
| fields agent_hostname, actor_effective_username, action_process_image_command_line, action_process_image_name, actor_process_command_line, *command_line*

 

  
Unfiltered
UnfilteredUnfiltered

Filtered
filtered.jpg

2 REPLIES 2

L2 Linker

Hi @a2123k1 ,

 

Typically, action_process_image_command_line would include the full command, i.e "reg save HKLM\\HARDWARE \"C:\\Program Files\...."

 

I would recommend shifting to contains instead

 

| filter action_process_image_command_line contains "reg save"

or leverage regex to ensure it starts with reg save

| filter action_process_image_command_line ~= "(^reg save(.*)$)"

 

Thanks for the suggestion, those didn't work either.

  • 278 Views
  • 2 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!