mirror of
https://github.com/falcosecurity/falco.git
synced 2025-06-28 15:47:25 +00:00
Merge pull request #16 from draios/more-service-rules
More service rules
This commit is contained in:
commit
2d6c6d7d2d
@ -117,7 +117,7 @@ not proc.name in (su, sudo) and (adduser_binaries or login_binaries or passwd_bi
|
|||||||
# (we may need to add additional checks against false positives, see: https://bugs.launchpad.net/ubuntu/+source/rkhunter/+bug/86153)
|
# (we may need to add additional checks against false positives, see: https://bugs.launchpad.net/ubuntu/+source/rkhunter/+bug/86153)
|
||||||
(evt.type = creat or evt.arg.flags contains O_CREAT) and proc.name != blkid and fd.directory = /dev and fd.name != /dev/null | %evt.time: file created in /dev (%user.name %proc.name %evt.dir %evt.type %evt.args %fd.name)
|
(evt.type = creat or evt.arg.flags contains O_CREAT) and proc.name != blkid and fd.directory = /dev and fd.name != /dev/null | %evt.time: file created in /dev (%user.name %proc.name %evt.dir %evt.type %evt.args %fd.name)
|
||||||
|
|
||||||
# Elasticsearch connections ports
|
# Elasticsearch ports
|
||||||
elasticsearch_cluster_port: fd.sport=9300
|
elasticsearch_cluster_port: fd.sport=9300
|
||||||
elasticsearch_api_port: fd.sport=9200
|
elasticsearch_api_port: fd.sport=9200
|
||||||
elasticsearch_port: elasticsearch_cluster_port or elasticsearch_api_port
|
elasticsearch_port: elasticsearch_cluster_port or elasticsearch_api_port
|
||||||
@ -125,7 +125,7 @@ user.name = elasticsearch and inbound and not elasticsearch_port | %evt.time: Un
|
|||||||
user.name = elasticsearch and outbound and not elasticsearch_cluster_port | %evt.time: Unexpected Elasticsearch outbound port (%user.name %proc.name %evt.dir %evt.type %evt.args %fd.name)
|
user.name = elasticsearch and outbound and not elasticsearch_cluster_port | %evt.time: Unexpected Elasticsearch outbound port (%user.name %proc.name %evt.dir %evt.type %evt.args %fd.name)
|
||||||
|
|
||||||
|
|
||||||
# ActiveMQ connections ports
|
# ActiveMQ ports
|
||||||
activemq_cluster_port: fd.sport=61616
|
activemq_cluster_port: fd.sport=61616
|
||||||
activemq_web_port: fd.sport=8161
|
activemq_web_port: fd.sport=8161
|
||||||
activemq_port: activemq_web_port or activemq_cluster_port
|
activemq_port: activemq_web_port or activemq_cluster_port
|
||||||
@ -133,7 +133,7 @@ user.name = activemq and inbound and not activemq_port | %evt.time: Unexpected A
|
|||||||
user.name = activemq and outbound and not activemq_cluster_port | %evt.time: Unexpected ActiveMQ outbound port (%user.name %proc.name %evt.dir %evt.type %evt.args %fd.name)
|
user.name = activemq and outbound and not activemq_cluster_port | %evt.time: Unexpected ActiveMQ outbound port (%user.name %proc.name %evt.dir %evt.type %evt.args %fd.name)
|
||||||
|
|
||||||
|
|
||||||
# Cassandra connections ports
|
# Cassandra ports
|
||||||
# https://docs.datastax.com/en/cassandra/2.0/cassandra/security/secureFireWall_r.html
|
# https://docs.datastax.com/en/cassandra/2.0/cassandra/security/secureFireWall_r.html
|
||||||
cassandra_thrift_client_port: fd.sport=9160
|
cassandra_thrift_client_port: fd.sport=9160
|
||||||
cassandra_cql_port: fd.sport=9042
|
cassandra_cql_port: fd.sport=9042
|
||||||
@ -145,7 +145,7 @@ cassandra_port: cassandra_thrift_client_port or cassandra_cql_port or cassandra_
|
|||||||
user.name = cassandra and inbound and not cassandra_port | %evt.time: Unexpected Cassandra inbound port (%user.name %proc.name %evt.dir %evt.type %evt.args %fd.name)
|
user.name = cassandra and inbound and not cassandra_port | %evt.time: Unexpected Cassandra inbound port (%user.name %proc.name %evt.dir %evt.type %evt.args %fd.name)
|
||||||
user.name = cassandra and outbound and not (cassandra_ssl_cluster_port or cassandra_cluster_port) | %evt.time: Unexpected Cassandra outbound port (%user.name %proc.name %evt.dir %evt.type %evt.args %fd.name)
|
user.name = cassandra and outbound and not (cassandra_ssl_cluster_port or cassandra_cluster_port) | %evt.time: Unexpected Cassandra outbound port (%user.name %proc.name %evt.dir %evt.type %evt.args %fd.name)
|
||||||
|
|
||||||
# Couchbase connections ports
|
# Couchbase ports
|
||||||
# http://docs.couchbase.com/admin/admin/Install/install-networkPorts.html
|
# http://docs.couchbase.com/admin/admin/Install/install-networkPorts.html
|
||||||
# Web Administration Port
|
# Web Administration Port
|
||||||
couchbase_web_port: fd.sport=8091
|
couchbase_web_port: fd.sport=8091
|
||||||
@ -179,14 +179,14 @@ user.name = couchbase and inbound and not couchbase_port | %evt.time: Unexpected
|
|||||||
user.name = couchbase and outbound and not couchbase_internal_port | %evt.time: Unexpected Couchbase inbound port (%user.name %proc.name %evt.dir %evt.type %evt.args %fd.name)
|
user.name = couchbase and outbound and not couchbase_internal_port | %evt.time: Unexpected Couchbase inbound port (%user.name %proc.name %evt.dir %evt.type %evt.args %fd.name)
|
||||||
|
|
||||||
|
|
||||||
# Couchdb connections ports
|
# Couchdb ports
|
||||||
# https://github.com/davisp/couchdb/blob/master/etc/couchdb/local.ini
|
# https://github.com/davisp/couchdb/blob/master/etc/couchdb/local.ini
|
||||||
couchdb_httpd_port: fd.sport=5984
|
couchdb_httpd_port: fd.sport=5984
|
||||||
couchdb_httpd_ssl_port: fd.sport=6984
|
couchdb_httpd_ssl_port: fd.sport=6984
|
||||||
# xxx can't tell what clustering ports are used. not writing rules for this
|
# xxx can't tell what clustering ports are used. not writing rules for this
|
||||||
# yet.
|
# yet.
|
||||||
|
|
||||||
# Etcd connections ports
|
# Etcd ports
|
||||||
etcd_client_port: fd.sport=2379
|
etcd_client_port: fd.sport=2379
|
||||||
etcd_peer_port: fd.sport=2380
|
etcd_peer_port: fd.sport=2380
|
||||||
# need to double-check which user etcd runs as
|
# need to double-check which user etcd runs as
|
||||||
@ -194,7 +194,7 @@ user.name = etcd and inbound and not (etcd_client_port or etcd_peer_port) | %evt
|
|||||||
user.name = etcd and outbound and not couchbase_internal_port | %evt.time: Unexpected Etcd outbound port (%user.name %proc.name %evt.dir %evt.type %evt.args %fd.name)
|
user.name = etcd and outbound and not couchbase_internal_port | %evt.time: Unexpected Etcd outbound port (%user.name %proc.name %evt.dir %evt.type %evt.args %fd.name)
|
||||||
|
|
||||||
|
|
||||||
# Fluentd connections ports
|
# Fluentd ports
|
||||||
fluentd_http_port: fd.sport=9880
|
fluentd_http_port: fd.sport=9880
|
||||||
fluentd_forward_port: fd.sport=24224
|
fluentd_forward_port: fd.sport=24224
|
||||||
user.name = td-agent and inbound and not (fluentd_forward_port or fluentd_http_port) | %evt.time: Unexpected Fluentd inbound port (%user.name %proc.name %evt.dir %evt.type %evt.args %fd.name)
|
user.name = td-agent and inbound and not (fluentd_forward_port or fluentd_http_port) | %evt.time: Unexpected Fluentd inbound port (%user.name %proc.name %evt.dir %evt.type %evt.args %fd.name)
|
||||||
@ -204,4 +204,39 @@ user.name = td-agent and outbound and not fluentd_forward_port | %evt.time: Unex
|
|||||||
# http://gearman.org/protocol/
|
# http://gearman.org/protocol/
|
||||||
user.name = gearman and outbound and outbound and not fd.sport = 4730 | %evt.time: Unexpected Gearman outbound port (%user.name %proc.name %evt.dir %evt.type %evt.args %fd.name)
|
user.name = gearman and outbound and outbound and not fd.sport = 4730 | %evt.time: Unexpected Gearman outbound port (%user.name %proc.name %evt.dir %evt.type %evt.args %fd.name)
|
||||||
|
|
||||||
|
# Zookeeper
|
||||||
|
zookeeper_port: 2181
|
||||||
|
|
||||||
|
# HBase ports
|
||||||
|
# http://blog.cloudera.com/blog/2013/07/guide-to-using-apache-hbase-ports/
|
||||||
|
hbase_master_port: fd.sport = 60000
|
||||||
|
hbase_master_info_port: fd.sport = 60010
|
||||||
|
hbase_regionserver_port: fd.sport = 60020
|
||||||
|
hbase_regionserver_info_port: fd.sport = 60030
|
||||||
|
hbase_rest_port: fd.sport = 8080
|
||||||
|
hbase_rest_info_port: fd.sport = 8085
|
||||||
|
hbase_regionserver_thrift_port: fd.sport = 9090
|
||||||
|
hbase_thrift_info_port: fd.sport = 9095
|
||||||
|
|
||||||
|
# If you're not running HBase under the 'hbase' user, adjust first expression
|
||||||
|
# in each rule below
|
||||||
|
user.name = hbase and inbound and not (hbase_master_port or hbase_master_info_port or hbase_regionserver_port or hbase_regionserver_info_port or hbase_rest_port or hbase_rest_info_port or hbase_regionserver_thrift_port or hbase_thrift_info_port) | %evt.time: Unexpected HBase inbound port (%user.name %proc.name %evt.dir %evt.type %evt.args %fd.name)
|
||||||
|
user.name = hbase and outbound and not (zookeeper_port or hbase_master_port or hbase_regionserver_port) | %evt.time: Unexpected HBase outbound port (%user.name %proc.name %evt.dir %evt.type %evt.args %fd.name)
|
||||||
|
|
||||||
|
|
||||||
|
# Kafka ports
|
||||||
|
user.name = kafka and inbound and fd.sport != 9092 | %evt.time: Unexpected Kafka inbound port (%user.name %proc.name %evt.dir %evt.type %evt.args %fd.name)
|
||||||
|
|
||||||
|
# Memcached ports
|
||||||
|
user.name = memcached and inbound and fd.sport != 11211 | %evt.time: Unexpected Memcached inbound port (%user.name %proc.name %evt.dir %evt.type %evt.args %fd.name)
|
||||||
|
|
||||||
|
# MongoDB ports
|
||||||
|
mongodb_server_port: fd.sport = 27017
|
||||||
|
mongodb_shardserver_port: fd.sport = 27018
|
||||||
|
mongodb_configserver_port: fd.sport = 27019
|
||||||
|
mongodb_webserver_port: fd.sport = 28017
|
||||||
|
|
||||||
|
user.name = mongodb and inbound and not (mongodb_server_port or mongodb_shardserver_port or mongodb_configserver_port or mongodb_webserver_port) | %evt.time: Unexpected MongoDF inbound port (%user.name %proc.name %evt.dir %evt.type %evt.args %fd.name)
|
||||||
|
|
||||||
|
# MySQL ports
|
||||||
|
user.name = mysql and inbound and fd.sport != 3306 | %evt.time: Unexpected MySQL inbound port (%user.name %proc.name %evt.dir %evt.type %evt.args %fd.name)
|
||||||
|
Loading…
Reference in New Issue
Block a user