OpenBAS-Platform / openbas

Open Breach and Attack Simulation Platform
https://openbas.io
Other
685 stars 73 forks source link

Fix ART payloads using the environment variable set at $PathToAtomicsFolder #1834

Open EllynBsc opened 6 days ago

EllynBsc commented 6 days ago

Description

The Atomic Red Team set the $PathToAtomicsFolder environment variable to store and retrieve resources needed for executing payloads. However, our application does not include this environment variable by default.

We need to replace this variable when collecting Atomic Red Team payloads. Note that this goes beyond simply ensuring the folder exists, it also involves managing resources that we may not have.

We’ve identified three scenarios:

⚠ special case to check ; Parent PID Spoofing using PowerShel Persistence with Custom AutodialDLL

MarineLeM commented 6 days ago

In Atomic Red Team, $PathToAtomicsFolde refers to a directory that contains many resources that used to execute many payloads. The problem is in our application we lack these resources...

This is the folder of the resources : https://github.com/redcanaryco/atomic-red-team/tree/25e3c3956c4bd7d7232c7ce24a96fcc079e4c4a0/atomics

cf the installation documentation of atomic red team https://github.com/redcanaryco/invoke-atomicredteam/wiki/Installing-Invoke-AtomicRedTeam