New Pen Drive Plugged in Detected

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

New Pen Drive Plugged in Detected

Can I create a rule to generate an event for detecting USB Plugged?? Is there any method to detect USB Plugged in event using cortex?? If so how??

5 REPLIES 5

L5 Sessionator

Hello Tharaka,

 

USB Device plugin alert may not be possible but definitely you should be able to create a BIOC rule for USB/RemovableMedia file operation, process operation activity with a low severity priority which will only trigger an alert in Alerts Table but not create an Incident.

 

Let me know, if that helps.

Ashutosh Patil

So this will trigger an event only if any of file in the pen drive is clicked???

L5 Sessionator

Hello Tharaka,

 

You can try with below BIOC query and play around it:

preset = xdr_registry
| filter (action_registry_key_name contains "HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\USBSTOR\Enum" and event_sub_type = REGISTRY_CREATE_KEY)

Or you can 
consider using the following BIOC to raise alerts when a USB device is plugged in.

You can play around with the filters to whitelist allowed device IDs/vendors.

dataset = xdr_data

| filter event_type = device and event_sub_type = Device Plug

 

Let me know if that helps. Kindly mark accept as solution.

 

Thanks!!

 

Ashutosh Patil

Can you describe the above two queries? The problem is my plugged in USB devices details are reside on below location. 

 

Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USBSTOR

 

And what is this "event_sub_type = REGISTRY_CREATE_KEY" ??

L4 Transporter

Hi @Tharaka-Wijesinghe 

 

You may refer here as well. 

 

Feel free to write back if you have further query.

 

Hope this helps!

Please mark the response as "Accept as Solution" if it answers your query.

  • 1371 Views
  • 5 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!