This file is indexed.

/etc/prelude-lml/ruleset/squid.rules is in prelude-lml 1.0.0-5.3ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
#####
#
# Copyright (C) 2003 Vincent Glaume
# All Rights Reserved
# Currently supported by G Ramon Gomez <gene at gomezbrothers dot com>
#
# This file is part of the Prelude-LML program.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by 
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; see the file COPYING.  If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#
#####

# I. Starting / stopping squid, and associated services (informational, do not show a real attack)

# starting 
#LOG:2005/11/28 06:00:42| Starting Squid Cache version 2.5.STABLE1 for i386-redhat-linux-gnu...
regex=Starting Squid Cache version ([\w\.]+) for (\S+)\.\.\.; \
 classification.text=Proxy started; \
 id=1801; \
 revision=2; \
 analyzer(0).name=Squid; \
 analyzer(0).manufacturer=www.squid-cache.org; \
 analyzer(0).class=Proxy; \
 assessment.impact.severity=info; \
 assessment.impact.completion=succeeded; \
 assessment.impact.type=other; \
 assessment.impact.description=Squid Proxy was started; \
 additional_data(0).type=string; \
 additional_data(0).meaning=Version; \
 additional_data(0).data=$1; \
 additional_data(1).type=string; \
 additional_data(1).meaning=Platform; \
 additional_data(1).data=$2; \
 last

# accepting connections or disabled servicesa
#LOG:2005/11/28 06:00:44| Accepting HTTP connections at 0.0.0.0, port 3128, FD 12.
regex=Accepting HTTP connections at ([\d\.]+), port (\d+), FD (\d+)\.; \
 classification.text=Proxy accepts HTTP; \
 id=1802; \
 revision=2; \
 analyzer(0).name=Squid; \
 analyzer(0).manufacturer=www.squid-cache.org; \
 analyzer(0).class=Proxy; \
 assessment.impact.severity=info; \
 assessment.impact.completion=succeeded; \
 assessment.impact.type=other; \
 assessment.impact.description=Squid listens for incoming HTTP connections on $1:$2, file descriptor #$3; \
 target(0).node.address(0).category=ipv4-addr; \
 target(0).node.address(0).address=$1; \
 target(0).service.port=$2; \
 target(0).service.name=HTTP; \
 additional_data(0).type=integer; \
 additional_data(0).meaning=File descriptor; \
 additional_data(0).data=$3; \
 last

#LOG:2005/11/28 06:00:44| Accepting ICP messages at 0.0.0.0, port 3130, FD 13.
regex=Accepting ICP messages at ([\d\.]+), port (\d+), FD (\d+)\.; \
 classification.text=Proxy accepts ICP; \
 id=1803; \
 revision=2; \
 analyzer(0).name=Squid; \
 analyzer(0).manufacturer=www.squid-cache.org; \
 analyzer(0).class=Proxy; \
 assessment.impact.severity=info; \
 assessment.impact.completion=succeeded; \
 assessment.impact.type=other; \
 assessment.impact.description=Squid listens for incoming ICP messages on $1:$2, file descriptor #$3; \
 target(0).node.address(0).category=ipv4-addr; \
 target(0).node.address(0).address=$1; \
 target(0).service.port=$2; \
 target(0).service.name=ICP; \
 additional_data(0).type=integer; \
 additional_data(0).meaning=File descriptor; \
 additional_data(0).data=$3; \
 last

# No log sample; please submit
regex=Accepting HTCP messages on port (\d+), FD (\d+)\.; \
 classification.text=Proxy accepts HTCP; \
 id=1804; \
 revision=2; \
 analyzer(0).name=Squid; \
 analyzer(0).manufacturer=www.squid-cache.org; \
 analyzer(0).class=Proxy; \
 assessment.impact.severity=info; \
 assessment.impact.completion=succeeded; \
 assessment.impact.type=other; \
 assessment.impact.description=Squid listens for incoming HTCP messages on port $1, file descriptor #$2; \
 target(0).service.port=$1; \
 target(0).service.name=HTCP; \
 additional_data(0).type=integer; \
 additional_data(0).meaning=File descriptor; \
 additional_data(0).data=$2; \
 last

# No log sample; please submit
regex=Accepting WCCP messages on port (\d+), FD (\d+)\.; \
 classification.text=Proxy accepts WCCP; \
 id=1805; \
 revision=2; \
 analyzer(0).name=Squid; \
 analyzer(0).manufacturer=www.squid-cache.org; \
 analyzer(0).class=Proxy; \
 assessment.impact.severity=info; \
 assessment.impact.completion=succeeded; \
 assessment.impact.type=other; \
 assessment.impact.description=Squid listens for incoming WCCP messages on port $1, file descriptor #$2; \
 target(0).service.port=$1; \
 target(0).service.name=WCCP; \
 additional_data(0).type=integer; \
 additional_data(0).meaning=File descriptor; \
 additional_data(0).data=$2; \
 last

# No log sample; please submit
regex=HTCP Disabled\.; \
 classification.text=Proxy started without HTCP; \
 id=1806; \
 revision=1; \
 analyzer(0).name=Squid; \
 analyzer(0).manufacturer=www.squid-cache.org; \
 analyzer(0).class=Proxy; \
 assessment.impact.severity=info; \
 assessment.impact.type=other; \
 assessment.impact.description=Squid was invoked without the HTCP service; \
 last

#LOG:2005/11/28 06:00:44| WCCP Disabled.
regex=WCCP Disabled\.; \
 classification.text=Proxy started without WCCP; \
 id=1807; \
 revision=1; \
 analyzer(0).name=Squid; \
 analyzer(0).manufacturer=www.squid-cache.org; \
 analyzer(0).class=Proxy; \
 assessment.impact.severity=info; \
 assessment.impact.type=other; \
 assessment.impact.description=Squid was invoked without the WCCP service; \
 last

#LOG:2005/11/28 06:00:44| Squid Parent: child process 10216 exited due to signal 6
regex=Squid Parent: child process (\d+) exited due to signal (\d+); \
 classification.text=Proxy child process stopped; \
 id=1808; \
 revision=2; \
 analyzer(0).name=Squid; \
 analyzer(0).manufacturer=www.squid-cache.org; \
 analyzer(0).class=Proxy; \
 assessment.impact.severity=medium; \
 assessment.impact.type=other; \
 assessment.impact.description=A Squid child process (pid $1) exited after receiving the signal $2; \
 target(0).process.pid=$1; \
 last


# II. ACL log 
# 1. From /var/log/squid/access.log

#LOG:1133224765.027     23 12.34.56.78 TCP_DENIED/403 1387 GET http://was.nld.l.google.com:81/hit? - NONE/- text/html
regex=(\d+) ([\d\.]+) (\S+DENIED)/(\d+) (\d+) (\S+) (\S+); \
 classification.text=Proxy ACL violation attempt; \
 classification.reference(0).origin=vendor-specific; \
 classification.reference(0).meaning=squid_id; \
 classification.reference(0).name=$3; \
 classification.reference(0).url=http://www.squid-cache.org/Doc/FAQ/FAQ-6.html#ss6.7; \
 classification.reference(1).origin=vendor-specific; \
 classification.reference(1).meaning=squid_status; \
 classification.reference(1).name=$4; \
 classification.reference(1).url=http://www.squid-cache.org/Doc/FAQ/FAQ-6.html#ss6.8; \
 id=1809; \
 revision=2; \
 analyzer(0).name=Squid; \
 analyzer(0).manufacturer=www.squid-cache.org; \
 analyzer(0).class=Proxy; \
 assessment.impact.severity=medium; \
 assessment.impact.completion=failed; \
 assessment.impact.description=Host $2 tried to violate Squid ACL; \
 source(0).node.address(0).category=ipv4-addr; \
 source(0).node.address(0).address=$2; \
 additional_data(0).type=string; \
 additional_data(0).meaning=Elapsed time; \
 additional_data(0).data=$1 ms; \
 additional_data(1).type=integer; \
 additional_data(1).meaning=Bytes transmitted; \
 additional_data(1).data=$5; \
 additional_data(2).type=string; \
 additional_data(2).meaning=HTTP method; \
 additional_data(2).data=$6; \
 additional_data(3).type=string; \
 additional_data(3).meaning=URL; \
 additional_data(3).data=$7; \
 last