Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright (C) 2014 - 2026 Atomicorp Inc.
name: "CodeQL"

on:
Expand Down
4 changes: 2 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Copyright (C) 2014 - 2026 Atomicorp Inc.
Copyright (C) 2003 - 2013 Trend Micro Inc. All rights reserved.


GNU GENERAL PUBLIC LICENSE
Version 2, June 1991

Expand Down Expand Up @@ -448,7 +448,7 @@ OpenSSL License
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* "This product includes cryptographic software written by
* "This product includes software written by
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the routines from the library
* being used are not cryptographic related :-).
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[comment]: # (Copyright (C) 2014 - 2026 Atomicorp Inc.)
OSSEC v4.1.0

[![GitHub release (latest by date)](https://img.shields.io/github/v/release/ossec/ossec-hids)](https://github.com/ossec/ossec-hids/releases)
Expand All @@ -23,6 +24,7 @@ The current stable releases are available on the ossec website.
* Release documentation is available at: [docs](https://www.ossec.net/docs/)



## Development ##

The development version is hosted on GitHub and just a simple git clone away.
Expand Down Expand Up @@ -65,5 +67,3 @@ Join us on Discord: https://discord.gg/BXzM75Xzq7
## License

OSSEC is licensed under the [GNU General Public License version 2 (GPLv2)](LICENSE).


6 changes: 6 additions & 0 deletions etc/templates/en/messages.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright (C) 2014 - 2026 Atomicorp Inc.
# Configuration
yes="y"
no="n"
Expand Down Expand Up @@ -41,6 +42,11 @@ yoursmtp="We found your SMTP server as"
usesmtp="Do you want to use it?"
usingsmtp="Using SMTP server: "
whatsmtp="What's your SMTP server ip/host?"
smtpauth="Do you want to use SMTP authentication?"
smtpuser="What's your SMTP username?"
smtppass="What's your SMTP password?"
smtpsecure="Do you want to use a secure connection (SSL/TLS)?"
smtpport="What's your SMTP port?"

# Part 3.1/agent
serveraddr="What's the IP Address or hostname of the OSSEC HIDS server?"
Expand Down
52 changes: 52 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
# Copyright (C) 2014 - 2026 Atomicorp Inc.
# Installation script for the OSSEC
# Author: Daniel B. Cid <daniel.cid@gmail.com>
# Last modification: Aug 30, 2012
Expand Down Expand Up @@ -540,6 +541,46 @@ ConfigureServer()
else
SMTP=${USER_EMAIL_SMTP}
fi

# SMTP Auth
if [ "X${USER_SMTP_AUTH}" = "X" ]; then
echo ""
$ECHO " - ${smtpauth} ($yes/$no) [$no]: "
read AUTH_SMTP
else
AUTH_SMTP=${USER_SMTP_AUTH}
fi

if [ "X${AUTH_SMTP}" = "X${yes}" ]; then
if [ "X${USER_SMTP_USER}" = "X" ]; then
$ECHO " - ${smtpuser}: "
read SMTP_USER
else
SMTP_USER=${USER_SMTP_USER}
fi
if [ "X${USER_SMTP_PASS}" = "X" ]; then
$ECHO " - ${smtppass}: "
read SMTP_PASS
else
SMTP_PASS=${USER_SMTP_PASS}
fi
fi

# SMTP Secure
if [ "X${USER_SMTP_SECURE}" = "X" ]; then
$ECHO " - ${smtpsecure} ($yes/$no) [$no]: "
read SMTP_SECURE
else
SMTP_SECURE=${USER_SMTP_SECURE}
fi

# SMTP Port
if [ "X${USER_SMTP_PORT}" = "X" ]; then
$ECHO " - ${smtpport} [25]: "
read SMTP_PORT
else
SMTP_PORT=${USER_SMTP_PORT}
fi
;;
esac

Expand All @@ -551,6 +592,17 @@ ConfigureServer()
echo " <email_notification>yes</email_notification>" >> $NEWCONFIG
echo " <email_to>$EMAIL</email_to>" >> $NEWCONFIG
echo " <smtp_server>$SMTP</smtp_server>" >> $NEWCONFIG
if [ "X${AUTH_SMTP}" = "X${yes}" ]; then
echo " <auth_smtp>yes</auth_smtp>" >> $NEWCONFIG
echo " <smtp_user>$SMTP_USER</smtp_user>" >> $NEWCONFIG
echo " <smtp_password>$SMTP_PASS</smtp_password>" >> $NEWCONFIG
fi
if [ "X${SMTP_SECURE}" = "X${yes}" ]; then
echo " <secure_smtp>yes</secure_smtp>" >> $NEWCONFIG
fi
if [ "X${SMTP_PORT}" != "X" ]; then
echo " <smtp_port>$SMTP_PORT</smtp_port>" >> $NEWCONFIG
fi
echo " <email_from>ossecm@${HOST}</email_from>" >> $NEWCONFIG
else
echo " <email_notification>no</email_notification>" >> $NEWCONFIG
Expand Down
10 changes: 9 additions & 1 deletion ossec-hids.spec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Summary: An Open Source Host-based Intrusion Detection System
Name: ossec-hids
Epoch: 1
Version: 4.1.0
Release: 1%{?dist}.art
Release: 2%{?dist}.art
License: GPL
Group: Applications/System
URL: https://www.ossec.net/
Expand Down Expand Up @@ -69,6 +69,9 @@ BuildRequires: file-devel


Provides: ossec-%{version}-%{release}
Provides: group(ossec)
Provides: user(ossec)
Provides: user(ossecr)
# Do we really need inotify-tools?
#Requires: inotify-tools
#
Expand Down Expand Up @@ -121,6 +124,8 @@ OSSEC HIDS for systems running in hierarchical server configurations.
Summary: The OSSEC HIDS Server
Group: System Environment/Daemons
Provides: ossec-server-%{version}-%{release}
Provides: user(ossecm)
Provides: user(ossece)
Requires: %{name} = %{epoch}:%{version}-%{release}
#Requires: ossec-rules
#Conflicts: %{name}-client
Expand Down Expand Up @@ -750,6 +755,9 @@ fi

# Changes
%changelog
* Wed Apr 22 2026 Support <support@atomicorp.com> - 4.1.0-2
- Add virtual user and group provides for Fedora 43 compatibility

* Sat Apr 11 2026 Support <support@atomicorp.com> - 4.1.0-1
- Update to 4.1.0

Expand Down
Loading