-
Notifications
You must be signed in to change notification settings - Fork 807
Fix incorrect ATT&CK report messages #1483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
mapped to its config fields
they make more sense
…t it's shown in the config instead of the ATT&CK report
specific systems And remove hardcoded "since it didn't run on any ... systems" from the unscanned message for those techniques
…nd declare it for all techniques left
cc/services/attack/technique_reports/ See https://stackoverflow.com/a/58321197/10629482.
1. not run on relevant system 2. relevant config options were disabled
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this provides a lot of good, useful information to the user. Good job!
We're missing some unit tests and I think a lot of the new logic can be simplified. Any time your checking if key in dict:
, you can probably simplify by using dict.get()
or dict.setdefault()
.
monkey/monkey_island/cc/services/attack/technique_reports/__init__.py
Outdated
Show resolved
Hide resolved
monkey/monkey_island/cc/services/config_schema/config_schema_per_attack_technique.py
Outdated
Show resolved
Hide resolved
monkey/monkey_island/cc/services/config_schema/config_schema_per_attack_technique.py
Outdated
Show resolved
Hide resolved
monkey/monkey_island/cc/services/config_schema/config_schema_per_attack_technique.py
Outdated
Show resolved
Hide resolved
monkey/monkey_island/cc/services/config_schema/config_schema_per_attack_technique.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two of the swimm units are outdated. Needs to be changed.
-
Add details about your new PBA (JFXftJml8DpmuCPBA9rL) .
-
Add a new System Info Collector (OwcKMnALpn7tuBaJY1US) .
Otherwise, good job!!
This should also get a changelog entry. |
`get_config_schema_per_attack_technique()` in config_schema_per_attack_technique.py
`_add_config_field_to_reverse_schema()` in config_schema_per_attack_technique.py
config_schema_per_attack_technique.py
monkey_island\cc\services\attack\technique_reports\__init__.py
test_technique_reports.py
code in test_technique_reports.py
Codecov Report
@@ Coverage Diff @@
## develop #1483 +/- ##
===========================================
+ Coverage 41.59% 42.83% +1.24%
===========================================
Files 461 471 +10
Lines 13953 14354 +401
===========================================
+ Hits 5804 6149 +345
- Misses 8149 8205 +56
Continue to review full report at Codecov.
|
monkey/monkey_island/cc/services/config_schema/config_schema_per_attack_technique.py
Outdated
Show resolved
Hide resolved
monkey/monkey_island/cc/services/config_schema/config_schema_per_attack_technique.py
Outdated
Show resolved
Hide resolved
...nit_tests/monkey_island/cc/services/config_schema/test_config_schema_per_attack_technique.py
Outdated
Show resolved
Hide resolved
...ests/unit_tests/monkey_island/cc/services/attack/technique_reports/test_technique_reports.py
Outdated
Show resolved
Hide resolved
…of generating reverse schema at runtime
…le instead of generating it every time
Co-authored-by: Mike Salvatore <mike.s.salvatore@gmail.com>
What does this PR do?
Fixes #919.
See commit messages for details.
PR Checklist
Was the documentation framework updated to reflect the changes?Testing Checklist