GuardTool.Tool 0.1.0

dotnet tool install --global GuardTool.Tool --version 0.1.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local GuardTool.Tool --version 0.1.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=GuardTool.Tool&version=0.1.0
                    
nuke :add-package GuardTool.Tool --version 0.1.0
                    

πŸ›‘ GuardTool

ASP.NET Production & Security Scanner Catch production-breaking misconfigurations before they ship.

GuardTool is a developer-first CLI tool and dashboard that analyzes ASP.NET Core projects for real-world production and security risks β€” not just code smells.

Unlike generic static analyzers, GuardTool focuses on misconfiguration, middleware order, security hardening, and deployment risks.

πŸš€ Why GuardTool?

Your ASP.NET project compiles. Your tests pass.

But is it production-safe?

GuardTool detects:

πŸ”“ Hardcoded secrets

🌍 Dangerous CORS configurations

πŸ” JWT validation

🚫 Missing HTTPS redirection

πŸ“„ Swagger exposed in production

⚠ Missing rate limiting

🧨 EF Core raw SQL risks

🧱 Middleware ordering problems

πŸ“¦ Missing production configs

πŸ›‘ Debug logging in production

and many more...

✨ Features πŸ” Production-First Rules

Focused on real ASP.NET production misconfiguration risks.

πŸ“Š Risk Scoring

Each scan generates:

Grade (A–F)

Score (0–100)

Severity breakdown

Status summary

πŸ“„ Multiple Output Formats

JSON

HTML

SARIF (CI/CD integration)

πŸ“ˆ Dashboard

Interactive web dashboard:

View historical reports

Download latest HTML / JSON / SARIF

Export ZIP bundles

Risk overview

🚦 CI/CD Ready

Fail builds automatically:

--fail-on=critical --fail-on=high 🧠 Baseline Support

Track only new critical issues over time.

πŸ“¦ Installation Install as a .NET Tool dotnet tool install GuardTool.Tool --add-source <path-to-nupkg>

Or update:

dotnet tool update GuardTool.Tool --add-source <path-to-nupkg> πŸ§ͺ Usage πŸ” Scan a project guardtool scan --root . With HTML + SARIF guardtool scan --root . --html --sarif Fail build if critical found guardtool scan --root . --fail-on=critical Custom output directory guardtool scan --root . --out reports --html --sarif πŸ“Š Open Dashboard guardtool dashboard --root .

Optional:

guardtool dashboard --root . --out reports --port 5180

Dashboard will:

Launch local web server

Open browser automatically

Display reports

πŸ—‚ Report Structure

By default reports are stored in:

<root>/.guardtool/reports/

Each scan generates:

yyyyMMdd_HHmmss_report.json yyyyMMdd_HHmmss_report.html yyyyMMdd_HHmmss_report.sarif.json 🧱 Project Architecture GuardTool.Core β†’ Rules engine, scanning logic GuardTool.Cli β†’ .NET tool entry point GuardTool.Dashboard β†’ Razor Pages dashboard πŸ›  Example CI Integration GitHub Actions

  • name: Run GuardTool run: guardtool scan --root . --fail-on=critical πŸ“Œ Command Reference scan guardtool scan <rootPath> | --root <rootPath> [--out <dir>] [--only-new-critical] [--html] [--sarif] [--fail-on=critical|high|none] baseline guardtool baseline <rootPath> [--include-high] dashboard guardtool dashboard <rootPath> | --root <rootPath> [--out <dir>] [--port=5180] 🟒 Community Edition

The current version includes:

Core production readiness rules

Security misconfiguration checks

Basic dashboard

JSON / HTML / SARIF export

Baseline tracking

πŸ”΅ Pro Edition (Planned)

Advanced JWT validation analysis

Deep EF Core query inspection

Secret entropy scanning

Dependency vulnerability scanning

Historical trend analytics

Team dashboard

PR comment bot

Slack / Teams alerts

Policy configuration files

🎯 Roadmap

Pro licensing system

SaaS dashboard option

GitHub App integration

Azure DevOps extension

Plugin rule system

Custom rule authoring SDK

πŸ›‘ Philosophy

GuardTool is built on one principle:

β€œProduction-ready by default.”

We believe backend security and production safety should be:

Lightweight

Developer-first

CI-friendly

Focused on real risks

πŸ“„ License

MIT (Community Edition)

🀝 Contributing

PRs are welcome.

If you'd like to:

Add new rules

Improve false-positive detection

Enhance dashboard UI

Improve performance

Open an issue first to discuss.

🌍 Future Vision

GuardTool aims to become:

The production-readiness standard for ASP.NET applications.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.1.0 86 2/24/2026