SlideShare a Scribd company logo
2
Most read
8
Most read
15
Most read
RSPAMD TESTING
PROBLEM STATEMENT
WHY TESTING IS HARD
▸ Need to test on live traffic
▸ Testing environment might be less powerful (e.g. a VM)
▸ Experimental machines can fail or die
▸ Need to compare all results
PROBLEM STATEMENT
GOALS: TEST NEW VERSIONS
STABLE VERSION TESTING VERSION
COMPARE
RESULTS
PROBLEM STATEMENT
GOALS: TEST NEW RULES
OLD RULES NEW RULES
COLLECT
STATISTICS
NEW PLUGINS
PROBLEM STATEMENT
GOALS: COMPARE SPAM ENGINES
RSPAMD OTHER SCANNER
COMPARE
QUALITY
PROBLEM STATEMENT
GOALS: COLLECT GLOBAL STATISTICS
RSPAMD
GATHER
STATS
RSPAMD RSPAMDRSPAMD
1% 2% 10% 0.5%
STATISTICS
ARCHITECTURE
SCAN SCHEME
RSPAMD PROXY
STABLE CLUSTER TESTING CLUSTER TESTING CLUSTER
Proxy stable result
COMPARE
RESULTS
ARCHITECTURE
MAIN FEATURES
▸ Reply immediately when get results from the main cluster
▸ Fast and low latency architecture
▸ Can use multiple compare result scripts
▸ Compare scripts could use all API functions from rspamd
ARCHITECTURE
ENCRYPTION PROXY
RSPAMD PROXY
STABLE CLUSTER
Encrypt using HTTPCrypt
Scan local file
ARCHITECTURE
ENCRYPTION PROXY
▸ Encrypt with HTTPCrypt:
▸ low latency (0 RTT before data sending)
▸ zero copy
▸ provable secure
▸ simple keys management
▸ Can open local files and send encrypted data stream
▸ Each cluster can have its own unique encryption key
▸ Local keys are rotated frequently
ARCHITECTURE
LOAD BALANCING
RSPAMD PROXY
STABLE CLUSTER TESTING CLUSTER TESTING CLUSTER
COMPARE
RESULTS
50% 10%
Balance within clusters
ARCHITECTURE
LOAD BALANCING
▸ Send certain amount of traffic to each testing cluster
▸ Balance within each cluster:
▸ balancing schemes: round-robin, master-slave, random
▸ each server can have its own priority
▸ can detect if an upstream is down
▸ lazily resolve upstream names (DNS balancing)
ARCHITECTURE
FOREIGN EXTERNAL SCANNERS
RSPAMD PROXY
STABLE CLUSTER
Encrypt using HTTPCrypt
Scan local file
FOREIGN CLUSTER TESTING CLUSTER
Use LUA script to parse results
ARCHITECTURE
FOREIGN EXTERNAL SCANNERS
▸ Can scan external scanners, e.g. SA or Cloudmark
▸ Can evaluate their efficiency comparing to rspamd
▸ Use Lua filter to parse external scanners results
COMPARE EXAMPLES
AN EXAMPLE OF COMPARISON SCRIPT
return function(results)
local log = require "rspamd_logger"
for k,v in pairs(results) do
if type(v) == 'table' then
log.infox("%s: %s", k, v['default']['score'])
else
log.infox("err: %s: %s", k, v)
end
end
end
FUTURE PLANS
POTENTIAL FEATURES
▸ Balance not merely HTTP but also SMTP
▸ Perform retries when master connection fails somehow
▸ Use mirrors results if the whole stable cluster is dead
▸ Location based balancing (select the nearest or the fastest
server among possible choices)

More Related Content

What's hot (20)

PPTX
Introduction to gRPC
Chandresh Pancholi
 
PPTX
Performance Update: When Apache ORC Met Apache Spark
DataWorks Summit
 
PDF
Build cloud like Rackspace with OpenStack Ansible
Jirayut Nimsaeng
 
PPTX
python presntation 2.pptx
Arpittripathi45
 
PPTX
Sphinx - High performance full-text search for MySQL
Nguyen Van Vuong
 
PPTX
Google Cloud Platform Data Storage
Joseph Holbrook, Chief Learning Officer (CLO)
 
PPTX
@Indeedeng: RAD - How We Replicate Terabytes of Data Around the World Every Day
indeedeng
 
PDF
InfluxDB IOx Tech Talks: The Impossible Dream: Easy-to-Use, Super Fast Softw...
InfluxData
 
PDF
Organizing Machine Learning Projects - Repository Organization
Hao-Wen (Herman) Dong
 
PPT
游戏地图自动生成
勇浩 赖
 
PDF
Strapi Meetup Presentation
Strapi
 
PDF
InfluxDB IOx Tech Talks: Query Engine Design and the Rust-Based DataFusion in...
InfluxData
 
PPTX
Open source Software: pros and cons
ygpriya
 
PPTX
Built in physical and logical replication in postgresql-Firat Gulec
FIRAT GULEC
 
PPTX
Hive + Tez: A Performance Deep Dive
DataWorks Summit
 
PPTX
GRPC.pptx
Afzal Juneja
 
PDF
RabbitMQ Operations
Michael Klishin
 
PDF
Log analysis with elastic stack
Bangladesh Network Operators Group
 
Introduction to gRPC
Chandresh Pancholi
 
Performance Update: When Apache ORC Met Apache Spark
DataWorks Summit
 
Build cloud like Rackspace with OpenStack Ansible
Jirayut Nimsaeng
 
python presntation 2.pptx
Arpittripathi45
 
Sphinx - High performance full-text search for MySQL
Nguyen Van Vuong
 
Google Cloud Platform Data Storage
Joseph Holbrook, Chief Learning Officer (CLO)
 
@Indeedeng: RAD - How We Replicate Terabytes of Data Around the World Every Day
indeedeng
 
InfluxDB IOx Tech Talks: The Impossible Dream: Easy-to-Use, Super Fast Softw...
InfluxData
 
Organizing Machine Learning Projects - Repository Organization
Hao-Wen (Herman) Dong
 
游戏地图自动生成
勇浩 赖
 
Strapi Meetup Presentation
Strapi
 
InfluxDB IOx Tech Talks: Query Engine Design and the Rust-Based DataFusion in...
InfluxData
 
Open source Software: pros and cons
ygpriya
 
Built in physical and logical replication in postgresql-Firat Gulec
FIRAT GULEC
 
Hive + Tez: A Performance Deep Dive
DataWorks Summit
 
GRPC.pptx
Afzal Juneja
 
RabbitMQ Operations
Michael Klishin
 
Log analysis with elastic stack
Bangladesh Network Operators Group
 

Viewers also liked (7)

PDF
ast-rspamd
Vsevolod Stakhov
 
PDF
New solver for FreeBSD pkg
Vsevolod Stakhov
 
PDF
rspamd-hyperscan
Vsevolod Stakhov
 
PDF
rspamd-fosdem
Vsevolod Stakhov
 
PDF
Cryptography and secure systems
Vsevolod Stakhov
 
PDF
Pkg slides from BSDCan conference
Vsevolod Stakhov
 
PDF
rspamd-slides
Vsevolod Stakhov
 
ast-rspamd
Vsevolod Stakhov
 
New solver for FreeBSD pkg
Vsevolod Stakhov
 
rspamd-hyperscan
Vsevolod Stakhov
 
rspamd-fosdem
Vsevolod Stakhov
 
Cryptography and secure systems
Vsevolod Stakhov
 
Pkg slides from BSDCan conference
Vsevolod Stakhov
 
rspamd-slides
Vsevolod Stakhov
 
Ad

Similar to Rspamd testing (20)

PPT
Spammer identification in industrialppt.ppt
srimathihss
 
PDF
Fighting Spam With A Perimeter Mail System 20071108 Sasag
garrett honeycutt
 
PDF
Building Scalable Web Applications For The Cloud
Carl Mercier
 
PPTX
Clustrix Database Percona Ruby on Rails benchmark
Clustrix
 
PDF
OpenCms Days 2012 - The Dispatch - Running OpenCms 8 on Amazon cloud services
Alkacon Software GmbH & Co. KG
 
PPT
Ruby Proxies for Scale, Performance, and Monitoring - GoGaRuCo - igvita.com
Ilya Grigorik
 
PDF
Joyent circa 2006 (Scale with Rails)
bcantrill
 
PPTX
Ankara Cloud Meetup 6. Etkinlik Scaling Real-Time Messaging on Cloud Sunumu
İbrahim Gürses
 
PDF
Pycon India 12
Lakshman Prasad
 
PPTX
Benchmarking NGINX for Accuracy and Results
NGINX, Inc.
 
PDF
Botminer Clustering Analysis Of Network Traffic For Protocol And Structure...
ncct
 
PDF
Test Drive Deployment with python and nosetest
Roberto Polli
 
ODP
MNPHP Scalable Architecture 101 - Feb 3 2011
Mike Willbanks
 
PDF
NotaCon 2011 - Networking for Pentesters
Rob Fuller
 
PPTX
How to Build High Performance : WordPress
Dylan Burris
 
PDF
Business Tracking CRM - Development Solution
Mobilunity
 
PPTX
Ice drive presentation
Daria Greck
 
PDF
The Reluctant SysAdmin : 360|iDev Austin 2010
Voxilate
 
PDF
The Spammer, the Botmaster, and the Researcher: On the Arms Race in Spamming ...
Gianluca Stringhini
 
KEY
Dibi Conference 2012
Scott Rutherford
 
Spammer identification in industrialppt.ppt
srimathihss
 
Fighting Spam With A Perimeter Mail System 20071108 Sasag
garrett honeycutt
 
Building Scalable Web Applications For The Cloud
Carl Mercier
 
Clustrix Database Percona Ruby on Rails benchmark
Clustrix
 
OpenCms Days 2012 - The Dispatch - Running OpenCms 8 on Amazon cloud services
Alkacon Software GmbH & Co. KG
 
Ruby Proxies for Scale, Performance, and Monitoring - GoGaRuCo - igvita.com
Ilya Grigorik
 
Joyent circa 2006 (Scale with Rails)
bcantrill
 
Ankara Cloud Meetup 6. Etkinlik Scaling Real-Time Messaging on Cloud Sunumu
İbrahim Gürses
 
Pycon India 12
Lakshman Prasad
 
Benchmarking NGINX for Accuracy and Results
NGINX, Inc.
 
Botminer Clustering Analysis Of Network Traffic For Protocol And Structure...
ncct
 
Test Drive Deployment with python and nosetest
Roberto Polli
 
MNPHP Scalable Architecture 101 - Feb 3 2011
Mike Willbanks
 
NotaCon 2011 - Networking for Pentesters
Rob Fuller
 
How to Build High Performance : WordPress
Dylan Burris
 
Business Tracking CRM - Development Solution
Mobilunity
 
Ice drive presentation
Daria Greck
 
The Reluctant SysAdmin : 360|iDev Austin 2010
Voxilate
 
The Spammer, the Botmaster, and the Researcher: On the Arms Race in Spamming ...
Gianluca Stringhini
 
Dibi Conference 2012
Scott Rutherford
 
Ad

Recently uploaded (20)

PPTX
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
PDF
Construction of a Thermal Vacuum Chamber for Environment Test of Triple CubeS...
2208441
 
PDF
2010_Book_EnvironmentalBioengineering (1).pdf
EmilianoRodriguezTll
 
PDF
Packaging Tips for Stainless Steel Tubes and Pipes
heavymetalsandtubes
 
PDF
AI-Driven IoT-Enabled UAV Inspection Framework for Predictive Maintenance and...
ijcncjournal019
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PPTX
ETP Presentation(1000m3 Small ETP For Power Plant and industry
MD Azharul Islam
 
PDF
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
PPTX
IoT_Smart_Agriculture_Presentations.pptx
poojakumari696707
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PDF
20ME702-Mechatronics-UNIT-1,UNIT-2,UNIT-3,UNIT-4,UNIT-5, 2025-2026
Mohanumar S
 
PDF
Introduction to Ship Engine Room Systems.pdf
Mahmoud Moghtaderi
 
PPTX
ENSA_Module_7.pptx_wide_area_network_concepts
RanaMukherjee24
 
PDF
2025 Laurence Sigler - Advancing Decision Support. Content Management Ecommer...
Francisco Javier Mora Serrano
 
PDF
4 Tier Teamcenter Installation part1.pdf
VnyKumar1
 
PPTX
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
PPTX
cybersecurityandthe importance of the that
JayachanduHNJc
 
PDF
Advanced LangChain & RAG: Building a Financial AI Assistant with Real-Time Data
Soufiane Sejjari
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PPTX
Module2 Data Base Design- ER and NF.pptx
gomathisankariv2
 
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
Construction of a Thermal Vacuum Chamber for Environment Test of Triple CubeS...
2208441
 
2010_Book_EnvironmentalBioengineering (1).pdf
EmilianoRodriguezTll
 
Packaging Tips for Stainless Steel Tubes and Pipes
heavymetalsandtubes
 
AI-Driven IoT-Enabled UAV Inspection Framework for Predictive Maintenance and...
ijcncjournal019
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
ETP Presentation(1000m3 Small ETP For Power Plant and industry
MD Azharul Islam
 
EVS+PRESENTATIONS EVS+PRESENTATIONS like
saiyedaqib429
 
IoT_Smart_Agriculture_Presentations.pptx
poojakumari696707
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
20ME702-Mechatronics-UNIT-1,UNIT-2,UNIT-3,UNIT-4,UNIT-5, 2025-2026
Mohanumar S
 
Introduction to Ship Engine Room Systems.pdf
Mahmoud Moghtaderi
 
ENSA_Module_7.pptx_wide_area_network_concepts
RanaMukherjee24
 
2025 Laurence Sigler - Advancing Decision Support. Content Management Ecommer...
Francisco Javier Mora Serrano
 
4 Tier Teamcenter Installation part1.pdf
VnyKumar1
 
business incubation centre aaaaaaaaaaaaaa
hodeeesite4
 
cybersecurityandthe importance of the that
JayachanduHNJc
 
Advanced LangChain & RAG: Building a Financial AI Assistant with Real-Time Data
Soufiane Sejjari
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
Module2 Data Base Design- ER and NF.pptx
gomathisankariv2
 

Rspamd testing