home Home build Tools bug_report Errors menu_book Guides lightbulb Tips smart_toy Prompts extension Extensions folder_open Resources info About
search
security

Paste Apex code and click "Run Security Audit" to scan for vulnerabilities

What This Tool Scans For

dangerous

SOQL Injection

Detects string concatenation in SOQL queries where user input could inject malicious code.

vpn_key

Hardcoded Credentials

Identifies hardcoded API keys, passwords, tokens, and secrets in source code.

lock

Missing CRUD Checks

Finds create/read/update/delete operations without proper access verification.

verified

Best Practices

Recommends industry best practices for secure Apex development and patterns.

Security Tips

Always use parameterized queries: Use binding variables in SOQL/SOSL to prevent injection attacks.

Never hardcode secrets: Use custom settings, metadata, or external secret management for credentials.

Check field-level access: Use Schema describe methods to verify CRUD and FLS before operations.

Validate user input: Sanitize and validate all external data before using in queries or operations.

Use sharing rules: Enforce row-level security through sharing settings and without sharing.