security-baseline
Security requirements, threats, and controls that apply across this system.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Security Baseline
Threat Model (High Level)
- Primary users: [internal / external]
- Assets to protect:
- [e.g., customer PII, payment data, secrets]
- Primary threats:
- [e.g., unauthorized access, data exfiltration, data tampering]
Required Controls
Authentication
- Use [e.g., OAuth2 / OIDC / SSO] for user identity.
- Never build custom password handling if avoidable.
Authorization
- Enforce least privilege.
- Centralize authorization decisions when possible.
Input Validation & Output Encoding
- Validate all untrusted input at boundaries.
- Sanitize or encode output where appropriate (HTML, JSON, SQL, etc.).
Secrets Management
- Store secrets in [vault / secret manager], never in code or config files.
- Rotate secrets according to policy.
Logging & Auditing
- Log security-relevant events:
- Logins, permission changes, critical operations.
- Avoid logging sensitive data.
Common Vulnerabilities
See vulnerabilities.md for patterns to search for and avoid.
Security Testing Requirements
See security-testing.md for:
- Required automated checks
- Manual review steps for critical flows
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-02-04
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!