Yacine Elhamer
6712801b01
tests/fixtures.py: update path forming for the cape sample
...
Co-authored-by: Willi Ballenthin <willi.ballenthin@gmail.com >
2023-06-20 20:30:06 +01:00
Yacine Elhamer
0502bfd95d
remove cape report from get_md5_hash() function
2023-06-20 20:24:38 +01:00
Yacine Elhamer
0a4e3008af
fixtures.py: update CAPE's feature count and presence tests
2023-06-20 13:51:16 +01:00
Yacine Elhamer
1532ce1bab
add tests for extracting argument values
2023-06-20 13:20:33 +01:00
Yacine Elhamer
374fb033c1
add support for gzip compressed cape samples, and fix QakBot sample path
2023-06-20 10:29:52 +01:00
Yacine Elhamer
4db80e75a4
add mode and encoding parameters to open()
2023-06-20 10:13:06 +01:00
Yacine Elhamer
8547277958
tests/fixtures.py bugfix: remove redundant lambda function
...
Co-authored-by: Moritz <mr-tz@users.noreply.github.com >
2023-06-20 10:10:42 +01:00
Yacine Elhamer
ec3366b0e5
Update tests/fixtures.py
...
Co-authored-by: Moritz <mr-tz@users.noreply.github.com >
2023-06-20 10:09:27 +01:00
Yacine Elhamer
48bd04b387
tests/fixtures.py: return direct extractor with no intermediate variable
...
Co-authored-by: Moritz <mr-tz@users.noreply.github.com >
2023-06-20 10:09:00 +01:00
Yacine Elhamer
d4c4a17eb7
bugfixes and add cape sample tests
2023-06-19 23:42:27 +01:00
Yacine Elhamer
38596f8d0e
add features for the QakBot sample
2023-06-19 19:32:56 +01:00
Yacine Elhamer
4acdca090d
bug fixes
2023-06-19 17:14:59 +01:00
Yacine Elhamer
98e7acddf4
fix codestyle issues
2023-06-19 16:59:27 +01:00
Yacine Elhamer
9458e851c0
update test sample's path
2023-06-19 16:46:24 +01:00
Yacine Elhamer
a04512d7b8
add unit tests for the cape feature extractor
2023-06-19 16:43:54 +01:00
Yacine Elhamer
5b260c00f4
fix symtab FunctionName feature scope address
2023-06-05 13:37:19 +01:00
Yacine Elhamer
41c512624b
update symtab-based FunctionName feature extraction
2023-06-02 14:44:51 +01:00
Yacine Elhamer
0d42ac3912
add missing function-name feature testing
2023-06-01 02:14:25 +01:00
Yacine Elhamer
f10a43abe6
fix style issues
2023-06-01 02:02:40 +01:00
Yacine Elhamer
64ef2c8a65
add tests for vivisect's usage of debug symbols
2023-06-01 01:50:06 +01:00
Willi Ballenthin
59332c2e94
tests: fixtures: add paths for new ELF test file
2023-04-03 13:16:03 +02:00
Pratham Chauhan
1b90a28acd
resolved merge conflicts
2023-03-30 11:05:32 +05:30
Pratham Chauhan
a13ce094b3
use rd/test json
2023-03-29 19:41:14 +05:30
Willi Ballenthin
4be3fe1628
Merge branch 'master' into wb-proto
2023-03-24 11:51:45 +01:00
Willi Ballenthin
ddc52fa21c
Merge branch 'master' of personal.github.com:mandiant/capa
2023-03-23 16:04:54 +01:00
Willi Ballenthin
7d12942cf7
Merge branch 'binja_backend' of github.com:Vector35/capa into Vector35-binja_backend
2023-03-23 11:31:25 +01:00
Willi Ballenthin
c52b0a22e0
tests: simplify loading of result document from file
2023-03-23 11:04:53 +01:00
Willi Ballenthin
e8ddee4782
Merge branch 'master' of personal.github.com:mandiant/capa into wb-proto
2023-03-23 10:35:30 +01:00
Willi Ballenthin
02fdf41969
tests: add tests demonstrating result document round tripping
2023-03-22 10:47:45 +01:00
Willi Ballenthin
eb20724d78
Merge branch 'master' into wb-proto
2023-03-22 09:46:03 +01:00
Willi Ballenthin
f1c495dc0a
*: use FORMAT_AUTO instead of string literal
2023-03-21 16:54:48 +01:00
Willi Ballenthin
1f3582c9c3
mypy
2023-03-21 16:45:24 +01:00
mr-tz
c3ed12d8d4
add helper function
2023-03-20 17:46:36 +01:00
manasghandat
1336796c0c
code style : update remaining files ( #1353 )
...
* code style: update string formatting using fstrings
---------
Co-authored-by: Willi Ballenthin <willi.ballenthin@gmail.com >
Co-authored-by: Moritz <mr-tz@users.noreply.github.com >
2023-03-16 11:16:18 +01:00
Harsh Mehta
74009eb4a4
Updated Copyright ( #1383 )
...
* Updated Copyright
2023-03-14 17:58:43 +01:00
mr-tz
a7b7f643a5
update translator and tests
2023-03-14 10:13:49 +01:00
Xusheng
c648af2cb4
Select a different test file for the nzxor feature
2023-03-05 12:52:49 +08:00
Xusheng
4a698ffdff
Add a Binary Ninja backend for capa
2023-03-05 12:52:49 +08:00
Moritz
52de09a032
Fix byte/string extraction and unit tests ( #1339 )
...
* Fix wrong expected results on string and bytes tests. Fix https://github.com/mandiant/capa/issues/1336
* Fix IDA insn/byte extractor checks wrong address. Fix https://github.com/mandiant/capa/issues/1327
* fix vivisect string check and tests
---------
Co-authored-by: Xusheng <xusheng@vector35.com >
2023-03-02 10:33:14 +01:00
Willi Ballenthin
c197fd5086
proto: add type stubs for generate schema
2023-02-14 10:57:43 +01:00
Moritz
fa0ddba436
add format to global features and code refactors ( #1284 )
...
* refactor: get format handling
* add format to global features
2023-01-19 13:31:00 +01:00
Willi Ballenthin
5513d4ca43
viv: insn: string: handle viv bug around substrings ( #1273 )
...
* viv: insn: string: handle viv bug around substrings
closes #1271
* use minimum string length 4
* update overlapping string test and fixup vivisect elf analysis missing function
Co-authored-by: Moritz <mr-tz@users.noreply.github.com >
2023-01-19 13:02:53 +01:00
Moritz
5fa2a87747
fix dotnet and pe format handling ( #1256 )
2023-01-04 17:46:51 +01:00
mr-tz
eba1989c9f
Merge branch 'master' into fix-1062
2023-01-03 18:46:41 +01:00
Mike Hunhoff
b68be0c2ce
dotnet: emit namespace/class features for type references ( #1242 )
...
* dotnet: emit namespace/class features for type references
* dotnet: pre-compute .NET token caches
2022-12-21 15:59:29 -07:00
Mike Hunhoff
50490e6a93
dotnet: emit namespace/class features for ldvirtftn/ldftn instructions ( #1241 )
...
* dotnet: emit namespace/class features for ldvirtftn/ldftn instructions
* dotnet: add unit tests for ldftn/ldvirtftn namespace/class features
2022-12-20 13:29:29 -07:00
Mike Hunhoff
4ece47c64c
dotnet: emit calls to/from MethodDef methods ( #1236 )
...
* dotnet: emit calls to/from MethodDef methods
* dotnet: update function.py copyright header
2022-12-19 15:06:16 -07:00
Mike Hunhoff
e0491097b0
dotnet: emit API features for generic methods ( #1231 )
...
* dotnet: emit API features for generic methods
* dotnet: improve type checking
* dotnet: emit namespace/class features for generic methods
* dotnet: update for dnfile 0.13.0
* dotnet: refactor property extraction
2022-12-19 14:45:21 -07:00
Willi Ballenthin
22bef146f8
tests: add OS detection tests
2022-12-12 11:40:43 +01:00
Willi Ballenthin
ed24db4460
extractors: remove SMDA backend
...
closes #1210
closes #1062
2022-12-06 15:33:17 +00:00