Skip to main content
Features

Code security

Use progressive security scans to find and fix risks before code is committed or pushed.

Code security brings risk detection into the development flow. Use Static Check, Lightweight Scan, and Deep Scan at different stages: fast checks while code is being written, semantic review near task completion, and deeper cross-file analysis before important changes leave the device.

Open Code security

  1. Open Settings.
  2. Under Coding, select Security.
  3. Review the switches for Static Check, Lightweight Scan, and Deep Scan.

Choose a scan

ScanScopeRecommended time
Static CheckCode generated in the current task and common high-risk patternsKeep enabled while coding.
Lightweight ScanSemantic risks in incremental codeNear the end of a coding task.
Deep ScanCross-file and cross-function data flow in incremental codeBefore committing or pushing important changes.

Static Check

Static Check runs after code-writing actions and checks for high-risk patterns such as dangerous calls or obvious credential exposure. It is the free baseline scan.

Lightweight Scan

Lightweight Scan reads incremental code semantically to find risks such as SQL injection, remote command execution, and sensitive-information leakage. Ask Qoder to perform a lightweight security scan when the implementation is nearly complete.

Deep Scan

Deep Scan follows data across files and functions. Use it for authentication, authorization, external input, data access, or other changes where a risk may only appear after multiple code paths are connected.

Review and fix findings

After a scan:
  1. Review the severity, file, line, and explanation.
  2. Confirm the input source, dangerous operation, and reachable path.
  3. Ask the Agent to prepare a fix, or edit the code yourself.
  4. Inspect the final diff in Review.
  5. Run relevant tests and repeat the appropriate scan.

Credits

Static Check is free. Lightweight Scan and Deep Scan consume Credits, and a scan cannot continue after available Credits are exhausted. Reference estimates are about 5 Credits per 500 lines for Lightweight Scan and 20 Credits per 500 lines for Deep Scan; actual usage varies with scope, code complexity, and findings.
Start with the smallest scope that covers the affected call path. A narrow scan is faster, but it should not omit related files that determine whether the issue is exploitable.
Security scanning does not replace tests, dependency auditing, secret management, or human review. Rotate credentials that were already exposed.