# Security Hardening Prompt (Draft) ## Purpose Standardize the process of auditing and hardening a service or stack to improve its security posture. ## Instructions 1. Review current service configuration for security best practices. 2. Update all dependencies and base images to latest stable versions. 3. Restrict network access to only required ports and trusted sources. 4. Enforce strong authentication and authorization controls. 5. Audit secrets management (rotate credentials, use vaults where possible). 6. Enable logging and monitoring for security events. 7. Apply least-privilege principles to service accounts and permissions. 8. Document all changes and update security policies. ## Checklist - [ ] Config reviewed for best practices - [ ] Dependencies updated - [ ] Network access restricted - [ ] Auth controls enforced - [ ] Secrets audited/rotated - [ ] Logging/monitoring enabled - [ ] Documentation updated