Owasp Web 标志

Owasp Web

社区
nahid-sparktales
owasp-web

Hunt the web failure classes that actually recur — broken access control, injection, XSS by output context, SSRF, unsafe deserialization and mass assignment, session and token handling, secrets leakage, file handling — as patterns to find in this codebase. Use when writing or reviewing request handlers, queries, URL fetches, templates, uploads or auth code, or when asked to check a web app for the common vulnerability classes. Not for design-stage modeling (threat-modeling), not infrastructure or network hardening, and not a list to recite without reading code.

概览

发布者nahid-sparktales
代码仓库agent-dispatcher
技能名称owasp-web
星标数
58
复刻数
5
附带文件
1
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 1 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 nahid-sparktales 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Owasp Web AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/security/owasp-web
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nahid-sparktales/agent-dispatcher.git /tmp/agent-dispatcher
mkdir -p .claude/skills
cp -r /tmp/agent-dispatcher/skills/security/owasp-web .claude/skills/owasp-web
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Owasp Web,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Owasp Web。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Owasp Web 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Web failure classes

These classes recur because frameworks make the unsafe version shorter to write. Finding them is reading for a pattern — untrusted input reaching somewhere that treats it as instruction — not reciting a taxonomy. A class you name without a file and a path is not a finding.

When this fires

Code that receives requests, builds queries, renders output, fetches URLs, parses serialized data, handles sessions or accepts files is being written or reviewed. Use it inside a review pass, or on its own when asked to sweep an app for the usual suspects.

Procedure

  1. Enumerate the untrusted entry points first. Route tables and handlers, GraphQL resolvers and their nested fields, webhook receivers, queue consumers, file uploads, CLI and admin scripts, anything parsing a header or cookie. Every class below is checked from these, not by browsing files alphabetically.
  2. Broken access control, before anything else. It is the most common and the least visible to tooling. Look for a handler taking an id from the path, body or query and fetching without scoping to the caller; middleware applied by opt-in so a new route is unprotected by default; bulk and batch endpoints checking only the first item; a role or tenant id read from the request. See the authorization skill for the model itself.
  3. Injection — find where data reaches an interpreter as syntax. SQL built by concatenation or template literals, an ORM's raw escape hatch, a shell invoked with a command string rather than an argument vector, a query object built straight from a JSON body, an LDAP or XPath filter, a template rendered from a user-supplied string, eval and its relatives. The fix is parameterization or passing arguments as data — hand-rolled escaping is a defect with a delay.
  4. XSS is an output-context question. Ask where the string lands: HTML body, attribute, URL attribute, inside a script, inside CSS. Look for raw-HTML sinks (innerHTML and each framework's dangerous-HTML prop), auto-escaping turned off, user text interpolated into an inline script or a href, Markdown rendered to HTML without sanitisation, and SVG or HTML uploads served from the app's own origin. Escaping correct for one context is wrong in another.
  5. SSRF — anywhere the server fetches a URL a user influenced. Webhook targets, avatar and image fetchers, link previews, PDF and screenshot renderers, import-from-URL, identity discovery documents. Check for an allowlist of destinations, whether redirects are followed blindly, and whether the check happens before or after DNS resolution. Blocking metadata addresses by string match is not a control: alternate encodings, IPv6, redirects and rebinding all walk past it.
  6. Deserialization and object binding. Untrusted bytes reaching a language's native deserializer, a YAML loader that constructs arbitrary types, or JSON that names its own class, is remote code execution waiting for a gadget. Alongside it: mass assignment binding a whole request body onto a model (isAdmin arrives free), and merge helpers in JavaScript that let a body reach the prototype chain.
  7. Sessions and tokens. Where is a session created, rotated on privilege change, and invalidated on logout and password change? Cookie flags set? Password-reset tokens random, single-use and short-lived? For signed tokens, check that verification pins the algorithm and the key and checks expiry and audience — accepting whatever algorithm the token names is the classic hole.
  8. Secrets and inadvertent disclosure. Keys committed to the repository or baked into a client bundle by a public-prefixed environment variable, tokens in URLs and logs, stack traces and debug routes reachable in production, error messages distinguishing "no such user" from "wrong password" where that matters.
  9. File handling. Path traversal in download and upload names, archive extraction writing outside its target directory, trusting a client-declared content type, and serving user files from the application's origin where they inherit its cookies and permissions.
  10. Dependencies: audit output is leads, not findings. Run the ecosystem's audit, then check whether the vulnerable code path is actually reachable from step 1's entry points. Reporting an advisory list as a security review is how real findings get ignored.
  11. Confirm reachability before reporting. Source, sink, and a path between them that survives the checks in between. Without that path, report it as hardening and label it so.

Sending payloads at a running system is a different act from reading code. It stops and asks first, names the target, and does not happen against production or anything the user has not said they own. Reading is always in scope; probing is not implied by it.

Checklist

  • Entry points enumerated before any class was checked
  • Access control checked per handler, including bulk endpoints and new-route defaults
  • Every interpreter boundary found and checked for parameterization
  • Output sinks checked per context, including uploads served from the app origin
  • Every server-side fetch of a user-influenced URL identified
  • Deserializers, model binding and merge helpers traced back to untrusted input
  • Session lifecycle and token verification read, not assumed
  • Repository, logs, bundles and error paths checked for secrets and disclosure
  • File name, archive and content-type handling checked
  • Dependency advisories triaged for reachability
  • Each reported item has a source, a sink and a path; hardening labelled as hardening
  • Nothing was probed against a live system without asking

Failure handling

  • The pattern appears but the input turns out to be trusted — drop it or downgrade it to hardening. A false positive costs more than a missed low-severity issue: it teaches the reader to skim.
  • A framework may already neutralise it — check the framework's actual behaviour for that version rather than assuming either way, and say which behaviour you relied on.
  • The sink is reached through code you cannot follow (dynamic dispatch, generated code, a vendored blob) — report it as an unresolved path with what you traced, not as safe.
  • A class cannot be checked at all — no access to the templates, the infra config, the dependency lockfile — name it as unchecked in the report. Silence reads as a pass.
  • Something looks exploitable — that is a hypothesis until it is run by someone authorized to run it. Write it as "reachable by inspection", not "exploitable".

Evidence to report

Per finding: file and line, the untrusted input, the sink, the path between them, the concrete consequence to a named asset, and the smallest fix. Per review: which entry points were enumerated, which classes were checked, which were not checked and why, audit output with its reachability triage, and everything reasoned about but not run, said so plainly.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Owasp Web AI 技能有什么作用?

Hunt the web failure classes that actually recur — broken access control, injection, XSS by output context, SSRF, unsafe deserialization and mass assignment, session and token handling, secrets leakage, file handling — as patterns to find in this codebase. Use when writing or reviewing request handlers, queries, URL fetches, templates, uploads or auth code, or when asked to check a web app for the common vulnerability classes. Not for design-stage modeling (threat-modeling), not infrastructure or network hardening, and not a list to recite without reading code.

为什么在 TypingMind 中使用 Owasp Web?

因为您只需安装一次,就能搭配任何模型使用。Owasp Web 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Owasp Web?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/security/owasp-web。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Owasp Web?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Owasp Web 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Owasp Web 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Owasp Web AI 技能免费吗?

是的。nahid-sparktales 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇