Repository navigation
Releases
Releases Β· manhnv-vnext/authwarden
v1.1.1: Security Fixes, Engine Enhancements & Performance Upgrades
π‘οΈ AuthWarden v1.1.1 Release Notes
This patch release addresses key operational and security bug fixes, expands scanning coverage for AI Agents & Lockfiles, introduces Shannon entropy analysis, and expands test coverage to 40 unit tests.
π Bug Fixes
- CLI Arg Parsing: Fix target path resolution when options precede positional path argument (e.g.
authwarden scan --format json .). - Single File Scanning: Fix
walkDirectoryto properly support scanning single files directly (authwarden scan server.js) and error out cleanly on non-existent paths. - BOLA / IDOR Early Break: Fix premature
break;loop inapiAuthScannerthat previously skipped subsequent findings in the same file. - GCP API Key Regex: Fix character class regex to properly detect GCP keys containing hyphens.
- Database URI Regex: Support connection URIs without trailing paths (e.g.
redis://user:pass@host:6379). - Command Injection FP: Fix
SAST-002to avoid flagging benign constant template literals while supporting directexec(req.query.cmd)calls. - Multi-line TOCTOU: Fix
LOGIC-002to detect multi-line balance and coupon race conditions via sliding context window. - OpenAPI YAML: Support
SPEC-001for OpenAPI/Swagger YAML specifications without external dependencies. - GitHub Actions Integration: Support reading
process.env.INPUT_*inaction.yml.
π New Features & Enhancements
- Shannon Entropy Analysis (
SEC-010): Added native Shannon entropy calculation to detect generic high-entropy API secrets and private tokens. - Lockfile SCA Scanning: Added
package-lock.jsonv2/v3 support to uncover vulnerable transitive dependencies, with in-memory reachability caching. - MCP Server Config Guard (
MCP-003): Detect hardcoded secrets and API keys insidemcp.jsonand Claude Desktop manifests. - Multi-stage Dockerfile Guard: Added
USERdirective tracking that resets acrossFROMbuild stages. - Inline Suppression: Support developer inline suppression comments (
// authwarden-disable-line,// authwarden-ignore,// authwarden-disable-next-line). - Custom Rule Engine: Automatic loading of enterprise rules from
rules/*.json. - Gitignore Respect: Automatic respect for
.gitignoreand built-in exclusion of.DS_Storeand past scan reports.
π§ͺ Test Suite
- Test coverage expanded from 15 to 40 automated tests with 100% pass rate in ~200ms.
v1.1.0 - Reachability SCA, Business Logic Guard, & OpenAPI Auditor π
What's New in v1.1.0
π¦ Software Composition Analysis (SCA) & Reachability-Aware CVEs
- Scans
package.json,requirements.txt,go.mod, andcomposer.jsonfor known high/critical CVEs. - AST Reachability Analysis: Distinguishes between actively imported dependencies vs dormant packages to slash false-alarm noise by 80%.
βοΈ Business Logic & Workflow State Guard
- LOGIC-001: Detects client-manipulated payment and approval flags (
req.body.is_paid,req.body.approved). - LOGIC-002: Catches non-atomic Time-of-Check to Time-of-Use (TOCTOU) race conditions in financial balances and coupons.
- LOGIC-003: Arithmetic boundary checks for negative quantity/price tampering.
- LOGIC-004: Detects
jwt.verify()calls missing explicit algorithm whitelists. - LOGIC-005: Flags client-only logouts missing server-side session revocation.
π OpenAPI & API Contract Security Auditor
- Audits
openapi.yaml,swagger.json, and Postman collections for unauthenticated sensitive operations. - Identifies security scheme bypasses (
security: []) and credentials leaked in URL query parameters. - Flags insecure cleartext HTTP transport in API server URLs.
π¨ Design & Open Source Hygiene
- Redesigned pixel-perfect terminal demo with symmetric alignment.
- Added comprehensive
SECURITY.mdresponsible disclosure policy. - Added standard GitHub issue templates and pull request templates.
- Sub-20ms cold scan speed maintained with zero external dependencies.
v1.0.0 - Initial Release of AuthWarden π‘οΈ
π‘οΈ AuthWarden v1.0.0
We are thrilled to announce the official release of AuthWarden v1.0.0 β a developer-first, zero-dependency static security scanner specifically built to catch the #1 cause of modern cloud breaches: Broken Authorization (BOLA/IDOR), Shadow APIs, and Exposed Secrets.
π Highlights
- β‘ Blazing Fast (< 1s): Scans 50,000+ lines of code in under 1 second using pure, optimized JavaScript.
- π¦ Zero External Dependencies: Pure Node.js (>= 18) standard library. Zero supply chain attack surface.
- π― API & Auth Focus (OWASP API Top 10):
- Shadow Admin APIs: Flags endpoints like
/admin,/billing,/managelacking authentication middleware. - BOLA / IDOR Detection: Identifies unscoped database queries that query by object ID without tenant/owner filtering.
- Next.js Server Actions Guard: Catches publicly invokable
'use server'mutations that execute without session checks.
- Shadow Admin APIs: Flags endpoints like
- π Active Secret Verification (
--verify):- Detects 30+ credential types across AWS, GitHub, Stripe, OpenAI, and Database URIs.
- Safe, read-only live validation to check if exposed keys are currently active without performing state modifications.
- Automatic redaction (
sk_live_51M***...***) to protect logs.
- π³ IaC & Container Misconfiguration Doctor:
- Flags Docker containers running as
root. - Catches dangerous
/var/run/docker.sockvolume mounts and privileged container mode. - Audits Terraform S3 buckets for
public-readACLs.
- Flags Docker containers running as
- π€ AI Agent & MCP Tool Auditing (2025β2026 Trend):
- Audits Model Context Protocol (
mcp.json) configs for unsandboxed shell execution (bash,powershell) and root filesystem access.
- Audits Model Context Protocol (
- π οΈ Seamless DX & Integrations:
- 1-second Git pre-commit hook setup:
npx authwarden init-hook. - Ready for GitHub Code Scanning with standard SARIF 2.1.0 export (
--format sarif). - GitHub Actions pull request sticky comments (
--format markdown).
- 1-second Git pre-commit hook setup:
β‘ Quickstart
Run directly in any repository root without installing:
npx authwarden scan .To enable active live secret verification:
npx authwarden scan . --verifyInstall as pre-commit hook:
npx authwarden init-hookFull Changelog: https://github.com/manhnv-vnext/authwarden/commits/v1.0.0