Moai Ref Owasp Checklist 标志

Moai Ref Owasp Checklist

组织热门
modu-ai
moai-ref-owasp-checklist

OWASP Top 10 security checklist, authentication patterns, input validation, and HTTP security headers reference. Agent-extending skill that amplifies backend-implementation and security-audit workflows with production-grade security patterns. NOT for: frontend UI, DevOps deployment, performance optimization, testing strategy.

概览

发布者modu-ai
代码仓库moai-adk
技能名称moai-ref-owasp-checklist
星标数
1.2K
复刻数
226
附带文件
仅含指令
许可协议Apache-2.0
链接
  • Markdown 格式的指令

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

  • 兼容任何大语言模型

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

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

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

安装

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

1

安装到 TypingMind

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

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

安装到其他智能体

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/modu-ai/moai-adk.git /tmp/moai-adk
mkdir -p .claude/skills
cp -r /tmp/moai-adk/.claude/skills/moai-ref-owasp-checklist .claude/skills/moai-ref-owasp-checklist
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

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

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

兼容任何 AI 模型

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

  • 仅在需要时加载

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

  • 在聊天中切换模型

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

技能指令

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

OWASP Security Checklist Reference

Target Agents

  • manager-develop - Applies checklist during backend API implementation (cycle_type=tdd or cycle_type=ddd context)
  • /moai review with a security focus - Primary security-audit invocation surface; equivalently available as a per-spawn Agent(general-purpose) security specialist per archived-agent-rejection.md §C

OWASP API Security Top 10

RankVulnerabilityCheckDefense
A1BOLA (Broken Object Level Authorization)Can user A access user B's resources?Verify object ownership at every endpoint
A2Broken AuthenticationWeak passwords, unlimited login attempts?bcrypt (cost 12+), rate limit, MFA
A3Broken Object Property Level AuthorizationAre hidden fields exposed in responses?Response DTOs, field-level filtering
A4Unrestricted Resource ConsumptionCan mass requests crash the server?Rate limiting, enforce pagination limits
A5Broken Function Level AuthorizationCan regular users call admin APIs?RBAC middleware, permission checks
A6Unrestricted Access to Sensitive Business FlowsCan a sensitive flow be automated or abused in bulk?Flow-level rate limits, anomaly detection, challenge on abuse signals
A7SSRF (Server-Side Request Forgery)Can URL input reach internal or metadata endpoints?Egress allowlist, block internal/metadata ranges, validate fetch targets
A8Security MisconfigurationDebug mode, verbose errors, or default accounts exposed?Production-hardened config, security headers, inspect deployed config
A9Improper Inventory ManagementUndocumented, shadow, or old-version endpoints reachable?Maintain an API inventory; deprecate and decommission old versions
A10Unsafe Consumption of APIsAre external/third-party API responses trusted blindly?Validate external responses against a schema, set timeouts, treat upstream data as untrusted

Authentication Checklist

Password Policy

  • Minimum 8 characters, show strength meter (not strict rules)
  • bcrypt (cost factor 12+) or Argon2id
  • Temporary lock after 5 failed attempts (15 min) or CAPTCHA
  • Prevent reuse of last 5 passwords

JWT Configuration

SettingRecommended Value
Access Token Expiry15-30 minutes
Refresh Token Expiry7-14 days
AlgorithmRS256 (asymmetric) or HS256
StoragehttpOnly + secure + sameSite cookie
PayloadMinimal: userId, role only (no PII)
RenewalSilent refresh or token rotation

Session Security

  • Regenerate session ID after login
  • Invalidate session on logout (server-side)
  • Set session timeout (30 min idle)
  • Bind session to IP/User-Agent (optional, strict)

HTTP Security Headers

HeaderValuePurpose
Strict-Transport-Securitymax-age=31536000; includeSubDomainsForce HTTPS
X-Content-Type-OptionsnosniffPrevent MIME sniffing
X-Frame-OptionsDENY or SAMEORIGINPrevent clickjacking
Content-Security-Policydefault-src 'self'Prevent XSS
Referrer-Policystrict-origin-when-cross-originLimit referrer
Permissions-Policycamera=(), microphone=()Restrict browser features

Input Validation Checklist

TypeMethodTool
Schema validationType + structure checkZod, Joi, pydantic, Go validator
Length limitsMin/max constraintsSchema definitions
SQL InjectionParameterized queriesORM (Prisma, GORM, SQLAlchemy)
XSS PreventionHTML escapingDOMPurify (client), server escape
Path TraversalPath normalizationfilepath.Clean + whitelist
File UploadType + size validationMIME type + magic number check
CORSOrigin whitelistNever origin: '*' with credentials

Sensitive Data Handling

Data TypeStorageTransmissionLogging
Passwordsbcrypt hash onlyHTTPS onlyNEVER
API KeysEnvironment variablesHeader (Authorization)Masked (first 4 chars)
PIIEncrypted (AES-256)HTTPS onlyMasked
Credit CardsTokenized (payment provider)Provider SDKNEVER
SessionshttpOnly cookieHTTPS onlyNEVER

Security Review Severity Levels

LevelLabelActionExample
P0CRITICALBlock releaseSQL injection, auth bypass
P1HIGHFix before mergeMissing authorization check
P2MEDIUMFix within sprintWeak password policy
P3LOWTrack in backlogMissing security header

Trust Boundary Verification Principles

PrincipleApplies ToDefense
Cached/client-supplied session state is not proof of current identityAny framework caching or locally decoding a session/JWT valueRe-verify identity against the server-side source of truth (session store, token introspection, identity provider) before every authorization decision
Edge/gateway/middleware auth checks are a UX convenience, not a security boundaryReverse proxies, framework middleware, API gateways, serverless edge functionsEvery mutation-handling endpoint independently re-checks authentication AND resource-ownership authorization
Scheduled/cron-triggered HTTP endpoints are still public URLsAny scheduler that invokes an HTTP endpoint (cron jobs, scheduled serverless functions, container-orchestrator scheduled jobs)Require a shared-secret bearer check (constant-time compare) on every scheduled-endpoint invocation
Production builds must not expose source maps or equivalent debug artifactsAny bundler/build toolDisable production source maps, verbose stack traces, and build manifests in production configuration
Webhook receivers must verify a signature/HMAC header before trusting the payloadAny webhook providerVerify signature/HMAC against a shared secret before treating the payload as legitimate business data

Common Rationalizations

RationalizationReality
"This is an internal application, OWASP does not apply"Internal applications are reachable from compromised internal services. OWASP applies to all web applications.
"The framework handles XSS protection"Frameworks protect default rendering paths. Dynamic HTML insertion, innerHTML, and template literals bypass the protection.
"We do not store sensitive data, so encryption is unnecessary"Session tokens, API keys, and PII are sensitive data. If the application has users, it has sensitive data.
"Security headers are just defense-in-depth, not critical"Each security header blocks a specific attack class. Missing CSP enables XSS even when output is escaped.
"I will do a security review before release"Late security reviews find issues that are expensive to fix. Secure coding practices prevent them from the start.

Red Flags

  • User input rendered in HTML without escaping or sanitization
  • SQL query built with string concatenation instead of parameterized queries
  • Authentication token stored in localStorage instead of httpOnly cookie
  • Missing Content-Security-Policy header on response
  • Secrets (API keys, passwords) found in source code or configuration files committed to git

Verification

  • OWASP Top 10 checklist reviewed for the change (show which items were evaluated)
  • User input sanitized before rendering in HTML output
  • All database queries use parameterized statements
  • Security headers present (CSP, X-Frame-Options, X-Content-Type-Options)
  • No secrets found in source code (show grep results for common secret patterns)
  • Authentication tokens use httpOnly, Secure, SameSite cookie attributes

常见问题

Moai Ref Owasp Checklist AI 技能有什么作用?

OWASP Top 10 security checklist, authentication patterns, input validation, and HTTP security headers reference. Agent-extending skill that amplifies backend-implementation and security-audit workflows with production-grade security patterns. NOT for: frontend UI, DevOps deployment, performance optimization, testing strategy.

为什么在 TypingMind 中使用 Moai Ref Owasp Checklist?

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

如何在 TypingMind 中安装 Moai Ref Owasp Checklist?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/modu-ai/moai-adk/tree/main/.claude/skills/moai-ref-owasp-checklist。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Moai Ref Owasp Checklist?

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

Moai Ref Owasp Checklist 可以搭配多少个 AI 模型使用?

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

Moai Ref Owasp Checklist AI 技能免费吗?

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

什么是 AI 技能?

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

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

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

查看全部

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

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