File: cisco-malware.rules

package info (click to toggle)
sagan-rules 1:20170725-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 3,460 kB
  • sloc: makefile: 5
file content (57 lines) | stat: -rw-r--r-- 9,823 bytes parent folder | download | duplicates (2)
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
# Sagan cisco-malware.rules
# Copyright (c) 2009-2017, Quadrant Information Security <www.quadrantsec.com>
# All rights reserved.
#
# Please submit any custom rules or ideas to sagan-submit@quadrantsec.com or the sagan-sigs mailing list
#
#*************************************************************
#  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
#  following conditions are met:
#
#  * Redistributions of source code must retain the above copyright notice, this list of conditions and the following
#    disclaimer.
#  * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
#    following disclaimer in the documentation and/or other materials provided with the distribution.
#  * Neither the name of the nor the names of its contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
#  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS AND ANY EXPRESS OR IMPLIED WARRANTIES,
#  INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
#  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
#  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
#  SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
#  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
#  USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
#

# Added by Champ Clark - 
# These rules trigger if you are dropping (denying) traffic to zeroaccess already.

alert any $HOME_NET any -> $EXTERNAL_NET any (msg: "[CISCO-MALWARE] ZeroAccess UDP port 16464 detected [denied] [5/5]"; program: %ASA*-4-106023|%PIX-4-106023; content: "/16464 by access-group"; content: "Deny udp src inside"; default_proto: udp; default_dst_port: 16464; classtype: trojan-activity; reference: url, wiki.quadrantsec.com/bin/view/Main/5001724; parse_src_ip: 1; parse_dst_ip: 2; parse_port; threshold: type limit, track by_src, count 5, seconds 300; after: track by_src, count 5, seconds 300; sid: 5001724; rev: 7;)
alert any $HOME_NET any -> $EXTERNAL_NET any (msg: "[CISCO-MALWARE] ZeroAccess UDP port 16465 detected [denied] [5/5]"; program: %ASA*-4-106023|%PIX-4-106023; content: "/16465 by access-group"; content: "Deny udp src inside"; default_proto: udp; default_dst_port: 16465; classtype: trojan-activity; reference: url, wiki.quadrantsec.com/bin/view/Main/5001725; parse_src_ip: 1; parse_dst_ip: 2; parse_port; threshold: type limit, track by_src, count 5, seconds 300; after: track by_src, count 5, seconds 300; sid: 5001725; rev: 7;)
alert any $HOME_NET any -> $EXTERNAL_NET any (msg: "[CISCO-MALWARE] ZeroAccess UDP port 16470 detected [denied] [5/5]"; program: %ASA*-4-106023|%PIX-4-106023; content: "/16470 by access-group"; content: "Deny udp src inside"; default_proto: udp; default_dst_port: 16470; classtype: trojan-activity; reference: url, wiki.quadrantsec.com/bin/view/Main/5001726; parse_src_ip: 1; parse_dst_ip: 2; parse_port; threshold: type limit, track by_src, count 5, seconds 300; after: track by_src, count 5, seconds 300; sid: 5001726; rev: 7;)
alert any $HOME_NET any -> $EXTERNAL_NET any (msg: "[CISCO-MALWARE] ZeroAccess UDP port 16471 detected [denied] [5/5]"; program: %ASA*-4-106023|%PIX-4-106023; content: "/16471 by access-group"; content: "Deny udp src inside"; default_proto: udp; default_dst_port: 16471; classtype: trojan-activity; reference: url, wiki.quadrantsec.com/bin/view/Main/5001727; parse_src_ip: 1; parse_dst_ip: 2; parse_port; threshold: type limit, track by_src, count 5, seconds 300; after: track by_src, count 5, seconds 300; sid: 5001727; rev: 7;)

# Older TCP port 13620 (pre-Q2 2012)

alert any $HOME_NET any -> $EXTERNAL_NET any (msg: "[CISCO-MALWARE] ZeroAccess pre-2012 TCP port 13620 detected [denied] [5/5]"; program: %ASA*-4-106023|%PIX-4-106023; content: "/13620 by access-group"; content: "Deny tcp src inside"; default_proto: tcp; default_dst_port: 13620; classtype: trojan-activity; reference: url, wiki.quadrantsec.com/bin/view/Main/5001790; parse_src_ip: 1; parse_dst_ip: 2; parse_port; threshold: type limit, track by_src, count 5, seconds 300; after: track by_src, count 5, seconds 300; sid: 5001790; rev: 8;)

alert any $HOME_NET any -> $EXTERNAL_NET any (msg: "[CISCO-MALWARE] ZeroAccess UDP port 16464 detected [allowed] [5/5]"; program: %ASA*-6-302015|%PIX-6-302015; content: "/16464 "; content: "outbound UDP"; default_proto: udp; default_dst_port: 16464; classtype: trojan-activity; reference: url, wiki.quadrantsec.com/bin/view/Main/5001858; parse_src_ip: 1; parse_dst_ip: 2; parse_port; threshold: type limit, track by_src, count 5, seconds 300; after: track by_src, count 5, seconds 300; sid: 5001858; rev: 4;)
alert any $HOME_NET any -> $EXTERNAL_NET any (msg: "[CISCO-MALWARE] ZeroAccess UDP port 16465 detected [allowed] [5/5]"; program: %ASA*-6-302015|%PIX-6-302015; content: "/16465 "; content: "outbound UDP"; default_proto: udp; default_dst_port: 16465; classtype: trojan-activity; reference: url, wiki.quadrantsec.com/bin/view/Main/5001859; parse_src_ip: 1; parse_dst_ip: 2; parse_port; threshold: type limit, track by_src, count 5, seconds 300; after: track by_src, count 5, seconds 300; sid: 5001859; rev: 4;)
alert any $HOME_NET any -> $EXTERNAL_NET any (msg: "[CISCO-MALWARE] ZeroAccess UDP port 16470 detected [allowed] [5/5]"; program: %ASA*-6-302015|%PIX-6-302015; content: "/16470 "; content: "outbound UDP"; default_proto: udp; default_dst_port: 16470; classtype: trojan-activity; reference: url, wiki.quadrantsec.com/bin/view/Main/5001860; parse_src_ip: 1; parse_dst_ip: 2; parse_port; threshold: type limit, track by_src, count 5, seconds 300; after: track by_src, count 5, seconds 300; sid: 5001860; rev: 4;)
alert any $HOME_NET any -> $EXTERNAL_NET any (msg: "[CISCO-MALWARE] ZeroAccess UDP port 16471 detected [allowed] [5/5]"; program: %ASA*-6-302015|%PIX-6-302015; content: "/16470 "; content: "outbound UDP"; default_proto: udp; default_dst_port: 16470; classtype: trojan-activity; reference: url, wiki.quadrantsec.com/bin/view/Main/5001861; parse_src_ip: 1; parse_dst_ip: 2; parse_port; threshold: type limit, track by_src, count 5, seconds 300; after: track by_src, count 5, seconds 300; sid: 5001861; rev: 4;)

# Older TCP port 13620 (pre-Q2 2012)

alert any $HOME_NET any -> $EXTERNAL_NET any (msg: "[CISCO-MALWARE] ZeroAccess TCP port 13620 detected [allowed] [5/5]"; program: %ASA*-6-302013|%PIX-6-302013; content: "/13620 "; content: "outbound TCP"; default_proto: tcp; default_dst_port: 13620; classtype: trojan-activity; reference: url, wiki.quadrantsec.com/bin/view/Main/5001862; parse_src_ip: 1; parse_dst_ip: 2; parse_port; threshold: type limit, track by_src, count 5, seconds 300; after: track by_src, count 5, seconds 300; sid: 5001862; rev: 4;)


# 10.20.1.7|local7|info|info|be|2014-02-19|20:25:11|344306| Feb 19 15:25:11.570: %SEC-6-IPACCESSLOGP: list control_outbound denied tcp 10.3.2.3(4343) -> 10.99.0.7(50122), 2 packets  

alert any $HOME_NET any -> $EXTERNAL_NET any (msg: "[CISCO-MALWARE] ACE ZeroAccess UDP port 16464 detected [5/5]"; content: "%SEC-6-IPACCESSLOGP:"; content: "|28|16464|29|"; content: " udp "; default_proto: udp; default_dst_port: 16464; classtype: trojan-activity; reference: url, wiki.quadrantsec.com/bin/view/Main/5001965; parse_src_ip: 1; parse_dst_ip: 2; parse_port; threshold: type limit, track by_src, count 5, seconds 300; after: track by_src, count 5, seconds 300; sid: 5001965; rev: 4;)
alert any $HOME_NET any -> $EXTERNAL_NET any (msg: "[CISCO-MALWARE] ACE ZeroAccess UDP port 16465 detected [5/5]"; content: "%SEC-6-IPACCESSLOGP:"; content: "|28|16465|29|"; content: " udp "; default_proto: udp; default_dst_port: 16465; classtype: trojan-activity; reference: url, wiki.quadrantsec.com/bin/view/Main/5001966; parse_src_ip: 1; parse_dst_ip: 2; parse_port; threshold: type limit, track by_src, count 5, seconds 300; after: track by_src, count 5, seconds 300; sid: 5001966; rev: 4;)
alert any $HOME_NET any -> $EXTERNAL_NET any (msg: "[CISCO-MALWARE] ACE ZeroAccess UDP port 16470 detected [5/5]"; content: "%SEC-6-IPACCESSLOGP:"; content: "|28|16470|29|"; content: " udp "; default_proto: udp; default_dst_port: 16470; classtype: trojan-activity; reference: url, wiki.quadrantsec.com/bin/view/Main/5001967; parse_src_ip: 1; parse_dst_ip: 2; parse_port; threshold: type limit, track by_src, count 5, seconds 300; after: track by_src, count 5, seconds 300; sid: 5001967; rev: 4;)
alert any $HOME_NET any -> $EXTERNAL_NET any (msg: "[CISCO-MALWARE] ACE ZeroAccess UDP port 16471 detected [5/5]"; content: "%SEC-6-IPACCESSLOGP:"; content: "|28|16471|29|"; content: " udp "; default_proto: udp; default_dst_port: 16471; classtype: trojan-activity; reference: url, wiki.quadrantsec.com/bin/view/Main/5001968; parse_src_ip: 1; parse_dst_ip: 2; parse_port; threshold: type limit, track by_src, count 5, seconds 300; after: track by_src, count 5, seconds 300; sid: 5001968; rev: 4;)
alert any $HOME_NET any -> $EXTERNAL_NET any (msg: "[CISCO-MALWARE] ACE ZeroAccess pre-2012 TCP port 13620 [5/5]"; content: "%SEC-6-IPACCESSLOGP:"; content: "|28|13620|29|"; content: " tcp "; default_proto: tcp; default_dst_port: 13620; classtype: trojan-activity; reference: url, wiki.quadrantsec.com/bin/view/Main/5001969; parse_src_ip: 1; parse_dst_ip: 2; parse_port; threshold: type limit, track by_src, count 5, seconds 300; after: track by_src, count 5, seconds 300; sid: 5001969; rev: 4;)