I have a wazuh server up.
I'm running ossec-authd on an open tcp port. It is being started via an upstart job. The required ssl certs/etc are generated and in place. The important bits look like this:
exec start-stop-daemon --start --chuid root --exec /var/ossec/bin/ossec-authd -- -P -D /var/ossec 2>&1 > /var/log/upstart/ossec-authd.log
Server starts up and listens just fine.
Here's where things kind of go sideways. I'm trying to register an agent on an ubuntu box.
apt-get update
apt-get install ossec-hids-agent
However, when I try to get the agent to authenticate with the shared secret in /var/ossec/bin/ossec-authd I don't see a workable option to pass along the shared password.
/var/ossec/bin/agent-auth --help
OSSEC HIDS ossec-authd: Connects to the manager to extract the agent key.
Available options:
-h This help message.
-m <manager ip> Manager IP Address.
-p <port> Manager port (default 1515).
-A <agent name> Agent name (default is the hostname).
-D <OSSEC Dir> Location where OSSEC is installed.
So, what's everyone else doing? Unfortunately I'm not in a %100 secure vpc env. I'm going to need to be able to add agents from ec2 classic. Which complicates both the security side of this as well as rules out disabling authentication.
--
J.