Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
165 changes: 123 additions & 42 deletions analyzers/AbuseIPDB/AbuseIPDB.json
Original file line number Diff line number Diff line change
@@ -1,47 +1,128 @@
{
"name": "AbuseIPDB",
"version": "1.0",
"author": "Matteo Lodi",
"url": "https://github.com/TheHive-Project/Cortex-Analyzers",
"license": "AGPL-v3",
"description": "Determine whether an IP was reported or not as malicious by AbuseIPDB",
"dataTypeList": ["ip"],
"baseConfig": "AbuseIPDB",
"command": "AbuseIPDB/abuseipdb.py",
"configurationItems": [
{
"name": "key",
"description": "API key for AbuseIPDB",
"type": "string",
"multi": false,
"required": true
},
{
"name": "days",
"description": "Check for IP Reports in the last X days",
"type": "number",
"multi": false,
"required": false,
"defaultValue": 30
}
],
"config": {
"check_tlp": true,
"max_tlp": 2,
"auto_extract": false
},
"registration_required": true,
"subscription_required": true,
"free_subscription": true,
"service_homepage": "https://www.abuseipdb.com/",
"service_logo": {
"path": "assets/abuseipdb.png",
"caption": "abuseipdb logo"
"name": "AbuseIPDB",
"version": "1.0",
"author": "Matteo Lodi",
"url": "https://github.com/TheHive-Project/Cortex-Analyzers",
"license": "AGPL-v3",
"description": "Determine whether an IP was reported or not as malicious by AbuseIPDB",
"dataTypeList": [
"ip"
],
"baseConfig": "AbuseIPDB",
"command": "AbuseIPDB/abuseipdb.py",
"configurationItems": [
{
"name": "key",
"description": "API key for AbuseIPDB",
"type": "string",
"multi": false,
"required": true
},
"screenshots": [
{
"name": "days",
"description": "Check for IP Reports in the last X days",
"type": "number",
"multi": false,
"required": false,
"defaultValue": 30
}
],
"config": {
"check_tlp": true,
"max_tlp": 2,
"auto_extract": false
},
"registration_required": true,
"subscription_required": true,
"free_subscription": true,
"service_homepage": "https://www.abuseipdb.com/",
"service_logo": {
"path": "assets/abuseipdb.png",
"caption": "abuseipdb logo"
},
"screenshots": [
{
"path": "assets/long_report.png",
"caption": "AbuseIPDB: Long report template"
}
],
"checks": [
{
"input": {
"data": "8.8.8.8",
"dataType": "ip",
"config": {
"key": "ENV:AbuseIPDB",
"days": 30,
"check_tlp": true,
"max_tlp": 2,
"auto_extract": false
}
},
"rules": [
{
"path": "$.success",
"expected": [
true
]
},
{
"path": "$.summary.taxonomies[*].level",
"expected": [
"malicious"
]
},
{
"path": "$.summary.taxonomies[*].namespace",
"expected": [
"AbuseIPDB"
]
},
{
"path": "$.summary.taxonomies[*].predicate",
"expected": [
"Records"
]
},
{
"path": "$.summary.taxonomies[*].value",
"expected": [
22
]
},
{
"path": "$.full.values[*].data.ipAddress",
"expected": [
"8.8.8.8"
]
},
{
"path": "$.full.values[*].data.usageType",
"expected": [
"Data Center/Web Hosting/Transit"
]
},
{
"path": "$.full.values[*].data.domain",
"expected": [
"google.com"
]
},
{
"path": "assets/long_report.png",
"caption": "AbuseIPDB: Long report template"
"path": "$.full.values[*].categories_strings[*]",
"expected": [
"Port Scan",
"Hacking",
"Brute Force",
"Exploited Host",
"SSH",
"unknown category",
"Web App Attack",
"IoT Targeted",
"Web Spam"
]
}
]
]
}
]
}
46 changes: 46 additions & 0 deletions analyzers/Abuse_Finder/Abuse_Finder.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,51 @@
"path": "assets/abuse_finder_longreport.png",
"caption": "Abuse_Finder: Long report template"
}
],
"checks": [
{
"input": {
"data": "strangebee.com",
"dataType": "domain"
},
"rules": [
{
"path": "$.success",
"expected": [
true
]
},
{
"path": "$.artifacts[*].data",
"expected": [
"abuse@support.gandi.net"
]
},
{
"path": "$.artifacts[*].dataType",
"expected": [
"mail"
]
},
{
"path": "$.full.abuse_finder.value",
"expected": [
"strangebee.com"
]
},
{
"path": "$.full.abuse_finder.names[*]",
"expected": [
"Gandi SAS"
]
},
{
"path": "$.full.abuse_finder.abuse[*]",
"expected": [
"abuse@support.gandi.net"
]
}
]
}
]
}
104 changes: 84 additions & 20 deletions analyzers/CIRCLHashlookup/CIRCLHashlookup.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,91 @@
"url": "https://github.com/TheHive-Project/Cortex-Analyzers",
"version": "1.1",
"description": "CIRCL hashlookup uses a public API to lookup hash values against databases of known good files",
"dataTypeList": ["hash"],
"dataTypeList": [
"hash"
],
"baseConfig": "CIRCLHashlookup",
"config": {
"check_tlp": true,
"max_tlp": 2,
"check_pap": true,
"max_pap": 2
},
"check_tlp": true,
"max_tlp": 2,
"check_pap": true,
"max_pap": 2
},
"command": "CIRCLHashlookup/circlhashlookup_analyzer.py",
"registration_required": false,
"subscription_required": false,
"free_subscription": true,
"service_homepage": "https://hashlookup.circl.lu/",
"service_logo": {"path":"assets/circlhashlookup_logo.png", "caption": "logo"},
"screenshots": [
{
"path": "assets/circlhashlookup_long_report.png",
"caption:":"CIRCLHashlookup analyzer full report"
},
{
"registration_required": false,
"subscription_required": false,
"free_subscription": true,
"service_homepage": "https://hashlookup.circl.lu/",
"service_logo": {
"path": "assets/circlhashlookup_logo.png",
"caption": "logo"
},
"screenshots": [
{
"path": "assets/circlhashlookup_long_report.png",
"caption:": "CIRCLHashlookup analyzer full report"
},
{
"path": "assets/circlhashlookup_verdict.png",
"caption:":"CIRCLHashlookup analyzer verdict"
}]
}
"caption:": "CIRCLHashlookup analyzer verdict"
}
],
"checks": [
{
"input": {
"data": "b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9",
"dataType": "hash",
"config": {
"check_tlp": true,
"max_tlp": 2,
"check_pap": true,
"max_pap": 2
}
},
"rules": [
{
"path": "$.success",
"expected": [
true
]
},
{
"path": "$.summary.taxonomies[*].level",
"expected": [
"info"
]
},
{
"path": "$.summary.taxonomies[*].namespace",
"expected": [
"CIRCLHashlookup"
]
},
{
"path": "$.summary.taxonomies[*].predicate",
"expected": [
"Result"
]
},
{
"path": "$.summary.taxonomies[*].value",
"expected": [
"unkown"
]
},
{
"path": "$.full.message",
"expected": [
"Non existing MD5"
]
},
{
"path": "$.full.query",
"expected": [
"f26d3fb255f843fd977ca4a4000cb782"
]
}
]
}
]
}
47 changes: 46 additions & 1 deletion analyzers/Crowdsec/Crowdsec_analyzer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,50 @@
"path": "assets/crowdsec-analyzer-result-example.png",
"caption": ""
}
],
"checks": [
{
"input": {
"data": "8.8.8.8",
"dataType": "ip",
"config": {
"api_key": "ENV:Crowdsec"
}
},
"rules": [
{
"path": "$.success",
"expected": [
true
]
},
{
"path": "$.artifacts[*].data",
"expected": [
"8.8.8.0/24",
"dns.google"
]
},
{
"path": "$.artifacts[*].dataType",
"expected": [
"ip",
"domain"
]
},
{
"path": "$.full.ip",
"expected": [
"8.8.8.8"
]
},
{
"path": "$.full.as_name",
"expected": [
"GOOGLE"
]
}
]
}
]
}
}
2 changes: 2 additions & 0 deletions analyzers/Crowdsec/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cortexutils
requests
Loading