Skip to content

Commit b432b45

Browse files
committed
add spam and malware categories
1 parent cd2ebeb commit b432b45

File tree

6 files changed

+16
-5
lines changed

6 files changed

+16
-5
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@ visualization/*.zip
44
visualization/LICENSE.txt
55
src/riskdb/builder/build/*.json
66
src/riskdb/builder/build/*.mmdb
7+
src/riskdb/dnsbl/*.txt
8+
src/riskdb/dnsbl/*.json
9+
src/riskdb/dnsbl/*.zip

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ curl -XPOST https://risk.oxl.app/api/report --data '{"ip": "1.1.1.1", "cat": "at
188188

189189
```
190190

191-
Available categories are: `bot, probe, rate, attack, crawler, hosting, vpn, proxy`
191+
Available categories are: `bot, probe, rate, attack, crawler, spam, malware, hosting, vpn, proxy`
192192

193193
**Limits**:
194194

src/riskdb/api/apidocs/report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ definitions:
2323
description: 'IP of the Abuser'
2424
cat:
2525
type: 'string'
26-
enum: ['bot', 'attack', 'crawler', 'rate', 'hosting', 'vpn', 'proxy', 'probe']
26+
enum: ['bot', 'attack', 'crawler', 'rate', 'hosting', 'vpn', 'proxy', 'probe', 'spam', 'malware']
2727
description: 'Kind of abuse'
2828
cmt:
2929
type: 'string'

src/riskdb/builder/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from riskdb.config import DL_DIR
44

55
INFO_CATEGORIES = ['hosting', 'vpn', 'proxy']
6-
CATEGORIES = ['bot', 'probe', 'rate', 'attack', 'crawler']
6+
CATEGORIES = ['bot', 'probe', 'rate', 'attack', 'crawler', 'spam', 'malware']
77

88
# source: https://github.com/O-X-L/geoip-asn
99
ASN_JSON_FILE = DL_DIR / 'asn_full.json' # https://geoip.oxl.app/file/asn_full.json.zip

visualization/net_tree.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
const WIDTH = window.innerWidth;
6262
const HEIGHT = window.innerHeight - 50;
6363
const NET_PAD = 5;
64-
const CATEGORIES = ['sum', 'bot', 'probe', 'rate', 'attack', 'crawler'];
64+
const CATEGORIES = ['sum', 'bot', 'probe', 'rate', 'attack', 'crawler', 'spam', 'malware'];
6565
const COLORSCHEME = [
6666
// red-ish
6767
"#B93022", "#FF383D", "#D32669", "#C43F03", "#E70291", "#E211C0", "#6A3D52", "#C75839", "#E7A8B0",

visualization/world_map.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
SRC_PATH = Path(__file__).resolve().parent
1313
HIGHLIGHT_TOP_N = 20
14-
CATEGORIES = ['sum', 'bot', 'probe', 'rate', 'attack', 'crawler']
14+
CATEGORIES = ['sum', 'bot', 'probe', 'rate', 'attack', 'crawler', 'spam', 'malware']
1515

1616
# todo: add change to last month
1717
DATA = {
@@ -46,6 +46,14 @@
4646
'name': 'Reported crawlers',
4747
'format': '{0}',
4848
},
49+
'spam': {
50+
'name': 'Reported spam',
51+
'format': '{0}',
52+
},
53+
'malware': {
54+
'name': 'Reported malware',
55+
'format': '{0}',
56+
},
4957
'ip4': {
5058
'name': 'Reports from IPv4',
5159
'format': '{0}',

0 commit comments

Comments
 (0)