Get specific word from files

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

Get specific word from files

L2 Linker

Hi,

 

Please, any idea to get specific word from files via BIOC or XQL?

For example: password, username....

BR.

Redouane Bouzeghoub
4 REPLIES 4

L4 Transporter

I'm using this XQL, to see what users open files with "password" on Filename:

preset = xdr_file
| filter action_file_name contains "passwords" // To find file by file name
| fields agent_hostname, agent_ip_addresses , actor_effective_username , event_sub_type , action_file_name , action_file_path , actor_process_image_name , os_actor_process_command_line

| filter ((`action_file_name` contains """.txt""" or `action_file_name` contains """.xlsx""" or `action_file_name` contains """.one""" or `action_file_name` contains """.doc""") and (`action_file_name` not contains """.lnk""" and `action_file_name` not contains """.url""") and `action_file_path` not in ("""C:\\Users\\*\\AppData\\*""", """:Zone.Identifier"""))


If this post answers your question, please mark it as the solution.




Best regards
Tiago Marques

L2 Linker

Thank you @tlmarques.

 

But the case is, for example we have text file on desktop and inside this file contain password, username....

 

Please, if you have any idea?

Redouane Bouzeghoub

L4 Transporter

looking inside...i think not.

If this post answers your question, please mark it as the solution.




Best regards
Tiago Marques

L2 Linker

I think this role for DLP?

 

Br.

Redouane Bouzeghoub
  • 117 Views
  • 4 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!