Defensive GitHub account & repository security auditing — in the browser, CLI, or GitHub Actions.
Maintained by SamAlpha1 · Follow @samalpha_ on X
Paste a GitHub username or profile URL. GitHub Trust Auditor scans accessible public repositories with static analysis and returns a 0–100 overall score, repository-by-repository scores, risk signals, contribution context, and file/line evidence — without executing target code.
فارسی: یوزرنیم یا لینک GitHub را وارد کن؛ ابزار ریپوهای عمومی قابلدسترسی را بدون اجرای کد اسکن میکند و امتیاز کلی، ریسکها و شواهد فایل/خط را نمایش میدهد.
https://samalpha1.github.io/GitHubTrustAuditor/
Accepted inputs:
octocat
@octocat
github.com/octocat
https://github.com/octocat
https://github.com/octocat/Hello-World
Shareable scan links:
https://samalpha1.github.io/GitHubTrustAuditor/?user=SamAlpha1
The web interface supports English + فارسی, result sharing, X posting, direct scan links, README badges, per-repository scores, evidence lines, and GitHub contribution context.
GitHub Trust Auditor can also run directly inside another repository's workflow.
name: GitHub Trust Audit
on:
workflow_dispatch:
inputs:
username:
description: GitHub username to audit
required: true
permissions:
contents: read
jobs:
audit:
runs-on: ubuntu-latest
steps:
- name: Run GitHub Trust Auditor
uses: SamAlpha1/GitHubTrustAuditor@v1
with:
username: ${{ inputs.username }}
github-token: ${{ github.token }}
- name: Upload reports
if: always()
uses: actions/upload-artifact@v4
with:
name: github-trust-audit
path: |
github-trust-audit.json
github-trust-audit.htmlFull Action documentation: GITHUB_ACTION.md
Copy-ready example: examples/github-trust-audit.yml
The reusable Action was smoke-tested against the public SamAlpha1 account and verifies that JSON and HTML reports are produced.
- Security-first: security contributes 60% of the score and can override reputation signals.
- Static analysis: target code is read, not executed.
- Wallet-aware checks: private-key/seed handling, approvals, transaction behavior and clipboard replacement patterns.
- Exfiltration checks: correlates sensitive sources with explicit outbound/exfiltration behavior.
- Install & obfuscation checks: install hooks, encoded execution,
eval/exec, suspicious download-and-run behavior. - Repository quality: README, license,
SECURITY.md, CI and scan completeness. - History context: account age, original repositories, stars/forks and recent activity.
- Contribution graph: green-square activity is only a small 8% signal and never overrides security alarms.
- Bilingual UI: English + فارسی.
- Automation-ready: reusable GitHub Action plus CLI and JSON/HTML reports.
| Area | Weight |
|---|---|
| Security | 60 |
| Repository hygiene | 20 |
| History & reputation | 12 |
| Contribution activity | 8 |
| Total | 100 |
Verdict bands:
85–100 TRUSTED
70–84 LOW RISK
40–69 CAUTION
16–39 HIGH RISK
0–15 CRITICAL
Generic wallet/network capability is treated as context, not proof of malicious behavior. Strong alarms require stronger correlated behavior, such as sensitive data combined with an explicit exfiltration destination or dangerous executable install behavior.
| Area | Examples |
|---|---|
| Seed / private-key / password handling | prompts, literals, .env access, sensitive variable flows |
| Data exfiltration | secrets correlated with HTTP/webhook/Telegram/Discord/socket sinks |
| Clipboard / wallet replacement | clipboard reads/writes and wallet-address replacement patterns |
| Wallet approvals | unlimited approvals, permit/allowance patterns |
| Transactions | signing/sending behavior and undocumented transaction capability |
| Install scripts | preinstall, postinstall, download-and-execute chains |
| Obfuscation | eval, exec, Base64 decode+execute, encoded PowerShell |
| Secret exposure | committed keys/tokens/mnemonic-shaped values and sensitive filenames |
| GitHub Actions | broad permissions, secrets used in network-capable shell steps |
| Repository hygiene | README, license, SECURITY, CI, completeness |
| Reputation context | account age, stars/forks, original repos, recent activity |
| Green squares | contributions, active days and streaks — capped at 8% |
When public contribution data is available, the report includes contribution total, active days, longest streak, current streak and calendar cells.
Contribution activity is capped at 8% of the account score and never cancels a security warning. Uniform-looking activity is not treated as proof of wrongdoing.
git clone https://github.com/SamAlpha1/GitHubTrustAuditor.git
cd GitHubTrustAuditor
python -m venv .venv
source .venv/bin/activate
# Windows: .venv\Scripts\activate
pip install -r requirements.txt
python auditor.py octocatExport reports:
python auditor.py octocat --json report.json --html report.htmlGitHub Trust Auditor does not execute target repository code. It does not install target dependencies, run target scripts, connect a wallet, sign target transactions, or request seed phrases/private wallet keys from the scanned account.
A clean result is not proof that a person is trustworthy, and a red result is not proof that a person is a scammer. Results describe observable technical signals in scanned coverage. Static analysis can produce false positives and false negatives.
Private third-party repositories cannot be inspected without legitimate access.
- False-positive reports and useful detection improvements are welcome.
- See
CONTRIBUTING.md. - Security reports:
SECURITY.md. - Public discussions: GitHub Discussions.
Project launch post on X:
https://x.com/samalpha_/status/2095568206484164967
Releases:
https://github.com/SamAlpha1/GitHubTrustAuditor/releases
MIT — see LICENSE.
GitHub: SamAlpha1
X: @samalpha_
If GitHub Trust Auditor is useful to you, Star the repository, share your result, and follow SamAlpha1 on GitHub and X.