跳到正文
TakoAPI
返回技能列表

sovereign-api-hardener

由 ryudi84 提供

DevOps & Cloud
259下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Hardens API endpoints against common attacks.

描述

该技能的功能

Audits API code against a 10-point security checklist covering rate limiting, input validation, authentication, CORS, security headers, injection prevention, error handling, request size limits, versioning, and logging. Produces a structured report with before/after code examples for each issue found, scored by priority. Works with Express.js, Flask, Gin, and Fastify.

It pairs each finding with concrete before/after code so fixes can be applied immediately without additional research.

何时使用

  • Auditing an Express.js API before production launch
  • Identifying rate limiting gaps on login and password reset endpoints
  • Reviewing CORS configuration for a multi-tenant SaaS API
  • Checking JWT validation logic in existing auth middleware
  • Generating a scored security report before a client or compliance review

示例工作流

输入

User asks: 'Review this Express.js API for security vulnerabilities'

智能体
  1. 1

    Identify the framework and parse the provided API code

  2. 2

    Run each of the 10 hardening checks against the code

  3. 3

    Score each category as PASS, WARN, or FAIL

  4. 4

    Generate before/after code examples for each WARN or FAIL finding

  5. 5

    Output a structured hardening report with an overall score and prioritized quick wins

输出

Hardening report with a score out of 10, a per-check status table, and code-level fixes for each identified issue

安装

clawhub install ryudi84/sovereign-api-hardener

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接