brad-sp / cuckoo-modified

Modified edition of cuckoo
271 stars 100 forks source link

Creating a Reporting Module outputs Error #110

Closed blaquee closed 9 years ago

blaquee commented 9 years ago

I wasn't sure where to ask this, but since I do use this fork of cuckoo thought I'd try here. I've written my own reporting module that simply omits the behavioral analysis from the results, but Im getting an error

TypeError: ObjectId('55a7eb34e75a460c391c80de') is not JSON serializable

The modified code only does this:

        output = dict()
        report = dict(results)
        output.update( (key,value) for (key,value) in report.items() if key is not "behavior")

I've also tried this variant


new = { key: value for key,value in results.items() if key is not "behavior" }

Is the mongoID in the results somewhere? I can't seem to track down what type of object result is, I assumed it was a dictionary.

regards,

blaquee commented 9 years ago

The error occurs during processing btw.

brad-sp commented 9 years ago

Are you using the latest version? Does your version contain this commit? https://github.com/brad-accuvant/cuckoo-modified/commit/70e1e7eafb288c49a5ee16ef4de14caefb9f4556 There shouldn't be anything related to ObjectId in your results since we force Mongo's modifications to occur as the "last" reporting module.

blaquee commented 9 years ago

That was it. Thanks man.