csm

module
v0.0.0-...-20fd28a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2026 License: AGPL-3.0

README

CSM (Continuous Security Monitor)

Coverage Go version CodeQL OpenSSF Scorecard Go Reference Release

Local security monitoring and automated response for Linux web servers. Runs on AlmaLinux, Rocky, RHEL, CloudLinux, Ubuntu, and Debian, with or without a control panel. cPanel/WHM hosts get the deepest account and CMS integration.

CSM is one Go daemon. It watches files, logins, web traffic, mail, processes, and network connections in real time, and runs scheduled integrity, account, content, and database scans. Content scanning pairs YAML and YARA-X signatures with PHP and JavaScript data-flow analysis. CSM responds through nftables, quarantine, reversible virtual patches, mail controls, and targeted cleanup. State stays on the host, and the Web UI and API are built in.

Documentation | Installation | Configuration | CLI | Web UI | Releases

What CSM covers

Threat Detection and response
Mailbox takeover and outbound spam SMTP, IMAP, and POP brute-force and slow password spray detection, mail log correlation, account attribution, bots abusing website forms, filter and forwarder audit, PHP relay detection, blocking, mail freeze
Inbound spam and mail malware rspamd spam filtering with learning from users' spam folders and optional feeds such as Spamhaus DQS; attachment scanning with ClamAV and YARA-X; Email page statistics
WordPress and admin login attacks Login flood, XML-RPC, and credential-stuffing detection; bundled ModSecurity rules for exploited CVEs
Webshells, phishing, and injected code YAML and YARA-X signatures, PHP and JavaScript data-flow analysis, PHP Shield runtime blocking, quarantine
Exposed files and vulnerable software Probe-confirmed exposed dumps, backups, and repositories; known-vulnerable plugin inventory; reversible virtual patches
Scanners and crawlers Per-source probe profiling, claimed-bot verification, ASN crawl detection, challenge routing, firewall response
Compromised CMS databases WordPress, Joomla, Drupal, Magento, OpenCart, PrestaShop: stored code, hidden links, spam, doorways, rogue admins; reversible cleanup for supported rows and objects
WAF and firewall ModSecurity event correlation and per-domain coverage gaps, nftables, GeoIP, subnet escalation, rollback-confirmed changes
Host compromise Process, account, SSH, cron, and package drift, C2 connections, BPF telemetry, hardening audit, CVE mitigations
Fleet observability HTTPS API, SSE findings, incidents, forensic snapshots, Prometheus, audit log, syslog, webhooks, SIEM backfill, optional read-only MCP endpoint for support agents

Detailed coverage is documented under Real-time detection, Critical checks, Deep checks, and Incidents.

Platform support

CSM detects the OS, control panel, and web server at startup and runs the checks that apply. A host without a panel is a supported target, not a fallback.

Host Coverage
Every supported host Real-time file and webshell scanning, web login attacks from access logs, SSH and PAM logins, ModSecurity monitoring, nftables firewall and auto-response, RPM or dpkg/debsums package integrity, host drift, BPF telemetry where the kernel supports it, hardening audit, Web UI, API, and alerts
Postfix with Dovecot SMTP AUTH, IMAP, POP3, and ManageSieve brute-force and compromise detection from log files or journald, Postfix hardening checks, optional rspamd spam filtering
cPanel/WHM Adds the account registry, WHM and cPanel login monitoring, Exim mail controls, rspamd spam filtering with the webmail Junk button, PHP relay detection, Email AV on the Exim spool, and the WHM plugin
Plesk or DirectAdmin Account homes and web log paths are detected; cPanel integrations skip

Requirements:

  • AlmaLinux, Rocky, RHEL, CloudLinux, or CentOS Stream 8+, Ubuntu 20.04+, or Debian 11+. cPanel hosts run CloudLinux, AlmaLinux, Rocky, or Ubuntu.
  • Apache, Nginx, LiteSpeed, or no web server.
  • x86_64 or ARM64; cPanel itself is x86_64-only. Release binaries link YARA-X statically, include journald and BPF support, and need glibc 2.28 or newer.

On hosts without cPanel:

  • Set account_roots to the web roots. Real-time document-root rules, scheduled YARA sweeps, web-root performance checks, and remediation then cover them. Many account and CMS scans still expect public_html beneath account homes; see Deep checks.
  • SMTP brute-force detection on Postfix needs Dovecot rejection logging. Learning from Junk folders needs Dovecot 2.3 and Maildir; see Postfix hosts.
  • PHP Shield setup finds EA-PHP, alt-PHP, and lsphp builds and handles CageFS on CloudLinux. Other PHP builds need a manual auto_prepend_file line.

Quick start

Install from the signed APT or DNF repository described in the installation guide. Packages include the daemon, Web UI, rules, PAM module, systemd unit, and a csm command in /usr/sbin.

sudo vi /etc/csm/csm.yaml
sudo csm validate
sudo systemctl enable --now csm.service
sudo csm baseline
sudo csm doctor

Open https://<server>:9443/login. The package writes an initial admin token to /etc/csm/csm.yaml and creates a self-signed certificate unless TLS paths are configured.

csm baseline records hashes of the binary and its configuration. After a hand edit, run sudo csm rehash before restarting: the daemon refuses a config it did not record, and csm doctor reports the mismatch before you restart. This catches unrecorded edits; it does not stop anyone who can write /etc/csm. Put automation-owned overrides in /etc/csm/conf.d/*.yaml; see Configuration.

How it runs

  • Real-time watchers handle filesystem, authentication, access-log, mail, PAM, BPF, and ModSecurity events.
  • Critical checks run every 10 minutes and deep checks every 60 minutes by default.
  • Eligible content and exposed-file findings are re-checked every deep scan and clear only when the problem is confirmed gone. See Re-verifying findings.
  • Rules ship with the package. YAML rules cover real-time scanning and finding re-checks; optional YARA-X rules also cover scheduled and attachment scanning. Remote YAML and optional YARA Forge updates are signature-verified.
  • State lives in bbolt, with optional retention sweeps, automatic compaction, backup and restore, and audit export.
  • No SaaS dependency. Reputation, GeoIP, reporting, and panel integrations are optional.

Safety defaults

  • mode: observe detects and alerts without automatic remediation or integration updates, and refuses a config that still enables a state-changing subsystem. See Observe mode.
  • Auto-response is off until enabled. Automatic IP and subnet blocking then starts in dry run until auto_response.dry_run: false is set. Dry run guards network responses only, not file cleanup or process actions.
  • Virtual patches for exposed files are off by default. Manual mode previews or applies them by hand; automatic mode also needs auto-response and honors dry run.
  • BPF enforcement and PHP relay freezing have their own dry-run controls.
  • Infrastructure, local, allowed, and verified-bot addresses are never blocked automatically. Process termination skips root and recognized system services.
  • Quarantine keeps the original path, owner, mode, and mtime for restore. Firewall changes can apply on a confirmation timer with automatic rollback.
  • By default, YARA-X, PHP taint analysis, zip listings, and mail attachments run in separate workers with no capabilities, no IP network access, and a memory cap. See Service confinement.

Review Auto-response before enabling actions on a production host.

Common commands

csm status [--json]          daemon health, findings, watchers, and rollout state
csm doctor [--json]          config, integrity, daemon, watcher, and store diagnostics
csm privileges [--json]      what CSM does that needs privilege, and the key that stops each one
csm actions [--since 24h]    what CSM did to this host, with before/after digests on file changes
csm selftest                 scan known samples and report what the installed rules catch
csm baseline                 establish known state after first start or an approved reset
csm rehash                   re-hash binary, csm.yaml, and conf.d after an intentional change
csm scan <user> [--full]     scan one account, uncapped with --full
csm scan --all --full        scan every account without the per-account file cap
csm incidents ...            list, show, and update correlated incidents
csm firewall ...             inspect and manage IP, subnet, port, and rollback state
csm virtual-patch [--apply]  preview or apply confirmed exposed-file denies in manual/auto mode
csm harden ...               audit or apply supported host mitigations

See the CLI reference for backup and restore, forensic snapshots, PHP Shield, cleanup, and the full operator command reference.

Development

go build ./...                         # standard build with YARA stubs
go build -tags yara ./cmd/csm/         # local YARA-X build; link the version pinned in go.mod
go test ./... -count=1 -race
go test -run=Fuzz ./...
make lint
make ci

See CONTRIBUTING.md and the development guide. Public releases land on GitHub; packaging and integration tests run through GitLab CI. Each release page leads with highlights and security fixes, and the full record is in CHANGELOG.md.

License

CSM is licensed under AGPL-3.0-or-later. Releases through v2.x remain under the MIT License; v3.0.0 and newer use AGPL-3.0-or-later.

See LICENSE, SECURITY.md, and CHANGELOG.md.

Directories

Path Synopsis
build
packaging
Package packaging carries the config file the packages install, so that `csm install` writes the same starting config with fresh credentials.
Package packaging carries the config file the packages install, so that `csm install` writes the same starting config with fresh credentials.
cmd
csm command
internal
actionlog
Package actionlog records what CSM did to a host, as opposed to what it found.
Package actionlog records what CSM did to a host, as opposed to what it found.
admission
Package admission holds the typed vocabulary automatic firewall responses are admitted with: canonical targets, evidence records, verified owners, candidate identity and priority.
Package admission holds the typed vocabulary automatic firewall responses are admitted with: canonical targets, evidence records, verified owners, candidate identity and priority.
admissionowner
Package admissionowner is the daemon's owner of the admission ledger: the one handle on the state database's ledger, and the one goroutine that changes it.
Package admissionowner is the daemon's owner of the admission ledger: the one handle on the state database's ledger, and the one goroutine that changes it.
antispam
Package antispam renders the Exim and rspamd configuration CSM owns for inbound spam filtering and evaluates the host preconditions for it.
Package antispam renders the Exim and rspamd configuration CSM owns for inbound spam filtering and evaluates the host preconditions for it.
antispam/dovecot
Package dovecot lists the users of a Dovecot 2.3 host and the Maildir++ folders of their \Junk mailboxes, checking directory aliases on disk.
Package dovecot lists the users of a Dovecot 2.3 host and the Maildir++ folders of their \Junk mailboxes, checking directory aliases on disk.
antispam/hostfacts
Package hostfacts reads the facts antispam.CheckHost evaluates.
Package hostfacts reads the facts antispam.CheckHost evaluates.
antispam/learn
Package learn turns Spam folder reports and operator requests into anchor values in rspamd's local fuzzy storage: a strict controller client, the ledger, anchor bodies, assignment, publication and audits.
Package learn turns Spam folder reports and operator requests into anchor values in rspamd's local fuzzy storage: a strict controller client, the ledger, anchor bodies, assignment, publication and audits.
antispam/learnwatch
Package learnwatch finds new reports in tenants' Spam folders and hands them to the learning engine.
Package learnwatch finds new reports in tenants' Spam folders and hands them to the learning engine.
antispam/reconcile
Package reconcile runs CSM's antispam integration from the daemon: it decides on each pass whether to install, remove or keep the integration, asks the root worker to do it, and turns preconditions, worker results and rspamd health into findings.
Package reconcile runs CSM's antispam integration from the daemon: it decides on each pass whether to install, remove or keep the integration, asks the root worker to do it, and turns preconditions, worker results and rspamd health into findings.
antispam/txn
Package txn runs CSM's antispam apply and remove transactions on cPanel and Postfix hosts.
Package txn runs CSM's antispam apply and remove transactions on cPanel and Postfix hosts.
antispam/worker
Package worker runs CSM's antispam transactions at the root boundary and launches them from the daemon: one JSON request in, one JSON result out, under the shared Exim mutation lock.
Package worker runs CSM's antispam transactions at the root boundary and launches them from the daemon: one JSON request in, one JSON result out, under the shared Exim mutation lock.
atomicio
Package atomicio implements atomic file writes used by state-bearing callers (firewall engine, autoblock tracker, etc.).
Package atomicio implements atomic file writes used by state-bearing callers (firewall engine, autoblock tracker, etc.).
attackcorpus
Package attackcorpus loads the attack replay corpus: malicious samples and near-miss controls, each with what every detection path must report for it.
Package attackcorpus loads the attack replay corpus: malicious samples and near-miss controls, each with what every detection path must report for it.
blockdigest
Package blockdigest sends the daily alert summary of attacks CSM handled, and batches auto-block events into a per-country roll-up for it so operators learn when IPs from their customers' countries get blocked.
Package blockdigest sends the daily alert summary of attacks CSM handled, and batches auto-block events into a per-country roll-up for it so operators learn when IPs from their customers' countries get blocked.
bpf
Package bpf provides the shared scaffolding that BPF-backed live monitors across the daemon use: a common Backend interface, backend-kind constants for operator config, sentinel errors that distinguish "not built" from "kernel unsupported", and a per-feature backend metric.
Package bpf provides the shared scaffolding that BPF-backed live monitors across the daemon use: a common Backend interface, backend-kind constants for operator config, sentinel errors that distinguish "not built" from "kernel unsupported", and a per-feature backend metric.
broadcast
Package broadcast provides a one-to-many publish bus for alert.Finding events.
Package broadcast provides a one-to-many publish bus for alert.Finding events.
checks
HTTP abuse detection.
HTTP abuse detection.
clientaddr
Package clientaddr resolves the client address of an HTTP request or access-log record from its direct peer and X-Forwarded-For chain.
Package clientaddr resolves the client address of an HTTP request or access-log record from its direct peer and X-Forwarded-For chain.
cms
Package cms is the single declaration of the content management systems CSM supports.
Package cms is the single declaration of the content management systems CSM supports.
contenttype
Package contenttype classifies file content shared by the malware scanners.
Package contenttype classifies file content shared by the malware scanners.
control
Package control defines the wire protocol between the CSM daemon and its local command-line client.
Package control defines the wire protocol between the CSM daemon and its local command-line client.
corpusgate
Package corpusgate provisions pinned clean applications for detector tests.
Package corpusgate provisions pinned clean applications for detector tests.
crashsample
Package crashsample keeps private copies of inputs that crashed a parse worker, for diagnosis.
Package crashsample keeps private copies of inputs that crashed a parse worker, for diagnosis.
crawlid
Package crawlid is the canonical request identity shared by the http_pattern_crawl detector and the PHP shield crawl gate.
Package crawlid is the canonical request identity shared by the http_pattern_crawl detector and the PHP shield crawl gate.
crawlreplay
Package crawlreplay replays anonymized domlog record streams through exact models of the http_pattern_crawl detector, so window, baseline, residual and sketch settings can be chosen from traffic hosts actually served.
Package crawlreplay replays anonymized domlog record streams through exact models of the http_pattern_crawl detector, so window, baseline, residual and sketch settings can be chosen from traffic hosts actually served.
daemon/af_alg_bpfprog
Package af_alg_bpfprog hosts the BPF C source for the AF_ALG (CVE-2026-31431 "Copy Fail") kernel-side deny program and the generated Go bindings produced by bpf2go.
Package af_alg_bpfprog hosts the BPF C source for the AF_ALG (CVE-2026-31431 "Copy Fail") kernel-side deny program and the generated Go bindings produced by bpf2go.
daemon/connection_bpfprog
Package connection_bpfprog hosts the BPF C source for the cgroup/connect outbound-connection tracker and the generated Go bindings produced by bpf2go.
Package connection_bpfprog hosts the BPF C source for the cgroup/connect outbound-connection tracker and the generated Go bindings produced by bpf2go.
daemon/exec_bpfprog
Package exec_bpfprog hosts the BPF C source for the sched/sched_process_exec tracepoint live monitor and the generated Go bindings produced by bpf2go.
Package exec_bpfprog hosts the BPF C source for the sched/sched_process_exec tracepoint live monitor and the generated Go bindings produced by bpf2go.
daemon/placement_bpfprog
Package placement_bpfprog hosts the BPF C source for the lsm/inode_rename and lsm/inode_link placement monitor and the generated Go bindings produced by bpf2go.
Package placement_bpfprog hosts the BPF C source for the lsm/inode_rename and lsm/inode_link placement monitor and the generated Go bindings produced by bpf2go.
daemon/sensitive_file_bpfprog
Package sensitive_file_bpfprog hosts the BPF C source for the lsm/file_permission live monitor and the generated Go bindings produced by bpf2go.
Package sensitive_file_bpfprog hosts the BPF C source for the lsm/file_permission live monitor and the generated Go bindings produced by bpf2go.
eximlock
Package eximlock serializes CSM's edits and rebuilds of shared Exim configuration.
Package eximlock serializes CSM's edits and rebuilds of shared Exim configuration.
eximlog
Package eximlog extracts the connecting client from Exim main log lines.
Package eximlog extracts the connecting client from Exim main log lines.
firewall/rollback
Package rollback implements the firewall settings tentative-apply workflow: a save with a deadline that auto-reverts unless the operator confirms before the timer expires.
Package rollback implements the firewall settings tentative-apply workflow: a save with a deadline that auto-reverts unless the operator confirms before the timer expires.
forensic
Package forensic produces evidence archives for incident response.
Package forensic produces evidence archives for incident response.
geoip
Package geoip provides IP geolocation via MaxMind GeoLite2 databases and on-demand RDAP lookups for detailed ISP/org information.
Package geoip provides IP geolocation via MaxMind GeoLite2 databases and on-demand RDAP lookups for detailed ISP/org information.
incident
Package incident groups related security findings into a single "story" with a timeline.
Package incident groups related security findings into a single "story" with a timeline.
integration/webserver
Package webserver auto-installs the CSM challenge webserver glue (Apache / LSWS / Nginx) with a write-validate-reload-or-revert flow.
Package webserver auto-installs the CSM challenge webserver glue (Apache / LSWS / Nginx) with a write-validate-reload-or-revert flow.
ipmap
Package ipmap builds and writes the CSM IP map: one rspamd multimap file listing CSM's own evidence about sender addresses.
Package ipmap builds and writes the CSM IP map: one rspamd multimap file listing CSM's own evidence about sender addresses.
jstaint
Package jstaint reports keystroke values that reach a network sink in a JavaScript source file.
Package jstaint reports keystroke values that reach a network sink in a JavaScript source file.
log
Package log provides a structured-logging wrapper around log/slog.
Package log provides a structured-logging wrapper around log/slog.
mailfwd/adapter
Package adapter renders and applies the MTA-native forward-guard rule.
Package adapter renders and applies the MTA-native forward-guard rule.
mailfwd/guard
Package guard glues the operator config to the pure forward-guard policy.
Package guard glues the operator config to the pure forward-guard policy.
mailfwd/intel
Package intel turns exim_mainlog deferral lines into operator-facing reputation signals: which outbound IPs are being throttled, by which mail providers, and for what stated reason.
Package intel turns exim_mainlog deferral lines into operator-facing reputation signals: which outbound IPs are being throttled, by which mail providers, and for what stated reason.
mailfwd/inventory
Package inventory enumerates mail forwarders on a host and classifies their destinations, so operators can see which accounts relay mail off-server and to which providers.
Package inventory enumerates mail forwarders on a host and classifies their destinations, so operators can see which accounts relay mail off-server and to which providers.
mailfwd/policy
Package policy is the single source of truth for the forward-guard hold decision: given the signals observed for a message, should the external forward copy be held? The same Verdict function feeds both the dry-run "would-hold" accounting and (in Phase 2) the generated MTA rule, so the two can never drift apart.
Package policy is the single source of truth for the forward-guard hold decision: given the signals observed for a message, should the external forward copy be held? The same Verdict function feeds both the dry-run "would-hold" accounting and (in Phase 2) the generated MTA rule, so the two can never drift apart.
mailfwd/quarantine
Package quarantine is the CSM-owned Maildir that holds external forward copies the forward-guard decided to withhold.
Package quarantine is the CSM-owned Maildir that holds external forward copies the forward-guard decided to withhold.
maillog
Package maillog reads postfix/dovecot log lines from either a tailed file or systemd-journald, normalizing them into a single Line type so the daemon's mail-brute and PHP-relay parsers don't have to care which source supplied the line.
Package maillog reads postfix/dovecot log lines from either a tailed file or systemd-journald, normalizing them into a single Line type so the daemon's mail-brute and PHP-relay parsers don't have to care which source supplied the line.
mailranges
Package mailranges maintains an atomic in-memory map of mail-provider IP ranges used to exempt shared-source ranges (carrier CGNAT, mail providers) from firewall DoS heuristics.
Package mailranges maintains an atomic in-memory map of mail-provider IP ranges used to exempt shared-source ranges (carrier CGNAT, mail providers) from firewall DoS heuristics.
mailstats
Package mailstats counts mail decisions from log lines for the Email Security page.
Package mailstats counts mail decisions from log lines for the Email Security page.
mcp
Package mcp serves a read-only Model Context Protocol endpoint for support agents.
Package mcp serves a read-only Model Context Protocol endpoint for support agents.
metrics
Package metrics is CSM's local OpenMetrics implementation.
Package metrics is CSM's local OpenMetrics implementation.
mysqlclient
Package mysqlclient wraps the database/sql + go-sql-driver/mysql pair for the read-only queries CSM issues against host-local MySQL/MariaDB.
Package mysqlclient wraps the database/sql + go-sql-driver/mysql pair for the read-only queries CSM issues against host-local MySQL/MariaDB.
netutil
Package netutil holds the shared public-range guard used to validate operator- and vendor-supplied IP ranges.
Package netutil holds the shared public-range guard used to validate operator- and vendor-supplied IP ranges.
obs
Package obs centralises crash reporting and selective error capture via Sentry.
Package obs centralises crash reporting and selective error capture via Sentry.
parseworker
Package parseworker runs archive parsing on tenant files in a worker process.
Package parseworker runs archive parsing on tenant files in a worker process.
phptaint
Package phptaint reports remotely-fetched content that reaches a PHP code-execution sink.
Package phptaint reports remotely-fetched content that reaches a PHP code-execution sink.
phptaintipc
Package phptaintipc defines the wire protocol spoken between the CSM daemon and the supervised `csm phptaint-worker` child process.
Package phptaintipc defines the wire protocol spoken between the CSM daemon and the supervised `csm phptaint-worker` child process.
phptaintworker
Package phptaintworker is the child side of PHP taint analysis.
Package phptaintworker is the child side of PHP taint analysis.
platform
Package platform detects the host OS, control panel, and web server so CSM checks can pick the right config/log paths instead of hardcoding cPanel+Apache layouts.
Package platform detects the host OS, control panel, and web server so CSM checks can pick the right config/log paths instead of hardcoding cPanel+Apache layouts.
privops
Package privops is the inventory of every CSM operation that needs privilege beyond reading its own files, or that writes outside CSM's own directories.
Package privops is the inventory of every CSM operation that needs privilege beyond reading its own files, or that writes outside CSM's own directories.
processctx
Package processctx maintains process context (PID/PPID/UID/account/exe/cmdline) for use enriching real-time security findings.
Package processctx maintains process context (PID/PPID/UID/account/exe/cmdline) for use enriching real-time security findings.
processhandle
Package processhandle signals verified Linux processes through kernel handles.
Package processhandle signals verified Linux processes through kernel handles.
quarantinefs
Package quarantinefs makes recovery copies durable before callers change live files.
Package quarantinefs makes recovery copies durable before callers change live files.
queuehealth
Package queuehealth measures waiting, running and lost work independently of the channel that carries findings about a protection failure.
Package queuehealth measures waiting, running and lost work independently of the channel that carries findings about a protection failure.
redisinfo
Package redisinfo wraps the go-redis client for the few read-only INFO calls CSM needs (memory metrics, keyspace counts).
Package redisinfo wraps the go-redis client for the few read-only INFO calls CSM needs (memory metrics, keyspace counts).
reporting
Package reporting is the node side of CSM abuse reporting (Layer A).
Package reporting is the node side of CSM abuse reporting (Layer A).
responsereplay
Package responsereplay replays recorded finding streams through models of the automatic response admission path, so capacity and fairness changes can be measured against what hosts actually saw.
Package responsereplay replays recorded finding streams through models of the automatic response admission path, so capacity and fairness changes can be measured against what hosts actually saw.
safepath
Package safepath pins directories for operations on tenant-controlled names.
Package safepath pins directories for operations on tenant-controlled names.
sdnotify
Package sdnotify talks to the systemd notification socket.
Package sdnotify talks to the systemd notification socket.
selftest
Package selftest runs CSM's detection over a small bundle of samples whose verdicts are known, so an operator can see what the shipped rules catch without pointing the scanner at a production account.
Package selftest runs CSM's detection over a small bundle of samples whose verdicts are known, so an operator can see what the shipped rules catch without pointing the scanner at a production account.
session
Package session owns browser-session identities and their storage contract.
Package session owns browser-session identities and their storage contract.
sharedsenders
Package sharedsenders keeps mail services that many unrelated senders share from being reported as spam sources.
Package sharedsenders keeps mail services that many unrelated senders share from being reported as spam sources.
sourcewalk
Package sourcewalk supports source inventories in a checkout shared with tests.
Package sourcewalk supports source inventories in a checkout shared with tests.
spamscore
Package spamscore is the spam score shared by CSM's spam evidence and the rspamd reputation source: verdict masses decay with a 7-day half-life and a prior mass keeps a few verdicts from saturating the score.
Package spamscore is the spam score shared by CSM's spam evidence and the rspamd reputation source: verdict masses decay with a 7-day half-life and a prior mass keeps a few verdicts from saturating the score.
sshdconf
Package sshdconf reads the effective sshd_config the way sshd itself does: Include directives are followed, Match blocks are ignored because their directives are connection-scoped, and most keywords keep first-match-wins semantics.
Package sshdconf reads the effective sshd_config the way sshd itself does: Include directives are followed, Match blocks are ignored because their directives are connection-scoped, and most keywords keep first-match-wins semantics.
stalwartapi
Package stalwartapi is a small client for the Stalwart 1.0 admin API: the JMAP "x:" methods CSM uses to read and change Stalwart's settings.
Package stalwartapi is a small client for the Stalwart 1.0 admin API: the JMAP "x:" methods CSM uses to read and change Stalwart's settings.
stalwartlog
Package stalwartlog parses the text log Stalwart mail server 1.0 writes: one event per line, "<RFC3339> <LEVEL> <description> (<event.name>) key = value, ...".
Package stalwartlog parses the text log Stalwart mail server 1.0 writes: one event per line, "<RFC3339> <LEVEL> <description> (<event.name>) key = value, ...".
stalwartsetup
Package stalwartsetup works out what a Stalwart server needs before CSM can rely on it, and applies it.
Package stalwartsetup works out what a Stalwart server needs before CSM can rely on it, and applies it.
systemdrun
Package systemdrun builds argv for running a command outside the calling service's systemd sandbox.
Package systemdrun builds argv for running a command outside the calling service's systemd sandbox.
threatintel
Package threatintel -- bot allowlist + verification.
Package threatintel -- bot allowlist + verification.
updatecheck
Package updatecheck polls upstream release channels and tells the daemon whether a newer CSM version is available so the Web UI can surface a banner.
Package updatecheck polls upstream release channels and tells the daemon whether a newer CSM version is available so the Web UI can surface a banner.
verdict
Package verdict implements an HMAC-signed HTTP client for the auto_response.verdict_callback hook.
Package verdict implements an HMAC-signed HTTP client for the auto_response.verdict_callback hook.
workerproc
Package workerproc runs CSM's out-of-process workers: code that parses attacker-controlled input and can loop, crash or exhaust memory, so the daemon runs it in a child process it can kill.
Package workerproc runs CSM's out-of-process workers: code that parses attacker-controlled input and can loop, crash or exhaust memory, so the daemon runs it in a child process it can kill.
yaraipc
Package yaraipc defines the protocol between the CSM daemon and `csm yara-worker`, which runs in locked-down transient units: a compile unit that turns rule text into compiled rules, and a scan unit that loads them and scans descriptors.
Package yaraipc defines the protocol between the CSM daemon and `csm yara-worker`, which runs in locked-down transient units: a compile unit that turns rule text into compiled rules, and a scan unit that loads them and scans descriptors.
zipdir
Package zipdir locates a zip archive's central directory from its end-of-central-directory record, zip64 included, without reading any entry data.
Package zipdir locates a zip archive's central directory from its end-of-central-directory record, zip64 included, without reading any entry data.
scripts
clean-corpus command
correlation-calibrate command
Package main replays a recorded finding stream through the production cross-account correlation so its thresholds can be re-derived against what hosts actually produced, instead of against an assumption.
Package main replays a recorded finding stream through the production cross-account correlation so its thresholds can be re-derived against what hosts actually produced, instead of against an assumption.
crawl-calibrate command
Command crawl-calibrate replays a private experiment through replay sessions of the exact crawl-detector models into an aggregate report.
Command crawl-calibrate replays a private experiment through replay sessions of the exact crawl-detector models into an aggregate report.
domlog-stream command
Command domlog-stream turns local copies of a host's domlogs into an anonymized record stream for crawl-detector calibration.
Command domlog-stream turns local copies of a host's domlogs into an anonymized record stream for crawl-detector calibration.
finding-stream command
Command finding-stream turns CSM audit logs into an anonymized finding stream for correlation and threshold calibration, optionally joined with the action log and the firewall audit log.
Command finding-stream turns CSM audit logs into an anonymized finding stream for correlation and threshold calibration, optionally joined with the action log and the firewall audit log.
fixturecheck command
fixturecheck rejects IPv4 literals outside the documentation and loopback ranges in repository fixtures and, given a terms file, private names anywhere in the repository.
fixturecheck rejects IPv4 literals outside the documentation and loopback ranges in repository fixtures and, given a terms file, private names anywhere in the repository.
queuegate command
queuegate checks reviewed queue ownership and emits required execution tests.
queuegate checks reviewed queue ownership and emits required execution tests.
response-replay command
Command response-replay replays a recorded finding stream through a model of the legacy scan admission path (the hourly block limit, the pending queue and the temporary deny limit) and writes an aggregate report.
Command response-replay replays a recorded finding stream through a model of the legacy scan admission path (the hourly block limit, the pending queue and the temporary deny limit) and writes an aggregate report.
testgate command
testgate records selected tests and verifies that go test executed them.
testgate records selected tests and verifies that go test executed them.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL