Giving paths relative to FS #3202
Replies: 4 comments 1 reply
-
@rafaeldtinoco @yanivagman I will appreciate your opinion |
Beta Was this translation helpful? Give feedback.
-
Another idea - we can connect devices to their types, so at least we can give the information of the last FS in which the file resides. |
Beta Was this translation helpful? Give feedback.
-
Yes, I also thought about adding the file-system type as part of file related events. |
Beta Was this translation helpful? Give feedback.
-
Isn't checking the inode's superblock enough? |
Beta Was this translation helpful? Give feedback.
-
So we have an issue with writing signatures to Tracee:
Lets say I want to catch writing to a file in
sysfs
with path PATH.The naive and current possible way to do it is to search for writing to
/sys/PATH
.However, more sophisticated attackers can probably just mount
sysfs
in a random directory, than accessing the file from there. For example, create/tmp/sys
for mounting point, then writing to/tmp/sys/PATH
.Now, this means they have the capabilities and permissions to mount
sysfs
. But it is very possible case.My idea is the following:
Why not divide the path, maybe to a list, and specify for each file system on the full path the specific path in the FS, and its type.
For example, in our case, the path will be -
/sys
of typeext4
, and PATH of typesysfs
.Then, a simple signature will check if the last part is
sysfs
, and if the path in it is PATH.WDYT?
Beta Was this translation helpful? Give feedback.
All reactions