원클릭으로
security
Project-wide security rules for handling untrusted input, secrets, and database access.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Project-wide security rules for handling untrusted input, secrets, and database access.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | security |
| description | Project-wide security rules for handling untrusted input, secrets, and database access. |
Always use parameterized queries for every database access. Never concatenate user-provided strings into SQL statements directly. This includes dynamic WHERE clauses, ORDER BY clauses, and table names.
Validate and sanitize all user-provided data at the system boundary before it enters business logic. Reject inputs that do not match the expected shape, range, or type. Prefer allowlists over denylists for structured validation rules wherever possible.
Secrets must never be committed to the repository under any circumstance. Use environment variables, a secrets manager, or a vault. Rotate any leaked credentials immediately and audit access logs after any disclosure event.
Never log secrets, personally identifiable information, or full request or response bodies. Scrub sensitive fields at the logging boundary using a structured logger. Use structured logging consistently across all services.
Use well-audited authentication libraries; do not roll your own crypto. Rotate signing keys on a regular schedule. Expire idle sessions after a reasonable inactivity timeout.
Treat any data that crossed a network or process boundary as untrusted until proven otherwise. Apply the same scrutiny to data from other internal services as you would to data from the public internet. The threat model assumes lateral movement; act accordingly across every service-to-service hop in the system.
Pull request review checklist for the team.
Python code style, typing, and project conventions.
Database safety rules for the data-access layer.
Testing conventions for the project — pytest, fixtures, integration vs unit.