{"full_name":"mandiant/capa","owner":"mandiant","name":"capa","shard":"1","url":"https://github.com/mandiant/capa","description":"The FLARE team's open-source tool to identify capabilities in executable files.","homepage":"https://mandiant.github.io/capa/","topics":["malware-analysis","reverse-engineering","binary-analysis","threat-intelligence","gsoc-2026"],"tag_pages":["binary-analysis","malware-analysis","reverse-engineering","threat-intelligence"],"language":"Python","license":"Apache-2.0","avatar":"https://avatars.githubusercontent.com/u/331209?v=4","created_at":"2020-06-16T21:24:57Z","pushed_at":"2026-11-10T16:01:01Z","metrics":{"stars":6336,"forks":757,"watchers":88,"issues":1202,"prs":1983,"releases":44,"issues_open":251,"issues_closed":951,"prs_open":71,"prs_closed":368,"prs_merged":1544,"discussions":33},"growth":{"day":{"stars":1,"forks":2,"base_day":"2026-11-15"},"week":{"stars":37,"forks":12,"base_day":"2026-11-04"},"month":{"stars":89,"forks":22,"base_day":"2026-10-17"}},"history":{"dates":["2026-09-06","2026-09-07","2026-09-08","2026-09-09","2026-09-10","2026-09-11","2026-09-12","2026-09-13","2026-09-14","2026-09-15","2026-09-16","2026-09-17","2026-09-18","2026-09-19","2026-09-20","2026-09-21","2026-09-22","2026-09-23","2026-09-24","2026-09-25","2026-09-26","2026-09-27","2026-09-28","2026-09-29","2026-09-30","2026-10-01","2026-10-02","2026-10-03","2026-10-04","2026-10-05","2026-10-06","2026-10-07","2026-10-08","2026-10-09","2026-10-10","2026-10-11","2026-10-12","2026-10-13","2026-10-14","2026-10-15","2026-10-16","2026-10-17","2026-10-18","2026-10-19","2026-10-20","2026-10-21","2026-10-22","2026-10-23","2026-10-24","2026-10-25","2026-10-26","2026-10-27","2026-10-28","2026-10-29","2026-10-30","2026-10-31","2026-11-01","2026-11-02","2026-11-03","2026-11-04","2026-11-10","2026-11-11","2026-11-12","2026-11-13","2026-11-14","2026-11-15","2026-11-16"],"stars":[6173,6173,6174,6176,6177,6178,6179,6181,6181,6182,6183,6182,6185,6189,6193,6192,6193,6193,6196,6199,6199,6199,6204,6204,6206,6206,6206,6209,6208,6208,6211,6214,6215,6219,6219,6222,6224,6227,6229,6237,6246,6247,6250,6253,6255,6260,6263,6268,6268,6268,6273,6273,6277,6278,6281,6288,6290,6294,6296,6299,6318,6322,6325,6328,6334,6335,6336],"forks":[722,722,722,722,724,725,725,725,725,725,725,724,726,726,727,728,728,728,727,727,727,727,727,726,726,726,727,727,729,729,729,730,730,730,730,730,730,731,731,733,734,735,736,737,738,737,737,739,740,740,741,742,742,743,743,743,743,743,743,745,750,752,752,752,754,755,757],"watchers":[86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,86,87,87,87,87,87,87,87,null,88,88,88,88,88,88],"issues_open":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,251,251,251,251,251,251],"prs_open":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,68,70,70,70,71,71]},"boards":{},"same_owner":[{"full_name":"mandiant/flare-vm","name":"flare-vm","shard":"1","boards":{}}],"issues":[{"number":520,"title":"show the prevalence of rules in the output","comments":24,"created_at":"2021-04-08T15:56:01Z"},{"number":1899,"title":"Add tests (and refactor) API extraction and symbol generation","comments":23,"created_at":"2023-12-09T07:08:42Z"},{"number":2622,"title":"emit number(0) (offset(0)??) for instructions like \"XOR EAX, EAX\"","comments":22,"created_at":"2025-03-10T16:05:37Z"},{"number":1303,"title":"make string length configurable and consistent across backends","comments":21,"created_at":"2023-02-01T13:51:35Z"},{"number":1610,"title":"binja: optimize performance of name demangling","comments":19,"created_at":"2023-07-10T09:25:25Z"},{"number":771,"title":"new feature: function call arguments","comments":19,"created_at":"2021-09-10T19:15:27Z"},{"number":2663,"title":"Add symbol name features for dynamically resolved function pointers","comments":16,"created_at":"2025-05-13T13:13:26Z"},{"number":2402,"title":"binary ninja: optimize feature extraction","comments":15,"created_at":"2024-09-25T11:15:39Z"}],"discussions":[{"number":3204,"title":"capa-x: a native Rust implementation of capa with differential parity testing","comments":0,"category":"Show and tell","created_at":"2026-10-21T13:17:58Z"},{"number":3181,"title":"New contributor introduction - interested in capa rules & GSoC 2027","comments":0,"category":"General","created_at":"2026-09-19T09:13:22Z"},{"number":2953,"title":"GSoC 2026: Automated behavioural rule generation for Capa - Deetya Shivathaya","comments":0,"category":"Ideas","created_at":"2026-03-21T05:39:42Z"},{"number":2926,"title":"RFC: Attach Host/Network Behavioral Indicators (HBI/NBI) to Capability Detections","comments":0,"category":"Ideas","created_at":"2026-03-15T12:41:08Z"},{"number":2925,"title":"RFC: Lightweight Data-Flow Tracking for Cross-Instruction Capability Detection","comments":2,"category":"Ideas","created_at":"2026-03-14T12:31:57Z"},{"number":2919,"title":"Improving Stability and Performance of ELF Analysis in capa","comments":0,"category":"Ideas","created_at":"2026-03-14T07:47:01Z"},{"number":2593,"title":"v9.0.0","comments":0,"category":"General","created_at":"2025-02-05T08:44:23Z"},{"number":2560,"title":"gsoc and community chat related doubts","comments":1,"category":"General","created_at":"2025-01-18T13:19:17Z"}],"latest_release":{"name":"v10.0.0","tag":"v10.0.0","published_at":"2026-10-16T14:03:38Z","body":"This release fixes a security issue in how capa loads vivisect workspaces, a large batch of bug fixes, a new `--reproducible` flag for freeze, dependency updates, and 12 new rules. We'd like to thank the following contributors: Ange Albertini (@corkamig), @aryanyk, Luca Schrott (@1337Name), @eversinc33, Matt Williams (@mwilliams31), Rizky Mirzaviandy Priambodo (@Xavrir), Sukesh Kumar (@SkxOverKill), lakshit verma (@vee1e), @w3lld1, and others!\r\n\r\n### Security\r\n\r\nCrafted `.viv` files could execute code when capa analyzed a sample: either the sample itself named `*.viv`, or a `<sample>.viv` next to it. capa now always parses samples as PE or ELF and only loads an existing `<sample>.viv` when `CAPA_LOAD_VIV_WORKSPACE=1` is set. Only enable this for `.viv` files you trust.\r\n\r\nAffected: v9.4.0 and earlier.\r\n\r\n### New Features\r\n- freeze: add `--reproducible` flag that zeros dynamic header metadata\r\n\r\n### Breaking Changes\r\n\r\n- Remove redundant `os_` parameter from `capa.loader.collect_metadata()`. External scripts calling this function must be updated to remove this argument. OS metadata now relies solely on the extractor yielding it via `extract_global_features()`. @mike-hunhoff #3076\r\n- Existing `<sample>.viv` vivisect workspace files are no longer loaded by default because loading them uses pickle deserialization. Set `CAPA_LOAD_VIV_WORKSPACE=1` to opt in. @mr-tz #3191\r\n\r\n### New Rules (12)\r\n\r\n- nursery/decrypt-payload-stored-as-ipv6-strings corkami@google.com\r\n- nursery/connect-to-websocket-server-in-dotnet mehunhoff@google.com\r\n- nursery/receive-data-on-websocket-in-dotnet mehunhoff@google.com\r\n- nursery/send-data-on-websocket-in-dotnet mehunhoff@google.com\r\n- nursery/upload-or-download-file-via-dropbox mehunhoff@google.com\r\n- host-interaction/network/connectivity/check-internet-connectivity-in-dotnet omurcankaya@protonmail.com\r\n- anti-analysis/anti-debugging/check-for-time-delay-in-dotnet @aryanyk\r\n- nursery/decode-pe-stored-as-uuid corkami@google.com\r\n- compiler/crystal/compiled-with-crystal corkami@google.com\r\n- compiler/odin/compiled-with-odin corkami@google.com\r\n- load-code/dotnet/load-dotnet-assembly-via-runtimeassemblynloadimage still@teamt5.org\r\n- nursery/search-for-file-via-winapi @w3lld1\r\n\r\n### Bug Fixes\r\n- fix: loader: inline vivisect workspace loading and gate .viv pickle deserialization behind CAPA_LOAD_VIV_WORKSPACE @mr-tz #3191\r\n- fix: freeze: omit null description fields from freeze JSON @SkxOverKill #3100\r\n- fix lots of linter errors identified by pyright @williballenthin #3052\r\n- fix: render_default always returns empty string @williballenthin #3012\r\n- fix: elf.py vdso_guess exception handler clobbers symtab_guess @williballenthin #3013\r\n- fix: _NoAddress.__eq__ unconditionally returns True @williballenthin #3014\r\n- fix: capabilities/common.py: if va: drops address 0x0 @williballenthin #3015\r\n- fix: vverbose.py: render_call variable assigned but never used @williballenthin #3016\r\n- fix: extract_os yields duplicate/contradictory OS values @williballenthin #3017\r\n- fix: load_one_jsonl_from_path: finally block runs on unrelated exceptions @williballenthin #3018\r\n- fix: find_dynamic_limitations_from_cli overwrites instead of OR-ing @williballenthin #3019\r\n- fix: optimizer doesn't recurse into And/Or/Some children @williballenthin #3020\r\n- fix: address classes __eq__ and __lt__ assert on type @williballenthin #3021\r\n- fix: DNTokenOffsetAddress.__eq__ lacks type guard @williballenthin #3022\r\n- fix: elffile.py: get_base_address returns None instead of NO_ADDRESS @williballenthin #3023\r\n- fix: base_extractor.py: __metaclass__ is Python 2 syntax, ignored in Py3 @williballenthin #3024\r\n- fix: freeze/__init__.py: NO_ADDRESS < NO_ADDRESS returns True @williballenthin #3025\r\n- fix: dotnetfile.py: missing import for capa.features.extractors.common @williballenthin #3026\r\n- fix: rules/__init__.py: duplicate bytes_features line @williballenthin #3027\r\n- fix: EXTENSIONS_DYNAMIC has inconsistent leading dots @williballenthin #30","is_prerelease":false},"readme":true,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-16T09:23:14Z","history_start":"2026-09-06"}