blacklist: add domain reputation check via checker-blacklist
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
Integrates the checker-blacklist module behind a new POST /blacklist/domain endpoint that aggregates reputation/blocklist sources for a given domain, plus a SvelteKit UI under /blacklist/domain mirroring the existing IP blacklist flow. Per-source credentials (VirusTotal, Safe Browsing) are exposed as CLI flags; free sources run unconditionally. Closes: #96
This commit is contained in:
parent
d53c1b1e00
commit
f14209d4fa
13 changed files with 655 additions and 21 deletions
|
|
@ -75,6 +75,18 @@ type AnalysisConfig struct {
|
|||
DNSWLs []string
|
||||
CheckAllIPs bool // Check all IPs found in headers, not just the first one
|
||||
RspamdAPIURL string // rspamd API URL for fetching symbol descriptions (empty = use embedded list)
|
||||
Blacklist BlacklistConfig
|
||||
}
|
||||
|
||||
// BlacklistConfig holds per-source credentials/options for the
|
||||
// domain-oriented checker-blacklist provider. Keys must match the
|
||||
// option IDs declared by each source in the checker-blacklist module
|
||||
// (see checker/virustotal.go, checker/safebrowsing.go, …). Free sources
|
||||
// (Quad9, OISD, URLhaus, OpenPhish, Disconnect, Botvrij, …) need no
|
||||
// configuration.
|
||||
type BlacklistConfig struct {
|
||||
VirusTotalAPIKey string
|
||||
SafeBrowsingAPIKey string
|
||||
}
|
||||
|
||||
// DefaultConfig returns a configuration with sensible defaults
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue