Skip to content
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

Modify shell startup files is not reported correctly #1511

Closed
ilija-lazoroski opened this issue Oct 4, 2021 · 3 comments · Fixed by #1514
Closed

Modify shell startup files is not reported correctly #1511

ilija-lazoroski opened this issue Oct 4, 2021 · 3 comments · Fixed by #1514
Assignees
Labels
Bug An error, flaw, misbehavior or failure in the Monkey or Monkey Island. Complexity: Medium Impact: Medium

Comments

@ilija-lazoroski
Copy link
Contributor

Describe the bug

If the modify shell startup files PBA fails it is not reported correctly.

To Reproduce

Steps to reproduce the behavior:

  1. Configure to run the Modify shell startup files PBA
  2. Run Monkey from source and make the PBA to fail
  3. Check report to see that it shows .bash profile and .bashrc technique shows Not Attempted

Expected behavior

It should show that the technique is tried but failed

Screenshots

image
image

Machine version (please complete the following information):

  • OS: Linux
@ilija-lazoroski ilija-lazoroski added Bug An error, flaw, misbehavior or failure in the Monkey or Monkey Island. Impact: Medium Complexity: Medium labels Oct 4, 2021
@shreyamalviya
Copy link
Contributor

Took a quick look and I believe this is the issue:
image

image

  1. Since the attack fails, the result does not contain ".bash" or ".profile".
  2. Mongo query returns nothing and info is an empty list.
  3. status remains UNSCANNED since the block of code where it should change is never reached.

@ilija-lazoroski
Copy link
Contributor Author

Nice found! We need to revise the whole PBA.

@shreyamalviya
Copy link
Contributor

Thanks!
Not necessarily. This is, again, related to #1480. I'm trying to find a way to make this reliable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug An error, flaw, misbehavior or failure in the Monkey or Monkey Island. Complexity: Medium Impact: Medium
Projects
None yet
2 participants