Updated Technique Names to reflect MITRE ATT&CK Changes #423
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: BLUESPAWN-win-client build | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| - develop | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| buildtype: [Release, Debug] | |
| buildarch: [x64, x86] | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@main | |
| - name: Update submodules | |
| run: git submodule update --init --recursive | |
| - name: Setup vcpkg environment | |
| uses: lukka/run-vcpkg@v11 | |
| with: | |
| vcpkgDirectory: '${{ github.workspace }}/vcpkg' | |
| - name: Install vcpkg dependencies | |
| shell: cmd | |
| run: | | |
| cd vcpkg | |
| .\vcpkg.exe install @../vcpkg_response_file.txt | |
| cd .. | |
| - name: Integrate vcpkg packages | |
| shell: powershell | |
| run: | | |
| cd vcpkg | |
| .\vcpkg.exe integrate install | |
| cd .. | |
| - name: Setup MSBuild | |
| uses: microsoft/setup-msbuild@v2 | |
| - name: Build BLUESPAWN-client | |
| shell: cmd | |
| run: msbuild BLUESPAWN.sln /p:Configuration=${{ matrix.buildtype }} /p:Platform=${{ matrix.buildarch }} | |
| - name: Set PowerShell Execution Policy | |
| run: powershell set-executionpolicy Unrestricted | |
| shell: powershell | |
| - name: Run Atomic Red Team Prep Script | |
| run: testing\run-atomic-prep.ps1 | |
| shell: powershell | |
| - name: Run Atomic Red Team Tests | |
| run: testing\run-atomic-tests.ps1 | |
| shell: powershell | |
| - name: Run BLUESPAWN Hunt | |
| run: artifacts\${{ matrix.buildarch }}\${{ matrix.buildtype }}\BLUESPAWN-client.exe --hunt -a Normal --log=xml | |
| shell: cmd | |
| - name: Rename BLUESPAWN XML output file | |
| run: Get-ChildItem "bluespawn*.xml" | Rename-Item -NewName BLUESPAWNHuntResults.xml | |
| shell: powershell | |
| - name: TESTS - Check BLUESPAWN Hunt Results against Atomic Red Team Results | |
| run: testing\run-hunt-results-comparison.ps1 | |
| shell: powershell | |
| - uses: actions/upload-artifact@main | |
| with: | |
| name: BLUESPAWN-client-${{ matrix.buildarch }}-${{ matrix.buildtype }} | |
| path: artifacts\${{ matrix.buildarch }}\${{ matrix.buildtype }}\BLUESPAWN-client.exe | |
| - uses: actions/upload-artifact@main | |
| with: | |
| name: AtomicTestsResults-${{ matrix.buildarch }}-${{ matrix.buildtype }}.csv | |
| path: AtomicTestsResults.csv | |
| - uses: actions/upload-artifact@main | |
| with: | |
| name: BLUESPAWNHuntResults-${{ matrix.buildarch }}-${{ matrix.buildtype }}.xml | |
| path: BLUESPAWNHuntResults.xml |