Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
20b6f61
feat: add local exposure graph core and CLI
unalivin Oct 31, 2026
f8365a2
docs: add architecture threat model and roadmap
unalivin Oct 31, 2026
3f5008f
feat: complete native AttackPath Visualizer workflows
unalivin Oct 31, 2026
3aac50d
build: update Go dependency checksums
github-actions[bot] Oct 31, 2026
3f693ca
ci: resolve full Go module checksum graph
unalivin Oct 31, 2026
dad27b2
build: update Go dependency checksums
github-actions[bot] Oct 31, 2026
41722ac
ci: expose Go diagnostics in check annotations
unalivin Oct 31, 2026
93a1fb6
build: keep Go module metadata tidy
unalivin Oct 31, 2026
8d06ac9
build: update Go dependency checksums
github-actions[bot] Oct 31, 2026
4102e7b
ci: verify downloaded Go modules
unalivin Oct 31, 2026
81468fc
fix: remove stale repository imports
unalivin Oct 31, 2026
c6c56a8
fix: resolve GUI and TUI type errors
unalivin Oct 31, 2026
1ad4ec1
fix: correct desktop shortcut imports
unalivin Oct 31, 2026
b8b0585
ci: use current patched Go toolchain
unalivin Oct 31, 2026
e0fe0f6
fix: update image decoder and Windows path test
unalivin Oct 31, 2026
0cb27f7
build: update Go dependency checksums
github-actions[bot] Oct 31, 2026
7ea417e
docs: document platform CI and lockfile automation
unalivin Oct 31, 2026
96bf19c
ci: surface focused test failure diagnostics
unalivin Oct 31, 2026
aaa9cab
fix: create valid Windows SQLite read-only URIs
unalivin Oct 31, 2026
73d0ca1
feat: add validated graph entities and explainable path scoring
unalivin Nov 1, 2026
cc379ce
style: format path domain models
unalivin Nov 1, 2026
543932d
style: format graph path tests
unalivin Nov 1, 2026
b58232e
style: format scoring result model
unalivin Nov 1, 2026
8e823df
style: format scoring unit tests
unalivin Nov 1, 2026
1a08182
feat: validate typed inventory imports and persist graph entities
unalivin Nov 1, 2026
d3a87e0
fix: remove unused repository import
unalivin Nov 1, 2026
9556735
feat: add service-backed remediation and reports
unalivin Nov 1, 2026
93062d6
test: align path expectations with rooted prefixes
unalivin Nov 1, 2026
3c0a7c4
chore: remove temporary lockfile workflow
unalivin Nov 1, 2026
19160c0
feat: include linked findings in graph search
unalivin Nov 1, 2026
260dbee
docs: add private vulnerability reporting contact
unalivin Nov 1, 2026
3d723fb
build: add verified public beta release workflow
unalivin Nov 1, 2026
886d7cd
fix: stage dependency licenses before packaging
unalivin Nov 1, 2026
0d617d0
fix: keep curated notices alongside license bundle
unalivin Nov 1, 2026
ed967ab
debug: expose dependency license collection failures
unalivin Nov 1, 2026
f01fddf
debug: retain license tool failure diagnostics
unalivin Nov 1, 2026
4a0d708
fix: bundle modernc mathutil license explicitly
unalivin Nov 1, 2026
2ea1faf
fix: pass license ignore flag to save command
unalivin Nov 1, 2026
76ee691
fix: update Fyne packager for current Go toolchain
unalivin Nov 1, 2026
0a429bd
debug: expose beta package failure diagnostics
unalivin Nov 1, 2026
ff2f77a
fix: use structured Fyne app metadata
unalivin Nov 1, 2026
fa8eb1a
debug: report Windows package icon verification output
unalivin Nov 1, 2026
481173a
fix: write Windows icon check to a file stream
unalivin Nov 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2

[*.go]
indent_style = tab

[Makefile]
indent_style = tab
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ATTACKPATH_VISUALIZER_UI=
ATTACKPATH_VISUALIZER_DB=
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*.go text eol=lf
*.mod text eol=lf
*.sum text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
*.txt text eol=lf
*.md text eol=lf
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
name: Bug report
description: Report a reproducible issue using synthetic or sanitized data
labels: bug
---

## Expected behavior

## Actual behavior

## Reproduction steps

## OS and application version

Do not include credentials, personal data, or production inventories.
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: Feature request
description: Suggest a focused product improvement
labels: enhancement
---

## Problem to solve

## Proposed behavior

## Alternatives considered
13 changes: 13 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Summary

## Verification evidence
- CI per OS:
- Screenshot artifact:
- What is unverified:

## Security and data impact

## Checklist
- [ ] Tests and docs updated
- [ ] No sensitive real-world data included
- [ ] No unsupported platform or security claims
215 changes: 215 additions & 0 deletions .github/workflows/beta-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,215 @@
name: Beta release
on:
push:
tags: ["v*"]
permissions:
contents: read
jobs:
package:
name: package (${{ matrix.platform }})
strategy:
fail-fast: false
matrix:
include:
- runner: ubuntu-latest
platform: linux-x64
target: linux
- runner: macos-latest
platform: macos-arm64
target: darwin
- runner: windows-latest
platform: windows-x64
target: windows
runs-on: ${{ matrix.runner }}
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Install Linux GUI build prerequisites
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y bc gcc libgl1-mesa-dev libwayland-dev libx11-dev libxkbcommon-dev xorg-dev xvfb language-pack-en
- name: Install Windows C compiler
if: runner.os == 'Windows'
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
install: mingw-w64-x86_64-gcc
update: true
- name: Verify native runner architecture
if: matrix.target == 'darwin'
run: test "$(uname -m)" = "arm64"
- name: Run tests and static analysis before packaging
shell: bash
run: |
set -euo pipefail
go test ./...
go vet ./...
- name: Collect dependency license texts
shell: bash
run: |
set -euo pipefail
license_output=third-party-license-output
test ! -e "$license_output"
if ! go run github.com/google/[email protected] save --ignore=modernc.org/mathutil --save_path "$license_output" ./cmd/attackpath-visualizer > license-save.log 2>&1; then
diagnostics=$(tail -n 80 license-save.log)
diagnostics=${diagnostics//'%'/'%25'}
diagnostics=${diagnostics//$'\r'/'%0D'}
diagnostics=${diagnostics//$'\n'/'%0A'}
printf '::error title=go-licenses save::%s\n' "$diagnostics"
exit 1
fi
cat license-save.log
rm license-save.log
mkdir -p assets/licenses
cp LICENSE assets/licenses/AttackPath-Visualizer-MIT.txt
test -s assets/licenses/modernc-mathutil-BSD-3-Clause.txt
if ! cp -R "$license_output"/. assets/licenses/; then
echo '::error title=license bundle::Failed to copy generated license texts into assets/licenses.'
exit 1
fi
cp THIRD_PARTY_NOTICES.md assets/docs/THIRD_PARTY_NOTICES.md
- name: Build GUI package and bundle required files
shell: bash
run: |
set -Eeuo pipefail
report_packaging_failure() {
status=$?
command=$BASH_COMMAND
line=${BASH_LINENO[0]:-unknown}
trap - ERR
printf 'Packaging failed (exit %s) at line %s: %s\n' "$status" "$line" "$command" >> "$GITHUB_STEP_SUMMARY"
annotation=$command
annotation=${annotation//'%'/'%25'}
annotation=${annotation//$'\r'/'%0D'}
annotation=${annotation//$'\n'/'%0A'}
printf '::error title=Packaging command failed::exit %s at line %s: %s\n' "$status" "$line" "$annotation"
exit "$status"
}
trap report_packaging_failure ERR
test -s assets/icons/icon.png
mkdir -p release-output
if ! (cd cmd/attackpath-visualizer && go run fyne.io/tools/cmd/[email protected] package --target "${{ matrix.target }}" --release) > fyne-package.log 2>&1; then
cat fyne-package.log
{
echo '## Fyne package failure'
echo '```text'
tail -n 100 fyne-package.log
echo '```'
} >> "$GITHUB_STEP_SUMMARY"
diagnostics=$(tail -n 80 fyne-package.log)
diagnostics=${diagnostics//'%'/'%25'}
diagnostics=${diagnostics//$'\r'/'%0D'}
diagnostics=${diagnostics//$'\n'/'%0A'}
printf '::error title=Fyne package (%s)::%s\n' "${{ matrix.platform }}" "$diagnostics"
exit 1
fi
cat fyne-package.log
case "${{ matrix.target }}" in
windows)
exe="cmd/attackpath-visualizer/AttackPath Visualizer.exe"
test -s "$exe"
mkdir -p release-output/windows-bundle/licenses release-output/windows-bundle/docs
cp "$exe" release-output/windows-bundle/
cp README.md LICENSE THIRD_PARTY_NOTICES.md release-output/windows-bundle/
cp docs/USAGE.md docs/LICENSES.md release-output/windows-bundle/docs/
cp -R assets/licenses/. release-output/windows-bundle/licenses/
test -s release-output/windows-bundle/LICENSE
test -s release-output/windows-bundle/THIRD_PARTY_NOTICES.md
test -n "$(find release-output/windows-bundle/licenses -type f -print -quit)"
if ! pwsh -NoProfile -Command '$ErrorActionPreference = "Stop"; Add-Type -AssemblyName System.Drawing; $icon = [System.Drawing.Icon]::ExtractAssociatedIcon("release-output/windows-bundle/AttackPath Visualizer.exe"); if ($null -eq $icon) { throw "No executable icon resource was found" }; $stream = [System.IO.File]::Create("release-output/windows-icon-check.ico"); try { $icon.Save($stream) } finally { $stream.Dispose() }; if ((Get-Item "release-output/windows-icon-check.ico").Length -lt 100) { throw "Extracted application icon is unexpectedly small" }' > windows-icon-check.log 2>&1; then
cat windows-icon-check.log
diagnostics=$(tail -n 80 windows-icon-check.log)
diagnostics=${diagnostics//'%'/'%25'}
diagnostics=${diagnostics//$'\r'/'%0D'}
diagnostics=${diagnostics//$'\n'/'%0A'}
printf '::error title=Windows executable icon verification::%s\n' "$diagnostics"
exit 1
fi
cat windows-icon-check.log
pwsh -NoProfile -Command "Compress-Archive -Path 'release-output/windows-bundle/*' -DestinationPath 'release-output/attackpath-visualizer-windows-x64.zip' -Force"
test -s release-output/attackpath-visualizer-windows-x64.zip
;;
darwin)
app="cmd/attackpath-visualizer/AttackPath Visualizer.app"
test -s "$app/Contents/Info.plist"
icon=$(find "$app/Contents/Resources" -type f -iname '*.icns' -print -quit)
test -n "$icon"
mkdir -p release-output/macos-bundle/licenses release-output/macos-bundle/docs
cp -R "$app" release-output/macos-bundle/
cp README.md LICENSE THIRD_PARTY_NOTICES.md release-output/macos-bundle/
cp docs/USAGE.md docs/LICENSES.md release-output/macos-bundle/docs/
cp -R assets/licenses/. release-output/macos-bundle/licenses/
test -s release-output/macos-bundle/LICENSE
test -s release-output/macos-bundle/THIRD_PARTY_NOTICES.md
test -n "$(find release-output/macos-bundle/licenses -type f -print -quit)"
tar -czf release-output/attackpath-visualizer-macos-arm64.tar.gz -C release-output/macos-bundle .
test -s release-output/attackpath-visualizer-macos-arm64.tar.gz
;;
linux)
app_archive='cmd/attackpath-visualizer/AttackPath Visualizer.tar.xz'
test -s "$app_archive"
mkdir -p release-output/linux-bundle/licenses release-output/linux-bundle/docs
tar -xJf "$app_archive" -C release-output/linux-bundle
cp README.md LICENSE THIRD_PARTY_NOTICES.md release-output/linux-bundle/
cp docs/USAGE.md docs/LICENSES.md release-output/linux-bundle/docs/
cp -R assets/licenses/. release-output/linux-bundle/licenses/
test -s release-output/linux-bundle/LICENSE
test -s release-output/linux-bundle/THIRD_PARTY_NOTICES.md
test -n "$(find release-output/linux-bundle/licenses -type f -print -quit)"
icon=$(find release-output/linux-bundle -type f \( -iname '*.png' -o -iname '*.svg' \) -print -quit)
test -n "$icon"
tar -czf release-output/attackpath-visualizer-linux-x64.tar.gz -C release-output/linux-bundle .
test -s release-output/attackpath-visualizer-linux-x64.tar.gz
;;
esac
- uses: actions/upload-artifact@v4
with:
name: beta-package-${{ matrix.platform }}
path: release-output/attackpath-visualizer-*
if-no-files-found: error
publish:
name: publish public pre-release
needs: package
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/download-artifact@v4
with:
pattern: beta-package-*
path: dist
merge-multiple: true
- name: Verify tag, packages, checksums, and existing release state
shell: bash
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
run: |
set -euo pipefail
tag="$GITHUB_REF_NAME"
tagged_commit=$(git rev-parse "${GITHUB_REF}^{commit}")
test "$tagged_commit" = "$GITHUB_SHA"
if gh release view "$tag" --repo "$GH_REPO" >/dev/null 2>&1; then
echo "::error::Refusing to overwrite existing release $tag"
exit 1
fi
test -s dist/attackpath-visualizer-linux-x64.tar.gz
test -s dist/attackpath-visualizer-macos-arm64.tar.gz
test -s dist/attackpath-visualizer-windows-x64.zip
(cd dist && sha256sum attackpath-visualizer-linux-x64.tar.gz attackpath-visualizer-macos-arm64.tar.gz attackpath-visualizer-windows-x64.zip > SHA256SUMS)
(cd dist && sha256sum --check SHA256SUMS)
cat dist/SHA256SUMS
- name: Create public pre-release without overwriting
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
run: gh release create "$GITHUB_REF_NAME" dist/attackpath-visualizer-linux-x64.tar.gz dist/attackpath-visualizer-macos-arm64.tar.gz dist/attackpath-visualizer-windows-x64.zip dist/SHA256SUMS --prerelease --title "AttackPath Visualizer v0.1.0-dev (dev beta)" --notes-file docs/RELEASE_NOTES.md
110 changes: 110 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
name: CI
on:
push:
branches: [main, "arena/65bc6e5a-attackpath-visualizer"]
pull_request:
permissions:
contents: read
jobs:
checks:
name: checks (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.27.3'
cache: true
- name: Install GUI build prerequisites from Fyne CI documentation
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y bc gcc libgl1-mesa-dev libwayland-dev libx11-dev libxkbcommon-dev xorg-dev xvfb language-pack-en
- name: Install Windows C compiler
if: runner.os == 'Windows'
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
install: mingw-w64-x86_64-gcc
update: true
- name: Verify module metadata
run: go mod tidy -diff
- name: Resolve module checksums
run: go mod download all
- name: Verify downloaded modules
run: go mod verify
- name: Verify formatting
shell: bash
run: |
files=$(gofmt -l $(git ls-files '*.go'))
if [ -n "$files" ]; then
echo "::error title=Go formatting::Unformatted files: $files"
exit 1
fi
- name: Static analysis
shell: bash
run: |
set +e
go vet ./... > /tmp/go-vet.log 2>&1
status=$?
cat /tmp/go-vet.log
if [ "$status" -ne 0 ]; then
while IFS= read -r line; do printf '::error::%s\n' "$line"; done < /tmp/go-vet.log
exit "$status"
fi
- name: Unit and integration tests
shell: bash
run: |
set +e
go test ./... > /tmp/go-test.log 2>&1
status=$?
cat /tmp/go-test.log
if [ "$status" -ne 0 ]; then
awk '/^--- FAIL:/ { remaining=12 } /^FAIL[[:space:]]/ { print; next } remaining > 0 { print; remaining-- }' /tmp/go-test.log > /tmp/go-test-diagnostics.log
if [ ! -s /tmp/go-test-diagnostics.log ]; then tail -n 20 /tmp/go-test.log > /tmp/go-test-diagnostics.log; fi
while IFS= read -r line; do printf '::error::%s\n' "$line"; done < /tmp/go-test-diagnostics.log
exit "$status"
fi
- name: Build CLI-only and native GUI variants
shell: bash
run: go build -tags nogui ./... && go build ./...
- name: Render all dashboard screens with software renderer
if: runner.os == 'Linux'
run: go run ./cmd/render-screenshots -out artifacts/ui
- name: Upload screenshot evidence
if: runner.os == 'Linux'
uses: actions/upload-artifact@v4
with:
name: attackpath-visualizer-ui-screenshots
path: artifacts/ui/*.png
if-no-files-found: error
- name: Dependency vulnerability scan
if: runner.os == 'Linux'
shell: bash
run: |
go install golang.org/x/vuln/cmd/[email protected]
"$(go env GOPATH)/bin/govulncheck" ./... || { echo "::error title=govulncheck::Dependency vulnerability scan failed"; exit 1; }
race:
name: race detector (Linux)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.27.3'
- name: Install GUI build prerequisites from Fyne CI documentation
run: sudo apt-get update && sudo apt-get install -y bc gcc libgl1-mesa-dev libwayland-dev libx11-dev libxkbcommon-dev xorg-dev xvfb language-pack-en
- run: go mod download all
- name: Race-enabled tests
shell: bash
run: |
set +e
go test -race ./... > /tmp/go-race.log 2>&1
status=$?
cat /tmp/go-race.log
if [ "$status" -ne 0 ]; then
while IFS= read -r line; do printf '::error::%s\n' "$line"; done < /tmp/go-race.log
exit "$status"
fi
Loading
Loading