Skip to content

Conversation

cakekoa
Copy link
Contributor

@cakekoa cakekoa commented Apr 26, 2023

What does this PR do?

Fixes #3198.

Removes sshguard, which was preventing brute-forcing over SSH, and causing our depth_4 test to fail.

PR Checklist

  • Have you added an explanation of what your changes do and why you'd like to include them?
  • Is the TravisCI build passing?
  • Was the CHANGELOG.md updated to reflect the changes?
  • Was the documentation framework updated to reflect the changes?
  • Have you checked that you haven't introduced any duplicate code?

Testing Checklist

  • Added relevant unit tests?
  • Do all unit tests pass?
  • Do all end-to-end tests pass?
  • Any other testing performed?

    Tested by {Running the Monkey locally with relevant config/running Island/...}

  • If applicable, add screenshots or log transcripts of the feature working

cakekoa added 2 commits April 26, 2023 19:01
The sshguard is preinstalled on the Ubuntu 18.04 base image. sshguard
will block IPs temporarily if too many failed login attempts are made
within a given time period, in order to prevent brute-force attacks.
Since we want to test brute-force attacks, we are removing sshguard from
these machines.
@codecov
Copy link

codecov bot commented Apr 26, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.21 🎉

Comparison is base (02ebfa6) 73.13% compared to head (539e334) 73.34%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3259      +/-   ##
===========================================
+ Coverage    73.13%   73.34%   +0.21%     
===========================================
  Files          467      480      +13     
  Lines        13681    13871     +190     
===========================================
+ Hits         10005    10174     +169     
- Misses        3676     3697      +21     

see 45 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Comment on lines +21 to +24
- name: Remove sshguard
apt:
name: sshguard
state: absent
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find.

@mssalvatore mssalvatore merged commit 0ddca71 into develop Apr 26, 2023
@mssalvatore mssalvatore deleted the 3198-remove-sshguard branch April 27, 2023 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SNMP Exploiter Research
2 participants