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

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.

主站蜘蛛池模板: 祁阳县| 南昌县| 双桥区| 巴马| 工布江达县| 津南区| 额敏县| 蕉岭县| 东明县| 恩施市| 唐河县| 湟源县| 青海省| 西畴县| 隆回县| 内江市| 河南省| 大余县| 昭苏县| 从化市| 广饶县| 孙吴县| 沁源县| 改则县| 成都市| 社旗县| 星座| 错那县| 洪湖市| 文山县| 海口市| 穆棱市| 大邑县| 彩票| 赫章县| 岱山县| 隆德县| 靖西县| 开化县| 凤山县| 伊吾县|