File: cisco-asa.rules

package info (click to toggle)
prelude-lml 1.0.0-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 7,724 kB
  • ctags: 4,520
  • sloc: ansic: 36,137; sh: 11,362; makefile: 253; python: 21
file content (755 lines) | stat: -rw-r--r-- 38,028 bytes parent folder | download | duplicates (3)
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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
#####
#
# Copyright (C) 2003 G Ramon Gomez <gene at gomezbrothers dot com>
# Ragingwire Enterprise Solutions (www.ragingwire.com)
# All Rights Reserved
#
# 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.
#
#####

#####
#
# The rules included here were developed using a Cisco PIX 525.  Please report
# any inconsistencies on other models to G Ramon Gomez at the address provided
# above
#
#####

#LOG:Nov  2 18:03:14 pix %PIX-4-400024: IDS:2151 Large ICMP packet from 200.36.129.18 to 12.34.56.78 on interface outside
regex=-(4000\d\d): IDS:(\d+) (.+) from ([\d\.]+) to ([\d\.]+) on interface (\S+); \
 classification.text=$3; \
 classification.reference(0).origin=vendor-specific; \
 classification.reference(0).meaning=asa_id; \
 classification.reference(0).name=$1; \
 classification.reference(0).url=http://www.cisco.com/en/US/docs/security/asa/asa70/system/message/logmsgs.html#wp2266063; \
 classification.reference(1).origin=vendor-specific; \
 classification.reference(1).meaning=csids_id; \
 classification.reference(1).name=$1; \
 classification.reference(1).url=http://www.cisco.com/en/US/docs/security/asa/asa70/system/message/logmsgs.html#wp2266063; \
 id=200; \
 revision=5; \
 analyzer(0).name=ASA; \
 analyzer(0).manufacturer=Cisco; \
 analyzer(0).class=Firewall; \
 assessment.impact.severity=medium; \
 assessment.impact.completion=failed; \
 assessment.impact.description=Messages 400000 through 400051 - Cisco Intrusion Detection System signature messages; \
 source(0).interface=$6; \
 source(0).node.address(0).category=ipv4-addr; \
 source(0).node.address(0).address=$4; \
 target(0).node.address(0).category=ipv4-addr; \
 target(0).node.address(0).address=$5; \
 last

#LOG:Nov  2 11:03:52 pix %PIX-6-605005: Login permitted from 12.34.56.78/43610 to inside:90.12.34.56/ssh for user "pix"
regex=-605005: Login permitted from ([\d\.]+)\/(\d+) to (\S+):([\d\.]+)\/(\S+) for user "(\S+)"; \
 classification.text=Remote Login; \
 classification.reference(0).origin=vendor-specific; \
 classification.reference(0).meaning=asa_id; \
 classification.reference(0).name=605005; \
 classification.reference(0).url=http://www.cisco.com/en/US/docs/security/asa/asa70/system/message/logmsgs.html#wp1284894; \
 id=201; \
 revision=6; \
 analyzer(0).name=ASA; \
 analyzer(0).manufacturer=Cisco; \
 analyzer(0).class=Firewall; \
 assessment.impact.severity=low; \
 assessment.impact.type=admin; \
 assessment.impact.completion=succeeded; \
 assessment.impact.description=This message appears when a user is authenticated successfully and a management session starts.; \
 source(0).interface=$3; \
 source(0).node.address(0).category=ipv4-addr; \
 source(0).node.address(0).address=$1; \
 source(0).service.port=$2; \
 target(0).interface=$3; \
 target(0).node.address(0).category=ipv4-addr; \
 target(0).node.address(0).address=$4; \
 target(0).service.port=$5; \
 target(0).user.category=os-device; \
 target(0).user.user_id(0).type=target-user; \
 target(0).user.user_id(0).name=$6; \
 last

#LOG:Nov  2 11:03:55 pix %PIX-5-111008: User 'enable_1' executed the 'enable' command.
regex=-111008: User '(\S+)' executed the 'enable' command; \
 classification.text=Admin login; \
 classification.reference(0).origin=vendor-specific; \
 classification.reference(0).meaning=asa_id; \
 classification.reference(0).name=111008; \
 classification.reference(0).url=http://www.cisco.com/en/US/docs/security/asa/asa70/system/message/logmsgs.html#wp1280203; \
 id=202; \
 revision=6; \
 analyzer(0).name=ASA; \
 analyzer(0).manufacturer=Cisco; \
 analyzer(0).class=Firewall; \
 assessment.impact.severity=low; \
 assessment.impact.type=admin; \
 assessment.impact.completion=succeeded; \
 assessment.impact.description=User $1 succesfully enabled; \
 source(0).user.category=os-device; \
 source(0).user.user_id(0).type=current-user; \
 source(0).user.user_id(0).name=$1; \
 target(0).user.category=os-device; \
 target(0).user.user_id(0).type=target-user; \
 target(0).user.user_id(0).name=enable_15; \
 last

#LOG:Nov  2 11:17:21 pix %PIX-5-111001: Begin configuration: console writing to memory
regex=-111001: Begin configuration: (\S+) writing to (\S+); \
 classification.text=Configuration written to $2; \
 classification.reference(0).origin=vendor-specific; \
 classification.reference(0).meaning=asa_id; \
 classification.reference(0).name=111001; \
 classification.reference(0).url=http://www.cisco.com/en/US/docs/security/asa/asa70/system/message/logmsgs.html#wpxref46365/1/; \
 id=203; \
 revision=5; \
 analyzer(0).name=ASA; \
 analyzer(0).manufacturer=Cisco; \
 analyzer(0).class=Firewall; \
 assessment.impact.severity=low; \
 assessment.impact.type=admin; \
 assessment.impact.completion=succeeded; \
 assessment.impact.description=Configuration was stored on $2, and the command was executed from $1.; \
 additional_data(0).type=string; \
 additional_data(0).meaning=Source device; \
 additional_data(0).data=$1; \
 additional_data(1).type=string; \
 additional_data(1).meaning=Destination device; \
 additional_data(1).data=$2; \
 last

#LOG:Nov  2 11:17:26 pix %PIX-5-611103: User logged out: Uname: enable_1
#LOG:Jul 10 21:29:38 somehost.smf.ragingwire.net 12.34.56.78/90.12.34.56 :Jul 10 14:24:56 PDT: %ASA-vpnc-5-611103: User logged out: Uname: neteng
regex=-611103: User logged out: Uname: (\S+); \
 classification.text=User logout; \
 classification.reference(0).origin=vendor-specific; \
 classification.reference(0).meaning=asa_id; \
 classification.reference(0).name=611103; \
 classification.reference(0).url=http://www.cisco.com/en/US/docs/security/asa/asa70/system/message/logmsgs.html#wp1285015; \
 id=204; \
 revision=5; \
 analyzer(0).name=ASA; \
 analyzer(0).manufacturer=Cisco; \
 analyzer(0).class=Firewall; \
 assessment.impact.severity=low; \
 assessment.impact.type=admin; \
 assessment.impact.completion=succeeded; \
 assessment.impact.description=User $1 logged out; \
 source(0).user.category=os-device; \
 source(0).user.user_id(0).type=current-user; \
 source(0).user.user_id(0).name=$1; \
 last

#LOG:Nov  2 19:13:43 pix %PIX-6-605004: Login denied from 12.34.56.78/44660 to inside:90.12.34.56/ssh for user "frag"
regex=-605004: Login denied from ([\d\.]+)\/(\d+) to (\S+):([\d\.]+)\/(\S+) for user "(\S+)"; \
 classification.text=Remote Login; \
 classification.reference(0).origin=vendor-specific; \
 classification.reference(0).meaning=asa_id; \
 classification.reference(0).name=605004; \
 classification.reference(0).url=http://www.cisco.com/en/US/docs/security/asa/asa70/system/message/logmsgs.html#wp1284886; \
 id=205; \
 revision=6; \
 analyzer(0).name=ASA; \
 analyzer(0).manufacturer=Cisco; \
 analyzer(0).class=Firewall; \
 assessment.impact.severity=medium; \
 assessment.impact.type=admin; \
 assessment.impact.completion=failed; \
 assessment.impact.description=User $6 failed login; \
 source(0).interface=$3; \
 source(0).node.address(0).category=ipv4-addr; \
 source(0).node.address(0).address=$1; \
 source(0).service.port=$2; \
 target(0).interface=$3; \
 target(0).node.address(0).category=ipv4-addr; \
 target(0).node.address(0).address=$4; \
 target(0).service.name=$5; \
 target(0).user.category=os-device; \
 target(0).user.user_id(0).type=target-user; \
 target(0).user.user_id(0).name=$6; \
 last

#LOG:Nov  2 19:14:23 pix %PIX-6-308001: PIX console enable password incorrect for 3 tries (from ssh (remote 12.34.56.78))
regex=-308001: PIX (\S+) enable password incorrect for (\d+) tries \(from (.+)\); \
 classification.text=Admin login; \
 classification.reference(0).origin=vendor-specific; \
 classification.reference(0).meaning=asa_id; \
 classification.reference(0).name=308001; \
 classification.reference(0).url=http://www.cisco.com/en/US/docs/security/asa/asa70/system/message/logmsgs.html#wp1280990; \
 id=206; \
 revision=6; \
 analyzer(0).name=ASA; \
 analyzer(0).manufacturer=Cisco; \
 analyzer(0).class=Firewall; \
 assessment.impact.severity=medium; \
 assessment.impact.type=admin; \
 assessment.impact.completion=failed; \
 assessment.impact.description=PIX enable password attempt on the $1 failed from $3; \
 target(0).user.category=os-device; \
 target(0).user.user_id(0).type=target-user; \
 target(0).user.user_id(0).name=enable_15; \
 additional_data(0).type=string; \
 additional_data(0).meaning=Destination device; \
 additional_data(0).data=$1; \
 additional_data(1).type=integer; \
 additional_data(1).meaning=Attempts; \
 additional_data(1).data=$2; \
 additional_data(2).type=string; \
 additional_data(2).meaning=Source device; \
 additional_data(2).data=$3; \
 last

#LOG:Nov 17 11:29:27 pix %PIX-6-315011: SSH session from 12.34.56.78 on interface dmz for user "" disconnected by SSH server, reason: "Invalid format in version string" (0x05)
regex=-315011: SSH session from ([\d\.]+) on interface (\S+) for user "" disconnected by SSH server, reason: "Invalid format in version string"; \
 classification.text=SSH server recognition; \
 classification.reference(0).origin=vendor-specific; \
 classification.reference(0).meaning=asa_id; \
 classification.reference(0).name=315001; \
 classification.reference(0).url=http://www.cisco.com/en/US/docs/security/asa/asa70/system/message/logmsgs.html#wp1281091; \
 id=207; \
 revision=5; \
 analyzer(0).name=ASA; \
 analyzer(0).manufacturer=Cisco; \
 analyzer(0).class=Firewall; \
 assessment.impact.severity = medium; \
 assessment.impact.completion=failed; \
 assessment.impact.type=recon; \
 assessment.impact.description=$1 probably attempting to determine SSH version; \
 source(0).interface=$2; \
 source(0).node.address(0).category=ipv4-addr; \
 source(0).node.address(0).address=$1; \
 source(0).service.iana_protocol_name=tcp; \
 source(0).service.iana_protocol_number=6; \
 target(0).interface=$2; \
 target(0).service.port=22; \
 target(0).service.name=ssh; \
 target(0).service.iana_protocol_name=tcp; \
 target(0).service.iana_protocol_number=6; \
 last

#LOG:Dec 22 15:55:33 pix %PIX-4-407002: Embryonic limit for through connections exceeded 243/100. 208.252.69.162/55452 to 12.34.56.78(90.12.34.56)/80 on interface outside
regex=-407002: Embryonic limit for through connections exceeded (\d+)\/(\d+)\. ([\d\.]+)\/(\d+) to ([\d\.]+)\(([\d\.]+)\)\/(\d+) on interface (\S+); \
 classification.text=Embryonic connection limit exceeded; \
 classification.reference(0).origin=vendor-specific; \
 classification.reference(0).meaning=asa_id; \
 classification.reference(0).name=407002; \
 classification.reference(0).url=http://www.cisco.com/en/US/docs/security/asa/asa70/system/message/logmsgs.html#wp1282383; \
 id=208; \
 revision=5; \
 analyzer(0).name=ASA; \
 analyzer(0).manufacturer=Cisco; \
 analyzer(0).class=Firewall; \
 assessment.impact.severity = medium; \
 assessment.impact.completion=failed; \
 assessment.impact.type=other; \
 assessment.impact.description=The number of connections from $3 over $5 to $6 has exceeded the maximum embryonic limit for that static.; \
 source(0).interface=$8; \
 source(0).node.address(0).category=ipv4-addr; \
 source(0).node.address(0).address=$3; \
 source(0).service.port=$4; \
 source(0).service.iana_protocol_name=tcp; \
 source(0).service.iana_protocol_number=6; \
 target(0).node.address(0).category=ipv4-addr; \
 target(0).node.address(0).address=$5; \
 target(0).node.address(1).category=ipv4-addr; \
 target(0).node.address(1).address=$6; \
 target(0).service.port=$7; \
 target(0).service.iana_protocol_name=tcp; \
 target(0).service.iana_protocol_number=6; \
 additional_data(0).type=integer; \
 additional_data(0).meaning=Connections; \
 additional_data(0).data=$1; \
 additional_data(1).type=integer; \
 additional_data(1).meaning=Connection limit; \
 additional_data(1).data=$2; \
 last

#LOG:Feb  1 00:48:50 pix %PIX-6-106012: Deny IP from 12.34.56.78 to 90.12.34.56, IP options: "Loose Src Routing"
regex=-106012: Deny IP from ([\d\.]+) to ([\d\.]+), IP options: "(.+)"; \
 classification.text=IP options: $3; \
 classification.reference(0).origin=vendor-specific; \
 classification.reference(0).meaning=asa_id; \
 classification.reference(0).name=106012; \
 classification.reference(0).url=http://www.cisco.com/en/US/docs/security/asa/asa70/system/message/logmsgs.html#wp1279793; \
 id=209; \
 revision=5; \
 analyzer(0).name=ASA; \
 analyzer(0).manufacturer=Cisco; \
 analyzer(0).class=Firewall; \
 assessment.impact.severity=medium; \
 assessment.impact.completion=failed; \
 assessment.impact.type=other; \
 assessment.impact.description=An IP packet was seen with IP options.  Because IP options are considered a security risk, the packet was discarded.; \
 source(0).node.address(0).category=ipv4-addr; \
 source(0).node.address(0).address=$1; \
 source(0).service.iana_protocol_name=tcp; \
 source(0).service.iana_protocol_number=6; \
 target(0).node.address(0).category=ipv4-addr; \
 target(0).node.address(0).address=$2; \
 target(0).service.iana_protocol_name=tcp; \
 target(0).service.iana_protocol_number=6; \
 additional_data(0).type=string; \
 additional_data(0).meaning=IP options; \
 additional_data(0).data=$3; \
 last

#LOG:Jan 27 14:51:43 pix %PIX-1-106021: Deny udp reverse path check from 12.34.56.78 to 90.12.34.56 on interface staging
regex=-106021: Deny (\w+) reverse path check from ([\d\.]+) to ([\d\.]+) on interface (\S+); \
 classification.text=Reverse path check failure; \
 classification.reference(0).origin=vendor-specific; \
 classification.reference(0).meaning=asa_id; \
 classification.reference(0).name=106021; \
 classification.reference(0).url=http://www.cisco.com/en/US/docs/security/asa/asa70/system/message/logmsgs.html#wp1279871; \
 id=210; \
 revision=5; \
 analyzer(0).name=ASA; \
 analyzer(0).manufacturer=Cisco; \
 analyzer(0).class=Firewall; \
 assessment.impact.severity=medium; \
 assessment.impact.completion=failed; \
 assessment.impact.type=other; \
 assessment.impact.description=Reverse route lookup detected a packet that does not have a source address represented by a route and assumed that it is part of an attack.; \
 source(0).interface=$4; \
 source(0).spoofed=yes; \
 source(0).node.address(0).category=ipv4-addr; \
 source(0).node.address(0).address=$2; \
 source(0).service.iana_protocol_name=$1; \
 target(0).node.address(0).category=ipv4-addr; \
 target(0).node.address(0).address=$3; \
 target(0).service.iana_protocol_name=$1; \
 last

#LOG:Feb  1 01:01:28 pix %PIX-4-209003: Fragment database limit of 200 exceeded:  src = 12.34.56.78, dest = 90.12.34.56, proto = icmp, id = 48130
regex=-209003: Fragment database limit of (\d+) exceeded:  src = ([\d\.]+), dest = ([\d\.]+), proto = (\w+); \
 classification.text=Fragment database limit exceeded; \
 classification.reference(0).origin=vendor-specific; \
 classification.reference(0).meaning=asa_id; \
 classification.reference(0).name=209003; \
 classification.reference(0).url=http://www.cisco.com/en/US/docs/security/asa/asa70/system/message/logmsgs.html#wp1280434; \
 id=211; \
 revision=5; \
 analyzer(0).name=ASA; \
 analyzer(0).manufacturer=Cisco; \
 analyzer(0).class=Firewall; \
 assessment.impact.severity=medium; \
 assessment.impact.completion=failed; \
 assessment.impact.type=other; \
 assessment.impact.description=The IP fragement database limit has been exceeded.  A DoS attack may be in progress.; \
 source(0).node.address(0).category=ipv4-addr; \
 source(0).node.address(0).address=$2; \
 source(0).service.iana_protocol_name=$4; \
 target(0).node.address(0).category=ipv4-addr; \
 target(0).node.address(0).address=$3; \
 target(0).service.iana_protocol_name=$4; \
 additional_data(0).type=integer; \
 additional_data(0).meaning=Connections; \
 additional_data(0).data=$1; \
 last

#LOG:Feb  1 18:16:27 pix %PIX-4-500004: Invalid transport field for protocol=6, from 12.34.56.78/13798 to 90.12.34.56/0
regex=-500004: Invalid transport field for protocol=(\d+), from ([\d\.]+)\/(\d+) to ([\d\.]+)\/(\d+); \
 classification.text=Source or destination port 0; \
 classification.reference(0).origin=vendor-specific; \
 classification.reference(0).meaning=asa_id; \
 classification.reference(0).name=500004; \
 classification.reference(0).url=http://www.cisco.com/en/US/docs/security/asa/asa70/system/message/logmsgs.html#wp1282628; \
 id=212; \
 revision=5; \
 analyzer(0).name=ASA; \
 analyzer(0).manufacturer=Cisco; \
 analyzer(0).class=Firewall; \
 assessment.impact.severity=medium; \
 assessment.impact.completion=failed; \
 assessment.impact.type=other; \
 assessment.impact.description=There is an invalid transport number, in which the source or destination port number for a protocol is zero.; \
 source(0).node.address(0).category=ipv4-addr; \
 source(0).node.address(0).address=$2; \
 source(0).service.port=$3; \
 source(0).service.iana_protocol_number=$1; \
 target(0).node.address(0).category=ipv4-addr; \
 target(0).node.address(0).address=$4; \
 target(0).service.port=$5; \
 target(0).service.iana_protocol_number=$1; \
 last

#LOG:Feb  3 01:47:37 pix %PIX-4-405001: Received ARP response collision from 12.34.56.78/000b.bf5b.9408 on interface outside
regex=-405001: Received ARP (request|response) collision from ([\d\.]+)\/([A-Fa-f\d\.]+) on interface (\S+); \
 classification.text=ARP $1 mismatch; \
 classification.reference(0).origin=vendor-specific; \
 classification.reference(0).meaning=asa_id; \
 classification.reference(0).name=405001; \
 classification.reference(0).url=http://www.cisco.com/en/US/docs/security/asa/asa70/system/message/logmsgs.html#wp1282234; \
 id=213; \
 revision=5; \
 analyzer(0).name=ASA; \
 analyzer(0).manufacturer=Cisco; \
 analyzer(0).class=Firewall; \
 assessment.impact.severity=medium; \
 assessment.impact.completion=failed; \
 assessment.impact.type=other; \
 assessment.impact.description=The firewall received an ARP packet, and the MAC address in the packet differs from the ARP cache entry.; \
 source(0).spoofed=yes; \
 source(0).node.address(0).category=ipv4-addr; \
 source(0).node.address(0).address=$2; \
 source(0).node.address(1).category=mac; \
 source(0).node.address(1).address=$3; \
 source(0).interface=$4; \
 target(0).node.address(0).category=ipv4-addr; \
 target(0).node.address(0).address=$2; \
 last;

#LOG:Jan 25 14:59:33 pix %PIX-3-710003: TCP access denied by ACL from 148.208.247.3/2984 to outside:12.40.199.252/ssh
#LOG:Jul 12 17:30:17 smf-custlog-02 12.34.56.78/90.12.34.56 :Jul 12 10:25:06 PDT: %ASA-session-3-710003: TCP access denied by ACL from 78.90.12.34/3354 to OUTSIDE-01:56.78.90.12/80
regex=-710003: (TCP|UDP) access denied by ACL from ([\d\.]+)\/(\d+) to (\S+):([\d\.]+)\/(\S+); \
 classification.text=Unauthorized admin session attempt; \
 classification.reference(0).origin=vendor-specific; \
 classification.reference(0).meaning=asa_id; \
 classification.reference(0).name=710003; \
 classification.reference(0).url=http://www.cisco.com/en/US/docs/security/asa/asa70/system/message/logmsgs.html#wp2503389; \
 id=214; \
 revision=5; \
 analyzer(0).name=ASA; \
 analyzer(0).manufacturer=Cisco; \
 analyzer(0).class=Firewall; \
 assessment.impact.severity=medium; \
 assessment.impact.completion=failed; \
 assessment.impact.type=admin; \
 assessment.impact.description=This message appears when the firewall denies an attempt to connect to the interface service from an unauthorized management station.; \
 source(0).node.address(0).category=ipv4-addr; \
 source(0).node.address(0).address=$2; \
 source(0).service.port=$3; \
 source(0).service.iana_protocol_name=$1; \
 source(0).interface=$4; \
 target(0).node.address(0).category=ipv4-addr; \
 target(0).node.address(0).address=$5; \
 target(0).service.port=$6; \
 target(0).service.iana_protocol_name=$1; \
 target(0).interface=$4; \
 last

#LOG:Mar 15 20:55:18 gtsprodpix %PIX-3-305006: Dst IP is network/broadcast IP, translation creation failed for tcp src prod:10.100.17.27/1586 dst inside:10.100.16.255/445
regex=-305006: Dst IP is network/broadcast IP, translation creation failed for (tcp|udp) src (\S+):([\d\.]+)/(\S+) dst (\S+):([\d\.]+)/(\S+); \
 classification.text=Broadcast address translation request; \
 classification.reference(0).origin=vendor-specific; \
 classification.reference(0).meaning=asa_id; \
 classification.reference(0).name=305006; \
 classification.reference(0).url=http://www.cisco.com/en/US/docs/security/asa/asa70/system/message/logmsgs.html#wp1280915; \
 id=215; \
 revision=4; \
 analyzer(0).name=ASA; \
 analyzer(0).manufacturer=Cisco; \
 analyzer(0).class=Firewall; \
 assessment.impact.severity=medium; \
 assessment.impact.completion=failed; \
 assessment.impact.type=recon; \
 assessment.impact.description=The firewall has received a request to assign a static NAT translation for a broadcast address, which is illegal.  This is commonly an indicator of a network mapping attempt.; \
 source(0).node.address(0).category=ipv4-addr; \
 source(0).node.address(0).address=$3; \
 source(0).service.port=$4; \
 source(0).service.iana_protocol_name=$1; \
 source(0).interface=$2; \
 target(0).node.address(0).category=ipv4-addr; \
 target(0).node.address(0).address=$6; \
 target(0).service.port=$7; \
 target(0).service.iana_protocol_name=$1; \
 target(0).interface=$5; \
 last

#LOG:Mar 24 09:19:42 gtsprodpix %PIX-4-313003: Invalid destination for ICMP error message: ICMP source 12.34.56.78 destination 90.12.34.56 (type 3, code 1) on outside interface.  Original IP payload: ICMP source 1.1.1.1 destination 1.1.1.1 (type 1, code 1).
regex=-313003: Invalid destination for ICMP error message: ICMP source ([\d\.]+) destination ([\d\.]+) \(type (\d+), code (\d+)\) on (\S+) interface.; \
 classification.text=ICMP destination/source mismatch; \
 classification.reference(0).origin=vendor-specific; \
 classification.reference(0).meaning=asa_id; \
 classification.reference(0).name=313003; \
 classification.reference(0).url=http://www.cisco.com/en/US/docs/security/asa/asa70/system/message/logmsgs.html#wp1281049; \
 id=216; \
 revision=5; \
 analyzer(0).name=ASA; \
 analyzer(0).manufacturer=Cisco; \
 analyzer(0).class=Firewall; \
 assessment.impact.severity=medium; \
 assessment.impact.completion=failed; \
 assessment.impact.type=recon; \
 assessment.impact.description=The destination for the ICMP error message is different than the source of the IP packet that induced the ICMP error message.  This could be an active network probe, an attempt to use the ICMP error message as a covert channel, or a misbehaving IP host.; \
 source(0).node.address(0).category=ipv4-addr; \
 source(0).node.address(0).address=$1; \
 source(0).service.iana_protocol_name=icmp; \
 source(0).service.iana_protocol_number=1; \
 source(0).interface=$5; \
 target(0).node.address(0).category=ipv4-addr; \
 target(0).node.address(0).address=$2; \
 target(0).service.iana_protocol_name=icmp; \
 target(0).service.iana_protocol_number=1; \
 additional_data(0).type=integer; \
 additional_data(0).meaning=ICMP type; \
 additional_data(0).data=$3; \
 additional_data(1).type=integer; \
 additional_data(1).meaning=ICMP code; \
 additional_data(1).data=$4; \
 last

#LOG:Dec 30 03:10:48 12.34.56.78 Dec 30 2003 02:13:28: %PIX-4-106023: Deny icmp src outside:64.89.17.26 dst inside:90.12.34.56 (type 3, code 3) by access-group "outside"
#LOG:Jun  2 17:46:30 bombadil253 %PIX-4-106023: Deny udp src inside:12.34.56.78/18378 dst outside:90.12.34.56/12685 by access-group "acl_in"
#regex=-106023: Deny (\w+) src (\S+):([\d\.]+)(/(\d+))? dst (\S+):([\d\.]+)(/(\d+))?.*by access-group "(\S+)"; \
# classification.text=Packet denied; \
# classification.reference(0).origin=vendor-specific; \
# classification.reference(0).meaning=asa_id; \
# classification.reference(0).name=106023; \
# classification.reference(0).url=http://www.cisco.com/en/US/docs/security/asa/asa70/system/message/logmsgs.html#wp1279897; \
# id=217; \
# revision=5; \
# analyzer(0).name=ASA; \
# analyzer(0).manufacturer=Cisco; \
# analyzer(0).class=Firewall; \
# assessment.impact.severity=medium; \
# assessment.impact.description=A packet was dropped by PIX access-group "$8".; \
# source(0).interface=$2; \
# source(0).service.iana_protocol_name=$1; \
# source(0).node.address(0).category=ipv4-addr; \
# source(0).node.address(0).address=$3; \
# source(0).service.port=$4; \
# target(0).interface=$5; \
# target(0).service.iana_protocol_name=$1; \
# target(0).node.address(0).category=ipv4-addr; \
# target(0).node.address(0).address=$6; \
# target(0).service.port=$7; \
# additional_data(0).type=string; \
# additional_data(0).meaning=access-group; \
# additional_data(0).data=$8; \
# last

#LOG:Nov  2 18:03:14 pix %PIX-2-106006: Deny inbound UDP from 9.0.1.2/10001 to 3.4.5.6/1026 on interface outside
#regex=-106006: Deny inbound UDP from ([\d\.]+)/(\d+) to ([\d\.]+)/(\d+) on interface (\S+); \
# classification.text=Packet denied; \
# classification.reference(0).origin=vendor-specific; \
# classification.reference(0).meaning=asa_id; \
# classification.reference(0).name=106006; \
# classification.reference(0).url=http://www.cisco.com/en/US/docs/security/asa/asa70/system/message/logmsgs.html#wp1279756; \
# id=218; \
# revision=5; \
# analyzer(0).name=ASA; \
# analyzer(0).manufacturer=Cisco; \
# analyzer(0).class=Firewall; \
# assessment.impact.severity=medium; \
# assessment.impact.description=This is a connection-related message. This message is logged if an inbound UDP packet is denied by your security policy.; \
# source(0).interface=$5; \
# source(0).service.iana_protocol_name=UDP; \
# source(0).service.iana_protocol_number=17; \
# source(0).node.address(0).category=ipv4-addr; \
# source(0).node.address(0).address=$1; \
# source(0).service.port=$2; \
# target(0).service.iana_protocol_name=UDP; \
# target(0).service.iana_protocol_number=17; \
# target(0).node.address(0).category=ipv4-addr; \
# target(0).node.address(0).address=$3; \
# target(0).service.port=$4; \
# last

#LOG:Nov  2 18:03:14 pix %PIX-2-106007: Deny inbound UDP from 7.8.9.0/53 to 1.2.3.4/33524 due to DNS Response
#LOG:Jul 12 19:34:42 smf-custlog-02 78.90.12.34/56.78.90.12 :Jul 12 12:31:46 PDT: %ASA-session-2-106007: Deny inbound UDP from 12.34.56.78/1048 to 90.12.34.56/53 due to DNS Query
regex=-106007: Deny inbound UDP from ([\d\.]+)/(\d+) to ([\d\.]+)/(\d+) due to DNS (Response|Query); \
 classification.text=Packet denied; \
 classification.reference(0).origin=vendor-specific; \
 classification.reference(0).meaning=asa_id; \
 classification.reference(0).name=106007; \
 classification.reference(0).url=http://www.cisco.com/en/US/docs/security/asa/asa70/system/message/logmsgs.html#wp1279764; \
 id=219; \
 revision=5; \
 analyzer(0).name=ASA; \
 analyzer(0).manufacturer=Cisco; \
 analyzer(0).class=Firewall; \
 assessment.impact.severity=medium; \
 assessment.impact.description=This is a connection-related message. This message is logged if a UDP packet containing a DNS $5 is denied.; \
 source(0).service.iana_protocol_name=UDP; \
 source(0).service.iana_protocol_number=17; \
 source(0).node.address(0).category=ipv4-addr; \
 source(0).node.address(0).address=$1; \
 source(0).service.port=$2; \
 target(0).service.iana_protocol_name=UDP; \
 target(0).service.iana_protocol_number=17; \
 target(0).node.address(0).category=ipv4-addr; \
 target(0).node.address(0).address=$3; \
 target(0).service.port=$4; \
 last

#LOG:Nov  2 18:03:14 pix %PIX-2-106001: Inbound TCP connection denied from 1.2.3.4/1007 to 5.6.7.8/139 flags SYN  on interface outside
#regex=-106001: Inbound TCP connection denied from ([\d\.]+)/(\d+) to ([\d\.]+)/(\d+) flags (.+)  on interface (\S+); \
# classification.text=Packet denied; \
# classification.reference(0).origin=vendor-specific; \
# classification.reference(0).meaning=asa_id; \
# classification.reference(0).name=106001; \
# classification.reference(0).url=http://www.cisco.com/en/US/docs/security/asa/asa70/system/message/logmsgs.html#wp1279735; \
# id=220; \
# revision=5; \
# analyzer(0).name=ASA; \
# analyzer(0).manufacturer=Cisco; \
# analyzer(0).class=Firewall; \
# assessment.impact.severity=medium; \
# assessment.impact.description=This is a connection-related message. This message occurs when an attempt to connect to an inside address is denied by your security policy.  The flags on this packet were $5.; \
# source(0).interface=$6; \
# source(0).service.iana_protocol_name=TCP; \
# source(0).service.iana_protocol_number=6; \
# source(0).node.address(0).category=ipv4-addr; \
# source(0).node.address(0).address=$1; \
# source(0).service.port=$2; \
# target(0).service.iana_protocol_name=TCP; \
# target(0).service.iana_protocol_number=6; \
# target(0).node.address(0).category=ipv4-addr; \
# target(0).node.address(0).address=$3; \
# target(0).service.port=$4; \
# additional_data(0).type=string; \
# additional_data(0).meaning=TCP flags; \
# additional_data(0).data=$5; \
# last

#LOG:Jul 10 22:18:51 somehost.ragingwire.net 12.34.56.78/90.12.34.56 :Jul 10 15:14:04 PDT: %ASA-session-2-106017: Deny IP due to Land Attack from 0.0.0.0 to 0.0.0.0
regex=-106017: Deny IP due to Land Attack from ([\d\.]+) to ([\d\.]+); \
 classification.text=Land Attack; \
 classification.reference(0).origin=vendor-specific; \
 classification.reference(0).meaning=asa_id; \
 classification.reference(0).name=106017; \
 classification.reference(0).url=http://www.cisco.com/en/US/docs/security/asa/asa70/system/message/logmsgs.html#wp1279850; \
 id=221; \
 revision=3; \
 analyzer(0).name=ASA; \
 analyzer(0).manufacturer=Cisco; \
 analyzer(0).class=Firewall; \
 assessment.impact.severity=medium; \
 assessment.impact.completion=failed; \
 assessment.impact.description=The Cisco ASA received a packet with the IP source address equal to the IP destination, and the destination port equal to the source port. This message indicates a spoofed packet that is designed to attack systems. This attack is referred to as a Land Attack.; \
 source(0).node.address(0).category=ipv4-addr; \
 source(0).node.address(0).address=$1; \
 target(0).node.address(0).category=ipv4-addr; \
 target(0).node.address(0).address=$2; \
 last

#LOG:Jul 12 17:01:40 172.16.1.26.smf.ragingwire.net 69.80.209.4/69.80.209.4 :Jul 12 09:57:12 PDT: %ASA-session-3-305006: regular translation creation failed for icmp src PROD-01:10.10.1.180 dst OUTSIDE-01:ftp-prod01_nat (type 3, code 10)
regex=-305006: regular translation creation failed for icmp src (\S+):(\S+) dst (\S+):(\S+) \(type (\d+), code (\d+)\); \
 classification.text=Broadcast address translation request; \
 classification.reference(0).origin=vendor-specific; \
 classification.reference(0).meaning=asa_id; \
 classification.reference(0).name=305006; \
 classification.reference(0).url=http://www.cisco.com/en/US/products/sw/secursw/ps2120/products_system_message_guide_chapter09186a008051a0cd.html; \
 classification.reference(1).origin=vendor-specific; \
 classification.reference(1).meaning=asa_severity; \
 classification.reference(1).name=3; \
 classification.reference(1).url=http://www.cisco.com/en/US/products/sw/secursw/ps2120/products_system_message_guide_chapter09186a008051a0ca.html; \
 id=222; \
 revision=3; \
 analyzer(0).name=ASA; \
 analyzer(0).manufacturer=Cisco; \
 analyzer(0).class=Firewall; \
 assessment.impact.severity=medium; \
 assessment.impact.completion=failed; \
 assessment.impact.type=recon; \
 assessment.impact.description=The firewall has received a request to assign a static NAT translation for a broadcast address, which is illegal.  This is commonly an indicator of a network mapping attempt.; \
 source(0).node.address(0).address=$2; \
 source(0).service.iana_protocol_name=icmp; \
 source(0).service.iana_protocol_number=1; \
 source(0).interface=$1; \
 target(0).node.address(0).address=$4; \
 target(0).service.iana_protocol_name=icmp; \
 target(0).service.iana_protocol_number=1; \
 target(0).interface=$3; \
 additional_data(0).type=integer; \
 additional_data(0).meaning=ICMP type; \
 additional_data(0).data=$5; \
 additional_data(1).type=integer; \
 additional_data(1).meaning=ICMP code; \
 additional_data(1).data=$6; \
 last

#LOG:Jul 12 22:14:10 smf-custlog-02 somehost/somehost :Jul 12 15:09:13 PDT: %PIX-ip-4-313003: Invalid destination for ICMP error message: icmp src outside:12.34.56.78 dst inside:12.34.56.78 (type 3, code 3) on outside interface.  Original IP payload: udp src 12.34.56.78/31260 dst 12.34.56.78/1026.
regex=-313003: Invalid destination for ICMP error message: icmp src (\S+):([\d\.]+) dst (\S+):([\d\.]+) \(type (\d+), code (\d+)\); \
 classification.text=ICMP destination/source mismatch; \
 classification.reference(0).origin=vendor-specific; \
 classification.reference(0).meaning=asa_id; \
 classification.reference(0).name=313003; \
 classification.reference(0).url=http://www.cisco.com/en/US/docs/security/asa/asa70/system/message/logmsgs.html#wp1281049; \
 id=223; \
 revision=3; \
 analyzer(0).name=ASA; \
 analyzer(0).manufacturer=Cisco; \
 analyzer(0).class=Firewall; \
 assessment.impact.severity=medium; \
 assessment.impact.completion=failed; \
 assessment.impact.type=recon; \
 assessment.impact.description=The destination for the ICMP error message is different than the source of the IP packet that induced the ICMP error message.  This could be an active network probe, an attempt to use the ICMP error message as a covert channel, or a misbehaving IP host.; \
 source(0).node.address(0).category=ipv4-addr; \
 source(0).node.address(0).address=$2; \
 source(0).service.iana_protocol_name=icmp; \
 source(0).service.iana_protocol_number=1; \
 source(0).interface=$1; \
 target(0).node.address(0).category=ipv4-addr; \
 target(0).node.address(0).address=$4; \
 target(0).service.iana_protocol_name=icmp; \
 target(0).service.iana_protocol_number=1; \
 target(0).interface=$3; \
 additional_data(0).type=integer; \
 additional_data(0).meaning=ICMP type; \
 additional_data(0).data=$5; \
 additional_data(1).type=integer; \
 additional_data(1).meaning=ICMP code; \
 additional_data(1).data=$6; \
 last

#LOG: 06-30-2009 17:25:09 Local0.Debug 172.19.1.1 Jun 30 2009 07:08:20: %ASA-7-710005: TCP request discarded from 172.19.1.6/1303 to inside:172.19.1.1/2601
regex=-710005: (TCP|UDP) request discarded from ([\d\.]+)/(\d+) to (\S+):([\d\.]+)/(\d+); \
 classification.text=$1 request discarded; \
 classification.reference(0).origin=vendor-specific; \
 classification.reference(0).meaning=asa_id; \
 classification.reference(0).name=710005; \
 classification.reference(0).url=http://www.cisco.com/en/US/docs/security/asa/asa70/system/message/logmsgs.html#wp1285746; \
 id=224; \
 revision=1; \
 analyzer(0).name=ASA; \
 analyzer(0).manufacturer=Cisco; \
 analyzer(0).class=Firewall; \
 assessment.impact.severity=info; \
 assessment.impact.completion=failed; \
 assessment.impact.type=recon; \
 assessment.impact.description=The appliance does not have a UDP server that services the UDP request. The message can also indicate a TCP packet that does not belong to any session on the security appliance. In addition, this message appears (with the snmp service) when the security appliance receives an SNMP request with an empty payload, even if it is from an authorized host. With the snmp service, this message occurs a maximum of 1 time every 10 seconds so that the log receiver is not overwhelmed.; \
 source(0).node.address(0).category=ipv4-addr; \
 source(0).node.address(0).address=$2; \
 source(0).service.iana_protocol_name=$1; \
 source(0).service.port=$3; \
 target(0).node.address(0).category=ipv4-addr; \
 target(0).node.address(0).address=$5; \
 target(0).service.iana_protocol_name=$1; \
 target(0).service.port=$6; \
 target(0).interface=$4; \
 last


# Events taken from the Cisco System Log Messages List that will need rules
# (include 'attack' || 'intrusion' || 'probe' || 'covert' in description; no log samples):
# %PIX-1-106021: Deny protocol reverse path check from source_address to dest_address on interface interface_name
# %PIX-1-106022: Deny protocol connection spoof from source_address to dest_address on interface interface_name
# %PIX-1-106101 The number of ACL log deny-flows has reached limit (number).
# %PIX-1-107001: RIP auth failed from IP_address: version=number, type=string, mode=string, sequence=number on interface interface_name
# %PIX-1-107002: RIP pkt failed from IP_address: version=number on interface interface_name
# %PIX-4-109017: User at IP_address exceeded auth proxy connection limit (max)
# %PIX-2-201003: Embryonic limit exceeded nconns/elimit for outside_address/outside_port (global_address) inside_address/inside_port on interface interface_name
# %PIX-3-320001: The subject name of the peer cert is not allowed for connection
# %PIX-4-402101: decaps: rec'd IPSEC packet has invalid spi for destaddr=dest_address, prot=protocol, spi=number
# %PIX-4-402102: decapsulate: packet missing {AH|ESP}, destadr=dest_address, actual prot=protocol
# %PIX-4-405002: Received mac mismatch collision from IP_address/mac_address for authenticated host
# %PIX-7-710006: protocol request discarded from source_address to interface_name:dest_address
# %PIX-2-106020: Deny IP teardrop fragment (size = number, offset = number) from IP_address to IP_address
# %PIX-4-209004: Invalid IP fragment, size = bytes exceeds maximum size = bytes: src = IP_address, dest = IP_address, proto = protocol, id = number
# %PIX-4-209005: Discard IP fragment set with more than number elements: src = IP_address, dest = IP_address, proto = protocol, id = number