Skip to content

AV detection avoidance #929

Closed
Closed

Description

@VakarisZ

Describe the bug

Windows defender blocks Infection Monkey:
image

To Reproduce

Steps to reproduce the behavior:

  1. Install 1.9
  2. During installation process, defender removes windows-monkey32.exe and ms08_067.py exploiter.

Expected behavior

We should improve our payload obfuscation mechanism, because it's not the first time it happened: #801
Possible solutions:
Change obfuscation techniques and apply to all payloads.
Do not include exploiter PY files into the installer (they are unused anyway)
Rename files not to include the name of the actual vuln?

Activity

  1. acepace commented on Jan 21, 2021

    @acepace
    Contributor

    Do not include exploiter PY files into the installer (they are unused anyway)

    This happens just because of some cross requirements, but we can actually remove all the python files.

    Change obfuscation techniques and apply to all payloads.

    Of the python files? On the agent side, no need because we don't see AVs parsing PYC files. (which is whats deployed IIRC)
    On the installer, we can just remove the PY files.

  2. VakarisZ commented on Jan 21, 2021

    @VakarisZ
    ContributorAuthor

    I'm not that confident in removing "all python files".

    Of the python files?

    Of payloads in exploiters. I presume that's why, when binaries are built, they get blocked. Maybe some kind of polymorphism would help to avoid this situation in the future?

    On the agent side, no need because we don't see AVs parsing PYC files.

    py file got flagged. How did they flag it if payload is already obfuscated?

  3. acepace commented on Jan 24, 2021

    @acepace
    Contributor

    TL;Dr note that the defender report is on the Island, which has the source files in plain format.

  4. VakarisZ commented on Jan 27, 2021

    @VakarisZ
    ContributorAuthor

    Yes, but it also blocked and removed windows-32 agent binary.

  5. self-assigned this
    on Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions