Skip to content

Commit f03378e

Browse files
authored
Merge pull request #341 from atomicturtle/docs/issue-309-usb-example
Fix USB monitoring example to use local ossec.conf
2 parents 10fad90 + e3d0532 commit f03378e

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

docs/manual/monitoring/process-monitoring.rst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -140,21 +140,22 @@ Detecting USB Storage Usage
140140
OSSEC. He used our policy auditing module for that, but I think USB monitoring
141141
can 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

0 commit comments

Comments
 (0)