capa icon indicating copy to clipboard operation
capa copied to clipboard

`CapeExtractor` version mismatch warning on self-hosted CAPE reports

Open mike-hunhoff opened this issue 6 months ago • 2 comments

When running capa against a report.json generated by a standard self-hosted CAPE Sandbox instance, capa logs a version warning:

[capa.features.extractors.cape.extractor] WARNING: CAPE version '2.5' not tested/supported yet

Root Cause

In capa/features/extractors/cape/extractor.py, TESTED_VERSIONS only contains versions with a "-CAPE" suffix:

TESTED_VERSIONS = {"2.2-CAPE", "2.4-CAPE", "2.5-CAPE"}
  • The hosted instance (capesandbox.com) writes version strings as "2.5-CAPE".
  • Self-hosted open-source CAPE instances write version strings simply as "2.5".

Proposed Solution

Update the version validation in capa/features/extractors/cape/extractor.py to support non-suffixed variants:

TESTED_VERSIONS = {
    "2.2", "2.2-CAPE",
    "2.4", "2.4-CAPE",
    "2.5", "2.5-CAPE",
}

mike-hunhoff avatar May 19 '26 17:05 mike-hunhoff

Hi @mike-hunhoff can i work on this one?

SAMurai-16 avatar May 22 '26 09:05 SAMurai-16

go ahead

mr-tz avatar May 28 '26 09:05 mr-tz