security-scan

security-scan is a skill for Claude Code, Codex from Morningstar202604/awesome-skillkit. It costs 87 tokens per session (982 once invoked), scanned A, original, Apache-2.0.

A one-pass security check for a software repository. It looks for common dependency vulnerabilities, exposed keys, injection risks, missing access checks, unsafe functions, and insecure configuration, then groups findings by severity.

In plain words
What is it for?
Use it as a quick security gate for pull requests, new repositories, and releases. It produces a finding list with locations, risks, severity levels, and suggested fixes.
Why use it?
It gives teams a quick first look before merging a change, taking over an unfamiliar repository, or releasing software. It is broad and fast, but does not deeply trace data flows or investigate every finding.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it as a quick security gate for pull requests, new repositories, and releases. It produces a finding list with locations, risks, severity levels, and suggested fixes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/morningstar202604/awesome-skillkit/security-scan
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Morningstar202604/awesome-skillkit --skill security-scan
Clone the repo
git clone --depth 1 https://github.com/Morningstar202604/awesome-skillkit

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for security-scan

README.md
[![agentmods](https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/security-scan/github.svg)](https://agentmods.dev/skills/morningstar202604/awesome-skillkit/security-scan)
Your own site
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/security-scan"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/security-scan/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for security-scan

Your own site · 80×15
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/security-scan"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/security-scan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 982 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00087 $0.00982
Opus 5.5 $0.00035 $0.00393
Sonnet 5.5 $0.00017 $0.00196
Haiku 4.5 $0.00009 $0.00098

Measured 2mo ago against content hash 647638fa0527, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

security-scan scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

expert-teams/skills/security-scan/SKILL.md · 51 lines

What it actually says

单遍仓库安全审计(security-scan)

本 skill 适配全栈、软件开发团队的快速门禁。它是「快扫」:一遍过依赖、配置、源码里的常见高危模式,输出分级清单。需要深度链路追踪、数据流污点分析时,改用 deep-security-scan。

这是什么

一轮结构化的快速安全过检。用工具(依赖扫描、密钥扫描、静态规则)+ 人工 spot check 结合,在一次 passes 内把最可能出事的点捞出来,不追求穷尽。

何时使用

  • PR 合入前的快速安全门禁。
  • 接手陌生仓库的第一遍安全摸底。
  • 发版前的冒烟式安全检查。

核心步骤

  1. 依赖体检:列出所有直接依赖,查已知 CVE / 弃用包 / 过期版本,区分可利用性。
  2. 密钥与凭据扫描:全局扫硬编码的 API Key、密码、token、私钥、Webhook 地址。
  3. 注入与危险函数:找 SQL 拼接、命令拼接、模板注入、反序列化、动态 eval。
  4. 鉴权与会话:检查路由是否漏鉴权、越权(IDOR)、JWT 校验缺失、CORS 过宽。
  5. 配置与传输:检查是否 debug 暴露、错误堆栈外泄、HTTPS 强制、安全响应头。
  6. 分级输出:按 critical / high / medium / low 出清单,每条给位置 + 风险 + 修复方向。

快速检查清单

  • 依赖扫描无未修复 critical/high CVE,或有明确豁免理由。
  • 仓库里无硬编码密钥(含历史提交、.env.example 外的真实值)。
  • 数据库查询用参数化/ORM,无字符串拼接 SQL。
  • 无 exec/system 拼接用户输入;文件路径做了白名单校验。
  • 所有敏感路由有鉴权中间件;对象级权限在服务端校验,不只靠前端隐藏。
  • 生产关闭 debug / 详细错误页;错误不返回堆栈/SQL。
  • 上传文件校验类型/大小/扩展名,存储不可直接执行。
  • 会话/令牌有过期、httponly、secure 标志。

风险分级约定

  • Critical:可被远程直接利用拿数据/RCE(未授权注入、硬编码生产密钥)。
  • High:鉴权缺失、越权访问他人数据、高危依赖漏洞。
  • Medium:信息泄露、CORS 配置过宽、缺少安全头。
  • Low:最佳实践类(日志脱敏不全、依赖补丁滞后)。

易错点

  • 只跑工具不人工看:工具报一堆误报,不做甄别就全列上去,淹没真问题。
  • 只扫工作区不扫历史:密钥曾提交过,即便现在删了也已泄露,必须轮换。
  • 把「理论风险」当 critical:脱离实际可利用性分级,导致门禁噪音过大。
  • 越权只看登录态不看对象级:检查了「要登录」却没查「能不能看别人的订单」(IDOR)。
  • 依赖漏洞不看版本范围:报了 CVE 但当前版本不在受影响范围,误报为高危。
  • 快扫当深扫用:单遍扫不出复杂数据流污点问题;发现疑点要升级到 deep-security-scan。
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 51 lines · 87 tokens per session scan A 647638fa0527

Subscribe to this mod's changes

security-scan is a skill published in the GitHub repository Morningstar202604/awesome-skillkit (0 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 87 tokens to every session and 982 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-27.

Related

security-scan compared with skills from other repositories

security-scan next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
security-scanMorningstar202604/awesome-skillkitSkill02mo agoApache-2.0A87Claude Code, Codex
safe-refactorJuliusBrussee/cavemanSkill124ktodayApache-2.0A29Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill70k3d agoApache-2.0A217Claude Code, Codex
auditing-subgroup-fairnessmaziyarpanahi/openmedSkill5.9kyesterdayApache-2.0A148Claude Code
memoryopensquilla/opensquillaSkill7.2k4d agoApache-2.0A44Claude Code, Codex
infographic-template-updaterantvis/InfographicSkill7.2k1mo agoMITA43Claude Code
pulse-configureSnowflake-Labs/cocoplusSkill72923d agoMITA12Claude Code, Codex