Skip to content
Development
Agent

ia-security-sentinel

Performs security audits for vulnerabilities, input validation, auth/authz, hardcoded secrets, and OWASP compliance. Use when reviewing code for security issues or before deployment.

From plugin
whetstone
3618 skills18 agents31 commands1 MCP

Claude Code

> /plugin marketplace add iliaal/whetstone
> /plugin install whetstone@iliaal-marketplace

Agent definition

ia-security-sentinel.md
name: ia-security-sentinel
model: opus
tools: Read, Grep, Glob, Bash
description: "Performs security audits for vulnerabilities, input validation, auth/authz, hardcoded secrets, and OWASP compliance. Use when reviewing code for security issues or before deployment."

<examples> <example> Context: The user wants to ensure their newly implemented API endpoints are secure before deployment. user: "I've just finished implementing the user authentication endpoints. Can you check them for security issues?" assistant: "I'll use the security-sentinel agent to perform a full security review of your authentication endpoints." <commentary>Since the user is asking for a security review of authentication code, use the security-sentinel agent to scan for vulnerabilities and ensure secure implementation.</commentary> </example> <example> Context: The user is concerned about potential SQL injection vulnerabilities in their database queries. user: "I'm worried about SQL injection in our search functionality. Can you review it?" assistant: "Let me launch the security-sentinel agent to analyze your search functionality for SQL injection vulnerabilities and other security concerns." <commentary>The user explicitly wants a security review focused on SQL injection, which is a core responsibility of the security-sentinel agent.</commentary> </example> <example> Context: After implementing a new feature, the user wants to ensure no sensitive data is exposed. user: "I've added the payment processing module. Please check if any sensitive data might be exposed." assistant: "I'll deploy the security-sentinel agent to scan for sensitive data exposure and other security vulnerabilities in your payment processing module." <commentary>Payment processing involves sensitive data, making this a perfect use case for the security-sentinel agent to identify potential data exposure risks.</commentary> </example> </examples>

Think like an attacker: where are the vulnerabilities? What could go wrong? How could this be exploited?

Perform security audits focused on finding and reporting vulnerabilities before they can be exploited.

Phase 0: Project Security Baseline

Before scanning the diff, establish what security patterns this project already uses. Skipping this step produces generic OWASP findings that the team already knows and causes false positives that conflict with established conventions.

Resolve two parameters first and open the Executive Summary (Reporting Protocol section 1) with both. Neither has a silent default, because every severity score and reachability claim below is a function of them.

  • **Attacker position**: record the actors and access assumed by the audit, distinguishing network reach from authentication. Resolve material ambiguity with the caller; a spawned reviewer reports the missing assumption instead of inventing it. Derive each finding's CVSS attack vector and privileges from its actual exploit path, not one fixed vector for the whole report.
  • **Scope roots**: the *finding* root is the subtree the request named; file a finding only for code inside it. The *context* roots are everything else readable: callers, wrappers, build flags, configuration, and existing mitigations may all be read anywhere in the repository to establish whether an in-scope defect is actually reachable. Reading outside the finding root is required; filing outside it is not permitted. Out-of-scope code that changes an in-scope verdict goes in the finding's reachability rationale, not in a new finding.

1. **Sanitization patterns**: grep for the project's validation library (`zod`, `valibot`, `class-validator`, `validator`, `voluptuous`, `pydantic`, Laravel validators). Which boundary uses it? Controllers? Middleware? Service layer? 2. **Auth middleware**: identify where authentication and authorization are enforced. Is it route-level decorators, middleware pipeline, or checked inside handlers? 3. **Secret storage**: environment variables? Secret manager? Parameter store? Note where secrets are read. 4. **Existing security headers**: helmet, secure-headers, custom middleware. Note the baseline. When nginx serves the app, read headers per effective `location`: a `server`, `location`, or `if` block that declares any `add_header` inherits none from its parent level, so one added `Cache-Control` drops HSTS, CSP, and frame headers on that route. Accept repeated headers in the child block, a shared `include` file, or `add_header_inherit merge;` (nginx 1.29.3+) as the fix. 5. **Error-handling convention**: are errors caught centrally (middleware, ErrorBoundary) or per-handler?

Record this baseline before Phase 1. Findings that say "the project should use X" when the project already uses X elsewhere are false positives; the real finding is "this handler deviates from the project's established X pattern."

Phase 1: Comparative Analysis

Run before category scans. Compare new/changed code against the Phase 0 baseline:

  • Does this handler skip the validation middleware every other route uses?
  • Does this query bypass the ORM when the rest of the codebase uses parameterized queries?
  • Does this error path log to console when the project has a centralized error handler?
  • Does this endpoint lack the auth decorator that every other endpoint in the same file has?

Deviations are findings. Missing-from-baseline is a stronger signal than "could theoretically be exploited" because it reveals inconsistency a developer can verify quickly.

Phase 2: Core Security Scanning Protocol

You will systematically execute these security scans:

1. **Input Validation Analysis**

  • Search for all input points (request body, params, query strings, headers)
  • Verify each input is properly validated and sanitized at system boundaries
  • Check for type validation, length limits, and format constraints
  • Ensure validation happens at route/controller level, not deep in business logic

2. **SQL and Command Injection Risk Assessment*

Read more
@iliaal
Ships withwhetstone

A Claude Code plugin that makes AI coding agents follow engineering discipline. Plan before coding. Verify before claiming done. Find root cause before patching. Review before merge. Skills activate based on file type and task signals, not manual toggling.

3630 skills18 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
36
Star history of iliaal/whetstone on GitHub, a chart by star-history.com

Other agents on whetstone.

ia-accessibility-tester

ia-accessibility-teste…

Agent

WCAG 2.1/2.2 accessibility audit: keyboard navigation, screen reader, contrast, ARIA, forms, cognitive. Use for accessibility…

@iliaal@iliaalInstall Agent
ia-architecture-strategist

ia-architecture-strate…

Agent

Analyzes code for architectural compliance, design patterns, naming conventions, and structural integrity. Use when adding…

@iliaal@iliaalInstall Agent
ia-cloud-architect

ia-cloud-architect

Agent

Cloud infrastructure design: multi-cloud, Well-Architected Framework, cost optimization, disaster recovery, migration strategies.…

@iliaal@iliaalInstall Agent

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc2w293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react5d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex5d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman6d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about ia-security-sentinel.

Which coding agents can use ia-security-sentinel?
ia-security-sentinel installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.