# Spring Audit Coverage

> Scans a Spring Boot repo and lists every controller endpoint with no audit logging, ranked by blast radius - money movement first, then customer identity, then documents - with the question an auditor asks about each gap. Use when asked whether audit logging is complete, or which endpoints have no a

Spring Audit Coverage is a free AI agent skill on Agensi by Puneet Swarup, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Puneet Swarup](https://www.agensi.io/creators/puneet-swarup)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0.5
- Last updated: 2026-11-29
- Security: scan passed (2026-11-26); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/spring-audit-coverage
- Tags: llm-ops, spring-boot, java, compliance, api-security, code-review

## About this skill

Most Spring Boot services log some calls and not others, and nobody knows which. The gap
is usually the endpoint that deletes a document or moves money.

This skill finds those endpoints and ranks them, so you fix the one that matters first
rather than rewriting twelve controllers.

### What it does

It scans a Spring Boot repository and reports every controller endpoint with no audit
logging, worst first:

- **Money movement** — payments, transfers, refunds, invoices, claims, renewals
- **Customer identity** — authentication, profiles, consent, KYC, roles
- **Documents** — upload, download, delete, export
- **Everything else** — reads, lookups, configuration

Every row carries the file and line, so "not audited" is a claim you can check instead of
one you have to trust.

### How it works

The scanner reads each controller method, not each file. A file that mentions
`AuditService` in a comment is not an audited file, and reporting it as one is how a
service ends up with a money-movement endpoint nobody records.

It strips comments and masks string literals before parsing, so a commented-out audit call
does not count and a path like `"/{id}"` is not mistaken for a code block. It also looks
for audit infrastructure in one place — aspects, filters, interceptors, controller advice,
audited base classes — and if any of it mentions auditing, it marks the gaps `unconfirmed`
rather than reporting them as fact.

Each gap is stated in the terms an auditor uses — who moved the money, who changed access,
who destroyed the record — with an indicative control mapping (SOC 2, PCI DSS, ISO 27001).
That is what turns a list of endpoints into a reason to act.

It diagnoses. It does not write the implementation, because a half-correct audit trail is
worse than none.

### Where it stops

- Regex-based Java parsing, not a compiler. It does not see endpoints defined in Kotlin,
  XML, GraphQL resolvers or a `RouterFunction` bean.
- Audit done in a gateway, proxy or database trigger is invisible to it.
- "Audited" means the method calls an audit sink or carries an audit annotation. It does
  not mean the record is complete — the bundled checklist covers that.
- It does not read `application.yml`, so it cannot tell you whether audit is switched off
  in production.

If your audit logging is already centralised, it will tell you so and stop. That is a
correct answer, not a failure to find work.

---

If the scan finds gaps you need to close, spring-audit-implementation covers the fix: aspect or filter wiring, masking before the sink, and an audit write that survives a rollback.

---

## Requires

- Python

## Known limitations

Heuristic-based; requires manual verification of AOP pointcuts, global filters, and base controllers. Does not execute auto-refactoring without confirmation.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Spring Audit Coverage skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill help with regulatory compliance?

This skill specifically identifies endpoints that lack traceability for sensitive actions, such as money movements or identity changes, helping you close compliance gaps for SOC2 or PCI DSS audits.

### Will it flag false positives if my project uses centralized AOP-based auditing?

The skill scans for global Servlet Filters, Spring AOP Interceptors, and custom annotations to ensure it doesn't flag endpoints that are already covered by centralized logging systems.

### What specific frameworks and project structures are supported?

It is designed for any Java-based Spring Boot environment using Spring MVC or Spring WebFlux, including projects using Spring Security for actor tracking.

### Does the skill automatically refactor my code to add missing audit logs?

No, the skill generates a prioritized report and drafts implementation proposals, allowing developers to review and approve changes before any code is modified.

### What is included with my purchase of the Spring Audit Coverage skill?

You receive the full skill logic, including the risk-based prioritization engine and implementation templates, along with free updates for future Spring Boot version compatibility.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
