# Secure Code Review: Exploit-Ranked Findings

> Finds the bugs an attacker can actually use, proves each one with an exploit request, and ranks them by impact.

Secure Code Review: Exploit-Ranked Findings is a free AI agent skill on Agensi by HEMAPRIYAN RK, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [HEMAPRIYAN RK](https://www.agensi.io/creators/hemapriyan-rk)
- Category: [Security](https://www.agensi.io/skills/security)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-13
- Security: scan passed (2026-10-13); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/secure-code-review-exploit-ranked-findings
- Tags: security, code-review, api, appsec, owasp, authentication, sql-injection, pull-request

## About this skill

### What it does

Reviews a file, diff, or pull request for security and correctness bugs that an attacker can actually use. Every finding comes with the exact request or input that exploits it, what the attacker gets, and a specific fix.

### Why it exists

Most AI code reviews produce a long list of style comments and "consider validating input" advice, and the one real auth bypass gets lost in the noise. This skill reviews like an attacker: follow untrusted data to where it's used, prove the bug, rank by impact.

### How it works

1. Scopes the review to what you asked for (a diff, a file, the functions it calls) instead of reading your whole repo.
2. Maps every trust boundary: request bodies, headers, cookies, files, other services' responses.
3. Checks auth and authorization first, using a bundled checklist (identity from client headers, fail-open checks, token generation, expiry, constant-time comparison, null-token cases).
4. Checks injection sinks using a bundled per-language table (Python, JavaScript/TypeScript, Go, Java) with safe replacements.
5. Proves each finding with a concrete exploit. If it can't build one, the finding is Low or dropped.

### What you get

Findings grouped Critical / High / Medium / Low, one per root cause, each with `file:line`, the exploit request, and the fix, plus one line on what to fix first.

### When not to use it

Dependency CVE scanning, infrastructure configuration audits, or a full penetration test. Pair it with a dependency scanner for those.

### Open source

Part of [claude-rigor-skills](https://github.com/hemapriyan-rk/claude-rigor-skills): 30 MIT-licensed skills that make AI show its work. The demo below, with its inputs, is in the [examples folder](https://github.com/hemapriyan-rk/claude-rigor-skills/tree/main/examples).

## Known limitations

- Reviews the code it's given. It doesn't scan dependencies for known CVEs or audit cloud or container configuration.
- Static review only: findings are reasoned from the code, not confirmed by running exploits against a live system.
- Very large diffs reduce depth. Review security-sensitive files separately for best results.
- In testing, minor issues such as a non-constant-time comparison were sometimes folded into a related fix instead of reported on their own line.

## 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 Secure Code Review: Exploit-Ranked Findings 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

### Does it modify my code?

No. It reports findings and fixes; you decide what to apply. You can ask your agent to apply the fixes afterwards.

### How is this different from asking "review this for security"?

It follows a fixed method: trust boundaries first, a bundled auth checklist and per-language sink table, and every finding must come with a working exploit request. That keeps the report short and actionable instead of long and generic.

### Can I verify it works?

Yes. The GitHub demo uses a module with 8 planted flaws and a public answer key written before the review ran. The review found all 8 core issues plus a critical bug that wasn't planted.

---

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.
