New focused rules: security logging and audit (events to log, log injection, what never to log, tamper-evident audit trails) and desktop and mobile client apps (shipped code is public, platform secret stores, pinning with rotation, signed updates, WebView limits). Existing rules gain inbound webhook verification in api, GDPR handling of personal data in data, container and infrastructure-as-code hardening in supply-chain, and post-quantum key establishment with ML-KEM (FIPS 203) in a hybrid construction in crypto. Security testing of a third-party or public target now needs one confirmation of ownership or permission. Duplicate authorization bullets in auth and api are merged, and webhook routing distinguishes inbound from outbound. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1.7 KiB
1.7 KiB
Supply-chain security
- Keep dependencies minimal, maintained, and from verified sources; respect lockfiles and review identity and compatibility before adding or upgrading packages.
- Verify package identity, source, maintainer, release history, transitive dependencies, and install-time behavior. Treat typosquats and unexpected ownership changes as risks.
- Pin or constrain versions according to project policy, commit lockfiles, and remove unused dependencies. Review lockfile changes instead of hand-editing generated entries.
- Review dependency and build-tool updates for breaking behavior and security advisories; upgrade deliberately and verify the resulting artifact.
- Treat plugins, build scripts, CI actions, compiler plugins, generated artifacts, and caches as part of the attack surface. Pin CI actions to reviewed immutable revisions where supported.
- Use least-privilege build and deployment identities. Separate untrusted pull-request jobs from secret-bearing jobs and protect release credentials from untrusted code.
- Never expose credentials in pipelines, logs, caches, artifacts, command output, or generated packages. Limit secret lifetime and scope.
- Verify artifact provenance and integrity before release or installation; avoid downloading and executing unverified content dynamically.
- Build containers from minimal, pinned base images, run them as a non-root user with a read-only filesystem where possible, and never bake secrets into image layers or build arguments.
- Keep infrastructure as code reviewed and least privilege: no public storage, open ports, or wildcard IAM permissions by default, encryption enabled, and security-relevant settings checked in review or by policy tooling.