| 1 | <!-- |
| 2 | - SOCFortress TEMPLATE TO PROVISION agent.conf IN A NEW GROUP |
| 3 | --> |
| 4 | <agent_config> |
| 5 | <labels> |
| 6 | <label key="customer">REPLACE</label> |
| 7 | </labels> |
| 8 | <client_buffer> |
| 9 | <!-- Agent buffer options --> |
| 10 | <disabled>no</disabled> |
| 11 | <queue_size>100000</queue_size> |
| 12 | <events_per_second>1000</events_per_second> |
| 13 | </client_buffer> |
| 14 | <!-- Policy monitoring --> |
| 15 | <sca> |
| 16 | <enabled>yes</enabled> |
| 17 | <scan_on_start>yes</scan_on_start> |
| 18 | <interval>12h</interval> |
| 19 | <skip_nfs>yes</skip_nfs> |
| 20 | </sca> |
| 21 | <rootcheck> |
| 22 | <disabled>no</disabled> |
| 23 | <!-- Frequency that rootcheck is executed - every 12 hours --> |
| 24 | <frequency>43200</frequency> |
| 25 | <rootkit_files>/var/ossec/etc/shared/rootkit_files.txt</rootkit_files> |
| 26 | <rootkit_trojans>/var/ossec/etc/shared/rootkit_trojans.txt</rootkit_trojans> |
| 27 | <system_audit>/var/ossec/etc/shared/system_audit_rcl.txt</system_audit> |
| 28 | <system_audit>/var/ossec/etc/shared/system_audit_ssh.txt</system_audit> |
| 29 | <system_audit>/var/ossec/etc/shared/cis_debian_linux_rcl.txt</system_audit> |
| 30 | <skip_nfs>yes</skip_nfs> |
| 31 | </rootcheck> |
| 32 | <wodle name="open-scap"> |
| 33 | <disabled>yes</disabled> |
| 34 | <timeout>1800</timeout> |
| 35 | <interval>1d</interval> |
| 36 | <scan-on-start>yes</scan-on-start> |
| 37 | <content type="xccdf" path="ssg-debian-8-ds.xml"> |
| 38 | <profile>xccdf_org.ssgproject.content_profile_common</profile> |
| 39 | </content> |
| 40 | <content type="oval" path="cve-debian-oval.xml"/> |
| 41 | </wodle> |
| 42 | <!-- File integrity monitoring --> |
| 43 | <syscheck> |
| 44 | <disabled>no</disabled> |
| 45 | <!-- Frequency that syscheck is executed default every 12 hours --> |
| 46 | <frequency>43200</frequency> |
| 47 | <scan_on_start>yes</scan_on_start> |
| 48 | <!-- Directories to check (perform all possible verifications) --> |
| 49 | <directories check_all="yes" realtime="yes">/opt</directories> |
| 50 | <directories>/etc,/usr/bin,/usr/sbin</directories> |
| 51 | <directories>/bin,/sbin,/boot</directories> |
| 52 | <!-- Files/directories to ignore --> |
| 53 | <ignore>/etc/mtab</ignore> |
| 54 | <ignore>/etc/hosts.deny</ignore> |
| 55 | <ignore>/etc/mail/statistics</ignore> |
| 56 | <ignore>/etc/random-seed</ignore> |
| 57 | <ignore>/etc/random.seed</ignore> |
| 58 | <ignore>/etc/adjtime</ignore> |
| 59 | <ignore>/etc/httpd/logs</ignore> |
| 60 | <ignore>/etc/utmpx</ignore> |
| 61 | <ignore>/etc/wtmpx</ignore> |
| 62 | <ignore>/etc/cups/certs</ignore> |
| 63 | <ignore>/etc/dumpdates</ignore> |
| 64 | <ignore>/etc/svc/volatile</ignore> |
| 65 | <ignore>/sys/kernel/security</ignore> |
| 66 | <ignore>/sys/kernel/debug</ignore> |
| 67 | <ignore>/opt/CoPilot</ignore> |
| 68 | <ignore>/opt/velociraptor</ignore> |
| 69 | <!-- File types to ignore --> |
| 70 | <ignore type="sregex">.log$|.swp$</ignore> |
| 71 | <!-- Check the file, but never compute the diff --> |
| 72 | <nodiff>/etc/ssl/private.key</nodiff> |
| 73 | <skip_nfs>yes</skip_nfs> |
| 74 | <skip_dev>yes</skip_dev> |
| 75 | <skip_proc>yes</skip_proc> |
| 76 | <skip_sys>yes</skip_sys> |
| 77 | <!-- Nice value for Syscheck process --> |
| 78 | <process_priority>15</process_priority> |
| 79 | <!-- Maximum output throughput --> |
| 80 | <max_eps>100</max_eps> |
| 81 | <!-- Database synchronization settings --> |
| 82 | <synchronization> |
| 83 | <enabled>yes</enabled> |
| 84 | <interval>5m</interval> |
| 85 | <response_timeout>30</response_timeout> |
| 86 | <queue_size>16384</queue_size> |
| 87 | <max_eps>10</max_eps> |
| 88 | </synchronization> |
| 89 | </syscheck> |
| 90 | <!-- Log analysis --> |
| 91 | <localfile> |
| 92 | <log_format>syslog</log_format> |
| 93 | <location>/var/ossec/logs/active-responses.log</location> |
| 94 | </localfile> |
| 95 | <localfile> |
| 96 | <log_format>syslog</log_format> |
| 97 | <location>/var/log/messages</location> |
| 98 | </localfile> |
| 99 | <localfile> |
| 100 | <log_format>syslog</log_format> |
| 101 | <location>/var/log/auth.log</location> |
| 102 | </localfile> |
| 103 | <localfile> |
| 104 | <log_format>syslog</log_format> |
| 105 | <location>/var/log/syslog</location> |
| 106 | </localfile> |
| 107 | <localfile> |
| 108 | <log_format>json</log_format> |
| 109 | <location>/var/log/osquery/osqueryd.results.log</location> |
| 110 | </localfile> |
| 111 | <localfile> |
| 112 | <log_format>json</log_format> |
| 113 | <location>/tmp/packetbeat/packetbeat</location> |
| 114 | </localfile> |
| 115 | <localfile> |
| 116 | <log_format>json</log_format> |
| 117 | <location>/tmp/packetbeat/packetbeat-*.ndjson</location> |
| 118 | </localfile> |
| 119 | <localfile> |
| 120 | <log_format>json</log_format> |
| 121 | <location>/var/log/tetragon/tetragon.log</location> |
| 122 | </localfile> |
| 123 | <localfile> |
| 124 | <log_format>command</log_format> |
| 125 | <command>df -P</command> |
| 126 | <frequency>360</frequency> |
| 127 | </localfile> |
| 128 | <localfile> |
| 129 | <log_format>full_command</log_format> |
| 130 | <command>netstat -tan |grep LISTEN |grep -v 127.0.0.1 | sort</command> |
| 131 | <frequency>360</frequency> |
| 132 | </localfile> |
| 133 | <localfile> |
| 134 | <log_format>full_command</log_format> |
| 135 | <command>last -n 5</command> |
| 136 | <frequency>360</frequency> |
| 137 | </localfile> |
| 138 | <wodle name="osquery"> |
| 139 | <disabled>yes</disabled> |
| 140 | <run_daemon>yes</run_daemon> |
| 141 | <log_path>/var/log/osquery/osqueryd.results.log</log_path> |
| 142 | <config_path>/etc/osquery/osquery.conf</config_path> |
| 143 | <add_labels>yes</add_labels> |
| 144 | </wodle> |
| 145 | <!-- System inventory --> |
| 146 | <wodle name="syscollector"> |
| 147 | <disabled>no</disabled> |
| 148 | <interval>1h</interval> |
| 149 | <scan_on_start>yes</scan_on_start> |
| 150 | <hardware>yes</hardware> |
| 151 | <os>yes</os> |
| 152 | <network>yes</network> |
| 153 | <packages>yes</packages> |
| 154 | <ports all="yes">yes</ports> |
| 155 | <processes>yes</processes> |
| 156 | <users>yes</users> |
| 157 | <groups>yes</groups> |
| 158 | <services>yes</services> |
| 159 | <browser_extensions>yes</browser_extensions> |
| 160 | |
| 161 | <!-- Database synchronization settings --> |
| 162 | <synchronization> |
| 163 | <max_eps>10</max_eps> |
| 164 | </synchronization> |
| 165 | </wodle> |
| 166 | <wodle name="command"> |
| 167 | <disabled>no</disabled> |
| 168 | <tag>open-audit</tag> |
| 169 | <command>/usr/bin/bash /usr/share/socfortress/scripts/open-audit.sh</command> |
| 170 | <interval>24h</interval> |
| 171 | <ignore_output>yes</ignore_output> |
| 172 | <run_on_start>yes</run_on_start> |
| 173 | <timeout>0</timeout> |
| 174 | </wodle> |
| 175 | </agent_config> |