-
Notifications
You must be signed in to change notification settings - Fork 6
/
rtmbot.conf
90 lines (75 loc) · 3.52 KB
/
rtmbot.conf
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
DEBUG: True # make this False in production
SLACK_TOKEN: "" # "xoxb-11111111111-222222222222222" # api token
ACTIVE_PLUGINS:
- plugins.URLMonitor.URLMonitor
- plugins.AddressMonitor.AddressMonitor
# - plugins.EarlyWarning.EarlyWarning
- plugins.utils.CommunityWarning
- plugins.utils.ChannelJoiner
# Channel Joiner
# URL Monitor
# User Checker (check emails and compare cross-slack)
# Address Checker
# Essential
# - TODO Adds bot to all channels first step
# - Private channels will monitor links (from his database and google safebrowser API) and send message to user if harmful
# - Public channels ^ same
# - DM's and Slackbot ^ same after "testing is done"
# - DM who installed the bot gets a Malware & phishing link sent to them (owner)
# - Will monitor DM's and slackbot (after next release) - analyze any link - send separate DM to the person who received the link saying it's a scam as well as the user gets a DM
# - internal database and utilizing google safebrowser API
# - Automated blacklist created from bot
# - Whitelist links
# Nice to Haves
# - CRM For all users - details about email address / location
# - Links analytics - shows details about shared links in analytics
# - Team usage updates
# - Trying to build machine learning to find bad actors across multiple communities.
# - Said he needs to "rethink" dming every time someone receives a harmful link because you don't want 4K dms
# - create a bot that acts as a honeypot user, that any slack community setup
# - all bots connect to a realtime chat where they share information with each other
# - listens for dm's and slackbot
# - check urls
# - have a !warn function that can be called by trusted community members, which subsequently warns all admins
# - compare hash(email)'s of flagged users across slacs
# levenstein distance on messages and emails
ChannelJoiner:
# Allows you to define a list of channels to join.
DEBUG: True
JOIN_ALL_CHANS: False # Note Bot cannot join groups without an invite.
CHANNELS: # Define list of channels if JOIN_ALL_CHANS is False
- "#general"
CommunityWarning:
# Allows community to flag a user or url via !warn http://foo.bar or !warn @jarradhope
DEBUG: True
TRIGGER: "!warn"
MODERATE_CHAN: "#internal-moderator" # Note invite bot into this channel if private.
WHITELIST:
- "@jarradhope"
EarlyWarning:
DEBUG: True
PUB: ""
SUB: ""
URLMonitor:
# Monitors DM's, Channels & Groups for Bad URLS
DEBUG: True
# Channel which posts any detections, prepending ALERT_USERS to message for notification.
MODERATE_CHAN: "#internal-moderator" # Note invite bot into this channel if private.
MODERATORS:
- "@jarradhope"
# - "@here"
# Instructions to get a v4 key here: https://developers.google.com/safe-browsing/v4/get-started
GOOGLE_SAFE_BROWSING: True
GOOGLE_SAFE_BROWSING_API_KEY: ""
WARNING_ON_DETECTION: True
WARNING_MESSAGE : ":warning: Be careful clicking links. It may be safe to visit, but do not send your private keys, ETH or BTC to any address shown on unofficial websites. :warning:"
# BLACKLIST_REFRESH_RATE: 300 # TODO
BLACKLISTS:
# https://github.com/MyEtherWallet/ethereum-lists
- "https://raw.githubusercontent.com/MyEtherWallet/ethereum-lists/master/urls-darklist.json"
AddressMonitor:
# Monitors DM's, Channels & Groups for Addresses
DEBUG: True
ADDRESS_REGEX_WARNING: True
BLACKLISTS:
- "https://raw.githubusercontent.com/MyEtherWallet/ethereum-lists/master/addresses-darklist.json"