Enable synchronous mode for static analysis

reference brazil Updated Sep 10, 2026 1 min read sc-enable-synchronous-mode-for-static-analysis.md
Raw file servicenow.com

The com.glide.script.static_analysis.enable_sync property controls whether static analysis security violations block script execution synchronously or are recorded asynchronously. Setting this property to true enables synchronous mode, which blocks scripts with security violations.

When set to false (the default), violations are recorded asynchronously through statistical logs without preventing script execution. When set to true, security violations block script execution with a SecurityException. Asynchronous mode (false) is for environments where availability is prioritized. Synchronous mode ( true) is better for high-security environments where blocking malicious scripts is more important than performance.

To configure this property:

  • Navigate to /sys_properties_list.do on the ServiceNow instance.
  • Ensure the property com.glide.script.static_analysis.enable_sync exists and is set to true.

More information

Attribute

Description

Configuration name

com.glide.script.static_analysis.enable_sync

Configuration type

System Properties ( /sys_properties_list.do)

Data type

Boolean

Recommended value

true

Default value

false

Fallback value

false

Category

Malicious code

Security risk

  • Severity score: 6.8
  • CVSS rating: Medium
  • Security risk details: Setting the com.glide.script.static_analysis.enable_sync property to false weakens protection against sandbox escape attempts that the static analyzer would otherwise detect when availability or performance is prioritized over security.

Functional impact

This property determines if static analysis security violations block script execution. The default value of false records the violation but does not prevent the script execution. Impact of enabling sync mode (false → true):

  • Every sandbox script execution includes inline static analysis
  • Scripts with security violations fail with SecurityException
  • A small amount of latency added to script execution (ranging from microseconds to milliseconds depending on script size)
  • Violations are persisted to the Error log table

Regression testing:

  • Run load tests to measure performance impact on script-heavy operations
  • Execute critical business rules, script includes, and background scripts
  • Check error log (System Log → Errors) for SecurityException records
  • Monitor response times for pages/APIs that execute sandbox scripts
  • Review statistics logs for latency percentiles (histogram50ns, histogram90ns, histogram99ns)
  • Identify any false positives that block legitimate scripts
  • Test under peak load conditions to ensure acceptable performance

Dependencies and prerequisites

The property com.glide.script.static_analysis.disabled must be set to false for the com.glide.script.static_analysis.enable_sync property to have any effect.

**Parent Topic:**[Malicious code](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/platform-security/instance-security-hardening-settings/sc-malicious-code.md)
Keywords static analysis
Search documentation
Search document titles and file paths on the brazil branch