File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -140,21 +140,22 @@ Detecting USB Storage Usage
140140OSSEC. He used our policy auditing module for that, but I think USB monitoring
141141can be done in a much easier way with our new :xml: `check_diff ` feature.
142142
143- To get started, first configure your Windows agents to monitor the USBSTOR
144- registry entry using the reg command:
143+ To get started, configure each Windows agent to monitor the USBSTOR registry entry
144+ using the ``reg `` command. This must be in the agent's local ``ossec.conf `` — the
145+ manager cannot push ``command `` or ``full_command `` localfile entries through
146+ ``agent.conf `` (see :ref: `full_command `).
145147
146148.. code-block :: xml
147149
148- <agent_config os = " windows " >
150+ <ossec_config >
149151 <localfile >
150152 <log_format >full_command</log_format >
151153 <command >reg QUERY HKLM\SYSTEM\CurrentControlSet\Enum\USBSTOR</command >
154+ <frequency >3600</frequency >
152155 </localfile >
153- </agent_config >
156+ </ossec_config >
154157
155-
156-
157- Next create a local rule for that command:
158+ Next create a local rule for that command on the manager:
158159
159160.. code-block :: xml
160161
You can’t perform that action at this time.
0 commit comments