Skip to content

Instantly share code, notes, and snippets.

View peterlundberg's full-sized avatar

Peter Lundberg peterlundberg

View GitHub Profile
@peterlundberg
peterlundberg / gh_audit_current_repo.sh
Last active November 26, 2025 11:16
GitHub Repository Forensic Audit Script
#!/bin/bash
# =============================================================================
# GitHub Repository Forensic Audit Script
#
# Analyzes a GitHub repository for signs of compromise:
# - Suspicious push events and force pushes
# - Closed/manipulated PRs
# - Modified GitHub Actions (critical security risk)
# - Unusual commits and file changes
#