官术网_书友最值得收藏!

Getting ready

So, what is it we're getting ourselves into? OSSEC is an acronym for Open Source SECurity Event Correlator. OSSEC monitors systems for events in logfiles and processes on the filesystem through the use of commands and outputs. It decodes the data, extracting valuable information, and analyzes it in context.

As the previous diagram shows, the analysis and correlation is used to generate alerts, either e-mails or logs, or active responses. Active response is a simple framework for running a script or program within the context of the alert. Using active response, we can call a firewall script with the source IP that just failed to log in to our server via SSH.

The functionality of the local profile is identical to that of the server-agent model, except all components function locally. Let's start out with a simple local profile installation.

To install OSSEC from source, you will need only a C compiler available on the system and the superuser access. OSSEC does not require any external libraries and builds its own self-contained binaries to avoid corruption or deception should your server be compromised.

Generally, most Linux/BSD operating systems ship with or have a C compiler available. It's usually the GNU C compiler (GCC). If GCC isn't already installed, you can simply consult your system's package manager to install it on any Linux- or BSD-based systems.

Now the only thing left to prepare is downloading and extracting the source tarball. You can retrieve the proper archive file from http://www.ossec.net/?page_id=19. Download the latest stable release, extract it, and change its directory into the folder created for extracting the archive.

主站蜘蛛池模板: 龙泉市| 简阳市| 陆丰市| 神池县| 定西市| 喜德县| 桓仁| 平乡县| 淳化县| 定日县| 徐州市| 黔东| 牙克石市| 太仆寺旗| 吐鲁番市| 清苑县| 会泽县| 开平市| 巴林右旗| 上饶市| 萨嘎县| 西盟| 哈巴河县| 邹城市| 林口县| 阿勒泰市| 华坪县| 安远县| 板桥市| 株洲市| 永康市| 轮台县| 类乌齐县| 百色市| 中卫市| 鹤山市| 留坝县| 台湾省| 沙洋县| 大丰市| 岢岚县|