Add Attack Surface Analyzer Script#26379
Merged
TravisEz13 merged 54 commits intoPowerShell:masterfrom Nov 4, 2025
Merged
Conversation
Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
…alls MSI Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
… and directories Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
…ated directories Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
… execution Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com>
…utomatic installation via winget
…pdate scripts to use the static Dockerfile for building the Attack Surface Analyzer container.
…ild for optimized result extraction in Run-AttackSurfaceAnalyzer.ps1
…xt and improve installation logging
…or output path and report extraction
TravisEz13
commented
Nov 4, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds Attack Surface Analyzer (ASA) testing tooling for local PowerShell MSI analysis using Docker containers. It provides a PowerShell script and Dockerfile to automate the process of running ASA tests in a clean Windows container environment.
Key changes:
- New
Run-AttackSurfaceAnalyzer.ps1script with automatic Docker setup and MSI building capabilities - Multi-stage Dockerfile for running ASA tests in isolated Windows containers
- Updated Windows packaging workflow to include a stable x64 build configuration
- Documentation and
.gitignoreupdates for ASA test results
Reviewed Changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| tools/AttackSurfaceAnalyzer/docker/Dockerfile | Multi-stage Dockerfile defining ASA test execution environment with baseline/post-install snapshots |
| tools/AttackSurfaceAnalyzer/Run-AttackSurfaceAnalyzer.ps1 | PowerShell script orchestrating Docker setup, MSI building, ASA test execution, and result extraction |
| tools/AttackSurfaceAnalyzer/README.md | Documentation for ASA testing workflow, prerequisites, and usage examples |
| .gitignore | Excludes ASA test results directory from version control |
| .github/workflows/windows-packaging-reusable.yml | Adds stable channel x64 build matrix entry |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…thub.com/travisez13/powershell into copilot/add-attack-surface-analyzer-test
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ts format instead of SARIF
…thub.com/travisez13/powershell into copilot/add-attack-surface-analyzer-test
…ce result exporting
…ormational and debug events, and update examples and parameters for clarity.
…ils and limit output for file-related categories
…ignatures, grouped by issuer, and limit output for other file-related categories.
…h and display all files, removing expiration date sorting and display limits.
adityapatwardhan
approved these changes
Nov 4, 2025
adityapatwardhan
approved these changes
Nov 4, 2025
SIRMARGIN
pushed a commit
to SIRMARGIN/PowerShell
that referenced
this pull request
Dec 12, 2025
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
kilasuit
pushed a commit
to kilasuit/PowerShell
that referenced
this pull request
Jan 2, 2026
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: TravisEz13 <10873629+TravisEz13@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Summary
This pull request introduces a new Attack Surface Analyzer (ASA) testing workflow for PowerShell MSI installations, leveraging Docker containers for automated and reproducible security analysis. It adds a comprehensive
README.mdand a multi-stageDockerfileto thetools/AttackSurfaceAnalyzerdirectory, detailing how to run ASA tests locally or in CI/CD, and how to extract results efficiently. Additionally, minor updates are made to CI configurations to support new packaging workflows.New ASA Testing Tools and Documentation:
README.mdtotools/AttackSurfaceAnalyzerexplaining ASA testing, usage instructions, Docker architecture, troubleshooting, and integration with CI/CD pipelines.Dockerfileintools/AttackSurfaceAnalyzer/docker/for building containers that run ASA tests, capture baseline and post-installation snapshots, export SARIF and SQLite results, and enable clean extraction of reports.PR Context
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright header