-
Notifications
You must be signed in to change notification settings - Fork 786
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
Add T1168 and T1053 attack techniques (job scheduling) #694
Conversation
e92fdae
to
b0c3b50
Compare
Codecov Report
@@ Coverage Diff @@
## develop #694 +/- ##
========================================
Coverage 59.89% 59.89%
========================================
Files 147 147
Lines 4787 4787
========================================
Hits 2867 2867
Misses 1920 1920
Continue to review full report at Codecov.
|
monkey/infection_monkey/post_breach/job_scheduling/windows/job_scheduling.py
Outdated
Show resolved
Hide resolved
monkey/infection_monkey/post_breach/job_scheduling/windows/job_scheduling.py
Outdated
Show resolved
Hide resolved
from monkey_island.cc.services.attack.technique_reports import AttackTechnique | ||
from monkey_island.cc.database import mongo | ||
from common.utils.attack_utils import ScanStatus | ||
from common.data.post_breach_consts import POST_BREACH_JOB_SCHEDULING |
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.
Ideally, all imports should follow the same structure:
future imports
python imports
third party imports
project imports
If not sure about why, look up PEP8.
You can automatically achieve this on pycharm with ctrl + alt + o.
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.
Maybe we should add https://pypi.org/project/flake8-import-order/
monkey/infection_monkey/post_breach/job_scheduling/linux/job_scheduling.py
Outdated
Show resolved
Hide resolved
monkey/infection_monkey/post_breach/job_scheduling/linux/job_scheduling.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.
Good job! I have no "must do" suggestions, but requesting changes just to make sure I see your replies before merging :)
monkey/infection_monkey/post_breach/job_scheduling/job_scheduling.py
Outdated
Show resolved
Hide resolved
f911495
to
5bef26b
Compare
monkey/infection_monkey/post_breach/job_scheduling/linux_job_scheduling.py
Outdated
Show resolved
Hide resolved
- windows commands readibility - f-strings - directory structure
5bef26b
to
5bbef83
Compare
Fixes #683 and fixes #685
T1168 and T1053 both aim at scheduling jobs.