Commit Graph
100 Commits
Author SHA1 Message Date
Aayush GoelandGitHub 49231366f1 Handles circular dependencies while getting rules and dependencies (#2014)
* Remove test for scope "unspecified"

* raise error on circular dependency

* test for circular dependency
2024-03-06 11:39:21 +01:00
Aayush Goel 178cfce456 Merge branch 'Aayush-Goel-04/Issue#322' of https://github.com/Aayush-Goel-04/capa into Aayush-Goel-04/Issue#322 2023-10-18 16:33:37 +05:30
Aayush Goel 94cf53a1e3 Update __init__.py 2023-10-18 16:33:31 +05:30
Aayush GoelandGitHub 26a2d1b4d1 Merge branch 'mandiant:master' into Aayush-Goel-04/Issue#322 2023-10-17 21:09:07 +05:30
Aayush Goel 6dbd3768ce Update __init__.py 2023-10-17 21:04:21 +05:30
Aayush Goel 7cd5aa1c40 Added Enum for comType 2023-10-17 20:28:49 +05:30
Aayush Goel 884b714be2 loading com db only once
avoid loading db multiple times by caching it.
2023-10-17 19:48:06 +05:30
Aayush GoelandGitHub 412d296d6b Merge branch 'mandiant:master' into Aayush-Goel-04/Issue#322 2023-10-16 16:38:18 +05:30
Aayush Goel db32d90480 tests updated 2023-10-16 16:35:30 +05:30
Aayush Goel 23ecb248a5 Update __init__.py 2023-10-10 18:08:07 +05:30
Aayush Goel bc165331db Update __init__.py 2023-10-10 17:56:18 +05:30
Aayush Goel 8a0628f357 Update CHANGELOG.md 2023-10-10 04:16:38 +05:30
Aayush GoelandGitHub 2ec87f717a Merge branch 'mandiant:master' into Aayush-Goel-04/Issue#322 2023-10-10 04:06:28 +05:30
Aayush GoelandGitHub 8331ed6ea0 Merge branch 'mandiant:master' into Aayush-Goel-04/Issue#322 2023-09-06 16:35:29 +05:30
6317153ef0 Update tests/test_rules.py
Co-authored-by: Moritz <mr-tz@users.noreply.github.com>
2023-08-30 21:48:55 +05:30
24dad6bcc4 Update capa/rules/__init__.py
Co-authored-by: Moritz <mr-tz@users.noreply.github.com>
2023-08-30 21:48:48 +05:30
Aayush Goel ab3747e448 added com prefix CLSID, IID 2023-08-30 01:00:07 +05:30
Aayush Goel 90df85b332 test for com_feature
matching a file as expected
generating the bytes/strings
if an unknown COM class/interface is provided?
2023-08-25 20:59:58 +05:30
Aayush Goel bd0d8eb403 Update __init__.py
added parse_description for com feature
Update CHANGELOG.md
added comments, dealt with errors
2023-08-25 16:04:25 +05:30
Aayush Goel 9b79aa1983 Merge branch 'Aayush-Goel-04/Issue#322' of https://github.com/Aayush-Goel-04/capa into Aayush-Goel-04/Issue#322 2023-08-25 15:42:17 +05:30
Aayush Goel 172968c77e Update CHANGELOG.md 2023-08-25 15:42:02 +05:30
Aayush GoelandGitHub f1a7049ab5 Merge branch 'master' into Aayush-Goel-04/Issue#322 2023-08-25 15:39:03 +05:30
Aayush Goel 155a2904fb Update CHANGELOG.md 2023-08-25 15:38:00 +05:30
Aayush Goel 4c2e8fd718 Merge branch 'Aayush-Goel-04/Issue#322' of https://github.com/Aayush-Goel-04/capa into Aayush-Goel-04/Issue#322 2023-08-25 15:33:52 +05:30
Aayush Goel 95e279a03b update com db
moved code to rules/init.py , create db for coms
2023-08-25 15:32:40 +05:30
c6ee919619 Update capa/features/common.py
Co-authored-by: Willi Ballenthin <wballenthin@google.com>
2023-08-22 15:52:04 +05:30
Aayush Goel 6482848fa4 Merge branch 'Aayush-Goel-04/Issue#322' of https://github.com/Aayush-Goel-04/capa into Aayush-Goel-04/Issue#322 2023-08-20 00:39:50 +05:30
Aayush Goel 7c2a736c4b Update CHANGELOG.md 2023-08-20 00:38:35 +05:30
Aayush GoelandGitHub 918ec22667 Merge branch 'master' into Aayush-Goel-04/Issue#322 2023-08-20 00:38:26 +05:30
Aayush Goel 1027da9be0 add new feature for com 2023-08-20 00:36:37 +05:30
Aayush Goel a383022cff Update show-unused-features.py 2023-08-09 15:37:38 +05:30
57486733e7 Update scripts/show-unused-features.py
Co-authored-by: Willi Ballenthin <wballenthin@google.com>
2023-08-09 15:33:03 +05:30
df9828dd7f Update capa/rules/__init__.py
Co-authored-by: Willi Ballenthin <wballenthin@google.com>
2023-08-09 15:32:12 +05:30
Aayush Goel d81f3a461e Update show-unused-features.py 2023-08-09 14:20:53 +05:30
Aayush Goel c497ad8253 Update show-unused-features.py 2023-08-08 18:36:25 +05:30
Aayush Goel 9c1aa2fc5d Update show-unused-features.py 2023-08-08 18:35:04 +05:30
Aayush GoelandGitHub f5a254f21f Merge branch 'master' into Aayush-Goel-04/Issue#331 2023-08-08 17:05:03 +05:30
fb3ae0267e Update scripts/show-unused-features.py
Co-authored-by: Moritz <mr-tz@users.noreply.github.com>
2023-08-08 17:04:23 +05:30
Aayush Goel 232c9ce35c Add test for script & output rendered 2023-08-07 22:43:25 +05:30
Aayush GoelandGitHub b3a9763a32 Merge branch 'master' into Aayush-Goel-04/Issue#331 2023-08-07 21:02:42 +05:30
Aayush Goel 0fdc1dd3f5 Type Hints done , get_all_feature to Rule class 2023-08-07 21:00:29 +05:30
Aayush Goel a2254852b0 Update CHANGELOG.md 2023-08-06 22:55:54 +05:30
Aayush Goel 17aad56800 Script to get unused features
Used show_features.py script
2023-08-06 22:53:50 +05:30
Aayush Goel 851da25560 Update bulk-process.py 2023-08-04 10:43:34 +05:30
Aayush Goel a4b00b9064 remove exclude_none = True to not drop none fields 2023-08-04 10:26:56 +05:30
fd61456164 Update capa/features/freeze/__init__.py
Co-authored-by: Willi Ballenthin <wballenthin@google.com>
2023-08-04 09:07:13 +05:30
Aayush Goel 261baca683 updated deperecated functions 2023-08-04 01:35:41 +05:30
Aayush Goel c7dde262ed remove initial instantiation for fields. 2023-08-03 22:40:01 +05:30
Aayush Goel 2bed3468f6 bump pydantic to 2.1.1 2023-08-03 17:21:46 +05:30
Aayush Goel 62f50265bc Resolved Import address 2023-08-02 16:41:24 +05:30
Aayush Goel 26935ee6e6 Update test_elffile_features.py 2023-08-02 13:51:51 +05:30
Aayush Goel f8c499fb43 Added test for elf import/export handling 2023-08-02 11:52:27 +05:30
Aayush Goel 3bb5754b66 Update elffile.py 2023-08-01 22:41:11 +05:30
Aayush Goel dd2eef52c3 Update elffile.py
remove enumerate
2023-08-01 22:21:00 +05:30
Aayush GoelandGitHub 30abe40999 Merge branch 'mandiant:master' into Aayush-Goel-04/Issue#1607 2023-07-28 17:50:20 +05:30
Aayush Goel 78a9909ec6 Update elffile.py
Updated changelog and added link references in comments
2023-07-23 15:30:37 +05:30
Aayush Goel 1baa7a5e4b flake8 checks resolved 2023-07-11 02:30:09 +05:30
Aayush Goel ef39bc3c3a Merged Changes from PR #1591 2023-07-11 01:14:38 +05:30
Aayush Goel 8e346cb411 Merge branch 'Aayush-Goel-04/Issue#1534' of https://github.com/Aayush-Goel-04/capa into Aayush-Goel-04/Issue#1534 2023-07-11 00:59:21 +05:30
Aayush Goel d1a1c6875b extractors accept Path instance 2023-07-11 00:41:36 +05:30
Aayush Goel a949698b86 Update fixtures.py
Dealt with encoding methods for how "ping_täst" file name is read.
2023-07-09 17:47:09 +05:30
Aayush Goel 673af45c55 Update args.sample type to Path and str vs as_posix comparisons 2023-07-09 16:02:28 +05:30
Aayush Goel e0ed8c6e04 Resolved the suggestions. 2023-07-08 13:51:41 +05:30
Aayush Goel a8f1067f8a Fixed Path issue in cache-ruleset.py 2023-07-07 12:39:18 +05:30
Aayush GoelandGitHub ef9b0737a8 Merge branch 'master' into Aayush-Goel-04/Issue#1534 2023-07-07 12:05:57 +05:30
Aayush Goel 6218f31ea2 Update CHANGELOG.md
Update CHANGELOG.md

Update CHANGELOG.md

Update CHANGELOG.md
2023-07-07 12:03:05 +05:30
Aayush Goel 14924174c5 convert str(path) usage to path.as_posix() to get str format of Path
Update fixtures.py
2023-07-07 12:03:05 +05:30
Aayush Goel edeb458b33 some more changes 2023-07-07 12:03:05 +05:30
Aayush Goel 62db346b49 Style , mypy checks 2023-07-06 05:28:13 +05:30
Aayush Goel 20e7acaa1a Update CHANGELOG.md 2023-07-06 05:16:27 +05:30
Aayush Goel c0d712acea Changes os.path to pathlib.Path usage
changed args.rules , args.signatures types in handle_common_args.
2023-07-06 05:12:50 +05:30
Aayush GoelandGitHub 66e2a225d2 Merge branch 'mandiant:master' into Aayush-Goel-04/Issue#1534 2023-07-06 02:21:11 +05:30
Aayush GoelandGitHub 4ceff605bf Merge branch 'mandiant:master' into Aayush-Goel-04/Issue#1534 2023-06-27 18:06:57 +05:30
Aayush GoelandGitHub 842f76c8bd Merge branch 'mandiant:master' into Aayush-Goel-04/Issue#1534 2023-06-26 00:35:55 +05:30
Aayush Goel 157dfac527 Current os.apth to pathlib.Path
need to update args type

Revert "Current os.apth to pathlib.Path"

This reverts commit 170fe9ad93b0a4d44a08470633133c0d32ccef24.
2023-06-26 00:34:12 +05:30
Aayush GoelandGitHub e5f79c9f5c Merge branch 'mandiant:master' into Aayush-Goel-04/Issue#1411 2023-06-06 13:04:19 +05:30
Aayush Goel c6815ef126 Update Model and FrozenModel Class 2023-06-06 13:02:30 +05:30
Aayush Goel b4870b120e Remove from_capa API for MetaData 2023-06-03 15:33:49 +05:30
Aayush Goel 5ded85f46e Update CHANGELOG.md 2023-06-02 14:54:36 +05:30
Aayush GoelandGitHub f03ad2d208 Merge branch 'mandiant:master' into Aayush-Goel-04/Issue#1411 2023-06-02 14:47:24 +05:30
Aayush Goel 0d9e74028e Update Metadata 2023-06-02 01:19:42 +05:30
Aayush Goel 445214b23b Update Metadata type in capa main 2023-06-02 00:40:38 +05:30
Aayush GoelandGitHub d6e145936d Merge branch 'mandiant:master' into Aayush-Goel-04/Issue#1451 2023-05-31 00:26:48 +05:30
Aayush GoelandGitHub 2e534a4128 Merge branch 'mandiant:master' into Aayush-Goel-04/Issue#1451 2023-05-27 14:14:32 +05:30
Aayush GoelandGitHub 2daf880e39 Merge branch 'mandiant:master' into Aayush-Goel-04/Issue#1451 2023-05-25 13:41:30 +05:30
Aayush Goel 456d4272ab Add logging redirect to capa main 2023-05-25 12:50:42 +05:30
52c3ea733b Update tests/test_scripts.py
Co-authored-by: Moritz <mr-tz@users.noreply.github.com>
2023-05-24 15:39:24 +05:30
Aayush Goel acdaeb26d3 Update test_scripts.py 2023-05-20 13:09:48 +05:30
Aayush GoelandGitHub 66ea0451e9 Merge branch 'mandiant:master' into Aayush-Goel-04/Issue#1451 2023-05-18 16:30:08 +05:30
Aayush Goel 275386806d Add redirect print to capa main 2023-05-17 23:57:52 +05:30
Aayush Goel 0afc16fd02 Update test rules to test script 2023-05-17 23:31:37 +05:30
Aayush GoelandGitHub 6cafe14060 Merge branch 'mandiant:master' into Aayush-Goel-04/Issue#1451 2023-05-17 12:09:26 +05:30
Aayush Goel b876adbc27 Update CHANGELOG.md 2023-05-16 20:22:54 +05:30
Aayush Goel e428b74657 run test on PMA 01-01.exe_ 2023-05-16 12:23:00 +05:30
Aayush Goel 931dcb1dc5 Update test_scripts.py 2023-05-15 23:35:11 +05:30
12c191582f Update tests/test_scripts.py
Co-authored-by: Moritz <mr-tz@users.noreply.github.com>
2023-05-15 22:58:19 +05:30
Aayush Goel 807efec40f Create RuleSet to test overlap script 2023-05-12 22:44:26 +05:30
41ff457d65 Update tests/test_scripts.py
Co-authored-by: Moritz <mr-tz@users.noreply.github.com>
2023-05-12 16:53:44 +05:30
Aayush GoelandGitHub 2511f40ab8 Merge branch 'mandiant:master' into Aayush-Goel-04/Issue#1451 2023-05-12 02:37:15 +05:30
Aayush GoelandGitHub 61554dbaf0 Merge branch 'mandiant:master' into Aayush-Goel-04/Issue#1446 2023-05-12 02:36:56 +05:30