Vespid Shield

Autonomous threat detection & kernel-enforced blocking

A lightweight Go daemon that runs on every server. Tails SSH, Apache, NGINX, Postfix, and HAProxy logs. Detects brute force, reconnaissance, and multi-vector attacks using configurable sliding-window analysis. Enforces blocks in the kernel with nftables — no cloud dependency, no external bouncer.

<60 MBMemory
160+ rulesBuilt-in
8 packsRule packs
0 cloudFully local
vespid-cli status
────────────────── Vespid Shield ──────────────────

  node_id       web-01
  version       1.1.0
  nft table     inet shield  available
  shield_local  47 entries  (dynamic, TTL-based)
  shield_subscribed  15,432  (feed-driven)

  Last 24h
    Observed  128  |  Blocks  94  |  Escalated  12

  Detection Packs
    ▸ apache-attacks    (14 rules)
    ▸ nginx-attacks     (10 rules)
    ▸ openssh-attacks   (9 rules)
    ▸ postfix-attacks   (9 rules)
    ▸ haproxy-attacks   (14 rules)
    ▸ sigma-web-attacks     (37 rules)
    ▸ sigma-ssh-attacks     (1 rule)
    ▸ sigma-host-threats    (70+ rules)

  Auditd
    mode  detecting
    sigma rules  28  |  alerts today  7
Detection Engine

Sliding-window analysis at three speeds

Vespid tracks every source IP across configurable time windows. Fast brute force, medium-paced attacks, and slow-and-low reconnaissance — all caught by the same engine.

01

Fast Window

5 attempts in 60 seconds

Catches rapid-fire SSH brute force and HTTP credential stuffing. The most common attack pattern — thousands of attempts in minutes from a single IP.

ssh_fast_brute 5 / 60s
02

Medium Window

4 attempts in 10 minutes

Designed for distributed brute-force tools that slow down to evade rate limits. Catches attackers pacing their attempts at ~2-minute intervals.

ssh_medium_brute 4 / 10m
03

Slow Window

5 attempts in 6 hours

Catches the stealthiest attacks — one password attempt every hour or two. Most tools and attackers don't have the patience, but Vespid does.

ssh_slow_brute 5 / 6h

Multi-Vector Correlation Detection

Vespid's correlation detector identifies attackers who spread their activity across multiple services — an SSH banner grab, an HTTP path probe, and an SMTP check — each below any single rule's threshold. When three or more distinct threat types originate from the same IP within the correlation window, a combined detection event fires. This catches sophisticated reconnaissance that single-service detectors miss entirely.

Built-in Rules

56 detection rules, active out of the box

No configuration needed. Plus 8 curated rule packs for the services you actually run — including Sigma community detection rules.

ssh_fast_bruteSSH

Rapid-fire SSH brute force

5 attempts1 min
ssh_medium_bruteSSH

Medium-speed brute force

4 attempts10 min
ssh_slow_bruteSSH

Low-and-slow over hours

5 attempts6 h
ssh_negotiate_failSSH

Deprecated algorithm probes

3 attempts24 h
ssh_recon_strongSSH

Banner grabbing & port scanning

3 attempts24 h
ssh_recon_weakSSH

Generic connection resets

8 attempts24 h
http_auth_bruteHTTP

HTTP 401/403 brute force

20 attempts10 min
haproxy_auth_bruteHAProxy

HAProxy auth brute force

10 attempts5 min

Curated Rule Packs

Enable entire packs with one click from the Nest dashboard. Per-node filtering ensures relevant rules only.

A

Apache Pack

14 rules

RCE attempts, path traversal, credential scanning, IoT exploits, PHP attacks, WordPress scanning, Docker API probes, Spring Actuator probes

N

NGINX Pack

10 rules

Auth brute force, SQLi, XSS, shellshock, scanner UAs, request smuggling, sensitive file probing

S

OpenSSH Pack

9 rules

Root brute force, user enumeration, pubkey probing, password spraying, PAM failures, bad protocol versions

P

Postfix Pack

9 rules

SASL brute force, relay abuse, recipient enumeration, VRFY probing, command pipelining, sender rejection

H

HAProxy Pack

14 rules

Auth brute force, path probes, RCE, SQLi, TLS probes, script injection, Docker probes, WordPress scanning

Σ

Sigma Web Attacks

37 rules

SQL injection, XSS, path traversal, Log4Shell, SSTI, webshells, scanner tools, source code enumeration

Σ

Sigma SSH Attacks

1 rule

Suspicious SSHD errors, crypto exploits, and SSH protocol anomalies

Σ

Sigma Host Threats

70+ rules

Reverse shells, privilege escalation, persistence, credential dumping, C2, lateral movement, defense evasion

Kernel-Level Blocking

Dual nftables sets with native TTL expiry

No cron jobs. No polling. No stale rules. The kernel handles expiry natively.

dynamic

shield_local — Dynamic Block Set

Real-time detection results are added to this nftables set with per-element time-to-live. The kernel automatically removes expired entries — no userspace reaper needed. Each block carries its own TTL based on the offense history of the IP.

  • Per-element TTL — each IP expires independently
  • No cron cleanup or polling required
  • Survives firewalld reloads via auto-rebuild
  • Tiered TTL based on repeat-offender status
static

shield_subscribed — Feed-Driven Set

External IP blocklists (FireHOL, Spamhaus, abuse.ch) are synced into this set atomically. The entire set is replaced on refresh — no partial updates, no race conditions. Deduplication against the local allowlist happens automatically.

  • Atomic replacement on feed refresh
  • Automatic deduplication against allowlist
  • Firewalld coexistence with independent priority
  • Auto-rebuild on health-check failure

Repeat-Offender Escalation

IPs that get blocked repeatedly receive progressively longer bans through configurable tiers. Default: 24 hours → 3 days → 7 days → 30 days. Strike counts decay after a configurable clean period (default 30 days), so a past offender that stays clean eventually resets to the first tier. The escalation state persists across daemon restarts via /var/lib/vespid/recidive.json.

Threat Intelligence

Block subscription lists

Subscribe to the industry's best IP blocklists. Auto-refresh, deduplication, atomic sync to nftables.

FH

FireHOL Level 1

15,000+ IPs from attackers with a proven track record of malicious activity. Updated every 6 hours. Blocklist format with CIDR support.

SH

Spamhaus DROP

Don't Route Or Peer lists — IPs verified as hijacked or involved in spam operations. Enterprise-grade threat intelligence.

AB

abuse.ch Feeds

SSL Blacklist, URLhaus, Zeus Tracker, and other specialized feeds. Updated in real time as new threats are confirmed.

How feed syncing works

01

Fetch

HTTP GET with ETag support — only downloads when content changes.

02

Deduplicate

Filter against allowlist and live shield_local set. No double-blocking.

03

Atomic Sync

Entire set replaced atomically in nftables. No partial state.

Fleet Intelligence

Fleet-wide block sharing

When one node sees an attacker, the entire fleet knows in seconds.

Report

When a node detects and blocks an IP, it sends a report to the Nest server with the source IP, event type, block TTL, and timestamp via the telemetry bus.

Corroborate

The server correlates incoming reports from multiple nodes. If the same IP is reported by two or more nodes, the block is corroborated and distributed fleet-wide.

Distribute

Corroborated blocks are pushed to all subscribed nodes via SSE streams. Each node applies the block to its local shield_local set with a configurable fleet TTL.

Offline resilience

When the server is unreachable, block reports are queued to disk as individual JSON files in /var/lib/vespid/fleet_queue/. Reports survive daemon restarts and are replayed in FIFO order when connectivity is restored, with exponential backoff retry (30s → 300s max). The queue is capped at 1,000 entries — oldest evicted first under continuous outage.

Host Intrusion Detection

Auditd + Sigma Rule Engine

Kernel-level process monitoring with Sigma rule matching, anomaly scoring, and three-mode operation.

Vespid integrates directly with Linux auditd to monitor system calls, process executions, file access, and privilege escalation at the kernel level. Auditing events are parsed from /var/log/audit/audit.log and matched against Sigma rules — the industry-standard format for describing log detection behavior.

learning

Learning Mode

When first enabled, Vespid observes system behavior without alerting. It builds a baseline of normal process execution patterns, user behavior, and network connections specific to each node. No false positives during calibration.

detecting

Detecting Mode

Active monitoring with Sigma rule matching. Each event is scored for severity and confidence. When a rule matches, an alert is generated with the full audit trail — process tree, parent PID, command line, file paths, and user context.

alerting

Alerting Mode

When suspicious activity exceeds configurable thresholds, alerts are raised and shipped to the Nest server. Alerts include the Sigma rule ID, match context, anomaly score, and process tree analysis for incident response.

Sigma rule categories monitored

Process Execution

Monitoring execve, fork, and clone system calls. Detects unusual process launches, script interpreters invoked from unexpected parents, and binary execution from writable paths.

User Activity

Tracks login, sudo, su, and privilege escalation events. Detects lateral movement, unauthorized privilege use, and anomalous user behavior patterns.

File Access

Watches open, unlink, rename on sensitive paths (/etc/shadow, /etc/ssh, /root). Detects credential theft, config tampering, and data exfiltration attempts.

Persistence Mechanisms

Detects cron job creation, systemd unit modifications, SSH authorized_keys changes, and other common persistence techniques used by adversaries.

Network Connections

Tracks connect, bind, and accept syscalls. Detects reverse shells, beaconing, and connections to known-bad destinations.

Kernel Exploits

Detects attempts to load kernel modules, modify security policies, or exploit known kernel vulnerabilities via syscall anomaly patterns.

Anomaly Scoring

Each audit event is scored by Vespid's risk engine on two axes: severity (how dangerous the event type is) and confidence (how certain the match is). Events are correlated across categories — a process execution anomaly combined with a sensitive file access and a network connection to an external host produces a higher aggregate score than any single event alone. Scores are shipped to Nest for alert routing and historical analysis.

Customization

Custom regex detection rules

Write your own detection rules in YAML. Deploy via config file or push from the Nest server. Zero code changes.

custom_rules.yaml
# Custom detection rule example
custom_rules:
  - name: myapp_auth_brute
    description: Detects brute force against MyApp login
    parser: syslog
    event_type: MYAPP_AUTH_BRUTE
    max_attempts: 10
    window_seconds: 300
    pattern: 'Failed login for user.*from <remote>'
    source_ip_group: 1  # regex capture group for IP
    exclude_patterns:
      - '127.0.0.1'
      - '10\.0\.0\.'

  - name: custom_api_scan
    description: Detect API endpoint probing
    parser: apache
    event_type: CUSTOM_API_SCAN
    max_attempts: 5
    window_seconds: 600
    pattern: 'GET /api/v[12]/.*(?:admin|config|debug).*HTTP/1\.[01]" 404'

Regex Pattern Matching

Full regex support with named capture groups for source IP extraction. Works with any log format your services produce.

Source IP Extraction

Configurable capture group index for IP extraction. Handle non-standard log formats where the IP isn't in the default position.

Exclusion Patterns

Define patterns to exclude — whitelist internal IPs, monitoring services, or known benign traffic from triggering detection.

Server-Side Management

Push rules from Nest dashboard with ETag-based conditional polling, per-node filtering, and hot-reload without restarting the daemon.

Architecture

How it all fits together

A single daemon handles everything — log tailing, parsing, detection, correlation, blocking, feed sync, and fleet communication.

INPUT
Log files auditd events Subscriptions Fleet SSE Config profiles
PROCESS
Log processor Detector engine Correlation Scorer
OUTPUT
nftables blocks Telemetry bus Fleet reports Audit alerts
Get Started

Install in under 60 seconds

Single runtime dependency: nftables. auditd is optional.

Install Vespid Shield

# Add the Vespid package repository once:
# https://www.vespid.app/#get-started

# RHEL / AlmaLinux / Rocky
sudo dnf install vespid-shield

# Debian / Ubuntu
sudo apt update
sudo apt install vespid-shield

# Start the daemon
sudo systemctl enable --now vespid-shield
sudo vespid-cli status