Skip to content

Releases

4.5.0

Choose a tag to compare

@atomicturtle atomicturtle released this 19 Nov 19:25
4.5.0
93253b9

OSSEC changelog (4.5.0) support@atomicorp.com

Release Maintainers

Scott R. Shinn (https://www.atomicorp.com)

Contributors on this release

Release Notes

4.5.0 changes

General

  • @atomicturtle - PR 2458 - Build ossec-authd with OpenSSL 4. The certificate IP check uses the ASN.1 string accessors, and the SSL context is TLS 1.2 through TLS_method() because TLSv1_2_method() is gone
  • @atomicturtle - PR 2348 - Keep the device hostname from agent-forwarded syslog lines for <hostname> matching; expose the OSSEC agent as agent_name / <agent_name>, match log paths with <location> / <location_pcre2>, and keep JSON/diff keyed on the agent identity (#1668)
  • @atomicturtle - PR 2343 - Follow-up fixes from review of the 4.4.0 changes: Solaris ginstall is required up front, remoted reads notify_time at startup, date-based logcollector reopen honors the open-attempt limit, Windows wildcard paths stay literal, the agent-table upgrade constraint is limited to agent, the Windows install ACL is reset before the allow-list, agent-auth accepts either path separator, and realtime FIM stops retrying a file that stays unreadable
  • @atomicturtle - PR 2341 - Rotate ossec.log on the daily monitord pass into logs/ossec/YYYY/Mon/ossec-DD.log, then sign and compress it with the alert logs. Drop it from logrotate so copytruncate no longer races that file (#704)
  • @atomicturtle - PR 2336 - Ignore the Windows Application Experience :Win32App_1 NTFS stream in rootcheck (#758)
  • @atomicturtle - PR 2327 - Honor monitord.notify_time for agent_control status and remoted send eligibility, not only monitord disconnect alerts (#874, #1022)
  • @atomicturtle - PR 2326 - Allow CDB <list> matching on decoded system_name via field="system_name" (#628)
  • @atomicturtle - PR 2322 - Windows agent install ACL allows only SYSTEM and Administrators (#182)
  • @atomicturtle - PR 2320 - ossec-regex -p tests a pattern as PCRE2, with the same flags as a <pcre2> rule (#1845)
  • @atomicturtle - PR 2318 - Extract User-Agent (and action/srcport) from default IIS W3C access logs (#989)
  • @atomicturtle - PR 2324 - Allow silent Windows agent installs to skip IIS logging and integrity checking via /IISLogging=no and /IntegrityChecking=no (#1000)
  • @atomicturtle - PR 2331 - Optional <report_new_files_as_changed> so post-baseline FIM creates are stored as !+++ and listed by syscheck_control -i (#1831)

Security Fixes

  • @atomicturtle - PR 2481 - Keep content hashes out of the report_changes diff command line. seechanges_addfile() named its temporary links after the SHA-256 of the old and new snapshots and passed those paths to system("diff ..."), so any local user could read the unsalted hash of monitored (including root-only) files from ps / /proc. The links are now syscheck-changes-<pid>-{old,new,diff} (ANT-2026-FZNF7ML7)

  • @atomicturtle - PR 2480 - Keep the full file path in Unix FIM messages. read_file() and realtime_checksumfile() formatted <checksums> <path> with a stale 916/912 snprintf limit into an OS_MAXSTR buffer, so paths longer than about 757 characters were cut and every file under such a directory reached the manager under one truncated name that auto_ignore then muted. Those calls now use OS_MAXSTR like the Windows branches (ANT-2026-CH7FO833)

  • @atomicturtle - PR 2479 - Free realtime inotify watch paths when directories disappear. realtime_adddir() stored every watch path in dirtb, but realtime_process() never removed entries for nameless IN_IGNORED events, so a local user who could mkdir/rmdir under realtime="yes" grew root ossec-syscheckd without bound. IN_IGNORED now deletes and frees the entry, named events skip a missing watch, and IN_Q_OVERFLOW also purges stale descriptors (ANT-2026-ODWFEHAC)

  • @atomicturtle - PR 2478 - Rescan realtime directories when the Linux inotify queue overflows. realtime_process() ignored the kernel IN_Q_OVERFLOW marker (wd=-1, no name), so events dropped from the shared queue were never logged or recovered until the next scheduled scan. Overflow now logs once and reuses the deferred rt_overflow_schedule() recovery already used on Windows, keeping CHECK_REALTIME on Linux so lost subdirectory creates still get watches (ANT-2026-NCIMIJXH)

  • @atomicturtle - PR 2477 - Hash Windows registry values in binary mode so a Ctrl-Z in a value name or string cannot hide later values. syscheck_sum.tmp was written and read in text mode, and on Windows the CRT treats 0x1a as EOF, so the MD5/SHA1 stopped early and no integrity alert fired. The checksum temp and syscheckregistry.db now use binary opens; keys without Ctrl-Z keep the same digests (ANT-2026-QL3RS46Y)

  • @atomicturtle - PR 2476 - Skip Windows registry subkeys whose path no longer fits MAX_KEY. os_winreg_querykey() opened the truncated snprintf result, so when the parent path was already 2047 characters the "subkey" was the parent again and the walk recursed until the syscheck thread stack ran out. Both the open path and the HKEY_-prefixed full name are checked; an over-long key is logged with SK_REG_LONG and ignored (ANT-2026-SI19UF16)

  • @atomicturtle - PR 2475 - Keep large registry value buffers off the recursive Windows FIM stack. os_winreg_querykey() held about 38 KB of RegEnumValue buffers on every frame, so roughly 55 nested keys under a monitored windows_registry entry overflowed the 2 MB syscheck thread and killed ossec-agent.exe. Value hashing now runs in a non-recursive helper, and the subkey path buffers are heap-allocated for the walk (ANT-2026-583M5XOX)

  • @atomicturtle - PR 2474 - Keep the last known FIM hash when a scan yields the xxx placeholder (for example a symlink whose target is gone). fim_sum_has_real_change() treats any hash transition involving xxx as quiet, and callers then stored the new sum, so retargeting a monitored link through a missing path (A → xxx → B) never compared A with B and raised no rule 550. fim_sum_keep_hashes() now carries real digests over placeholders in c_read_file() and DB_ProcessFoundEntry() before compare and store (ANT-2026-YO3OMSC0)

  • @atomicturtle - PR 2473 - Stop a crafted rootcheck path from spoofing SyscheckFile fields. rk_extract_hashes() ended the path at the first quote and took each hash from the first MD5/SHA1/SHA256 label, so a directory name that embeds those tokens could replace the real path and digests in alerts.json. The decoder now keeps only a complete hex triple at the end of Rootkit/Anomaly/Trojaned messages and ends the path at the fixed text in front of it; a truncated hash-less Anomaly message is marked with ... so a cut path cannot fake that ending (ANT-2026-0UFTKHQJ)

  • @atomicturtle - PR 2472 - Forward every complete line from a syslog-over-TCP recv(). ossec-remoted cut at the first newline and parked the rest without scanning again, so lines that shared a segment were glued onto the next segment as one event, or dropped on close, CRLF, or a full buffer. The worker now appends into the incomplete prefix and drains every complete line before the next read (ANT-2026-2BEPXI8W)

  • @atomicturtle - PR 2471 - Stop daily reports from leaking per alert in ossec-monitord. os_ReportdStart() left the OS_StrBreak() group array and the top-entry list nodes behind; with reports running in a thread that memory stayed for the life of the daemon. The group array is freed after the loop, and each top-entry list's nodes are released with the hash table (covered with ANT-2026-AVE66YB6) (ANT-2026-M3W3LJEQ)

  • @atomicturtle - PR 2470 - Bound every plain SMTP socket in ossec-maild and ossec-monitord to 60 seconds per reply or write. OS_Sendmail() read through a bare recv() with no timeout, so a relay that accepted and stayed silent held a sender thread forever. After maild.max_workers such threads, no further alert e-mail was sent until ossec-maild was restarted. A timed-out read fails like any...

Read more

4.4.1

Choose a tag to compare

@atomicturtle atomicturtle released this 18 Oct 17:27
4bb34a1

OSSEC changelog (4.4.1) support@atomicorp.com

Release Maintainers

Scott R. Shinn (https://www.atomicorp.com)

Contributors on this release

Release Notes

OSSEC 4.4.1 is a maintenance release on the v4.4.0 branch.

Bug Fixes

4.4.0

Choose a tag to compare

@atomicturtle atomicturtle released this 05 Oct 20:19
4.4.0
3e69293

OSSEC changelog (4.4.0) support@atomicorp.com

Release Maintainers

Scott R. Shinn (https://www.atomicorp.com)

Contributors on this release

Release Notes

OSSEC 4.4.0 adds three main capabilities; other enhancements and fixes are listed below.

  • Windows FIM attributes and ACLs — Opt-in check_attrs for Hidden/System/attribute change alerts and check_acl for NTFS DACL/ACE matrix alerts (#1352, #2285).
  • GeoIP via libmaxminddb — Replaces EOL GeoIP Legacy with GeoLite2 MMDB lookups, plus ASN/country enrichment and GeoIP IDS rules (#1828, #2259).
  • JSON syslog alerts — ossec-csyslogd forwards analysisd JSON alerts so agent_name is a first-class field. jsonout stays on when the XML tag is omitted; alerts rotation remains with monitord (#1907, #2302).

General

  • @atomicturtle - Add opt-in Windows FIM check_attrs for Hidden/System/attribute change alerts (#1352)
  • @atomicturtle - Add opt-in Windows FIM check_acl for NTFS DACL/ACE matrix alerts
  • @ddpbsd / @atomicturtle - PR 1828 - Replace EOL GeoIP Legacy with libmaxminddb (GeoLite2 MMDB) for analysisd GeoIP
  • @atomicturtle - GeoIP IDS rules (multi-country auth, impossible-travel) plus ASN/country enrichment; SSH invalid-user dstuser extraction; feed if_matched_group when sid_prev_matched is also set
  • @atomicturtle - PR 2302 - Forward analysisd JSON alerts over syslog so agent_name is a first-class field; keep jsonout on when undeclared

Bug Fixes

4.3.0

Choose a tag to compare

@atomicturtle atomicturtle released this 25 Aug 14:05
4.3.0
82f8583

OSSEC changelog (4.3.0) support@atomicorp.com

Release Maintainers

Scott R. Shinn (https://www.atomicorp.com)

Contributors on this release

Release Notes

OSSEC 4.3.0 adds three main capabilities; other enhancements and fixes are listed below.

  • FIM maintenance mode — Per-agent mode via agent_control -M (enable, disable, status, end with -u <id>). While enabled, syscheck accepts file changes into the baseline without generating integrity alerts. end restarts syscheck/rootcheck and clears maintenance when that scan finishes (#677, #1289, #1681).
  • TCP/TLS syslog_output — ossec-csyslogd supports TCP and optional TLS (protocol, tls, tls_verify, tls_ca) in addition to UDP. Alert payloads (default/CEF/JSON/Splunk) may use up to OS_MAXSTR instead of a 2048-byte limit (#1762).
  • ModSecurity audit logs — Collect libmodsecurity serial audit logs with the modsec-audit localfile format, and decode nginx ModSecurity error-log events with new rules (#1390).

General

Bug Fixes

  • @atomicturtle - PR 2295 - Fix syscheck queue/restart races and honor FIM <frequency> under realtime
  • @atomicturtle - Make PCRE2 JIT optional (soft-fail compile, match via pcre2_match) so analysisd starts on macOS (#2040)
  • @atomicturtle - Restore ossec-lua binary names after Lua 5.4.7 upgrade (#2245)
  • @atomicturtle - Accept AR expect username (alias of user), fall back to srcuser, and document fixed script argv (#2104)
  • @atomicturtle - Decode cPanel login lines from webmaild/whostmgrd/cpaneld as well as cpsrvd (#1132)
  • @atomicturtle - Avoid FIM false positives from xxx hash placeholders and checksum read failures (#1590, #1704)
  • @atomicturtle - Match web-accesslog URLs that contain spaces; do not treat POST as a simple ignored request (#914, #922)
  • @atomicturtle - Require more attack-group context and same_location for rule 40501 (#1082)
  • @atomicturtle - Stop treating MJ12bot as a malicious user agent in rule 31508 (#1317)
  • @atomicturtle - Ignore snap and /dev/loop df 100% alerts under rule 532 (#1418)
  • @atomicturtle - Label /var/ossec/logs as var_log_t for logrotate and allow logrotate_t on ossec_log_t (#1948)
  • @atomicturtle - Replace dead Honeynet Project link in rule 40601 (#2111)
  • @atomicturtle - Limit PHP CGI rule 31110 to .php and cgi-bin URLs (#1101)
  • @atomicturtle - Ignore ProFTPD sreaddir buffer growth as a false positive (#1015)
  • @atomicturtle - Pass CFLAGS/LDFLAGS into bundled ossec-lua/ossec-luac via MYCFLAGS/MYLDFLAGS (#1568)
  • @atomicturtle - Open csyslogd syslog_output sockets before chroot so hostnames work without losing OS_Connect multi-address fallback (#1744)
  • @atomicturtle - Emit a single To: plus one comma-separated Cc: for granular/extra recipients so ISPs stop rejecting duplicate To headers (#1901)
  • @atomicturtle - Strip Recv-Q/Send-Q from default netstat listen check to stop rule 533 false positives (#495, #2063)
  • @reyjrar / @atomicturtle - PR 235 - Canonicalize Windows FIM paths so realtime and scheduled scans use the same slash form
  • @lazyp / @atomicturtle - PR 564 - Skip leading XML declarations (and UTF-8 BOM) in OS_ReadXML
  • @AdUser / @atomicturtle - PR 2105 - Insert SQL NULL for missing alert src_ip/dst_ip in os_dbd (not the string 'NULL')
  • @doke2 / @atomicturtle - PR 663 - Log AGENTCONFIG path when reading shared agent.conf in syscheckd
  • @crlorentzen / @atomicturtle - PR 1124 - Fix PIX/ASA 6-308001/605004/605005 field extraction (masked/empty users, remote IP)

4.2.0

Choose a tag to compare

@atomicturtle atomicturtle released this 02 Aug 21:32
4.2.0
928b24e

OSSEC changelog (4.2.0) support@atomicorp.com

Release Maintainers

Dan Parriott

Scott R. Shinn (https://www.atomicorp.com)

Contributors on this release

Release Notes

This release focuses on analysisd scalability and broader stability. Key enhancements include an always-on multi-threaded analysisd pipeline for Linux servers, pthread migration for manager daemons, rootcheck file-hash enrichment in alerts, and a self-contained Windows agent installer that ships required MinGW/OpenSSL runtime DLLs. It also includes numerous fixes across authd, maild, syscheck, logcollector, and rules.

Security Fixes

General

Bug Fixes

4.1.0

Choose a tag to compare

@atomicturtle atomicturtle released this 27 May 15:44
4.1.0
67eefdc

OSSEC changelog (4.1.0)

Release Maintainers

Dan Parriott

Scott R. Shinn (https://www.atomicorp.com)

Contributors on this release

Release Notes

Key enhancements include SMTP authentication support, IPv6 whitelisting improvements, and support for large files (>2GB). This release also includes multiple bug fixes for analysisd and logcollector crashes. This changelog is not yet complete

Security Fixes

General

Bug Fixes

4.1.0 RC1

4.1.0 RC1 Pre-release
Pre-release

Choose a tag to compare

@atomicturtle atomicturtle released this 11 Apr 20:30
4.1.0-rc1
f657be9

OSSEC changelog (4.1.0) support@atomicorp.com

Release Maintainers

Dan Parriott

Scott R. Shinn (https://www.atomicorp.com)

Contributors on this release

Release Notes

This changelog is not yet complete

Key enhancements include SMTP authentication support, IPv6 whitelisting improvements, and support for large files (>2GB). This release also includes multiple bug fixes for analysisd and logcollector crashes. This changelog is not yet complete

Security Fixes

General

Bug Fixes

# OSSEC 4.0.0 Release Notes

Choose a tag to compare

@atomicturtle atomicturtle released this 01 Feb 21:47
4.0.0
69986fa

Release Maintainers

Contributors on this release


Release Notes

Major security and stability release addressing critical memory safety issues and modernizing cryptographic implementations. This release includes fixes for multiple heap use-after-free (UAF) vulnerabilities, uncontrolled recursion in XML parsing, and implementation of secure random number generation for agent key creation. Additionally, file integrity monitoring has been modernized with SHA-256 support, and several external dependencies have been updated to their latest stable versions.

⚠️ Breaking Changes

Warning

AES Encryption Now Default for Agent Communication

OSSEC 4.0.0 agents now use AES encryption by default for agent-server communication. This is NOT backwards compatible with OSSEC 3.8.0 and older servers.

Migration Options:

  1. Upgrade servers first (recommended): Update all OSSEC servers to 4.0.0 before upgrading agents.
  2. Use legacy Blowfish encryption on 4.0.0 agents: Add the following to your agent's ossec.conf:
    <client>
      <crypto_method>blowfish</crypto_method>
    </client>

Configuration Changes

  • SHA-256 File Integrity Monitoring: SHA-256 is now enabled by default for all monitored directories. No configuration changes are required for new installs.
  • To disable SHA-256 (if needed for compatibility):
    <syscheck>
      <directories check_sha256sum="no">/etc</directories>
    </syscheck>

🔒 Security Fixes

  • Critical Memory Safety: Fix critical UAF bug in memory leak fix (Issue #1818) - PR 2178
  • Heap UAF: Fix Issue #1817: Heap UAF in OSSEC Alert decoder with leak-free Eventinfo refactor - PR 2177
  • Recursion Fix: Fix uncontrolled recursion in os_xml _ReadElem (Issue #1953) - PR 2175
  • Secure RNG: Implement secure RNG for agent key generation using OpenSSL RAND_bytes - PR 2167

General Fixes & Improvements

  • FIM Modernization: SHA-256 integration and safe buffer handling - PR 2166
  • Lua Update: Update Lua to version 5.4.7 - PR 2165
  • zlib Update: Update zlib to version 1.3.1 - PR 2164
  • cJSON Update: Update cJSON to version 1.7.18 - PR 2163
  • Windows Builds: Build fixes for Windows - PR 2162
  • Packaging: Add RPM spec file - PR 2147
  • Agent Auth: Handle SSL EOF condition in agent-auth - PR 2146
  • Performance: Ignore ENOENT in OS_RemoveCounter to prevent benign error messages - PR 2171
  • Stability: Improve logcollector crash fix to check read function pointer (Issue #2156) - PR 2168
  • Testing: Improve error message in ossec-testrule for missing rule matches (Issue #2093) - PR 2170
  • CLI: Fix help/version argument exit codes - PR 2174
  • Bugfix: Fix for Issue #2056 in syscheck decoder - PR 2173
  • Code Quality: Clean up redundant NULL checks in report filter function (Issue #2133) - PR 2169

3.8.0

Choose a tag to compare

@atomicturtle atomicturtle released this 05 Jan 21:26
3.8.0
a282687

OSSEC changelog (3.8.0) scott@atomicorp.com

Release Maintainers

Dan Parriott

Scott R. Shinn (https://www.atomicorp.com)

Contributors on this release

Release Notes

Update to authd to enforce chrooting, and privilege separation. The authd daemon will by default run as the ossec user. Adds support for AIX 7.x on power architecture (8/9/10).

General

3.7.0

Choose a tag to compare

@atomicturtle atomicturtle released this 17 Jan 16:06
3.7.0
1ecffb1

OSSEC changelog (3.7.0) scott@atomicorp.com

Release Maintainers

Dan Parriott

Scott R. Shinn (http://www.atomicorp.com)

Contributors on this release

Release Notes

Support for Journald

What's Changed

New Contributors

Full Changelog: 3.6.0...3.7.0