How ossincn/alienvaultossim2 works
Project type and purpose
• From the file tree and README (“alienvaultossim2”), this is an open-source, C-based Security Information and Event Management (SIEM) engine (the OSSIM 2 core).
• It ingests security events (e.g., from Snort, SMTP, network packets), classifies and correlates them, and stores results in a database, supporting plugins for extensibility.
File structure
• Top-level C modules:
• sim-server.c/h – the central “engine” / main daemon
• sim-sensor.c/h – captures raw events (Snort, SMTP, network)
• sim-event.c/h – event objects & lifecycle
• sim-classification.c/h – classifies events into categories and severities
• sim-correlators (sim-net-level, sim-host-level) – correlates events across hosts or networks
• sim-database.c/h – persistence layer (likely MySQL)
• sim-plugin*.c/h – plugin API (SID, state, generic plugin hooks)
• sim-config.c/h & sim-xml-* – XML-driven configuration loader and directive parser
• sim-scheduler.c/h – schedules periodic tasks (e.g., cleanup, stats)
• sim-log.c/h – logging subsystem
• sim-command.c/h – CLI or remote control command interface
• Support libraries: libos-sim.h, os-sim.h
• Build infrastructure: Makefile.*, autogen.sh, configure.ac, config.dtd
README for additional insights
• The README is terse, so the primary architectural cues come from file names and typical OSSIM design:
• Modular, monolithic C daemon with plugin extensibility
• Event ingestion → classification → correlation → storage → notification/alerting
Detail
• Every major sim-*.c module by grouping them within the appropriate layer (e.g., list “sim-host-level, sim-net-level” under Correlation)