-
Notifications
You must be signed in to change notification settings - Fork 565
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
Exception from NetworkX: None cannot be a node #1878
Comments
Thanks for the detailed report! Would you be able to share a failing sample or it's hash (for a sample available on VirusTotal)? This would help me debug this a bit faster. |
Here you go: x86-gcc-5-O0_clambc.gz Edit: it's compressed because github wouldn't accept the uncompressed verison. |
capa v6.1.0 seems to work fine on the sample (there's no exception). Can you use a newer capa version or try to update networkx? |
My nix-packaged capa v6.1.0 failed with a different error, but v6.0.0 is working. I'll open new issues for the additional things I found. |
I only opened one issue: #1886. The other problem I ran into is because of mismatched dependency versions in my derivation, so there's nothing for this project to do about that. |
Thanks! |
Description
I've been running Capa over some large collections of binaries and am noticing lots of failures with a traceback coming from NetworkX.
Steps to Reproduce
capa --json Dataset-1/clamav/x86-gcc-5-O0_clambc >x86-gcc-5-O0_clambc.json
(or some other file)Expected behavior:
JSON capabilities output in the
.json
file or else a clean error message explaining why this file isn't supported.Actual behavior:
Capa crashes with this traceback
Versions
On Linux with nixpkgs. I had to write a derivation to package capa, I'm happy to share that if you need it. I'm pulling this repo at tag
v4.0.1
and the capa-rules repo at tagv4.0.1
for this.Python 3.11.5, also from nixpkgs
Additional Information
The text was updated successfully, but these errors were encountered: