Skip to content

Some events can't be collected with filaments #519

@cyohg

Description

@cyohg

Hi,

Describe the bug

I'm using a filament to collect the events I want, but it doesn't work for events that has "WriteFile", "RegDeleteKey" and "RegDeleteValue" in their name attribute.

How to reproduce it

  • Write a filament like this one :
# myFilament.py
def on_init():
    print("Starting filament")
 
@dotdictify
def on_next_kevent(kevent):
    print(kevent.name)
    if (kevent.name == "WriteFile"):
        print(kevent)

def on_stop():
    print("Ending filament")
  • Run it with fibratus run -f myFilament

Expected behavior

I also ran a capture while installing Blender with the fibratus capture command and converted it to JSON file, which had a lot of "WriteFile" events, I therefore expected to see a lot of "WriteFile" events in the console while using filaments. But I got 0.

Environment

  • Fibratus version:

Image

  • Configuration: "fibratus config" returns me Error: fibratus API server up and running on localhost:8482
  • OS: Windows 10 Pro - build: 19045.5965

Additional context

  • I also tried to put kfilter("kevt.name = 'WriteFile'") at the start of the on_init() function but I got the same result.
  • I have the same problem with "RegDeleteKey" and "RegDeleteValue", I don't know if other events have that problem
  • I tried the above propositions with "CreateFile" and it worked perfectly

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions