54. AI-Driven Microservice Framework for Autonomous NIST Compliance Mapping and Macedonian Cyber Security Legislation Auditing

Authors

Keywords:

NIS2 Directive, Security of Network and Information Systems Act, NIST SP 800-53 Rev. 5, NIST CSF 2.0, Law on Personal Data Protection (LPDP), MKD-CIRT Incident Reporting Form, On-Premise AI, Local Small Language Models (SLM), FastAPI, Ollama, Streamlit, Continuous Security Monitoring

Abstract

The transposition of the European Union’s NIS2 Directive into the domestic legal architecture of the Republic of North Macedonia—via the Security of Network and Information Systems Act (Official Gazette No. 135/2025)—explicitly demands continuous system logging, granular telemetry analysis, and direct alignment with internationally recognized riskmanagement frameworks. However, transmitting sensitive incident telemetry to third-party cloud AI vendors introduces severe legal liabilities under North Macedonia’s Law on Personal Data Protection (LPDP) regarding unauthorized cross-border transfers and potential data exposure. This paper presents an onpremise, autonomous AI microservice framework that bridges local statutory mandates with international security standards, specifically NIST SP 800-53 Rev. 5 and NIST CSF 2.0. By eliminating third-party cloud API dependencies, the architecture ingests raw event telemetry through an asynchronous FastAPI sliding buffer into an in-memory queue. An interactive Streamlit orchestration dashboard manages a local Small Language Model (llama3.2:3b via Ollama) with lowlatency inference parameters and persistent memory pinning. The engine performs deterministic semantic threat mapping, translating raw logs into MITRE ATT&CK technique classifications and NIST control audits to provide continuous Human-in-the-Loop (HITL) triage readiness. Crucially, the system generates exportable CSV and JSON compliance artifacts structured strictly to match the categorical fields of the official national MKD-CIRT Incident Reporting Form (Образец за пријава на инцидент во МКД-ЦИРТ). Operating entirely on isolated local loopback interfaces (127.0.0.1), the proposed framework delivers complete on-premise data localization, low execution latency, and significa

Downloads

Published

2026-09-24