Log sources
Authentication logs provide the raw records that enter the processing pipeline.
A modular Python security-monitoring project exploring how raw authentication logs can be transformed into normalized events, processed through reusable components and used as the foundation for detection and alerting.
Security logs are produced in source-specific formats. Building detection logic directly around every raw format can make a monitoring system difficult to extend and maintain.
MiniSOC explores a more structured approach: parse source data into a common event representation, then build further processing and detection capabilities around that normalized model.
The project is being developed incrementally, with an emphasis on clear component boundaries, predictable behaviour and tests that verify each part of the system.
The intended architecture separates source-specific parsing from the shared event model and the components that will consume those events.
Authentication logs provide the raw records that enter the processing pipeline.
Dedicated parsers interpret source-specific records and extract relevant fields.
Parsed records are represented using a consistent EventSchema.
Normalized events provide a consistent input for detection components being developed.
Structured alerts associate findings with relevant events and supporting evidence.
Pytest tests check model behaviour, parser contracts and expected parsing outcomes.
The initial development work establishes the data structures and parser foundation needed for a maintainable detection system.
A parser should understand the format of its input source; detection logic should work with consistent event data. Keeping those responsibilities separate reduces the need for detection components to know the details of every log format.
The shared EventSchema provides a predictable contract between parsing and later processing. The BaseParser abstraction gives future parsers a common interface, while independent tests help verify that each component behaves as expected.
This is also the focus of the project's technical writing: documenting the reasoning behind the normalized event model, its fields and the interfaces around it.
Testing is being used to validate the system's foundations as they are introduced. Current tests cover event construction, alert behaviour and Linux authentication parsing, including expected extraction and handling of non-matching records.
Under progressMiniSOC is an exercise in combining software engineering with defensive security. The work involves more than writing detection conditions: it requires thinking about input formats, data contracts, component boundaries, error handling and testability.
As the project grows, the goal is to keep each part understandable and independently verifiable while developing a practical foundation for security-event analysis.