--- title: "network_oas mode Key" slug: "network-oas-mode-key" updated: 2026-09-08T19:10:56Z published: 2026-09-08T19:10:56Z canonical: "docs.trellix.com/network-oas-mode-key" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # network_oas mode Key The `network_oas mode` key allows you to define how malware protection processing handles on-access malware scans for network files on your host endpoints. Valid values include `read`,` read-write`, and `write`.The default value is `read`. The table below describes each on-access malware scan mode. | Value | Description | | --- | --- | | read | On-access scans occur only when a network file is read. | | read-write | On-access scans occur when a network file is read or written. | | write | On-access scans occur only when a network file is written. | - malwareDetection [enable Key](/docs/enable-key) - [network_oas enabled Key](/docs/network-oas-enabled-key) ### Important If the malware detection `enable` key and the `network_oas enabled` are not enabled, the `network_oas mode` key is ignored. Change this setting using one of the following methods: - Web UI (see [Enabling and Disabling On-Access Network Scans](/docs/enabling-and-disabling-on-access-network-scans)). - API custom configuration channels (see [Using API Custom Configuration Channels](/docs/using-api-custom-configuration-channels)). - Manually on individual endpoints using a text editor (see [Modifying the Configuration File for a Single Endpoint](/docs/modifying-the-configuration-file-for-a-single-endpoint)). For manual changes, enclose the `network_oas` settings in braces ({}) within the `malwareDetection` settings section of the `agent_config.jso`n file. For example, you can set the `mode` key to `"mode": read,`. `{` `"malwareDetection": {` `"enable": true,` `...` `"network_oas": {` `"enabled": true,` `"mode": "read",` `}` :