Skip to content

How can i get the correct file path from behaviors in detections #498

Answered by bk-cs
hermanmaleiane asked this question in Q&A
Discussion options

You must be logged in to vote

Falcon uses Windows APIs to track files because it interacts with the kernel directly. It tracks files by that \Device\HarddiskVolume value, not the drive letter that's exposed to the user... so, unfortunately, it's not as simple as "getting the right path from the API".

You can use the device path to find the drive letter on the system itself. PowerShell is my language, and I'm not aware of a native method that can match the "device path" to the drive letter. I found the following article after a bunch of searching that describes a script that can be used to do it: https://morgantechspace.com/2014/11/Get-Volume-Path-from-Drive-Name-using-Powershell.html

That's a pretty long script, so af…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@hermanmaleiane
Comment options

Answer selected by hermanmaleiane
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
RTR Real Time Response issues and questions detects Detections issues and questions
2 participants