Ad Widget

Collapse

Security about remote commands and system.run[]

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hiacine
    Junior Member
    • May 2009
    • 18

    #1

    Security about remote commands and system.run[]

    Hi,

    I'm wondering somes questions about security with zabbix.

    when I'm connected on my zabbix server, I can tell an agent to do what ever I want by sending some remote commands and system.run[] by telnet.

    I my zabbix server is hacked, the hacker can do what ever he want with my hosts.

    Can the remote those telnet actions been sent from anoter ip (not the ip server) ? I thin no but not sure ?

    I read something about setting only the active mode to the agents fro more sécurity.

    What are the consequences ?


    (sorry for my ugly english )
  • Calimero
    Senior Member
    • Nov 2006
    • 481

    #2
    Originally posted by hiacine
    when I'm connected on my zabbix server, I can tell an agent to do what ever I want by sending some remote commands and system.run[] by telnet.
    You can disable remote commands (EnableRemoteCommands=0).

    But yes, the "remote command" feature allows arbitrary commands to be run remotely as the user zabbix_agentd runs as.

    Originally posted by hiacine
    Can the remote those telnet actions been sent from anoter ip (not the ip server) ? I thin no but not sure ?
    zabbix_agentd only handles connections originating from the IP address(es) given in zabbix_agentd.conf (Server=IP1,IP2,...). But of course that doesn't protect from spoofing.

    And indeed if one of your zabbix_server is compromised, any command can be run as user zabbix on your monitored hosts that allow remote commands.

    Personally I disable remote commands (mainly for security reasons, but I don't really have any reason to use it) and instead use UserParameters that do at least some parameters checks.

    Anyway, nobody would do any kind of monitoring over an insecure network: I've always had an admin/backoffice network dedicated to monitoring, administration, internal trafic (ie: database connection). No monitoring or anything sensitive on the "public" network (monitoring servers aren't even connected to the "public" network).

    I'm monitoring two remote hosts and use OpenVPN for this (but that's outside zabbix' scope).

    Originally posted by hiacine
    I read something about setting only the active mode to the agents fro more sécurity.
    In active mode, zabbix_agentd connects to zabbix_server to retrieve a list of what item it has to check (instead of having zabbix_server connect to zabbix_agentd to get each and every item).

    Comment

    • hiacine
      Junior Member
      • May 2009
      • 18

      #3
      Originally posted by Calimero
      In active mode, zabbix_agentd connects to zabbix_server to retrieve a list of what item it has to check (instead of having zabbix_server connect to zabbix_agentd to get each and every item).

      Thank you for those ansers Calimero.

      If I set the agents only in active mode, is it as good as normal configuration.

      Perhaps a lake of performance ?? or not ?

      Comment

      Working...