Skip to content

Add Attack Surface Analyzer Script#26379

Merged
TravisEz13 merged 54 commits intoPowerShell:masterfrom
TravisEz13:copilot/add-attack-surface-analyzer-test
Nov 4, 2025
Merged

Add Attack Surface Analyzer Script#26379
TravisEz13 merged 54 commits intoPowerShell:masterfrom
TravisEz13:copilot/add-attack-surface-analyzer-test

Conversation

@TravisEz13
Copy link
Copy Markdown
Member

@TravisEz13 TravisEz13 commented Nov 4, 2025

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.md and a multi-stage Dockerfile to the tools/AttackSurfaceAnalyzer directory, 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:

  • Added a detailed README.md to tools/AttackSurfaceAnalyzer explaining ASA testing, usage instructions, Docker architecture, troubleshooting, and integration with CI/CD pipelines.
  • Introduced a multi-stage Dockerfile in tools/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

Copilot AI and others added 30 commits October 19, 2025 19:06
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>
…pdate scripts to use the static Dockerfile for building the Attack Surface Analyzer container.
…ild for optimized result extraction in Run-AttackSurfaceAnalyzer.ps1
Comment thread .github/workflows/windows-packaging-reusable.yml Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.ps1 script 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 .gitignore updates 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.

Comment thread tools/AttackSurfaceAnalyzer/README.md Outdated
Comment thread tools/AttackSurfaceAnalyzer/README.md Outdated
Comment thread tools/AttackSurfaceAnalyzer/Run-AttackSurfaceAnalyzer.ps1 Outdated
Comment thread tools/AttackSurfaceAnalyzer/Run-AttackSurfaceAnalyzer.ps1 Outdated
Comment thread tools/AttackSurfaceAnalyzer/Run-AttackSurfaceAnalyzer.ps1 Outdated
Comment thread tools/AttackSurfaceAnalyzer/Run-AttackSurfaceAnalyzer.ps1 Outdated
Comment thread tools/AttackSurfaceAnalyzer/Run-AttackSurfaceAnalyzer.ps1 Outdated
TravisEz13 and others added 16 commits November 4, 2025 11:57
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>
…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.
@TravisEz13 TravisEz13 added the CL-Tools Indicates that a PR should be marked as a tools change in the Change Log label Nov 4, 2025
@TravisEz13 TravisEz13 enabled auto-merge (squash) November 4, 2025 23:18
@TravisEz13 TravisEz13 merged commit 1ba5974 into PowerShell:master Nov 4, 2025
35 of 44 checks passed
@TravisEz13 TravisEz13 deleted the copilot/add-attack-surface-analyzer-test branch November 4, 2025 23:18
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-Tools Indicates that a PR should be marked as a tools change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants