What problem does it solve? Salesforce code frequently ships with missing CRUD/FLS enforcement, implicit sharing declarations, SOQL injection, hardcoded secrets, and over-privileged permission sets, and the API 67.0 default-mode change makes older assumptions about system mode actively dangerous. This Skill gives reviewers and coding agents a single authoritative model of the Salesforce security layers plus concrete fix patterns and the static-analysis rules that detect each violation. ## Core Features & Use Cases - Enforcement patterns with code: Canonical implementations of WITH USER_MODE queries, user-mode DML with error introspection, Security.stripInaccessible, describe checks, and Database.queryWithBinds for injection-safe dynamic SOQL. - Permission architecture guidance: Metadata shapes and deployment rules for permission sets, permission set groups, and muting permission sets, replacing profile-based access management. - Vulnerability catalogue: Vulnerable-to-fixed code pairs for SOQL injection, XSS, open redirect, CSRF, hardcoded credentials, and weak crypto, each mapped to its detecting PMD, Graph Engine, or ESLint rule. - Use Case: While reviewing an @AuraEnabled controller in a pull request, apply the PR security checklist to confirm explicit sharing declarations, user-mode database operations, allowlisted dynamic field names, and negative-access tests with System.runAs before approving. ## Quick Start Review my Apex controller and permission set changes against the Salesforce security model and flag any CRUD, FLS, sharing, or injection violations.