bbot icon indicating copy to clipboard operation
bbot copied to clipboard

Is custom output module supported?

Open syunaht opened this issue 1 year ago • 4 comments

Description Is custom output module supported? I tested it and it seems not to work. Adding the output module to module_dirs is ineffective. Although I can directly modify asset_inventory.py, it doesn't feel very elegant

syunaht avatar Nov 02 '24 12:11 syunaht

Yes, you should be able to drop it in alongside the existing output modules.

You wanna post your code and I'll check it over?

TheTechromancer avatar Nov 02 '24 14:11 TheTechromancer

@syunaht any luck?

TheTechromancer avatar Nov 04 '24 14:11 TheTechromancer

Yes, you should be able to drop it in alongside the existing output modules.

You wanna post your code and I'll check it over?

Sorry for the late reply, a bit busy recently. I will submit a PR about custom output module In a few days. Actually, I'm still thinking about whether to optimize the result output to output.json. Currently, the content in output.json is not standardized enough (such as HTTP title). If all the data is output in a consistent format (which we are doing now, but not 100%), it would make external parsing easier (using jq, Python, Go, etc.), facilitating inheritance and making it more convenient to standardize personal output formats. I haven't been using bbot for very long, and many of my ideas come in a flash, so they might be a bit disorganized. I'm not sure if they align with bbot's design principles. I appreciate your patience.

syunaht avatar Nov 05 '24 12:11 syunaht

Okay, yeah we've run into similar issues when ingesting data into Elastic. That's why we added the siem_friendly option to standardize the .data type.

If we introduce standardization, we should use pydantic models to enforce it.

TheTechromancer avatar Nov 05 '24 13:11 TheTechromancer

Closing; please feel free to reopen.

TheTechromancer avatar Nov 19 '24 02:11 TheTechromancer