agentsclimarketplace

Hello security

Skill hellowind777/helloagents/skills/hello-security

涉及认证、密码、token、JWT、OAuth、session、cookie、加密、密钥、API key、权限、角色、用户输入验证、文件上传等安全敏感操作时使用。From its SKILL.md

Install
npx -y skills add hellowind777/helloagents --skill hello-security

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

1.4 KB, as published. Nobody here has run it

安全相关代码必须遵循以下规范。

编码前

先识别攻击面和信任边界,再写代码。

认证与密钥

  • 密码:bcrypt/argon2 哈希,不可逆存储
  • JWT:设置过期时间,使用 RS256 或 HS256,不在 payload 存敏感数据
  • 密钥/API key:环境变量或密钥管理服务,不硬编码
  • .env 不提交到版本控制(.gitignore)
  • API key 使用最小权限原则

输入验证

  • 所有外部输入(用户、API、文件)必须验证
  • 白名单优于黑名单
  • SQL:参数化查询,不拼接字符串
  • 文件上传:验证类型、大小、内容,不信任文件扩展名

输出防护

  • XSS:输出编码,设置 CSP 头
  • CSRF:token 验证
  • 敏感数据:HTTPS 传输,加密存储,不记录到日志
  • 错误信息:不暴露内部实现细节给用户

权限控制

  • 最小权限原则
  • 检查资源所有权(不能只检查角色)
  • 路径遍历:规范化路径,限制访问范围

交付检查

  • 无硬编码密钥/密码
  • 所有用户输入已验证
  • SQL 使用参数化查询
  • 敏感数据不在日志中
  • 认证 token 有过期时间

Keep looking

Skills are one crate of 626,474. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.