DependencyCheck icon indicating copy to clipboard operation
DependencyCheck copied to clipboard

[ERROR] java.io.EOFException: Expected to read bytes from the stream (in PE Analyzer)

Open itsecforu opened this issue 2 years ago • 5 comments

dep-check version - latest

log:

[INFO] 
Dependency-Check is an open source tool performing a best effort analysis of 3rd party dependencies; false positives and false negatives may exist in the analysis performed by the tool. Use of the tool and the reporting provided constitutes acceptance for use in an AS IS condition, and there are NO warranties, implied or otherwise, with regard to the analysis or its use. Any use of the tool and the reporting provided is at the user’s risk. In no event shall the copyright holder or OWASP be held liable for any damages whatsoever arising out of or in connection with the use of this tool, the analysis performed, or the resulting report.
   About ODC: https://jeremylong.github.io/DependencyCheck/general/internals.html
   False Positives: https://jeremylong.github.io/DependencyCheck/general/suppression.html
💖 Sponsor: https://github.com/sponsors/jeremylong
[INFO] Analysis Started
[INFO] Finished Archive Analyzer (2 seconds)
[INFO] Finished File Name Analyzer (0 seconds)
[ERROR] ----------------------------------------------------
[ERROR] .NET Assembly Analyzer could not be initialized and at least one 'exe' or 'dll' was scanned. The 'dotnet' executable could not be found on the path; either disable the Assembly Analyzer or add the path to dotnet core in the configuration.
[ERROR] ----------------------------------------------------
[INFO] Finished Python Distribution Analyzer (0 seconds)
[WARN] An error occurred while analyzing '/packages/TsiBaseCoreArchitectureLayer/branches/7.8.0/Assemblies/Dapper/Dapper.dll' (PE Analyzer).
[WARN] An error occurred while analyzing '/tmp/dctemp169cae1d-b452-4ffe-bf4e-0bd8f5a6761b/check2297777766337451746tmp/1/packages/TsiBaseCoreArchitectureLayer/branches/7.8.0/Assemblies/Dapper/Dapper.dll' (PE Analyzer).
[INFO] Finished PE Analyzer (0 seconds)
[INFO] Finished Dependency Merging Analyzer (0 seconds)
[INFO] Finished Version Filter Analyzer (0 seconds)
[INFO] Finished Hint Analyzer (0 seconds)
[INFO] Created CPE Index (2 seconds)
[INFO] Finished NPM CPE Analyzer (2 seconds)
[INFO] Created CPE Index (2 seconds)
[INFO] Finished CPE Analyzer (3 seconds)
[INFO] Finished False Positive Analyzer (0 seconds)
[INFO] Finished NVD CVE Analyzer (0 seconds)
[INFO] Finished RetireJS Analyzer (7 seconds)
[INFO] Finished Vulnerability Suppression Analyzer (0 seconds)
[INFO] Finished Dependency Bundling Analyzer (11 seconds)
[INFO] Analysis Complete (29 seconds)
[INFO] Writing report to: /builds/devops/svd/sonar/owasp/dependency-check-report/dependency-check-report.xml
[INFO] Writing report to: /builds/devops/svd/sonar/owasp/dependency-check-report/dependency-check-report.html
[INFO] Writing report to: /builds/devops/svd/sonar/owasp/dependency-check-report/dependency-check-report.json
[INFO] Writing report to: /builds/devops/svd/sonar/owasp/dependency-check-report/dependency-check-report.csv
[INFO] Writing report to: /builds/devops/svd/sonar/owasp/dependency-check-report/dependency-check-report.sarif
[INFO] Writing report to: /builds/devops/svd/sonar/owasp/dependency-check-report/dependency-check-junit.xml
[ERROR] java.io.EOFException: Expected to read bytes from the stream
[ERROR] java.io.EOFException: Expected to read bytes from the stream

itsecforu avatar Jun 22 '22 08:06 itsecforu

any ideas? :-(

itsecforu avatar Jun 23 '22 12:06 itsecforu

Hi @itsecforu :wave:

How are you using dependency-check? Ant Task? Command Line Tool? Gradle Plugin? Jenkins Plugin? Maven Plugin? SBT Plugin?

Could you please provide a sample reproducing the issue and/or debug logs of the failure?

nhumblot avatar Jun 27 '22 17:06 nhumblot

Hi!

latest docker version via gitalb ci:

/usr/share/dependency-check/bin/dependency-check.sh \
        --data /data \
        --out $FOO  \
        --log depcheck.log \
        --project \"$BAR\"  \
        --format \"ALL\" \
        --nodeAuditSkipDevDependencies true \
        --disableYarnAudit \
        --disableOssIndex \
        --noupdate \

itsecforu avatar Jun 28 '22 05:06 itsecforu

We would need a sample DLL that causes the exception and/or the log file (i.e. depcheck.log from your example above).

jeremylong avatar Jun 28 '22 09:06 jeremylong

"Descriptor": {
    "UId": "951a27ad-1c67-49ba-a638-c2fd7b8bf6da",
    "Name": "Dapper.dll",
    "FullName": "Dapper, Version=1.50.4.0, Culture=neutral, PublicKeyToken=null",
    "ModifiedOnUtc": "\/Date(1570770981000)\/"

itsecforu avatar Jun 28 '22 09:06 itsecforu

I am also seeing this behaviour but havn't been able to find a minimum repro yet. I am seeing Error: Failed to request component-reports in the log after all of the java.IO.EOFException's.

trdyer avatar Jul 24 '23 19:07 trdyer