What It Does
ApiPosture reads the source code of an API and lists every endpoint with its access level: public, authenticated, role-restricted or policy-restricted. It then flags the endpoints that look wrong, such as a public DELETE or an [AllowAnonymous] that overrides a controller’s [Authorize].
It needs no compilation and no running server. You point it at a folder and it reports in seconds.
Key Features
Six Languages, One Report
ApiPosture started on ASP.NET Core, where it uses Roslyn to read controllers and minimal APIs. It now also scans Node.js, Python, PHP, Go and Spring Boot projects. Each version ships through its own package manager: NuGet, npm, PyPI, Packagist, Go modules and Maven.
Rules That Catch Real Mistakes
The free rules cover public endpoints without explicit intent, anonymous writes, missing authorization on POST, PUT and DELETE, controller and action conflicts, and sensitive words such as admin or export in public routes.
Reports for People and Pipelines
Results print to the terminal, or export as JSON, Markdown or HTML. Sort, filter and group them by route, severity or rule.
Built for CI
Add --fail-on high and the build fails when a high-severity finding appears. A config file records intentional exceptions, such as a public health check, with the reason next to it.
What Makes It Special
Local Only - Your code never leaves your machine or your CI runner.
Pro Edition - ApiPosture Pro adds OWASP Top 10 rules (injection, weak cryptography, SSRF, insecure configuration), secrets detection, diff mode and risk scoring.
Used in Practice - The .NET tool alone has close to 7,000 NuGet downloads, and the GitHub repository has more than 50 stars.
Open Source - The CLI is MIT-licensed, with an accessible output mode (no colour, no icons) for screen readers and plain logs.