Skip to content

Timestomping PBA fails on Windows #1405

Description

@ilija-lazoroski

Describe the bug

Timestomping post breach action fail on Windows machine (victim). Running the timestomping.ps1 script passes when run from source. It was tried both with 1.10.0 and 1.11.0 agent binaries.

Issue #1419 has the same root cause as this issue.

To Reproduce

Steps to reproduce the behavior:

  1. Run Monkey Island
  2. Configure to run just Timestomping PBA
  3. Check Security report for PBA explanation

Expected behavior

Timestomping should execute timestomping.ps1 script which create temp file and changes the time of the file.

Screenshots

image

Machine version (please complete the following information):

  • OS: Windows (victim)

Tasks

  • Add the powershell scripts to the list of binaries in the spec file and test. (0.25d) @mssalvatore
    • monkey/infection_monkey/post_breach/shell_startup_files/windows/modify_powershell_startup_file.ps1
    • monkey/infection_monkey/post_breach/timestomping/windows/timestomping.ps1

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugAn error, flaw, misbehavior or failure in the Monkey or Monkey Island.Complexity: LowImpact: Highsp/3

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions