invoke-atomicredteam
invoke-atomicredteam copied to clipboard
Non-blocking Warnings for Unsupported Platforms
Hej,
First off, thank you for this fantastic project! I use Invoke-Atomic nearly every day and really appreciate the hard work that goes into it.
I have a feature request that might have been discussed previously or could potentially belong in the Atomic Red Team repository.
I need to run tests on platforms that are currently not supported by Invoke-Atomic, such as AIX. To achieve this, I wrote my own executor and marked tests compatible with AIX by adding 'aix' to the supported_platform field.
supported_platforms:
- linux
- aix
However, I encountered an issue where Invoke-Atomic stops executing tests when it encounters unsupported platforms like 'aix' in the same aggregated test file that includes Linux or Windows tests.
Get-AtomicTechnique: /.../invoke-atomicredteam-master/Public/Invoke-AtomicTest.ps1:343
Line |
343 | … aml) { $AtomicTechniqueHash = Get-AtomicTechnique -Path $pathToYaml }
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| [/root/invoke-atomicredteam-master/atomics/T.../T....yaml][Atomic test name: ...]
| 'atomic_tests[0].supported_platforms': 'aix' must be one of the following: windows, macos, linux, office-365, azure-ad, google-workspace, saas, iaas, containers,
| iaas:aws, iaas:azure, iaas:gcp.
Found 0 atomic tests applicable to linux platform for Technique
It would be incredibly helpful if the error could be changed to a non-blocking warning, or if non-standard entries in the supported_platform field could be ignored entirely. This change would significantly improve the workflow for those of us using unsupported platforms.
Thank you for considering this minor but impactful change!
Best regards, unamuno