-
-
Notifications
You must be signed in to change notification settings - Fork 762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Non-JSON output included in JSON output #242
Comments
Thanks a lot for the bugreport! It will be fixed. You can just remove/comment the log functions in the *.sg files |
josh-feather
added a commit
to josh-feather/CAPEv2
that referenced
this issue
Jan 29, 2025
The `diec` binary outputs non-JSON output in JSON mode, causing the parsing to fail. For example: ```text [!] Heuristic scan is disabled. Use --heuristicscan to enable { "detects": [ { "filetype": "PE64", "info": "", "offset": "0", "parentfilepart": "Header", "size": "3488048", "values": [ { "info": "", "name": "Microsoft Linker", "string": "Linker: Microsoft Linker(14.22.27905)", "type": "Linker", "version": "14.22.27905" }, { "info": "C++", "name": "Microsoft Visual C/C++", "string": "Compiler: Microsoft Visual C/C++(19.22.27905)[C++]", "type": "Compiler", "version": "19.22.27905" }, { "info": "", "name": "Visual Studio", "string": "Tool: Visual Studio(2019, v16.2)", "type": "Tool", "version": "2019, v16.2" } ] } ] }``` There is a related issue noted against the DIE project: horsicq/Detect-It-Easy#242
josh-feather
added a commit
to josh-feather/CAPEv2
that referenced
this issue
Jan 29, 2025
The `diec` binary outputs non-JSON output in JSON mode, causing the parsing to fail. For example: ```text [!] Heuristic scan is disabled. Use --heuristicscan to enable { "detects": [ { "filetype": "PE64", "info": "", "offset": "0", "parentfilepart": "Header", "size": "3488048", "values": [ { "info": "", "name": "Microsoft Linker", "string": "Linker: Microsoft Linker(14.22.27905)", "type": "Linker", "version": "14.22.27905" }, { "info": "C++", "name": "Microsoft Visual C/C++", "string": "Compiler: Microsoft Visual C/C++(19.22.27905)[C++]", "type": "Compiler", "version": "19.22.27905" }, { "info": "", "name": "Visual Studio", "string": "Tool: Visual Studio(2019, v16.2)", "type": "Tool", "version": "2019, v16.2" } ] } ] } ``` There is a related issue noted against the DIE project: horsicq/Detect-It-Easy#242
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When running DIE with the JSON flag (
-j, --json
) against PE files, non-JSON output is included regarding heuristic scan information.DIE Version
Basic example
The warning is logged at:
Detect-It-Easy/db/PE/__GenericHeuristicAnalysis_By_DosX.7.sg
Line 111 in df025d3
Additional examples
Below are additional examples of heuristic scan information included in JSON output.
The text was updated successfully, but these errors were encountered: